:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-strong: rgba(15, 23, 42, 0.96);
    --line: rgba(6, 182, 212, 0.2);
    --line-soft: rgba(6, 182, 212, 0.1);
    --text: #e5f7ff;
    --muted: #94a3b8;
    --cyan: #22d3ee;
    --cyan-strong: #06b6d4;
    --blue: #3b82f6;
    --orange: #fb923c;
    --green: #34d399;
    --purple: #a855f7;
    --pink: #f472b6;
    --red: #f87171;
    --amber: #f59e0b;
    --teal: #2dd4bf;
    --violet: #8b5cf6;
    --shadow: 0 24px 70px rgba(8, 47, 73, 0.36);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(6, 182, 212, 0.16), transparent 36rem),
        radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.16), transparent 34rem),
        linear-gradient(180deg, #0f172a 0%, #020617 42%, #020617 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(15, 23, 42, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

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

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

.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.35);
}

.brand-copy {
    display: grid;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: 18px;
    letter-spacing: 0.02em;
}

.brand-copy small {
    margin-top: 4px;
    color: rgba(34, 211, 238, 0.72);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #cbd5e1;
    font-size: 14px;
}

.nav-link {
    position: relative;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--cyan);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    transform: scaleX(0);
    transform-origin: right;
    background: linear-gradient(90deg, var(--cyan), transparent);
    transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.85);
    color: white;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--cyan);
}

.hero-carousel {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: scale(1.02);
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.32;
}

.hero-bg img,
.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::after,
.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.94)),
        linear-gradient(0deg, #020617 0%, transparent 50%, #0f172a 100%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, var(--cyan) 2px, var(--cyan) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, var(--cyan) 2px, var(--cyan) 4px);
    background-size: 54px 54px;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    min-height: 72vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 40px;
    align-items: center;
    padding: 64px 0 76px;
}

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

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-kicker::before,
.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 20px currentColor;
}

.hero-text h1,
.sub-hero h1,
.detail-headline h1 {
    margin: 18px 0 18px;
    font-size: clamp(40px, 8vw, 86px);
    line-height: 0.96;
    letter-spacing: -0.06em;
    background: linear-gradient(90deg, #e0fbff, var(--cyan), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-text p,
.sub-hero p,
.detail-headline p {
    max-width: 680px;
    color: #cbd5e1;
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.8;
}

.hero-tags,
.detail-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin: 28px 0;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #a5f3fc;
    background: rgba(8, 47, 73, 0.45);
    font-size: 12px;
}

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

.primary-button,
.ghost-button,
.search-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    letter-spacing: 0.03em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-button,
.search-form button {
    color: #00131a;
    background: linear-gradient(135deg, var(--cyan), #60a5fa);
    box-shadow: 0 18px 38px rgba(6, 182, 212, 0.28);
}

.ghost-button {
    color: #dffaff;
    border-color: var(--line);
    background: rgba(15, 23, 42, 0.55);
}

.primary-button:hover,
.ghost-button:hover,
.search-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(6, 182, 212, 0.36);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 480px;
    border: 1px solid var(--line);
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.26), rgba(30, 41, 59, 0.84));
    box-shadow: var(--shadow);
}

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

.hero-poster span {
    position: absolute;
    left: 20px;
    bottom: 20px;
    padding: 10px 16px;
    border-radius: 999px;
    color: #00131a;
    background: var(--cyan);
    font-weight: 800;
}

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

.hero-dot {
    width: 34px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.45);
}

.hero-dot.active {
    background: var(--cyan);
    box-shadow: 0 0 20px var(--cyan);
}

.page-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0 20px;
}

.search-panel {
    margin-bottom: 56px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.66);
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.3);
}

.search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.filter-input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: white;
    outline: none;
    background: rgba(2, 6, 23, 0.65);
}

.filter-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.11);
}

.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.quick-filters button {
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.92);
    padding: 7px 12px;
}

.quick-filters button:hover {
    color: var(--cyan);
    border-color: var(--cyan);
}

.content-section {
    margin-bottom: 70px;
}

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

.section-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
}

.heading-line {
    min-width: 80px;
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, var(--cyan), transparent);
}

.section-heading-orange .eyebrow,
.section-heading-orange .heading-line,
.accent-orange {
    color: var(--orange);
}

.section-heading-green .eyebrow,
.section-heading-green .heading-line,
.accent-green {
    color: var(--green);
}

.section-heading-blue .eyebrow,
.section-heading-blue .heading-line,
.accent-blue {
    color: var(--blue);
}

.section-heading-purple .eyebrow,
.section-heading-purple .heading-line,
.accent-purple {
    color: var(--purple);
}

.section-heading-red .eyebrow,
.section-heading-red .heading-line,
.accent-red {
    color: var(--red);
}

.section-heading-amber .eyebrow,
.section-heading-amber .heading-line,
.accent-amber {
    color: var(--amber);
}

.section-heading-teal .eyebrow,
.section-heading-teal .heading-line,
.accent-teal {
    color: var(--teal);
}

.section-heading-violet .eyebrow,
.section-heading-violet .heading-line,
.accent-violet {
    color: var(--violet);
}

.section-heading-pink .eyebrow,
.section-heading-pink .heading-line,
.accent-pink {
    color: var(--pink);
}

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

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

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

.video-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.62);
    box-shadow: 0 18px 46px rgba(2, 6, 23, 0.22);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.video-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: 0 24px 60px rgba(6, 182, 212, 0.16);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.28), transparent 18rem),
        linear-gradient(135deg, #111827, #0f172a);
}

.video-card-large .poster-frame {
    aspect-ratio: 16 / 9;
}

.poster-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(59, 130, 246, 0.08));
}

.cover-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.cover-image.image-hidden {
    opacity: 0;
}

.video-card:hover .cover-image {
    transform: scale(1.05);
}

.play-chip,
.score-chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
}

.play-chip {
    left: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    color: #00131a;
    background: var(--cyan);
    box-shadow: 0 0 22px rgba(34, 211, 238, 0.45);
}

.score-chip {
    top: 12px;
    right: 12px;
    min-width: 44px;
    height: 28px;
    color: #fffbeb;
    background: rgba(245, 158, 11, 0.9);
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.card-body h3 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.video-card-large .card-body h3 {
    font-size: 24px;
}

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

.card-body p {
    min-height: 54px;
    margin: 0 0 12px;
    color: #a8b8ca;
    line-height: 1.65;
    font-size: 14px;
}

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

.category-tile {
    position: relative;
    min-height: 160px;
    overflow: hidden;
    padding: 20px;
    border: 1px solid currentColor;
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.74);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.16;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.category-tile:hover img {
    opacity: 0.28;
    transform: scale(1.05);
}

.category-tile span,
.category-tile strong {
    position: relative;
    z-index: 2;
    display: block;
}

.category-tile span {
    font-size: 24px;
    font-weight: 900;
    color: white;
}

.category-tile strong {
    margin-top: 12px;
    color: #cbd5e1;
    line-height: 1.6;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 26px;
    align-items: start;
}

.rank-panel,
.detail-side-card,
.detail-content-card,
.category-overview-card {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.68);
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.22);
}

.rank-panel {
    position: sticky;
    top: 96px;
    padding: 20px;
}

.rank-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.rank-panel-head span {
    color: var(--orange);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.rank-panel-head h2 {
    margin: 0;
}

.rank-panel-head a {
    color: var(--cyan);
    font-size: 13px;
}

.rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rank-list li + li {
    border-top: 1px solid var(--line-soft);
}

.rank-list a {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 10px;
    align-items: center;
    padding: 13px 0;
}

.rank-index {
    color: var(--cyan);
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    color: #e2e8f0;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-score {
    color: var(--amber);
    text-align: right;
    font-weight: 900;
}

.rank-list-wide {
    padding: 18px 22px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.68);
}

.sub-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    background:
        radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.22), transparent 28rem),
        linear-gradient(135deg, #0f172a, #020617 70%);
}

.sub-hero {
    display: grid;
    place-items: center;
    padding: 86px 16px;
    text-align: center;
}

.sub-hero > div {
    width: min(900px, 100%);
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 20px;
    padding: 16px;
}

.category-cover {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(15, 23, 42, 0.86));
}

.category-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.category-cover span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.72);
    color: white;
    font-weight: 800;
}

.category-overview-card h2 {
    margin: 4px 0 10px;
}

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

.category-preview-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-preview-links a {
    padding: 6px 10px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    color: #cbd5e1;
    font-size: 12px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 13px;
}

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

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

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.28;
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    min-height: 660px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 70px 0;
}

.detail-poster {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: rgba(15, 23, 42, 0.9);
    box-shadow: var(--shadow);
}

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

.detail-poster span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 12px;
    border-radius: 999px;
    color: #00131a;
    background: var(--cyan);
    text-align: center;
    font-weight: 900;
}

.detail-headline h1 {
    font-size: clamp(38px, 7vw, 78px);
}

.detail-shell {
    margin-top: -86px;
    position: relative;
    z-index: 4;
}

.player-section {
    margin-bottom: 52px;
}

.player-box {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: #000;
    box-shadow: var(--shadow);
}

.movie-video {
    width: 100%;
    min-height: 520px;
    background: #000;
    object-fit: contain;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: white;
    background:
        radial-gradient(circle at center, rgba(6, 182, 212, 0.18), rgba(2, 6, 23, 0.62)),
        rgba(2, 6, 23, 0.38);
}

.player-start span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #00131a;
    background: var(--cyan);
    font-size: 34px;
    box-shadow: 0 0 48px rgba(34, 211, 238, 0.52);
}

.player-start strong {
    font-size: 20px;
}

.player-box.playing .player-start {
    opacity: 0;
    pointer-events: none;
}

.player-status {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 4;
    margin: 0;
    padding: 8px 12px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(2, 6, 23, 0.66);
    font-size: 13px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
    margin-bottom: 64px;
}

.detail-content-card,
.detail-side-card {
    padding: 26px;
}

.detail-content-card h2,
.detail-side-card h2 {
    margin: 0 0 16px;
    color: white;
}

.detail-content-card p {
    color: #cbd5e1;
    line-height: 2;
    font-size: 16px;
}

.detail-side-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.detail-side-card li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-top: 1px solid var(--line-soft);
}

.detail-side-card span {
    color: var(--muted);
}

.detail-side-card strong {
    text-align: right;
}

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

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-logo {
    color: var(--cyan);
    font-size: 20px;
    font-weight: 900;
}

.footer-inner p,
.footer-line {
    color: var(--muted);
}

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

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

.footer-line {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 26px;
    font-size: 13px;
}

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

@media (max-width: 1080px) {
    .video-grid,
    .compact-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .grid-large,
    .category-overview-grid,
    .split-section,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }

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

@media (max-width: 860px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 72px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: rgba(15, 23, 42, 0.98);
    }

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

    .hero-content,
    .detail-hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        min-height: 320px;
    }

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

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

    .player-box,
    .movie-video {
        min-height: 320px;
    }
}

@media (max-width: 640px) {
    .nav-shell,
    .page-shell,
    .hero-content,
    .detail-hero-inner,
    .footer-inner,
    .footer-line {
        width: min(100% - 24px, 1200px);
    }

    .brand-copy small {
        display: none;
    }

    .hero-carousel,
    .hero-content {
        min-height: 82vh;
    }

    .hero-content {
        padding-top: 38px;
    }

    .hero-text h1,
    .sub-hero h1,
    .detail-headline h1 {
        letter-spacing: -0.04em;
    }

    .video-grid,
    .grid-large,
    .compact-grid,
    .category-video-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

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

    .search-form {
        grid-template-columns: 1fr;
    }

    .section-heading {
        display: block;
    }

    .heading-line {
        display: block;
        margin-top: 14px;
        width: 100%;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}
