:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.78);
    --bg-card-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(148, 163, 184, 0.16);
    --line-strong: rgba(245, 158, 11, 0.32);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --amber: #f59e0b;
    --amber-soft: #fbbf24;
    --red: #ef4444;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    --radius: 22px;
    --radius-lg: 30px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 34rem),
        radial-gradient(circle at top right, rgba(239, 68, 68, 0.13), transparent 30rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

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

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amber), #ef4444);
    color: white;
    box-shadow: 0 14px 34px rgba(245, 158, 11, 0.34);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.desktop-nav a,
.mobile-menu-links a {
    padding: 10px 13px;
    border-radius: 999px;
    color: var(--soft);
    font-size: 14px;
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-menu-links a:hover,
.mobile-menu-links a.active {
    color: white;
    background: rgba(245, 158, 11, 0.14);
}

.nav-search {
    width: 280px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
}

.nav-search input,
.large-search input,
.page-filter input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: white;
}

.nav-search input::placeholder,
.large-search input::placeholder,
.page-filter input::placeholder {
    color: #64748b;
}

.nav-search button,
.large-search button,
.primary-button,
.ghost-button,
.text-link,
.small-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-search button,
.primary-button,
.large-search button {
    padding: 10px 17px;
    background: linear-gradient(135deg, var(--amber), #ef4444);
    color: white;
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.24);
}

.nav-search button:hover,
.primary-button:hover,
.large-search button:hover,
.small-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(245, 158, 11, 0.32);
}

.ghost-button {
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.text-link {
    color: var(--amber-soft);
    font-size: 14px;
}

.text-link:hover {
    color: white;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.82);
}

.mobile-menu-button span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: white;
}

.mobile-menu {
    display: none;
    border-top: 1px solid var(--line);
    padding: 18px;
    background: rgba(2, 6, 23, 0.96);
}

.mobile-menu.is-open {
    display: block;
}

.mobile-menu-links,
.mobile-category-links {
    width: min(var(--max), 100%);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mobile-category-links {
    margin-top: 14px;
}

.mobile-category-links a {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
}

.hero-section {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

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

.hero-slide {
    display: flex;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    background-position: center;
    background-size: cover;
    transition: opacity 0.7s ease, transform 1.2s ease;
    transform: scale(1.04);
}

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

.hero-overlay,
.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.55) 48%, rgba(2, 6, 23, 0.92)),
        linear-gradient(0deg, rgba(2, 6, 23, 1), rgba(2, 6, 23, 0.16) 55%, rgba(2, 6, 23, 0.6));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 140px 0 170px;
    max-width: 760px;
    margin-left: max(16px, calc((100vw - var(--max)) / 2));
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--amber-soft);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: white;
    font-size: clamp(42px, 8vw, 82px);
    line-height: 0.96;
    letter-spacing: -0.07em;
    text-wrap: balance;
}

.hero-content p {
    max-width: 680px;
    margin: 24px 0 0;
    color: #e2e8f0;
    font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.tag-list,
.detail-meta,
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.hero-tags span,
.tag-list span,
.detail-meta span,
.quick-links a {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    color: #e2e8f0;
    font-size: 13px;
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    color: white;
    font-size: 34px;
    line-height: 1;
    backdrop-filter: blur(10px);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dots button {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
}

.hero-dots button.active {
    width: 34px;
    background: var(--amber);
}

.hero-search-card {
    position: absolute;
    right: max(16px, calc((100vw - var(--max)) / 2));
    bottom: 86px;
    z-index: 8;
    width: min(410px, calc(100% - 32px));
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-search-card span {
    display: block;
    margin-bottom: 10px;
    color: var(--amber-soft);
    font-weight: 900;
}

.hero-search-card form,
.large-search,
.page-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.66);
}

.hero-search-card input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: white;
}

.hero-search-card button {
    border: 0;
    border-radius: 14px;
    padding: 10px 15px;
    background: var(--amber);
    color: white;
    font-weight: 900;
}

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

.intro-grid,
.two-column-layout,
.detail-layout,
.detail-grid {
    display: grid;
    gap: 28px;
}

.intro-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    align-items: stretch;
}

.intro-copy,
.stats-panel,
.side-panel,
.content-card,
.player-card,
.side-card,
.category-overview-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow);
}

.intro-copy,
.stats-panel,
.side-panel {
    padding: 30px;
}

.intro-copy h2,
.section-heading h2,
.side-panel h2,
.content-card h2 {
    margin: 0;
    color: white;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.intro-copy p,
.side-panel p,
.content-card p,
.category-tile span,
.overview-copy p {
    color: var(--soft);
}

.stats-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.stats-panel div {
    min-height: 110px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(2, 6, 23, 0.35);
}

.stats-panel strong {
    color: var(--amber-soft);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1;
}

.stats-panel span {
    color: var(--muted);
    font-size: 13px;
}

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

.section-heading.compact {
    align-items: center;
    margin-bottom: 18px;
}

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

.category-tile {
    min-height: 210px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.58));
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.poster-card:hover,
.category-overview-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.12);
}

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

.tile-covers img,
.overview-covers img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.9);
}

.category-tile strong {
    color: white;
    font-size: 20px;
}

.category-tile em {
    color: var(--amber-soft);
    font-style: normal;
    font-weight: 900;
}

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

.poster-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-card);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: rgba(15, 23, 42, 0.8);
}

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

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

.poster-badge,
.rank-number {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.96);
    color: white;
    font-size: 12px;
    font-weight: 900;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: white;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    backdrop-filter: blur(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.poster-copy {
    padding: 16px;
}

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

.meta-line span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: #475569;
}

.meta-line.small {
    font-size: 11px;
}

.poster-copy h3,
.compact-title,
.rank-title {
    margin: 8px 0 0;
    color: white;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;
}

.poster-copy h3 a:hover,
.compact-title:hover,
.rank-title:hover {
    color: var(--amber-soft);
}

.poster-copy p,
.compact-card p,
.rank-copy p {
    display: -webkit-box;
    margin: 9px 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-list {
    margin-top: 12px;
}

.tag-list span {
    min-height: 26px;
    padding: 4px 9px;
    font-size: 12px;
}

.two-column-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
    align-items: start;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
}

.rank-cover {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 2 / 3;
    background: rgba(2, 6, 23, 0.5);
}

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

.rank-number {
    top: 8px;
    left: 8px;
}

.rank-copy {
    min-width: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.side-panel {
    position: sticky;
    top: 94px;
}

.large-search {
    margin-top: 20px;
}

.quick-links {
    margin-top: 20px;
}

.quick-links.vertical {
    flex-direction: column;
}

.quick-links a:hover {
    border-color: var(--line-strong);
    color: white;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.page-hero {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 82px 0 38px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
    gap: 26px;
    align-items: end;
}

.slim-hero {
    min-height: 300px;
}

.page-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--soft);
    font-size: 18px;
}

.page-filter {
    align-self: end;
}

.page-filter span {
    white-space: nowrap;
    color: var(--amber-soft);
    font-size: 13px;
    font-weight: 900;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.overview-copy span {
    color: var(--amber-soft);
    font-size: 13px;
    font-weight: 900;
}

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

.small-button {
    margin-top: 14px;
    padding: 9px 15px;
    background: linear-gradient(135deg, var(--amber), #ef4444);
    color: white;
    font-size: 13px;
}

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

.detail-hero {
    min-height: 620px;
    background-position: center;
    background-size: cover;
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0 72px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 34px;
    color: #cbd5e1;
    font-size: 14px;
}

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

.detail-grid {
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: end;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.detail-copy {
    max-width: 780px;
}

.detail-copy h1 {
    font-size: clamp(38px, 6vw, 70px);
}

.detail-one-line {
    max-width: 760px;
    margin: 20px 0 0;
    color: #e2e8f0;
    font-size: 20px;
}

.detail-meta {
    margin-top: 18px;
}

.detail-tags {
    margin-bottom: 28px;
}

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

.detail-main {
    display: grid;
    gap: 22px;
}

.player-card,
.content-card,
.side-card {
    padding: 22px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-player {
    width: 100%;
    height: 100%;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 9px;
    border: 0;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.72)),
        rgba(2, 6, 23, 0.24);
    color: white;
    cursor: pointer;
}

.player-overlay.is-hidden {
    display: none;
}

.big-play {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber), #ef4444);
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.34);
    font-size: 26px;
}

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

.player-overlay em {
    color: var(--soft);
    font-style: normal;
}

.player-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
}

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

.info-list div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.32);
}

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

.info-list dd {
    margin: 5px 0 0;
    color: white;
    font-weight: 800;
}

.detail-sidebar {
    position: sticky;
    top: 94px;
    display: grid;
    gap: 22px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.32);
}

.compact-cover {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 13px;
    background: rgba(15, 23, 42, 0.9);
}

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

.compact-title {
    display: block;
    margin-top: 0;
    font-size: 15px;
}

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

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

.footer-shell {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 28px;
    align-items: start;
}

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

.footer-shell p {
    max-width: 430px;
    color: var(--muted);
}

.footer-links,
.footer-categories {
    display: grid;
    gap: 10px;
    color: var(--soft);
    font-size: 14px;
}

.footer-links a:hover,
.footer-categories a:hover {
    color: var(--amber-soft);
}

.is-filtered-out {
    display: none !important;
}

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

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

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

    .side-panel,
    .detail-sidebar {
        position: static;
    }

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

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

    .mobile-menu-button {
        display: inline-flex;
    }

    .hero-section {
        min-height: 720px;
    }

    .hero-content {
        padding: 118px 0 238px;
        margin-left: 16px;
    }

    .hero-search-card {
        left: 16px;
        right: 16px;
        bottom: 72px;
        width: auto;
    }

    .hero-arrow {
        display: none;
    }

    .intro-grid,
    .page-hero,
    .detail-grid,
    .category-overview-card,
    .footer-shell {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 560px) {
    .nav-shell {
        min-height: 64px;
    }

    .brand {
        font-size: 18px;
    }

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

    .hero-content h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 38px;
    }

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

    .section-shell {
        padding: 48px 0;
    }

    .stats-panel,
    .category-grid,
    .movie-grid,
    .category-overview-grid,
    .related-grid,
    .info-list {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .page-filter,
    .hero-search-card form,
    .large-search {
        align-items: stretch;
        flex-direction: column;
    }

    .player-overlay strong {
        padding: 0 18px;
        text-align: center;
        font-size: 18px;
    }
}
