:root {
    --red-900: #7f1d1d;
    --red-800: #991b1b;
    --red-700: #b91c1c;
    --red-600: #dc2626;
    --red-500: #ef4444;
    --orange-500: #f97316;
    --pink-500: #ec4899;
    --gray-950: #030712;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --shadow-sm: 0 8px 20px rgba(17, 24, 39, 0.08);
    --shadow-md: 0 18px 45px rgba(17, 24, 39, 0.12);
    --shadow-xl: 0 28px 70px rgba(127, 29, 29, 0.28);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --max: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-800);
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 4px solid var(--red-600);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    width: min(var(--max), calc(100% - 32px));
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    color: var(--white);
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--red-600), var(--red-800));
    box-shadow: 0 10px 28px rgba(220, 38, 38, 0.32);
}

.brand-copy strong,
.footer-brand strong {
    display: block;
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--red-600), var(--red-800));
    -webkit-background-clip: text;
    color: transparent;
}

.brand-copy em,
.footer-brand em {
    display: block;
    margin-top: 5px;
    color: var(--gray-500);
    font-size: 12px;
    font-style: normal;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
    font-weight: 700;
    color: var(--gray-700);
}

.site-nav > a,
.nav-group > a {
    position: relative;
    padding: 28px 0;
    transition: color 0.22s ease;
}

.site-nav > a::after,
.nav-group > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 22px;
    height: 2px;
    background: linear-gradient(90deg, var(--red-600), var(--red-800));
    transition: right 0.22s ease;
}

.site-nav > a:hover,
.nav-group:hover > a {
    color: var(--red-600);
}

.site-nav > a:hover::after,
.nav-group:hover > a::after {
    right: 0;
}

.nav-group {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    left: -18px;
    top: 68px;
    width: 190px;
    padding: 8px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
}

.nav-group:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--gray-700);
    font-size: 14px;
}

.nav-dropdown a:hover {
    color: var(--red-600);
    background: linear-gradient(90deg, #fff1f2, #fee2e2);
}

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

.nav-search input {
    width: 100%;
    height: 40px;
    border: 2px solid var(--gray-200);
    border-radius: 999px;
    padding: 0 16px;
    outline: none;
    background: rgba(255, 255, 255, 0.78);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus {
    border-color: var(--red-600);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10);
}

.nav-search button,
.btn-primary,
.btn-ghost,
.btn-link,
.text-link {
    cursor: pointer;
}

.nav-search button {
    height: 40px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: var(--white);
    font-weight: 800;
    background: linear-gradient(90deg, var(--red-600), var(--red-800));
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    color: var(--red-700);
    background: #fee2e2;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 22px;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: var(--red-900);
}

.hero-track,
.hero-slide,
.hero-bg {
    position: absolute;
    inset: 0;
}

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

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

.hero-bg {
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.hero-slide::after,
.detail-hero::after,
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.20), transparent 28%), radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.24), transparent 30%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: min(var(--max), calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--white);
    padding-right: 390px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 16px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: var(--red-700);
    background: #fee2e2;
}

.hero-kicker {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero h1 {
    margin: 0 0 14px;
    max-width: 780px;
    font-size: clamp(36px, 6vw, 76px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 3vw, 46px);
    line-height: 1.1;
}

.hero p {
    max-width: 720px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 20px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
}

.hero-tags span {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 700;
}

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

.btn-primary,
.btn-ghost,
.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    padding: 0 24px;
    font-weight: 900;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-primary {
    color: var(--red-700);
    background: var(--white);
    box-shadow: 0 16px 38px rgba(255, 255, 255, 0.18);
}

.btn-ghost {
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.btn-link {
    color: var(--white);
    background: rgba(3, 7, 18, 0.28);
}

.btn-primary:hover,
.btn-ghost:hover,
.btn-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.hero-poster {
    position: absolute;
    z-index: 4;
    right: max(32px, calc((100% - var(--max)) / 2));
    top: 50%;
    width: min(320px, 30vw);
    aspect-ratio: 3 / 4.2;
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.35);
    transform: translateY(-50%) rotate(2deg);
}

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

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

.hero-dot {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
}

.hero-dot.active {
    background: var(--white);
}

.section {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 70px 0;
}

.section-raised {
    margin-top: -52px;
    position: relative;
    z-index: 10;
    padding: 36px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.section-head {
    max-width: 720px;
    margin: 0 0 32px;
}

.section-head h2,
.page-hero h1,
.detail-copy h1 {
    margin: 0 0 12px;
    color: var(--gray-900);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-head p,
.page-hero p {
    margin: 0;
    color: var(--gray-600);
    font-size: 18px;
}

.split-head {
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
}

.text-link {
    color: var(--red-700);
    font-weight: 900;
}

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

.compact-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    border-radius: 20px;
    color: var(--white);
    box-shadow: var(--shadow-sm);
    background: var(--gray-900);
}

.compact-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.compact-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.78));
}

.compact-card span,
.compact-card em {
    position: absolute;
    z-index: 2;
    left: 14px;
    right: 14px;
}

.compact-card span {
    bottom: 34px;
    font-weight: 900;
}

.compact-card em {
    bottom: 13px;
    color: #fde68a;
    font-style: normal;
    font-weight: 900;
}

.compact-card:hover img {
    transform: scale(1.10);
}

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

.category-chip {
    min-height: 126px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(220, 38, 38, 0.12);
    border-radius: var(--radius-md);
    padding: 22px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-chip strong {
    color: var(--red-700);
    font-size: 22px;
}

.category-chip span {
    margin-top: 8px;
    color: var(--gray-600);
}

.category-chip:hover,
.movie-card:hover,
.category-overview-card:hover,
.rank-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.red-panel {
    width: 100%;
    max-width: none;
    padding: 80px max(16px, calc((100% - var(--max)) / 2));
    background: linear-gradient(135deg, var(--red-600), var(--red-800), var(--gray-900));
}

.light-head h2,
.light-head p,
.light-head .section-kicker {
    color: var(--white);
}

.light-head .section-kicker {
    background: rgba(255, 255, 255, 0.16);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 76px 96px minmax(0, 1fr) 64px;
    align-items: center;
    overflow: hidden;
    min-height: 106px;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: 0.22s ease;
}

.rank-number {
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-600), var(--red-800));
    font-size: 30px;
    font-weight: 950;
}

.rank-item img {
    width: 96px;
    height: 106px;
    object-fit: cover;
}

.rank-copy {
    min-width: 0;
    padding: 14px 18px;
}

.rank-copy strong,
.rank-copy em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-copy strong {
    color: var(--gray-900);
    font-size: 17px;
}

.rank-copy em {
    color: var(--gray-600);
    font-style: normal;
    font-size: 14px;
}

.rank-score {
    color: #f59e0b;
    font-size: 20px;
    font-weight: 950;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 26px;
}

.filter-pill {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--gray-700);
    font-weight: 800;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.filter-pill.active,
.filter-pill:hover {
    color: var(--white);
    background: linear-gradient(90deg, var(--red-600), var(--red-800));
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: 0.22s ease;
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.25;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-800), var(--red-900));
}

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.48));
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

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

.card-badge,
.card-score {
    position: absolute;
    z-index: 3;
    top: 12px;
    border-radius: 999px;
    padding: 5px 9px;
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.18);
}

.card-badge {
    left: 12px;
    background: linear-gradient(90deg, var(--orange-500), var(--pink-500));
}

.card-score {
    right: 12px;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(8px);
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--gray-500);
    font-size: 13px;
}

.card-body h3 {
    margin: 0 0 8px;
    color: var(--gray-900);
    font-size: 18px;
    line-height: 1.28;
}

.card-body h3 a:hover {
    color: var(--red-700);
}

.card-body p {
    display: -webkit-box;
    min-height: 46px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--gray-600);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-chip {
    border-radius: 999px;
    padding: 4px 8px;
    color: var(--red-700);
    background: #fee2e2;
    font-size: 12px;
    font-weight: 800;
}

.large-tags .tag-chip {
    padding: 6px 10px;
    font-size: 13px;
}

.no-results {
    display: none;
    margin: 28px 0 0;
    padding: 24px;
    border-radius: var(--radius-md);
    color: var(--gray-600);
    text-align: center;
    background: var(--white);
}

.no-results.visible {
    display: block;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 330px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-600), var(--red-800), var(--gray-900));
}

.page-hero > div {
    position: relative;
    z-index: 2;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 84px 0;
}

.page-hero h1,
.page-hero p {
    color: var(--white);
}

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

.category-overview-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: 0.22s ease;
}

.category-overview-card a {
    display: block;
}

.category-overview-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.category-overview-card span,
.category-overview-card p {
    display: block;
    padding: 0 18px;
}

.category-overview-card span {
    margin-top: 16px;
    color: var(--red-700);
    font-size: 22px;
    font-weight: 950;
}

.category-overview-card p {
    min-height: 58px;
    margin: 8px 0 18px;
    color: var(--gray-600);
}

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

.detail-hero {
    min-height: 560px;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.detail-layout {
    position: relative;
    z-index: 2;
    width: min(var(--max), calc(100% - 32px));
    min-height: 560px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: center;
    gap: 42px;
    color: var(--white);
}

.detail-poster {
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-lg);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.35);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.80);
    font-weight: 700;
}

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

.detail-copy h1,
.detail-copy p {
    color: var(--white);
}

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

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

.detail-meta span {
    border-radius: 999px;
    padding: 7px 13px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    font-weight: 800;
}

.detail-section {
    padding-top: 46px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--gray-950);
    box-shadow: var(--shadow-xl);
}

.player-shell video {
    width: 100%;
    min-height: 520px;
    display: block;
    background: var(--gray-950);
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    border: 0;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: radial-gradient(circle at center, rgba(220, 38, 38, 0.32), rgba(3, 7, 18, 0.72));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--red-700);
    background: var(--white);
    font-size: 34px;
    box-shadow: 0 20px 48px rgba(255, 255, 255, 0.22);
}

.player-overlay strong {
    font-size: 28px;
}

.player-overlay em {
    color: rgba(255, 255, 255, 0.82);
    font-style: normal;
}

.player-error {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    z-index: 5;
    margin: 0;
    color: #fecaca;
    text-align: center;
    font-weight: 800;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 330px;
    gap: 22px;
}

.content-card {
    border-radius: var(--radius-md);
    padding: 26px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.content-card h2 {
    margin: 0 0 12px;
    color: var(--gray-900);
}

.content-card p {
    margin: 0;
    color: var(--gray-700);
}

.detail-side dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 0 0 18px;
}

.detail-side dt {
    color: var(--gray-500);
    font-weight: 800;
}

.detail-side dd {
    margin: 0;
    color: var(--gray-900);
    font-weight: 800;
}

.detail-side a {
    color: var(--red-700);
}

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

.site-footer {
    margin-top: 40px;
    color: var(--white);
    background: linear-gradient(135deg, var(--gray-950), var(--gray-800), var(--gray-950));
}

.footer-grid {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 34px;
    padding: 52px 0;
}

.footer-grid p {
    color: rgba(255, 255, 255, 0.68);
}

.footer-grid h3 {
    margin: 0 0 16px;
    color: var(--red-500);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.68);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding: 18px;
    color: rgba(255, 255, 255, 0.58);
    text-align: center;
}

@media (max-width: 1100px) {
    .compact-grid,
    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .detail-info-grid {
        grid-template-columns: 1fr;
    }

    .nav-search {
        width: 240px;
    }
}

@media (max-width: 900px) {
    .nav-wrap {
        height: auto;
        min-height: 72px;
        flex-wrap: wrap;
        padding: 14px 0;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        order: 4;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 8px 0;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav > a,
    .nav-group > a {
        padding: 12px 0;
    }

    .nav-dropdown {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0 0 0 14px;
    }

    .nav-search {
        order: 5;
        width: 100%;
    }

    .hero,
    .hero-content {
        min-height: 660px;
    }

    .hero-content {
        padding-right: 0;
        justify-content: flex-end;
        padding-bottom: 170px;
    }

    .hero-poster {
        width: 150px;
        right: 22px;
        top: 98px;
        transform: rotate(2deg);
    }

    .rank-grid,
    .rank-list {
        grid-template-columns: 1fr;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        padding: 48px 0;
    }

    .detail-poster {
        width: min(260px, 72vw);
    }

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

@media (max-width: 640px) {
    .brand-copy strong {
        font-size: 20px;
    }

    .section,
    .section-raised {
        width: min(100% - 24px, var(--max));
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .section-raised {
        padding-left: 18px;
        padding-right: 18px;
    }

    .split-head {
        display: block;
    }

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

    .rank-item {
        grid-template-columns: 56px 74px minmax(0, 1fr);
    }

    .rank-score {
        display: none;
    }

    .rank-item img {
        width: 74px;
        height: 94px;
    }

    .rank-number {
        font-size: 22px;
    }

    .hero h1 {
        font-size: 35px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero p,
    .detail-copy p {
        font-size: 16px;
    }

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

    .btn-primary,
    .btn-ghost,
    .btn-link {
        min-height: 44px;
        padding: 0 16px;
    }

    .player-shell video {
        min-height: 260px;
    }

    .player-overlay strong {
        max-width: 90%;
        font-size: 20px;
        text-align: center;
    }

    .play-circle {
        width: 68px;
        height: 68px;
        font-size: 26px;
    }

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

@media (max-width: 420px) {
    .compact-grid,
    .movie-grid,
    .category-chip-grid,
    .category-overview-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }
}
