:root {
    --bg-dark: #0f172a;
    --bg-deep: #020617;
    --bg-soft: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --cyan: #06b6d4;
    --cyan-strong: #0891b2;
    --orange: #f97316;
    --blue: #1d4ed8;
    --card: #ffffff;
    --border: rgba(148, 163, 184, 0.24);
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text-main);
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.34);
    font-size: 15px;
}

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

.nav-link {
    color: rgba(226, 232, 240, 0.82);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 15px;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(6, 182, 212, 0.18);
}

.nav-toggle {
    width: 42px;
    height: 42px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(226, 232, 240, 0.24);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 10px;
}

.mobile-nav {
    display: none;
    padding: 8px 16px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.mobile-nav.open {
    display: grid;
    gap: 8px;
}

.mobile-nav-link {
    color: #e2e8f0;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-link.active {
    background: rgba(6, 182, 212, 0.2);
}

.hero-carousel {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: radial-gradient(circle at top left, #0e7490, #0f172a 42%, #020617 100%);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.68) 52%, rgba(2, 6, 23, 0.35)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.6), rgba(2, 6, 23, 0.1));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: 56px;
}

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

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #67e8f9;
    background: rgba(6, 182, 212, 0.17);
    border: 1px solid rgba(103, 232, 249, 0.26);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-text h1 {
    margin: 24px 0 18px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-text p {
    margin: 0;
    max-width: 720px;
    color: rgba(226, 232, 240, 0.92);
    font-size: clamp(18px, 2vw, 22px);
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 14px;
    padding: 0 24px;
    font-weight: 800;
    transition: 0.25s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 16px 34px rgba(6, 182, 212, 0.32);
}

.primary-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 22px 42px rgba(6, 182, 212, 0.42);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.28);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.ghost-button:hover {
    border-color: rgba(103, 232, 249, 0.48);
    background: rgba(6, 182, 212, 0.18);
}

.hero-meta,
.info-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span,
.info-strip span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 14px;
}

.hero-poster {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
    transform: rotate(2deg);
    transition: 0.3s ease;
}

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

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

.hero-poster span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    min-height: 44px;
    color: #ffffff;
    background: rgba(6, 182, 212, 0.88);
    font-weight: 800;
}

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

.hero-dot {
    width: 36px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.42);
    transition: 0.25s ease;
}

.hero-dot.active {
    width: 58px;
    background: #22d3ee;
}

.section {
    padding: 76px 0;
}

.light-section {
    background: #ffffff;
}

.soft-section {
    background: linear-gradient(135deg, #f8fafc, #e0f2fe);
}

.dark-section {
    background: linear-gradient(135deg, #0f172a, #1e3a8a 58%, #020617);
}

.no-top-gap {
    padding-top: 44px;
}

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

.centered-head {
    justify-content: center;
    text-align: center;
}

.section-head h2 {
    margin: 12px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-head p {
    max-width: 620px;
    margin: 12px auto 0;
    color: var(--text-muted);
}

.inverse-head h2,
.inverse-head p {
    color: #ffffff;
}

.section-link {
    color: var(--cyan-strong);
    font-weight: 800;
}

.section-link.light {
    color: #67e8f9;
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f172a;
}

.movie-card-compact .movie-cover {
    aspect-ratio: 3 / 4;
}

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

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

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.02) 58%);
    opacity: 0.76;
}

.play-badge {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%) translateY(10px);
    min-width: 116px;
    text-align: center;
    padding: 10px 18px;
    border-radius: 12px;
    color: #ffffff;
    background: var(--cyan);
    font-weight: 800;
    opacity: 0;
    transition: 0.25s ease;
}

.movie-card:hover .play-badge {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.year-badge,
.region-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.year-badge {
    right: 12px;
    background: rgba(2, 6, 23, 0.72);
}

.region-badge {
    left: 12px;
    background: linear-gradient(135deg, var(--orange), #ef4444);
}

.movie-info {
    padding: 18px;
}

.movie-info h2 {
    margin: 0 0 9px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-info h2 a:hover {
    color: var(--cyan-strong);
}

.movie-info p {
    min-height: 45px;
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 14px;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #94a3b8;
    font-size: 13px;
}

.movie-meta span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
    transition: 0.25s ease;
}

.category-card:hover {
    transform: translateY(-6px);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.category-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(8, 47, 73, 0.28));
}

.category-name,
.category-intro {
    position: absolute;
    left: 20px;
    right: 20px;
    color: #ffffff;
}

.category-name {
    bottom: 58px;
    font-size: 22px;
    font-weight: 900;
}

.category-intro {
    bottom: 20px;
    color: rgba(226, 232, 240, 0.9);
    font-size: 13px;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 140px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #ffffff;
    transition: 0.25s ease;
}

.rank-item:hover {
    background: rgba(30, 64, 175, 0.42);
    transform: translateX(6px);
}

.rank-number {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange), #ef4444);
    font-weight: 900;
}

.rank-item img {
    width: 140px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
}

.rank-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.rank-copy strong {
    font-size: 18px;
}

.rank-copy em {
    color: #cbd5e1;
    font-style: normal;
    font-size: 14px;
}

.rank-copy span {
    color: #94a3b8;
    font-size: 13px;
}

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

.poster-card {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14);
    transition: 0.25s ease;
}

.poster-card:hover {
    transform: translateY(-6px) scale(1.02);
}

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

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

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.84), transparent 60%);
}

.poster-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.86);
    color: #ffffff;
    opacity: 0;
    transition: 0.25s ease;
}

.poster-card:hover .poster-play {
    opacity: 1;
}

.poster-title {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.page-hero {
    padding: 86px 0;
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.24), transparent 34%), linear-gradient(135deg, #0f172a, #1e3a8a 58%, #020617);
}

.page-hero h1 {
    margin: 16px 0 10px;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(226, 232, 240, 0.9);
    font-size: 18px;
}

.small-actions {
    margin-bottom: 0;
}

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

.category-overview-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.category-visual {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

.category-visual span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(6, 182, 212, 0.86);
    font-weight: 900;
}

.category-overview-copy {
    padding: 22px;
}

.category-overview-copy h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 900;
}

.category-overview-copy p {
    margin: 0 0 16px;
    color: var(--text-muted);
}

.mini-title-list {
    display: grid;
    gap: 8px;
    color: #475569;
    font-size: 14px;
}

.search-panel {
    max-width: 760px;
    margin-top: 28px;
}

.search-panel input {
    width: 100%;
    min-height: 58px;
    padding: 0 22px;
    border-radius: 18px;
    color: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.28);
    background: rgba(255, 255, 255, 0.11);
    outline: none;
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.26);
}

.search-panel input::placeholder {
    color: rgba(226, 232, 240, 0.72);
}

.hidden-card {
    display: none;
}

.empty-state {
    display: none;
    margin-top: 24px;
    padding: 22px;
    border-radius: 18px;
    color: #475569;
    background: #f8fafc;
    text-align: center;
}

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

.detail-shell {
    background: linear-gradient(180deg, #0f172a 0, #111827 430px, #f8fafc 430px, #f8fafc 100%);
    padding: 28px 0 0;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #cbd5e1;
    margin-bottom: 22px;
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: #67e8f9;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
    align-items: start;
}

.detail-main,
.detail-side {
    min-width: 0;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 32px 70px rgba(2, 6, 23, 0.34);
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    background: #000000;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.34), rgba(2, 6, 23, 0.7));
    cursor: pointer;
    transition: 0.28s ease;
}

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

.play-circle {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 20px 50px rgba(6, 182, 212, 0.36);
    font-size: 26px;
    padding-left: 4px;
}

.player-overlay strong {
    max-width: min(680px, calc(100% - 40px));
    text-align: center;
    font-size: clamp(20px, 3vw, 32px);
}

.detail-copy {
    margin-top: 24px;
    padding: 30px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.detail-copy h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.detail-copy .lead {
    margin: 0 0 20px;
    color: #475569;
    font-size: 18px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
}

.tag-row span {
    padding: 6px 11px;
    border-radius: 999px;
    color: #0e7490;
    background: #cffafe;
    font-size: 13px;
    font-weight: 700;
}

.detail-copy .info-strip {
    margin-bottom: 22px;
}

.detail-copy .info-strip span {
    color: #334155;
    background: #f1f5f9;
}

.detail-copy section {
    border-top: 1px solid #e2e8f0;
    padding-top: 24px;
    margin-top: 24px;
}

.detail-copy h2 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 900;
}

.detail-copy section p {
    margin: 0;
    color: #334155;
    font-size: 16px;
}

.detail-poster {
    width: 100%;
    border-radius: 22px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    box-shadow: 0 24px 50px rgba(2, 6, 23, 0.28);
}

.side-panel {
    margin-top: 20px;
    padding: 22px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}

.side-panel h2 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 900;
}

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

.side-list a {
    display: grid;
    gap: 3px;
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
    transition: 0.2s ease;
}

.side-list a:hover {
    background: #ecfeff;
    transform: translateX(3px);
}

.side-list span {
    color: #0f172a;
    font-weight: 800;
}

.side-list em {
    color: #64748b;
    font-size: 13px;
    font-style: normal;
}

.detail-related-section {
    padding-top: 64px;
}

.site-footer {
    color: #cbd5e1;
    background: #020617;
    padding: 54px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 38px;
}

.footer-brand {
    margin-bottom: 14px;
}

.site-footer p {
    max-width: 440px;
    margin: 0;
    color: #94a3b8;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
}

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

.footer-links a:hover {
    color: #67e8f9;
}

.footer-bottom {
    margin-top: 42px;
    padding: 20px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    text-align: center;
    color: #64748b;
}

@media (max-width: 1080px) {
    .three-cols,
    .four-cols,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

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

    .detail-side {
        display: grid;
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 20px;
    }

    .side-panel {
        margin-top: 0;
    }
}

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

    .nav-toggle {
        display: flex;
    }

    .hero-carousel {
        height: auto;
        min-height: 720px;
    }

    .hero-slide {
        position: absolute;
    }

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 24px;
        padding-top: 48px;
        padding-bottom: 86px;
    }

    .hero-poster {
        max-width: 240px;
        transform: none;
    }

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

    .rank-item {
        grid-template-columns: 42px 96px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-item img {
        width: 96px;
    }

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

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

    .header-inner {
        min-height: 64px;
    }

    .brand {
        font-size: 18px;
    }

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

    .hero-text h1 {
        font-size: 38px;
    }

    .hero-text p,
    .page-hero p {
        font-size: 16px;
    }

    .primary-button,
    .ghost-button {
        width: 100%;
    }

    .three-cols,
    .four-cols,
    .category-grid,
    .category-overview-grid,
    .poster-grid {
        grid-template-columns: 1fr;
    }

    .rank-copy em {
        display: none;
    }

    .detail-copy {
        padding: 22px;
    }

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

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

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