:root {
    --dark-950: #0d0f12;
    --dark-900: #141618;
    --dark-850: #1b1e23;
    --dark-800: #24272c;
    --dark-700: #353940;
    --primary-600: #087bd8;
    --primary-500: #1890ff;
    --primary-400: #40a9ff;
    --primary-300: #69c0ff;
    --secondary-500: #13c2c2;
    --text-main: #ffffff;
    --text-soft: #d1d5db;
    --text-muted: #9ca3af;
    --border-soft: rgba(255, 255, 255, 0.08);
    --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.34);
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--dark-900);
    color: var(--text-main);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

img {
    display: block;
    max-width: 100%;
    background: linear-gradient(135deg, var(--dark-800), var(--dark-700));
}

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled,
.site-header.menu-open {
    background: rgba(36, 39, 44, 0.95);
    backdrop-filter: blur(18px);
    border-bottom-color: var(--border-soft);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26);
}

.nav-bar {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    box-shadow: 0 14px 28px rgba(24, 144, 255, 0.28);
}

.brand-icon span {
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid #ffffff;
    transform: translateX(2px);
}

.brand-text {
    display: grid;
    gap: 1px;
}

.brand-text strong {
    font-size: 22px;
    letter-spacing: 0.02em;
}

.brand-text em {
    color: var(--text-muted);
    font-size: 12px;
    font-style: normal;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--text-soft);
    font-size: 15px;
    font-weight: 600;
}

.desktop-nav a {
    padding: 10px 0;
    transition: color 0.2s ease;
}

.desktop-nav a:hover {
    color: var(--primary-400);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 12px 16px 18px;
    background: var(--dark-800);
    border-top: 1px solid var(--border-soft);
}

.mobile-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-soft);
}

.hero {
    position: relative;
    min-height: 80vh;
    overflow: hidden;
    background: var(--dark-950);
}

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

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

.hero-slide-image,
.category-hero > img,
.detail-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 42%, rgba(24, 144, 255, 0.24), transparent 32%),
        linear-gradient(90deg, rgba(20, 22, 24, 0.96) 0%, rgba(20, 22, 24, 0.72) 42%, rgba(20, 22, 24, 0.26) 100%),
        linear-gradient(0deg, var(--dark-900) 0%, rgba(20, 22, 24, 0.18) 48%, rgba(20, 22, 24, 0.65) 100%);
}

.hero-layout {
    position: relative;
    min-height: 80vh;
    padding-top: 118px;
    padding-bottom: 96px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 360px;
    align-items: center;
    gap: 36px;
}

.hero-copy {
    max-width: 720px;
    animation: slideUp 0.75s ease both;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 6px 12px;
    border: 1px solid rgba(24, 144, 255, 0.5);
    border-radius: 999px;
    color: var(--primary-300);
    background: rgba(24, 144, 255, 0.16);
    font-size: 13px;
    font-weight: 700;
}

.hero h1,
.page-hero h1,
.category-hero h1,
.detail-info-panel h1 {
    margin: 0;
    font-size: clamp(38px, 7vw, 70px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.category-hero p,
.detail-one-line {
    max-width: 720px;
    margin: 20px 0 0;
    color: var(--text-soft);
    font-size: 18px;
}

.hero-meta,
.movie-meta,
.detail-meta-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    color: var(--text-muted);
    font-size: 14px;
}

.hero-meta {
    margin-top: 22px;
}

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

.hero-tags {
    margin-top: 16px;
}

.hero-tags span,
.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--primary-300);
    background: rgba(24, 144, 255, 0.12);
    border: 1px solid rgba(24, 144, 255, 0.22);
    font-size: 12px;
}

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

.primary-button,
.ghost-button,
.section-more,
.ranking-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.primary-button {
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(24, 144, 255, 0.28);
}

.ghost-button,
.section-more {
    color: var(--text-main);
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.06);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.ranking-action:hover {
    transform: translateY(-2px);
}

.hero-card {
    padding: 24px;
    border-radius: 22px;
    background: rgba(36, 39, 44, 0.72);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
}

.hero-card span {
    color: var(--primary-300);
    font-size: 13px;
    font-weight: 800;
}

.hero-card strong {
    display: block;
    margin-top: 12px;
    font-size: 24px;
}

.hero-card p {
    margin: 12px 0 0;
    color: var(--text-muted);
}

.hero-bottom {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hero-dots,
.hero-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

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

.hero-quick-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--text-soft);
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.page-main {
    min-height: 70vh;
    padding-bottom: 40px;
}

.section-block,
.search-panel {
    margin-top: 56px;
}

.search-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(36, 39, 44, 0.94), rgba(20, 22, 24, 0.96));
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-card);
}

.search-panel h2,
.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.18;
}

.search-box {
    width: min(100%, 440px);
    height: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    border-radius: 16px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-soft);
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #ffffff;
}

.search-box input::placeholder {
    color: #7d8490;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.filter-select {
    height: 50px;
    padding: 0 14px;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    color: var(--text-main);
    background: var(--dark-800);
}

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

.section-heading p {
    max-width: 660px;
    margin: 10px 0 0;
    color: var(--text-muted);
}

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

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

.movie-card {
    position: relative;
    min-width: 0;
    border-radius: 18px;
    background: var(--dark-800);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(24, 144, 255, 0.4);
    box-shadow: 0 28px 58px rgba(0, 0, 0, 0.36);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

.movie-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 52%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .cover-shade {
    opacity: 1;
}

.cover-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(24, 144, 255, 0.9);
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.cover-meta,
.cover-type,
.rank-badge {
    position: absolute;
    top: 12px;
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    background: rgba(20, 22, 24, 0.88);
    backdrop-filter: blur(10px);
}

.cover-meta {
    right: 12px;
}

.cover-type {
    left: 12px;
    color: #ffffff;
    background: rgba(24, 144, 255, 0.9);
}

.rank-badge {
    left: 12px;
    background: rgba(234, 179, 8, 0.92);
    color: #1f1f1f;
    z-index: 2;
}

.movie-info {
    padding: 15px;
}

.movie-info h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.35;
}

.movie-info h3 a:hover {
    color: var(--primary-400);
}

.movie-info p {
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
}

.movie-meta {
    margin-bottom: 12px;
    gap: 8px 12px;
    font-size: 13px;
}

.tag-row {
    gap: 6px;
}

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

.category-card,
.overview-card {
    border-radius: 20px;
    overflow: hidden;
    background: var(--dark-800);
    border: 1px solid var(--border-soft);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card {
    padding: 14px;
}

.category-card:hover,
.overview-card:hover {
    transform: translateY(-5px);
    border-color: rgba(24, 144, 255, 0.4);
}

.poster-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 14px;
}

.poster-strip img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.category-card span {
    display: block;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
}

.category-card strong {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.rank-entry-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.3fr;
    gap: 24px;
}

.rank-copy,
.small-rank-list,
.detail-side,
.detail-article {
    border-radius: 22px;
    background: var(--dark-800);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-card);
}

.rank-copy {
    padding: 28px;
}

.rank-copy h3 {
    margin: 0 0 12px;
    font-size: 30px;
}

.rank-copy p {
    color: var(--text-muted);
}

.small-rank-list {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.small-rank-item {
    display: grid;
    grid-template-columns: auto 54px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease;
}

.small-rank-item:hover {
    background: rgba(24, 144, 255, 0.12);
}

.small-rank-item img {
    width: 54px;
    height: 76px;
    object-fit: cover;
    border-radius: 10px;
}

.small-rank-item strong,
.small-rank-item em {
    display: block;
}

.small-rank-item strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.small-rank-item em {
    color: var(--text-muted);
    font-size: 12px;
    font-style: normal;
}

.small-rank {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(24, 144, 255, 0.16);
    color: var(--primary-300);
    font-weight: 900;
}

.site-footer {
    margin-top: 72px;
    padding: 46px 0;
    border-top: 1px solid var(--border-soft);
    background: var(--dark-950);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 22px;
}

.site-footer p,
.site-footer a,
.site-footer li {
    color: var(--text-muted);
}

.site-footer h3 {
    margin: 0 0 14px;
}

.site-footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a:hover {
    color: var(--primary-400);
}

.page-hero,
.compact-hero,
.ranking-hero {
    padding: 140px 0 64px;
    background:
        radial-gradient(circle at 15% 25%, rgba(24, 144, 255, 0.26), transparent 28%),
        linear-gradient(135deg, var(--dark-800), var(--dark-900));
}

.compact-hero p,
.ranking-hero p {
    color: var(--text-soft);
    font-size: 18px;
}

.overview-grid {
    display: grid;
    gap: 22px;
    margin-top: 42px;
}

.overview-card {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
}

.overview-poster {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: 240px;
    background: var(--dark-700);
}

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

.overview-content {
    padding: 28px;
}

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

.overview-content p {
    color: var(--text-muted);
}

.overview-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.overview-links a {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--primary-300);
    background: rgba(24, 144, 255, 0.1);
}

.category-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--dark-950);
}

.category-hero-shade,
.detail-backdrop-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, var(--dark-900) 0%, rgba(20, 22, 24, 0.5) 50%, rgba(20, 22, 24, 0.88) 100%),
        linear-gradient(90deg, rgba(20, 22, 24, 0.92), rgba(20, 22, 24, 0.18));
}

.category-hero-content {
    position: relative;
    padding: 130px 0 64px;
}

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

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

.page-filter-panel {
    margin-top: 34px;
}

.empty-state {
    display: none;
    margin-top: 24px;
    padding: 22px;
    border-radius: 18px;
    text-align: center;
    color: var(--text-muted);
    background: var(--dark-800);
    border: 1px solid var(--border-soft);
}

.empty-state.show {
    display: block;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 58px 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 20px;
    background: var(--dark-800);
    border: 1px solid var(--border-soft);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-row:hover {
    transform: translateY(-3px);
    border-color: rgba(24, 144, 255, 0.4);
}

.ranking-index {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(24, 144, 255, 0.14);
    color: var(--primary-300);
    font-weight: 900;
}

.ranking-poster img {
    width: 92px;
    height: 126px;
    object-fit: cover;
    border-radius: 14px;
}

.ranking-content h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.ranking-content p {
    margin: 0 0 10px;
    color: var(--text-muted);
}

.ranking-action {
    background: rgba(24, 144, 255, 0.16);
    color: var(--primary-300);
}

.detail-main {
    padding-bottom: 0;
}

.detail-hero {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    background: var(--dark-950);
}

.detail-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.8fr);
    gap: 32px;
    padding-top: 122px;
    padding-bottom: 72px;
    align-items: center;
}

.detail-player-panel,
.detail-info-panel {
    min-width: 0;
}

.video-player {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-card);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    align-content: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.36));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-play-icon {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(24, 144, 255, 0.9);
    box-shadow: 0 18px 36px rgba(24, 144, 255, 0.28);
}

.player-overlay strong {
    max-width: 78%;
    font-size: 20px;
}

.detail-info-panel {
    padding: 28px;
    border-radius: 24px;
    background: rgba(36, 39, 44, 0.74);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
}

.detail-info-panel h1 {
    font-size: clamp(34px, 4vw, 52px);
}

.detail-meta-list {
    margin: 22px 0 16px;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    margin-top: 42px;
}

.detail-article {
    padding: 30px;
}

.detail-article h2,
.detail-side h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.detail-article h2:not(:first-child) {
    margin-top: 28px;
}

.detail-article p {
    color: var(--text-soft);
    font-size: 17px;
}

.detail-side {
    padding: 20px;
    align-self: start;
}

.side-link-list {
    display: grid;
    gap: 10px;
}

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

.info-list div {
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.info-list dt {
    color: var(--text-muted);
    font-size: 13px;
}

.info-list dd {
    margin: 4px 0 0;
    font-weight: 800;
}

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

.movie-card-compact .movie-info p {
    min-height: 0;
}

.hidden-by-filter {
    display: none !important;
}

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

@media (max-width: 1100px) {
    .desktop-nav {
        gap: 12px;
        font-size: 14px;
    }

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

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

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

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

    .menu-button {
        display: block;
    }

    .hero-layout,
    .detail-layout,
    .detail-content-grid,
    .rank-entry-grid,
    .footer-grid,
    .overview-card {
        grid-template-columns: 1fr;
    }

    .hero-card {
        display: none;
    }

    .hero-bottom,
    .search-panel,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-bottom {
        bottom: 20px;
    }

    .overview-poster {
        min-height: 180px;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, var(--max-width));
    }

    .nav-bar {
        height: 66px;
    }

    .brand-icon {
        width: 36px;
        height: 36px;
    }

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

    .brand-text em {
        display: none;
    }

    .hero,
    .hero-layout {
        min-height: 760px;
    }

    .hero-layout {
        padding-top: 96px;
        padding-bottom: 140px;
    }

    .hero h1,
    .page-hero h1,
    .category-hero h1,
    .detail-info-panel h1 {
        font-size: 34px;
    }

    .hero-copy p,
    .page-hero p,
    .category-hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .mobile-nav.open {
        grid-template-columns: 1fr;
    }

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

    .movie-info {
        padding: 12px;
    }

    .movie-info h3 {
        font-size: 15px;
    }

    .movie-info p,
    .tag-row {
        display: none;
    }

    .ranking-row {
        grid-template-columns: 42px 74px minmax(0, 1fr);
    }

    .ranking-action {
        grid-column: 2 / -1;
        width: fit-content;
    }

    .ranking-poster img {
        width: 74px;
        height: 104px;
    }

    .detail-hero {
        min-height: auto;
    }

    .detail-layout {
        padding-top: 92px;
        padding-bottom: 34px;
    }

    .detail-info-panel,
    .detail-article,
    .detail-side,
    .rank-copy {
        padding: 18px;
    }

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

    .page-hero,
    .compact-hero,
    .ranking-hero {
        padding-top: 104px;
    }
}
