:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.76);
    --bg-card-solid: #111827;
    --border: rgba(148, 163, 184, 0.18);
    --border-strong: rgba(245, 158, 11, 0.42);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --amber: #f59e0b;
    --amber-strong: #d97706;
    --orange: #ea580c;
    --red: #ef4444;
    --green: #22c55e;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    --radius: 20px;
    --max: 1200px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
    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.12), transparent 32rem),
        radial-gradient(circle at top right, rgba(234, 88, 12, 0.12), transparent 30rem),
        var(--bg);
    color: var(--text);
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-nav {
    width: min(100% - 32px, var(--max));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.28);
    color: white;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text strong {
    font-size: 20px;
    letter-spacing: -0.02em;
}

.logo-text small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--muted-strong);
    font-size: 14px;
}

.nav-link,
.mobile-nav-link {
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: white;
}

.nav-link.is-active {
    color: var(--amber);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.9);
    color: white;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-nav-link {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.7);
    color: var(--muted-strong);
}

.hero-intro {
    position: relative;
    overflow: hidden;
    min-height: 530px;
    display: grid;
    place-items: center;
    padding: 88px 16px 74px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.94)),
        radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.15), transparent 36rem);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.20;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.14) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.hero-intro-inner {
    position: relative;
    width: min(100%, 920px);
    text-align: center;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 12px;
    border: 1px solid rgba(245, 158, 11, 0.34);
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.10);
    color: #fbbf24;
    font-size: 13px;
    font-weight: 700;
}

.hero-intro h1,
.page-hero h1,
.detail-hero h1 {
    margin: 0;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-intro p {
    width: min(100%, 760px);
    margin: 22px auto 0;
    color: var(--muted-strong);
    font-size: 18px;
    line-height: 1.85;
}

.hero-search {
    width: min(100%, 720px);
    margin: 34px auto 0;
    padding: 8px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow);
}

.hero-search input,
.filter-panel input,
.filter-panel select {
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.72);
    color: white;
    outline: none;
}

.hero-search input {
    padding: 15px 16px;
}

.hero-search button,
.primary-button,
.ghost-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-search button,
.primary-button {
    padding: 13px 20px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    color: white;
    box-shadow: 0 16px 40px rgba(245, 158, 11, 0.22);
}

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

.ghost-button,
.section-more {
    padding: 12px 16px;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.66);
    color: var(--muted-strong);
}

.hero-quick-links {
    width: min(100%, 980px);
    margin: 28px auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.hero-quick-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.58);
    color: var(--muted-strong);
}

.hero-quick-links small {
    color: var(--amber);
    font-weight: 800;
}

.featured-hero,
.content-section,
.stats-strip,
.detail-layout,
.detail-hero,
.page-hero {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
}

.featured-hero,
.content-section {
    padding: 58px 0;
}

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

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

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

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

.hero-slider {
    position: relative;
    min-height: 450px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #0f172a;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
}

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

.hero-image {
    position: relative;
    min-height: 450px;
    overflow: hidden;
}

.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.82));
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-content-card {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 5vw, 58px);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.92)),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.20), transparent 22rem);
}

.hero-content-card h2 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.055em;
    line-height: 1.02;
}

.hero-content-card p {
    margin: 18px 0 0;
    color: var(--muted-strong);
    line-height: 1.8;
}

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

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

.hero-meta span,
.detail-pills span,
.movie-meta span,
.tag-row span,
.detail-tags span {
    padding: 6px 10px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.68);
    color: var(--muted-strong);
    font-size: 12px;
}

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

.slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.72);
    color: white;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    opacity: 0.72;
}

.slider-prev {
    left: 18px;
}

.slider-next {
    right: 18px;
}

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

.hero-dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(203, 213, 225, 0.45);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 28px 0 18px;
}

.stats-strip div {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.62);
    text-align: center;
}

.stats-strip strong {
    display: block;
    color: var(--amber);
    font-size: 34px;
    line-height: 1;
}

.stats-strip span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.glass-section {
    padding: 42px 0;
}

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

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

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

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

.movie-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-strong);
    box-shadow: 0 24px 48px rgba(245, 158, 11, 0.10);
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.28), transparent 16rem),
        linear-gradient(135deg, #111827, #020617);
}

.movie-card .poster-wrap {
    aspect-ratio: 2 / 3;
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.25s ease;
}

.movie-card:hover img,
.horizontal-item:hover img,
.category-card:hover img {
    transform: scale(1.08);
}

.poster-fallback {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    text-align: center;
    color: white;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
}

.poster-missing .poster-fallback {
    display: flex;
}

.year-badge,
.rank-badge {
    position: absolute;
    top: 10px;
    z-index: 2;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.year-badge {
    right: 10px;
    background: rgba(245, 158, 11, 0.92);
    color: white;
}

.rank-badge {
    left: 10px;
    background: rgba(2, 6, 23, 0.82);
    color: #fde68a;
}

.play-float {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.92);
    color: white;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.movie-card-body {
    padding: 14px;
}

.movie-title {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    color: white;
    font-weight: 800;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-title:hover {
    color: var(--amber);
}

.movie-card-body p {
    min-height: 42px;
    margin: 9px 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.movie-meta {
    margin-bottom: 10px;
}

.tag-row span {
    background: rgba(30, 41, 59, 0.72);
    color: #cbd5e1;
}

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

.category-card {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.68);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.28));
}

.category-bg {
    position: absolute;
    inset: 0;
}

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

.category-card strong,
.category-card em,
.category-card p {
    position: relative;
    z-index: 2;
}

.category-card strong {
    font-size: 24px;
}

.category-card em {
    margin: 8px 0;
    color: var(--amber);
    font-style: normal;
    font-weight: 800;
}

.category-card p {
    margin: 0;
    color: var(--muted-strong);
    font-size: 14px;
    line-height: 1.6;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px;
}

.rank-list,
.stack-list {
    display: grid;
    gap: 12px;
}

.horizontal-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.62);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.horizontal-item:hover {
    transform: translateX(4px);
    border-color: var(--border-strong);
}

.horizontal-thumb {
    width: 92px;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
}

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

.horizontal-info {
    min-width: 0;
}

.horizontal-info strong,
.horizontal-info em,
.horizontal-info small {
    display: block;
}

.horizontal-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: white;
}

.horizontal-info em {
    margin-top: 4px;
    color: var(--amber);
    font-size: 12px;
    font-style: normal;
}

.horizontal-info small {
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.4;
}

.list-rank {
    color: var(--amber);
    font-size: 18px;
    font-weight: 900;
}

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

.compact-hero {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-hero p,
.detail-hero p {
    max-width: 820px;
    color: var(--muted-strong);
    font-size: 17px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 14px;
}

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

.filter-panel {
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.68);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 700;
}

.filter-search input {
    width: 100%;
    padding: 15px 16px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.filter-grid select {
    width: 100%;
    padding: 12px;
}

.filter-result {
    margin: 14px 0 0;
    color: var(--muted);
}

.filter-result strong {
    color: var(--amber);
}

.empty-state {
    margin: 24px 0 0;
    padding: 28px;
    border: 1px dashed var(--border);
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
}

.category-overview-list {
    display: grid;
    gap: 22px;
}

.category-overview-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.62);
}

.category-overview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.category-overview-head h2 {
    margin: 0;
    font-size: 30px;
}

.category-overview-head p {
    color: var(--muted);
}

.detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
}

.detail-pills {
    margin-top: 20px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    padding: 18px 0 54px;
}

.detail-main,
.detail-sidebar {
    display: grid;
    align-content: start;
    gap: 22px;
}

.player-card,
.content-card,
.side-card {
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.68);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.20);
}

.player-card {
    padding: 12px;
}

.player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    background: #020617;
}

.movie-player {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    background: #020617;
}

.player-start {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    gap: 10px;
    width: 138px;
    height: 138px;
    border: 0;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.92);
    color: white;
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: 0 30px 60px rgba(245, 158, 11, 0.30);
}

.player-start span {
    font-size: 38px;
    line-height: 1;
}

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

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

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

.prose-card,
.side-card {
    padding: clamp(20px, 4vw, 32px);
}

.prose-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.prose-card h2:not(:first-child) {
    margin-top: 32px;
}

.prose-card p {
    color: var(--muted-strong);
    line-height: 2;
}

.detail-tags span {
    padding: 8px 12px;
}

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

.info-list dt {
    color: var(--muted);
}

.info-list dd {
    margin: 0;
    color: var(--muted-strong);
}

.info-list a {
    color: var(--amber);
}

.side-rank-list .horizontal-item {
    grid-template-columns: 64px minmax(0, 1fr) auto;
}

.side-rank-list .horizontal-thumb {
    width: 64px;
}

.narrow-section {
    max-width: 860px;
}

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

.footer-inner {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 34px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
}

.footer-inner p {
    max-width: 760px;
    color: var(--muted);
    line-height: 1.8;
}

.footer-logo {
    color: white;
    font-size: 22px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(96px, 1fr));
    gap: 10px 18px;
    color: var(--muted-strong);
}

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

[hidden] {
    display: none !important;
}

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

    .menu-toggle {
        display: block;
    }

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

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

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

@media (max-width: 820px) {
    .hero-search {
        grid-template-columns: 1fr;
    }

    .hero-slide {
        grid-template-columns: 1fr;
    }

    .hero-image {
        position: absolute;
        inset: 0;
        opacity: 0.46;
    }

    .hero-content-card {
        min-height: 450px;
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.84));
    }

    .stats-strip,
    .filter-grid,
    .split-section,
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

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

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

    .detail-title-row,
    .category-overview-head,
    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

    .logo-text small {
        display: none;
    }

    .hero-intro {
        min-height: 480px;
        padding-top: 64px;
    }

    .hero-intro h1,
    .page-hero h1,
    .detail-hero h1 {
        font-size: 36px;
    }

    .hero-intro p,
    .page-hero p,
    .detail-hero p {
        font-size: 15px;
    }

    .stats-strip,
    .filter-grid,
    .split-section,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .movie-grid,
    .movie-grid-wide,
    .library-grid,
    .preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

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

    .horizontal-item {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .horizontal-item .list-rank {
        display: none;
    }

    .horizontal-thumb {
        width: 76px;
    }

    .movie-card-body {
        padding: 12px;
    }

    .movie-title {
        min-height: 38px;
        font-size: 14px;
    }

    .movie-card-body p {
        display: none;
    }

    .player-start {
        width: 104px;
        height: 104px;
    }

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