:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.72);
    --panel-strong: rgba(15, 23, 42, 0.92);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --amber: #f59e0b;
    --amber-soft: rgba(245, 158, 11, 0.16);
    --orange: #f97316;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 15% -5%, rgba(245, 158, 11, 0.18), transparent 32rem),
        radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.12), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #07111f 48%, #020617 100%);
    color: var(--text);
    min-height: 100vh;
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: rgba(2, 6, 23, 0.72);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 16px 34px rgba(245, 158, 11, 0.28);
}

.brand-text {
    font-size: 20px;
    background: linear-gradient(90deg, #fbbf24, #fb923c, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link,
.mobile-link {
    color: var(--muted-strong);
    border-radius: 999px;
    transition: 0.25s ease;
}

.nav-link {
    padding: 10px 16px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: white;
    background: var(--amber-soft);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.88);
    color: white;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: white;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
}

.mobile-link {
    display: block;
    padding: 12px 14px;
}

.mobile-category-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.mobile-link-muted {
    color: var(--muted);
    font-size: 14px;
}

.hero {
    position: relative;
    min-height: 78vh;
    overflow: hidden;
    padding-top: 72px;
    isolation: isolate;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-backdrop,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) brightness(0.62);
    transform: scale(1.04);
}

.hero-shade {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.76) 46%, rgba(2, 6, 23, 0.42) 100%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.18) 0%, #020617 100%);
}

.hero-content {
    position: relative;
    min-height: calc(78vh - 72px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 56px;
    padding: 68px 0 92px;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    color: var(--amber);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 12px;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(38px, 7vw, 78px);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.hero-one-line,
.page-hero p {
    color: var(--muted-strong);
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.8;
    margin: 24px 0 0;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.tag-row span,
.detail-tags span,
.genre-pills span {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.68);
    color: var(--muted-strong);
    padding: 7px 12px;
    font-size: 13px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
}

.hero-actions.slim {
    margin-top: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: 0.25s ease;
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 40px rgba(245, 158, 11, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 48px rgba(245, 158, 11, 0.36);
}

.btn-ghost {
    border: 1px solid rgba(245, 158, 11, 0.42);
    color: #fde68a;
    background: rgba(245, 158, 11, 0.10);
}

.btn-plain {
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--line);
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transform: rotate(2deg);
    transition: 0.4s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) translateY(-8px);
}

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

.hero-play,
.card-play {
    position: absolute;
    display: inline-grid;
    place-items: center;
    color: white;
    background: rgba(245, 158, 11, 0.88);
    backdrop-filter: blur(10px);
    border-radius: 999px;
}

.hero-play {
    left: 50%;
    top: 50%;
    width: 76px;
    height: 76px;
    transform: translate(-50%, -50%);
    font-size: 28px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 8;
    width: 48px;
    height: 72px;
    color: white;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: 0.25s ease;
}

.hero-arrow:hover {
    background: rgba(245, 158, 11, 0.76);
}

.hero-prev {
    left: max(18px, calc((100vw - 1180px) / 2 - 70px));
}

.hero-next {
    right: max(18px, calc((100vw - 1180px) / 2 - 70px));
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 8;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
    transition: 0.25s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--amber);
}

.hero-strip {
    position: relative;
    z-index: 5;
    margin-top: -46px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.hero-strip h2,
.section-head h2,
.page-hero h1,
.detail-panel h1 {
    margin: 0;
}

.hero-strip-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.section {
    padding: 76px 0 0;
}

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

.section-head.compact {
    align-items: center;
}

.section-head h2 {
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-link,
.inline-link {
    color: #fbbf24;
    font-weight: 800;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 150px 160px 170px;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.58);
    margin-bottom: 24px;
}

.filter-panel label {
    display: grid;
    gap: 6px;
}

.filter-panel span {
    color: var(--muted);
    font-size: 13px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 44px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    outline: none;
    color: var(--text);
    background: rgba(2, 6, 23, 0.72);
    padding: 0 14px;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.56);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
    transition: 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(245, 158, 11, 0.36);
    background: rgba(15, 23, 42, 0.84);
    box-shadow: 0 24px 56px rgba(245, 158, 11, 0.12);
}

.card-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    margin: 0;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.9));
}

.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.55s ease;
}

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

.card-year {
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    color: white;
    background: rgba(2, 6, 23, 0.76);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 800;
}

.card-play {
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.84);
    transition: 0.28s ease;
}

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

.card-body {
    padding: 14px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--amber);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 8px;
}

.card-body h3 {
    margin: 0;
    color: white;
    font-size: 16px;
    line-height: 1.35;
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-body p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card.compact .card-body p {
    display: none;
}

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

.wide-card {
    display: grid;
    grid-template-columns: 136px minmax(0, 1fr);
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.58);
    overflow: hidden;
    transition: 0.25s ease;
}

.wide-card:hover {
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(245, 158, 11, 0.36);
}

.wide-card img {
    width: 100%;
    height: 100%;
    min-height: 104px;
    object-fit: cover;
}

.wide-card div {
    padding: 14px 14px 14px 0;
}

.wide-card h3 {
    margin: 0;
    color: white;
    font-size: 18px;
}

.wide-card p {
    margin: 8px 0 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    gap: 32px;
}

.rank-list,
.ranking-list {
    display: grid;
    gap: 12px;
}

.rank-row {
    display: grid;
    grid-template-columns: 46px 78px minmax(0, 1fr) 72px;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.58);
    transition: 0.25s ease;
}

.rank-row:hover,
.ranking-card:hover {
    border-color: rgba(245, 158, 11, 0.38);
    background: rgba(15, 23, 42, 0.86);
}

.rank-row strong,
.ranking-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.rank-row img {
    width: 78px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-row h3,
.ranking-card h2 {
    margin: 0;
    color: white;
}

.rank-row p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-row > span {
    color: #fbbf24;
    font-weight: 900;
    text-align: right;
}

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

.category-card,
.category-overview-card {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.58);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.52) saturate(1.1);
    transition: 0.55s ease;
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-card div {
    position: absolute;
    inset: auto 0 0;
    padding: 22px;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.96));
}

.category-card h3,
.category-card p {
    margin: 0;
}

.category-card h3 {
    font-size: 22px;
}

.category-card p {
    color: var(--muted-strong);
    line-height: 1.6;
    margin-top: 8px;
    font-size: 14px;
}

.page-main {
    padding-top: 104px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.18), transparent 34%),
        rgba(15, 23, 42, 0.68);
    padding: 54px;
    box-shadow: var(--shadow);
}

.small-hero p,
.category-hero p {
    max-width: 780px;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    min-height: 260px;
}

.category-covers {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    background: rgba(2, 6, 23, 0.54);
}

.category-covers img {
    position: absolute;
    width: 58%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.42);
}

.category-covers img:nth-child(1) {
    left: 18px;
    top: 28px;
    z-index: 3;
}

.category-covers img:nth-child(2) {
    left: 74px;
    top: 48px;
    z-index: 2;
    filter: brightness(0.8);
}

.category-covers img:nth-child(3) {
    left: 128px;
    top: 68px;
    z-index: 1;
    filter: brightness(0.6);
}

.category-overview-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-overview-body h2 {
    margin: 0;
    font-size: 28px;
}

.category-overview-body p {
    color: var(--muted-strong);
    line-height: 1.8;
}

.ranking-card {
    display: grid;
    grid-template-columns: 60px 132px minmax(0, 1fr) 90px;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.58);
    transition: 0.25s ease;
}

.ranking-card img {
    width: 132px;
    height: 88px;
    object-fit: cover;
    border-radius: 16px;
}

.ranking-body p {
    color: var(--muted);
    line-height: 1.65;
    margin: 8px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.compact-tags {
    margin-top: 12px;
}

.ranking-score {
    color: #fbbf24;
    font-size: 22px;
    font-weight: 900;
    text-align: right;
}

.empty-state {
    margin-top: 28px;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 24px;
    color: var(--muted);
    text-align: center;
    background: rgba(15, 23, 42, 0.56);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    margin-bottom: 24px;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 360px;
    gap: 28px;
}

.detail-left,
.detail-sidebar {
    display: grid;
    align-content: start;
    gap: 22px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 28px;
    background: black;
    box-shadow: var(--shadow);
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.14), rgba(2, 6, 23, 0.46));
    cursor: pointer;
    transition: 0.24s ease;
}

.player-overlay span {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 20px 48px rgba(245, 158, 11, 0.36);
    font-size: 34px;
}

.player-card.is-playing .player-overlay {
    opacity: 0;
    pointer-events: none;
}

.detail-panel,
.side-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.62);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.detail-panel {
    padding: 28px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-panel h1 {
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.detail-one-line {
    color: var(--muted-strong);
    font-size: 19px;
    line-height: 1.8;
    margin: 18px 0 0;
}

.detail-panel section {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.detail-panel h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 22px;
}

.detail-panel p,
.side-card p {
    color: var(--muted-strong);
    line-height: 1.9;
}

.side-card {
    padding: 22px;
}

.poster-side img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 18px;
}

.info-side dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-side dl div {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.info-side dt {
    color: var(--muted);
}

.info-side dd {
    margin: 0;
    color: white;
    font-weight: 700;
}

.info-side a {
    color: #fbbf24;
}

.genre-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.site-footer {
    margin-top: 90px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.74);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 1fr;
    gap: 36px;
    padding: 44px 0;
}

.site-footer p {
    color: var(--muted);
    line-height: 1.8;
}

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

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

.footer-links a {
    color: var(--muted-strong);
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.56);
}

.footer-links a:hover {
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.34);
}

.footer-bottom {
    border-top: 1px solid var(--line);
    color: var(--muted);
    padding: 18px 0;
    text-align: center;
}

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

@media (max-width: 1180px) {
    .hero-arrow {
        display: none;
    }

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

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

    .nav-toggle {
        display: flex;
    }

    body.nav-open .mobile-nav {
        display: block;
    }

    .hero-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        padding: 50px 0 76px;
    }

    .hero-poster {
        width: min(300px, 72vw);
        justify-self: start;
    }

    .hero-strip,
    .split-section,
    .detail-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-strip-list {
        grid-template-columns: 1fr;
    }

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

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

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

    .ranking-card {
        grid-template-columns: 50px 110px minmax(0, 1fr);
    }

    .ranking-score {
        display: none;
    }
}

@media (max-width: 760px) {
    .header-inner {
        min-height: 64px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand-text {
        font-size: 18px;
    }

    .hero {
        min-height: 720px;
        padding-top: 64px;
    }

    .hero-content {
        min-height: 656px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: clamp(34px, 12vw, 52px);
    }

    .hero-actions {
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .section-head {
        display: grid;
        align-items: start;
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }

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

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

    .page-hero {
        padding: 32px 22px;
        border-radius: 24px;
    }

    .rank-row {
        grid-template-columns: 38px 68px minmax(0, 1fr);
    }

    .rank-row > span {
        display: none;
    }

    .ranking-card {
        grid-template-columns: 42px 86px minmax(0, 1fr);
        gap: 12px;
    }

    .ranking-card img {
        width: 86px;
        height: 74px;
    }

    .ranking-body p,
    .compact-tags {
        display: none;
    }

    .wide-card {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .detail-panel,
    .side-card {
        padding: 18px;
    }

    .player-overlay span {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }
}

@media (max-width: 420px) {
    .container,
    .header-inner,
    .mobile-nav {
        width: min(100% - 22px, 1180px);
    }

    .movie-grid {
        gap: 12px;
    }

    .card-body {
        padding: 12px;
    }

    .card-body h3 {
        font-size: 14px;
    }
}
