:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-850: #132033;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --white: #ffffff;
    --cyan: #06b6d4;
    --blue: #2563eb;
    --teal: #14b8a6;
    --rose: #f43f5e;
    --amber: #f59e0b;
    --shadow: 0 22px 60px rgba(15, 23, 42, 0.14);
    --soft-shadow: 0 12px 34px rgba(15, 23, 42, 0.1);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--slate-900);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 44%, #f1f5f9 100%);
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--slate-950), var(--slate-900) 42%, #111827);
    color: var(--white);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.25);
}

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

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.logo-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: var(--white);
    box-shadow: 0 12px 26px rgba(6, 182, 212, 0.38);
}

.logo-text {
    font-size: 22px;
}

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

.desktop-nav a,
.mobile-panel a {
    padding: 9px 12px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.nav-search {
    position: relative;
    width: min(270px, 26vw);
}

.nav-search input,
.mobile-panel input,
.search-box input,
.page-filter input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    outline: none;
    background: rgba(15, 23, 42, 0.72);
    color: var(--white);
    padding: 11px 46px 11px 18px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-search input:focus,
.mobile-panel input:focus,
.search-box input:focus,
.page-filter input:focus {
    border-color: rgba(6, 182, 212, 0.9);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.18);
    background: rgba(15, 23, 42, 0.92);
}

.nav-search button {
    position: absolute;
    right: 7px;
    top: 50%;
    width: 36px;
    height: 36px;
    transform: translateY(-50%);
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: var(--white);
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

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

.mobile-panel form {
    margin: 4px 0 12px;
}

.mobile-panel a {
    display: block;
}

.hero {
    position: relative;
    height: 72vh;
    min-height: 560px;
    overflow: hidden;
    background: var(--slate-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    transition: opacity 0.7s ease;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 76% 28%, rgba(6, 182, 212, 0.28), transparent 32%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.78) 48%, rgba(2, 6, 23, 0.12) 100%);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 180px;
    background: linear-gradient(180deg, transparent, rgba(248, 250, 252, 0.98));
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    gap: 50px;
    align-items: center;
    color: var(--white);
}

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

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.03em;
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.28);
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(16px, 2vw, 21px);
    max-width: 640px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 850;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover,
.btn-soft:hover,
.btn-dark:hover {
    transform: translateY(-2px);
}

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

.btn-dark {
    color: var(--white);
    background: var(--slate-900);
}

.hero-poster {
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 32px 86px rgba(0, 0, 0, 0.36);
    transform: rotate(2deg);
    background: rgba(255, 255, 255, 0.12);
}

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

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.hero-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.42);
    color: var(--white);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.hero-arrow.prev {
    left: 26px;
}

.hero-arrow.next {
    right: 26px;
}

.stats-strip {
    background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
    color: var(--white);
    padding: 34px 0;
}

.stats-grid {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
}

.stat-item strong {
    display: block;
    font-size: 28px;
    line-height: 1.1;
}

.stat-item span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
}

.section,
.page-hero,
.detail-layout,
.player-wrap {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 72px 0;
}

.section.alt {
    width: 100%;
    padding: 72px max(16px, calc((100% - 1200px) / 2));
    background: linear-gradient(180deg, #f1f5f9, #ffffff);
}

.section.tint {
    width: 100%;
    padding: 72px max(16px, calc((100% - 1200px) / 2));
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(37, 99, 235, 0.12), rgba(20, 184, 166, 0.1));
}

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

.section h2,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    color: var(--slate-950);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.14;
    letter-spacing: -0.04em;
}

.section-head p,
.page-hero p,
.detail-title p {
    margin: 8px 0 0;
    color: var(--slate-600);
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    padding: 24px;
    border-radius: var(--radius-md);
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #8b5cf6, var(--blue));
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, var(--teal), var(--cyan));
}

.category-card:nth-child(4n) {
    background: linear-gradient(135deg, var(--rose), var(--amber));
}

.category-card::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -40px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.category-card:hover {
    transform: translateY(-5px) scale(1.015);
    box-shadow: var(--shadow);
}

.category-card strong {
    position: relative;
    z-index: 2;
    display: block;
    font-size: 22px;
}

.category-card span,
.category-card p {
    position: relative;
    z-index: 2;
    display: block;
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.82);
}

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

.movie-grid.dense {
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.movie-card,
.media-card,
.compact-card,
.rank-card,
.info-panel {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover,
.media-card:hover,
.compact-card:hover,
.rank-card:hover {
    transform: translateY(-6px);
    border-color: rgba(6, 182, 212, 0.38);
    box-shadow: var(--shadow);
}

.poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--slate-900);
}

.poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

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

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 20px 42px rgba(37, 99, 235, 0.32);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.84);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.card-body {
    padding: 16px;
}

.card-title,
.media-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--slate-950);
    font-weight: 900;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.tag-row,
.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span,
.meta-row span,
.meta-row a {
    border-radius: 999px;
    color: #0369a1;
    background: rgba(6, 182, 212, 0.1);
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
}

.card-foot,
.media-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-top: 13px;
    color: var(--slate-500);
    font-size: 13px;
}

.card-foot a,
.media-meta a {
    color: #0891b2;
    font-weight: 800;
}

.media-stack {
    display: grid;
    gap: 16px;
}

.media-card-horizontal {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 18px;
    padding: 12px;
}

.media-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: var(--slate-900);
}

.media-thumb img {
    width: 100%;
    height: 136px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.media-info {
    min-width: 0;
    padding: 8px 8px 8px 0;
}

.feature-band {
    color: var(--white);
    background: linear-gradient(110deg, var(--cyan), var(--blue), var(--teal));
    padding: 82px max(16px, calc((100% - 980px) / 2));
    text-align: center;
}

.feature-band h2 {
    margin: 0 0 14px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.08;
}

.feature-band p {
    margin: 0 auto 26px;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.page-hero {
    padding: 58px 0 36px;
}

.page-card {
    border-radius: var(--radius-lg);
    color: var(--white);
    background:
        radial-gradient(circle at 88% 20%, rgba(6, 182, 212, 0.28), transparent 32%),
        linear-gradient(135deg, var(--slate-950), var(--slate-800));
    padding: clamp(28px, 5vw, 54px);
    box-shadow: var(--shadow);
}

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

.search-box {
    position: relative;
    max-width: 660px;
    margin-top: 26px;
}

.search-box input,
.page-filter input {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
}

.search-box button {
    position: absolute;
    right: 6px;
    top: 50%;
    min-width: 88px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: var(--white);
    font-weight: 900;
    transform: translateY(-50%);
    cursor: pointer;
}

.page-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 26px;
}

.page-filter input {
    max-width: 420px;
    background: var(--white);
    color: var(--slate-900);
}

.result-note {
    color: var(--slate-500);
    font-weight: 800;
}

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

.overview-card {
    min-height: 260px;
    padding: 26px;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: var(--soft-shadow);
}

.overview-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.overview-card p {
    margin: 0 0 16px;
    color: var(--slate-600);
}

.overview-card ul {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.overview-card li + li {
    margin-top: 9px;
}

.overview-card li a {
    color: var(--slate-700);
}

.overview-card li a:hover {
    color: #0891b2;
}

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

.rank-card {
    position: relative;
    display: grid;
    grid-template-columns: 78px 120px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
}

.rank-index {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 18px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    font-weight: 950;
    font-size: 20px;
}

.rank-card img {
    width: 120px;
    height: 82px;
    border-radius: 16px;
    object-fit: cover;
}

.rank-title {
    font-weight: 950;
    font-size: 18px;
}

.rank-info p {
    margin: 4px 0 0;
    color: var(--slate-600);
}

.rank-score {
    color: #0891b2;
    font-size: 22px;
    font-weight: 950;
}

.compact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.compact-card {
    padding: 14px;
}

.compact-link {
    display: grid;
    gap: 4px;
}

.compact-title {
    color: var(--slate-950);
    font-weight: 900;
}

.compact-meta {
    color: var(--slate-500);
    font-size: 13px;
}

.detail-page {
    background: linear-gradient(180deg, var(--slate-950) 0, var(--slate-900) 460px, #f8fafc 461px);
}

.breadcrumbs {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

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

.detail-title {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0;
    color: var(--white);
}

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

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000;
    box-shadow: 0 36px 90px rgba(2, 6, 23, 0.42);
}

.player-shell {
    position: relative;
    background: #000;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.28));
}

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

.play-button {
    position: relative;
    z-index: 2;
    display: grid;
    width: 94px;
    height: 94px;
    place-items: center;
    border: none;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 28px 60px rgba(37, 99, 235, 0.36);
    font-size: 34px;
    cursor: pointer;
}

.detail-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 28px;
    padding: 42px 0 72px;
}

.detail-poster,
.detail-content,
.related-panel {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.detail-poster {
    overflow: hidden;
    align-self: start;
}

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

.detail-poster .meta-row {
    padding: 18px;
}

.detail-content {
    padding: clamp(24px, 4vw, 38px);
}

.detail-content h2,
.related-panel h2 {
    margin: 0 0 14px;
    color: var(--slate-950);
    font-size: 26px;
}

.detail-content p {
    margin: 0 0 20px;
    color: var(--slate-700);
    font-size: 16px;
}

.related-panel {
    grid-column: 1 / -1;
    padding: 28px;
}

.empty-state {
    display: none;
    padding: 38px;
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--slate-600);
    text-align: center;
    box-shadow: var(--soft-shadow);
}

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

.site-footer {
    color: rgba(255, 255, 255, 0.78);
    background: linear-gradient(135deg, var(--slate-950), var(--slate-900));
    padding: 56px 0 24px;
}

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

.footer-logo {
    color: var(--white);
    font-size: 24px;
}

.site-footer p {
    max-width: 420px;
    margin: 12px 0 0;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 18px;
}

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

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

.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 32px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.56);
    font-size: 14px;
}

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

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

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

    body.menu-open .mobile-panel {
        display: grid;
        gap: 4px;
    }

    .hero-inner {
        grid-template-columns: 1fr 270px;
    }

    .movie-grid,
    .movie-grid.dense,
    .category-grid,
    .overview-grid,
    .compact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 860px) {
    .hero {
        height: auto;
        min-height: 680px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        padding: 80px 0 110px;
    }

    .hero-poster {
        display: none;
    }

    .stats-grid,
    .movie-grid,
    .movie-grid.dense,
    .category-grid,
    .overview-grid,
    .compact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-head,
    .page-filter {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-filter input {
        max-width: none;
    }

    .media-card-horizontal,
    .rank-card,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .media-thumb img,
    .rank-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .rank-score {
        justify-self: start;
    }
}

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

    .nav-shell {
        height: 62px;
    }

    .logo-text {
        font-size: 19px;
    }

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

    .hero-arrow {
        display: none;
    }

    .stats-grid,
    .movie-grid,
    .movie-grid.dense,
    .category-grid,
    .overview-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }

    .section,
    .section.alt,
    .section.tint {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .play-button {
        width: 72px;
        height: 72px;
        font-size: 26px;
    }

    .detail-content,
    .related-panel {
        padding: 22px;
    }
}
