:root {
    color-scheme: dark;
    --bg: #050505;
    --bg-soft: #09090b;
    --panel: rgba(24, 24, 27, 0.82);
    --panel-strong: #18181b;
    --line: rgba(63, 63, 70, 0.78);
    --text: #f4f4f5;
    --muted: #a1a1aa;
    --muted-2: #71717a;
    --cyan: #22d3ee;
    --cyan-strong: #06b6d4;
    --blue: #3b82f6;
    --violet: #8b5cf6;
    --shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(8, 145, 178, 0.18), transparent 34rem),
        radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.15), transparent 32rem),
        linear-gradient(180deg, #050505 0%, #09090b 42%, #050505 100%);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(63, 63, 70, 0.75);
    background: rgba(9, 9, 11, 0.9);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(6, 182, 212, 0.25);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.12;
}

.brand-text strong {
    font-size: 20px;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #67e8f9, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    margin-top: 4px;
    color: var(--muted-2);
    font-size: 12px;
    letter-spacing: 0.12em;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.nav-link {
    padding: 10px 12px;
    border-radius: 12px;
    color: #d4d4d8;
    font-size: 14px;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--cyan);
    background: rgba(39, 39, 42, 0.72);
    transform: translateY(-1px);
}

.nav-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search input,
.mobile-search input,
.library-toolbar input,
.library-toolbar select {
    border: 1px solid rgba(63, 63, 70, 0.9);
    outline: none;
    background: rgba(39, 39, 42, 0.78);
    color: var(--text);
    border-radius: 14px;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input {
    width: 210px;
    padding: 10px 12px;
}

.nav-search input:focus,
.mobile-search input:focus,
.library-toolbar input:focus,
.library-toolbar select:focus {
    border-color: var(--cyan-strong);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12);
    background: rgba(24, 24, 27, 0.96);
}

.nav-search button,
.mobile-search button,
.btn,
.link-button,
.carousel-control,
.filter-chip {
    border: 0;
    cursor: pointer;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan-strong), #2563eb);
    box-shadow: 0 14px 30px rgba(6, 182, 212, 0.2);
    transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.nav-search button,
.mobile-search button {
    padding: 10px 14px;
}

.nav-search button:hover,
.mobile-search button:hover,
.btn:hover,
.link-button:hover,
.carousel-control:hover,
.filter-chip:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(39, 39, 42, 0.8);
    color: var(--text);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-panel.is-open {
    display: grid;
    gap: 10px;
}

.mobile-panel a {
    display: block;
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(39, 39, 42, 0.62);
    color: #d4d4d8;
}

.mobile-search input {
    width: 100%;
    padding: 11px 12px;
}

main {
    overflow: hidden;
}

.section-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    position: relative;
    min-height: 690px;
    display: grid;
    align-items: center;
    border-bottom: 1px solid rgba(63, 63, 70, 0.55);
    background:
        radial-gradient(circle at 20% 18%, rgba(34, 211, 238, 0.2), transparent 28rem),
        radial-gradient(circle at 90% 5%, rgba(37, 99, 235, 0.22), transparent 26rem),
        linear-gradient(135deg, #000000 0%, #082f49 48%, #111827 100%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 180px;
    background: linear-gradient(180deg, transparent, var(--bg));
    pointer-events: none;
}

.hero-carousel {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    z-index: 1;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.78fr);
    align-items: center;
    gap: 48px;
    min-height: 620px;
    padding: 72px 0;
}

.hero-slide.is-active {
    display: grid;
    animation: fadeUp 0.7s ease both;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-eyebrow,
.page-eyebrow,
.detail-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 12px;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.14);
    color: #a5f3fc;
    font-size: 13px;
    letter-spacing: 0.08em;
}

.hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero h1 span,
.gradient-text {
    background: linear-gradient(90deg, #67e8f9, #60a5fa, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    max-width: 680px;
    margin: 24px 0 0;
    color: #d4d4d8;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 0;
}

.hero-meta span,
.detail-meta span,
.meta-pill,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(63, 63, 70, 0.8);
    border-radius: 999px;
    background: rgba(24, 24, 27, 0.68);
    color: #d4d4d8;
}

.hero-meta span,
.detail-meta span,
.meta-pill {
    padding: 8px 12px;
    font-size: 13px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.btn,
.link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    font-weight: 700;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.hero-poster-wrap {
    position: relative;
}

.hero-poster {
    position: relative;
    min-height: 500px;
    border-radius: 34px;
    overflow: hidden;
    border: 1px solid rgba(103, 232, 249, 0.18);
    background: rgba(24, 24, 27, 0.72);
    box-shadow: var(--shadow);
    transform: perspective(1000px) rotateY(-7deg) rotateX(2deg);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
}

.hero-poster::after,
.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.72));
    pointer-events: none;
}

.hero-float-card {
    position: absolute;
    left: -26px;
    bottom: 26px;
    right: 26px;
    z-index: 3;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: rgba(9, 9, 11, 0.78);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.hero-float-card strong {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 20px;
}

.hero-float-card p {
    margin: 0;
    color: #d4d4d8;
    line-height: 1.6;
}

.hero-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 32px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.carousel-control {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    pointer-events: auto;
    font-size: 24px;
}

.hero-dots {
    display: flex;
    gap: 10px;
    pointer-events: auto;
}

.hero-dot {
    width: 38px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.22);
}

.hero-dot.is-active {
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.section-block {
    padding: 76px 0;
}

.section-block.alt {
    background: rgba(24, 24, 27, 0.36);
    border-top: 1px solid rgba(63, 63, 70, 0.5);
    border-bottom: 1px solid rgba(63, 63, 70, 0.5);
}

.section-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.section-title-row h2,
.page-header h1,
.detail-copy h1 {
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.section-title-row h2 {
    font-size: clamp(28px, 3vw, 42px);
}

.section-title-row p,
.page-header p,
.detail-copy p,
.detail-content p {
    color: var(--muted);
    line-height: 1.75;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(63, 63, 70, 0.72);
    border-radius: var(--radius);
    background: rgba(24, 24, 27, 0.74);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
    transition: transform 0.24s ease, border 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.6);
    box-shadow: 0 24px 70px rgba(6, 182, 212, 0.12);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 10%, rgba(34, 211, 238, 0.22), transparent 18rem),
        linear-gradient(135deg, #18181b, #020617);
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.05);
    filter: saturate(1.08);
}

.poster-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), transparent 40%, rgba(59, 130, 246, 0.2));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-glow {
    opacity: 1;
}

.poster-year,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
}

.poster-year {
    left: 12px;
    background: rgba(9, 9, 11, 0.72);
    backdrop-filter: blur(12px);
}

.rank-badge {
    right: 12px;
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.poster-play {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.9);
    color: #ffffff;
    transform: translate(-50%, -50%) scale(0.82);
    opacity: 0;
    transition: opacity 0.24s ease, transform 0.24s ease;
    box-shadow: 0 18px 40px rgba(6, 182, 212, 0.28);
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
    padding: 18px;
}

.movie-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted-2);
    font-size: 13px;
}

.movie-card h3 {
    min-height: 54px;
    margin: 10px 0 10px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.45;
}

.movie-card h3 a:hover {
    color: var(--cyan);
}

.movie-card p {
    min-height: 68px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.62;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-row span {
    padding: 5px 9px;
    font-size: 12px;
    color: #a5f3fc;
    border-color: rgba(34, 211, 238, 0.22);
    background: rgba(8, 145, 178, 0.13);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.category-card {
    border: 1px solid rgba(63, 63, 70, 0.75);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.13), transparent 18rem),
        rgba(24, 24, 27, 0.72);
    overflow: hidden;
    transition: transform 0.22s ease, border 0.22s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.56);
}

.category-card-main {
    display: grid;
    gap: 14px;
    padding: 26px;
}

.category-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.9), rgba(59, 130, 246, 0.9));
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.category-card h2,
.category-card h3 {
    margin: 0;
    font-size: 24px;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.category-arrow {
    color: var(--cyan);
    font-weight: 700;
}

.category-hot-links {
    display: grid;
    gap: 1px;
    border-top: 1px solid rgba(63, 63, 70, 0.7);
    background: rgba(63, 63, 70, 0.45);
}

.category-hot-links a {
    padding: 14px 26px;
    background: rgba(9, 9, 11, 0.46);
    color: #d4d4d8;
}

.category-hot-links a:hover {
    color: var(--cyan);
    background: rgba(24, 24, 27, 0.86);
}

.rank-panel {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: stretch;
}

.rank-list {
    display: grid;
    border: 1px solid rgba(63, 63, 70, 0.72);
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(24, 24, 27, 0.72);
}

.rank-link {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 15px 18px;
    border-bottom: 1px solid rgba(63, 63, 70, 0.55);
}

.rank-link:last-child {
    border-bottom: 0;
}

.rank-link:hover {
    background: rgba(39, 39, 42, 0.78);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #ffffff;
    font-weight: 900;
}

.rank-title {
    color: #ffffff;
    font-weight: 700;
}

.rank-meta {
    color: var(--muted-2);
    font-size: 13px;
}

.page-header {
    padding: 70px 0 34px;
}

.page-header h1 {
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
}

.page-header p {
    max-width: 760px;
    margin: 18px 0 0;
    font-size: 18px;
}

.library-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 160px 160px 160px;
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px;
    border: 1px solid rgba(63, 63, 70, 0.72);
    border-radius: 20px;
    background: rgba(24, 24, 27, 0.72);
}

.library-toolbar input,
.library-toolbar select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
}

.filter-chip {
    min-height: 46px;
    padding: 0 18px;
}

.empty-state {
    display: none;
    padding: 38px;
    text-align: center;
    border: 1px solid rgba(63, 63, 70, 0.7);
    border-radius: var(--radius);
    background: rgba(24, 24, 27, 0.72);
    color: var(--muted);
}

.empty-state.is-visible {
    display: block;
}

.is-hidden {
    display: none !important;
}

.detail-hero {
    padding: 56px 0 40px;
    background:
        radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.16), transparent 26rem),
        linear-gradient(180deg, rgba(8, 47, 73, 0.34), transparent);
    border-bottom: 1px solid rgba(63, 63, 70, 0.55);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    color: var(--muted-2);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--cyan);
}

.detail-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 28px;
    background: rgba(24, 24, 27, 0.72);
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-copy h1 {
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.05;
}

.detail-copy .lead {
    margin: 20px 0 0;
    max-width: 780px;
    font-size: 19px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 0;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.player-section,
.detail-section {
    padding: 56px 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow);
}

.player-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.58));
    color: #ffffff;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-cover span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #ffffff;
    font-size: 34px;
    box-shadow: 0 24px 60px rgba(6, 182, 212, 0.34);
}

.player-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.detail-content,
.info-card {
    border: 1px solid rgba(63, 63, 70, 0.72);
    border-radius: var(--radius);
    background: rgba(24, 24, 27, 0.72);
    padding: 26px;
}

.detail-content h2,
.info-card h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 26px;
}

.detail-content p {
    margin: 0 0 22px;
    font-size: 16px;
}

.info-list {
    display: grid;
    gap: 14px;
}

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(63, 63, 70, 0.55);
}

.info-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.info-list span:first-child {
    color: var(--muted-2);
}

.info-list span:last-child {
    color: #ffffff;
    text-align: right;
}

.site-footer {
    border-top: 1px solid rgba(63, 63, 70, 0.72);
    background: rgba(9, 9, 11, 0.92);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 38px;
}

.footer-brand p {
    max-width: 520px;
    color: var(--muted);
    line-height: 1.75;
}

.site-footer h2 {
    margin: 0 0 16px;
    font-size: 16px;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    border-top: 1px solid rgba(63, 63, 70, 0.55);
    color: var(--muted-2);
    font-size: 14px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1120px) {
    .desktop-nav {
        display: none;
    }

    .nav-search {
        margin-left: auto;
    }

    .mobile-toggle {
        display: grid;
        place-items: center;
    }

    .card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .library-toolbar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 840px) {
    .nav-shell {
        height: auto;
        min-height: 68px;
        padding: 10px 0;
    }

    .nav-search {
        display: none;
    }

    .hero {
        min-height: auto;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 28px;
        padding: 54px 0 96px;
    }

    .hero-poster {
        min-height: 420px;
        transform: none;
    }

    .hero-poster img {
        min-height: 420px;
    }

    .hero-float-card {
        left: 18px;
        right: 18px;
    }

    .section-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .card-grid,
    .category-grid,
    .rank-panel,
    .detail-layout,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 340px;
    }

    .rank-link {
        grid-template-columns: 46px 1fr;
    }

    .rank-meta {
        grid-column: 2;
    }
}

@media (max-width: 560px) {
    .brand-text strong {
        font-size: 18px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .library-toolbar {
        grid-template-columns: 1fr;
    }

    .hero h1,
    .page-header h1,
    .detail-copy h1 {
        letter-spacing: -0.035em;
    }

    .hero-actions,
    .detail-actions {
        flex-direction: column;
    }

    .btn,
    .link-button {
        width: 100%;
    }
}
