
:root {
    color-scheme: light;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --cyan-500: #06b6d4;
    --cyan-400: #22d3ee;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --white: #ffffff;
    --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.12);
    --radius-xl: 24px;
    --radius-lg: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--slate-900);
    background: linear-gradient(180deg, var(--slate-50), #ffffff);
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #0f172a, #1e293b 48%, #0f172a);
    color: white;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.32);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

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

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

.brand-icon,
.footer-brand span {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.35);
}

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

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

.brand-text em {
    margin-top: 4px;
    font-size: 12px;
    color: var(--cyan-400);
    font-style: normal;
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--slate-300);
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: rgba(6, 182, 212, 0.16);
    transform: translateY(-1px);
}

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

.nav-search input {
    width: 210px;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 14px;
    color: white;
    background: rgba(15, 23, 42, 0.72);
    outline: none;
}

.nav-search input:focus {
    border-color: var(--cyan-400);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}

.nav-search button,
.search-panel button {
    border: 0;
    border-radius: 14px;
    padding: 10px 16px;
    color: white;
    cursor: pointer;
    font-weight: 700;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
}

.mobile-menu-button {
    display: none;
    border: 0;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 12px 16px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: var(--slate-800);
}

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

.mobile-nav a {
    color: var(--slate-200);
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.42);
}

.hero-section,
.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: white;
    background: radial-gradient(circle at 15% 15%, rgba(34, 211, 238, 0.34), transparent 34%),
                linear-gradient(135deg, #0f172a 0%, #172554 55%, #164e63 100%);
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    opacity: 0.24;
    background-image: linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: 52px 52px;
}

.hero-layout {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 54px;
    align-items: center;
    min-height: 620px;
    padding: 80px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a5f3fc;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 13px;
    font-weight: 800;
}

.hero-copy h1,
.page-hero h1,
.detail-title-block h1 {
    margin: 16px 0;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-title-block p {
    max-width: 760px;
    margin: 0 0 28px;
    color: #cbd5e1;
    font-size: 19px;
}

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

.primary-button,
.secondary-button,
.hero-watch,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 16px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.hero-watch {
    padding: 14px 22px;
    color: white;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.28);
}

.primary-button:hover,
.hero-watch:hover,
.nav-search button:hover,
.search-panel button:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 22px 45px rgba(6, 182, 212, 0.32);
}

.secondary-button {
    padding: 14px 22px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: 660px;
}

.hero-stats div {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(16px);
}

.hero-stats strong {
    display: block;
    color: white;
    font-size: 26px;
    line-height: 1;
}

.hero-stats span {
    color: var(--slate-300);
    font-size: 13px;
}

.hero-slider {
    position: relative;
    min-height: 560px;
}

.hero-slides {
    position: relative;
    height: 540px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 35px 70px rgba(2, 6, 23, 0.45);
    background: var(--slate-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(2, 6, 23, 0.86));
}

.hero-slide-content {
    position: absolute;
    z-index: 2;
    left: 28px;
    right: 28px;
    bottom: 28px;
}

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

.hero-tags span,
.detail-tags a {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    color: #cffafe;
    background: rgba(8, 145, 178, 0.32);
    border: 1px solid rgba(103, 232, 249, 0.28);
    font-size: 12px;
    font-weight: 700;
}

.hero-slide h2 {
    margin: 12px 0 6px;
    font-size: 34px;
    line-height: 1.1;
}

.hero-slide p {
    margin: 0 0 18px;
    color: var(--slate-200);
}

.hero-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.hero-controls button {
    border: 0;
    cursor: pointer;
    color: white;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    min-width: 38px;
    min-height: 38px;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dots button {
    min-width: 10px;
    min-height: 10px;
    width: 10px;
    height: 10px;
    padding: 0;
    opacity: 0.45;
}

.hero-dots button.active {
    opacity: 1;
    width: 28px;
    background: var(--cyan-400);
}

.section-block {
    padding: 76px 0;
}

.white-section {
    background: white;
}

.soft-section {
    background: linear-gradient(180deg, #ffffff, var(--slate-50));
}

.section-heading {
    margin-bottom: 32px;
    text-align: center;
}

.section-heading span {
    color: var(--cyan-500);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 13px;
}

.section-heading h2 {
    margin: 8px 0 10px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-heading p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--slate-600);
}

.split-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    text-align: left;
}

.split-heading p {
    margin: 0;
}

.text-link {
    color: var(--cyan-500);
}

.category-grid,
.movie-grid,
.overview-grid,
.aside-grid {
    display: grid;
    gap: 24px;
}

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

.category-tile,
.category-overview-poster {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    color: white;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile {
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 22px;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}

.category-tile h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.category-tile p,
.category-tile span {
    position: relative;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
}

.category-tile span {
    display: inline-flex;
    margin-top: 14px;
    font-weight: 800;
}

.category-covers {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    transform: rotate(-6deg) scale(1.08);
}

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

.blue-cyan { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.orange-red { background: linear-gradient(135deg, #f97316, #ef4444); }
.violet-blue { background: linear-gradient(135deg, #7c3aed, #2563eb); }
.slate-cyan { background: linear-gradient(135deg, #0f172a, #0891b2); }
.pink-orange { background: linear-gradient(135deg, #ec4899, #f97316); }
.emerald-cyan { background: linear-gradient(135deg, #059669, #06b6d4); }
.purple-pink { background: linear-gradient(135deg, #9333ea, #ec4899); }
.green-teal { background: linear-gradient(135deg, #16a34a, #14b8a6); }
.cyan-blue { background: linear-gradient(135deg, #0891b2, #1d4ed8); }
.amber-indigo { background: linear-gradient(135deg, #d97706, #4f46e5); }

.filter-toolbar {
    display: grid;
    grid-template-columns: 1fr 180px 180px auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid var(--slate-200);
    border-radius: 22px;
    background: var(--slate-50);
}

.filter-toolbar input,
.filter-toolbar select,
.search-panel input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    padding: 0 14px;
    color: var(--slate-800);
    background: white;
    outline: none;
}

.filter-toolbar input:focus,
.filter-toolbar select:focus,
.search-panel input:focus {
    border-color: var(--cyan-500);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.13);
}

.filter-count {
    color: var(--slate-500);
    font-weight: 800;
    white-space: nowrap;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.17);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--slate-900);
}

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

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0), rgba(2, 6, 23, 0.78));
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-link::after {
    opacity: 1;
}

.play-mark {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 3;
    top: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 900;
}

.year-badge {
    right: 12px;
    background: rgba(15, 23, 42, 0.74);
    backdrop-filter: blur(8px);
}

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

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

.movie-card h3 {
    margin: 0 0 5px;
    font-size: 16px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--cyan-500);
}

.movie-meta,
.movie-desc,
.movie-tags {
    margin: 0;
    color: var(--slate-500);
    font-size: 13px;
}

.movie-desc {
    display: -webkit-box;
    min-height: 42px;
    margin: 8px 0;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-tags {
    color: var(--cyan-500);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.compact-card .movie-desc,
.compact-card .movie-tags {
    display: none;
}

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

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

.page-hero.category-hero {
    background-blend-mode: overlay;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--slate-300);
    font-size: 14px;
}

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

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

.category-overview-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 22px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--slate-200);
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-overview-poster {
    min-height: 160px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

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

.category-overview-card h2 {
    margin: 0 0 8px;
}

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

.category-overview-card span {
    color: var(--cyan-500);
    font-weight: 800;
}

.ranking-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 58px 62px 1fr minmax(190px, auto) 70px;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    border: 1px solid var(--slate-200);
    border-radius: 18px;
    background: white;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-row:hover {
    transform: translateX(4px);
    border-color: var(--cyan-500);
}

.ranking-number {
    color: var(--cyan-500);
    font-size: 20px;
    font-weight: 900;
}

.ranking-row img {
    width: 62px;
    height: 82px;
    border-radius: 12px;
    object-fit: cover;
}

.ranking-title {
    font-weight: 900;
}

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

.ranking-row strong {
    color: #ef4444;
}

.ranking-aside,
.content-card,
.detail-info-card,
.detail-tags,
.search-panel,
.search-status {
    border: 1px solid var(--slate-200);
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-card);
}

.ranking-aside {
    position: sticky;
    top: 102px;
    padding: 22px;
}

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

.search-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 18px;
    margin-bottom: 16px;
}

.search-tips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.search-tips a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--cyan-500);
    background: #ecfeff;
    font-weight: 800;
}

.search-status {
    padding: 14px 18px;
    margin-bottom: 22px;
    color: var(--slate-600);
}

.detail-hero {
    min-height: 430px;
    display: flex;
    align-items: end;
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(8, 47, 73, 0.82)), var(--hero-poster);
    background-size: cover;
    background-position: center;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.82));
}

.detail-title-block {
    position: relative;
    padding: 90px 0 56px;
}

.detail-title-block h1 {
    max-width: 920px;
}

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

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

.player-panel {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: var(--slate-950);
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--slate-950);
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: black;
    object-fit: cover;
}

.play-button {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: white;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.78));
}

.play-button span {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
    box-shadow: 0 24px 50px rgba(6, 182, 212, 0.42);
    font-size: 32px;
}

.play-button strong {
    font-size: 20px;
}

.player-shell.is-playing .play-button {
    display: none;
}

.player-status {
    position: absolute;
    left: 18px;
    bottom: 14px;
    z-index: 2;
    margin: 0;
    color: var(--slate-200);
    font-size: 13px;
}

.player-shell.is-playing .player-status {
    display: none;
}

.content-card {
    padding: 26px;
}

.content-card h2,
.detail-info-card h2,
.detail-tags h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.content-card p {
    margin: 0 0 14px;
    color: var(--slate-700);
}

.content-card p:last-child {
    margin-bottom: 0;
}

.detail-aside {
    position: sticky;
    top: 102px;
    display: grid;
    gap: 18px;
}

.detail-cover {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.detail-info-card,
.detail-tags {
    padding: 20px;
}

.detail-info-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.detail-info-card li {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 10px;
    color: var(--slate-600);
}

.detail-info-card strong {
    color: var(--slate-900);
}

.full-width {
    width: 100%;
}

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

.site-footer {
    color: var(--slate-300);
    background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 34px;
    padding: 54px 0;
}

.footer-brand {
    margin-bottom: 16px;
    color: white;
    font-size: 22px;
}

.site-footer p,
.site-footer a {
    color: var(--slate-400);
}

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

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

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    color: var(--slate-500);
}

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

@media (max-width: 1180px) {
    .category-grid,
    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .hero-slider {
        max-width: 560px;
        width: 100%;
        margin: 0 auto;
    }
}

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

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

    .hero-layout {
        min-height: auto;
        padding: 64px 0;
    }

    .hero-stats,
    .filter-toolbar,
    .search-panel,
    .ranking-layout,
    .detail-layout,
    .footer-grid,
    .overview-grid,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .ranking-aside,
    .detail-aside {
        position: static;
    }

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

    .ranking-row {
        grid-template-columns: 44px 58px 1fr 54px;
    }

    .ranking-meta {
        display: none;
    }

    .split-heading {
        align-items: start;
        flex-direction: column;
    }
}

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

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

    .hero-copy h1,
    .page-hero h1,
    .detail-title-block h1 {
        font-size: 36px;
    }

    .hero-copy p,
    .page-hero p,
    .detail-title-block p {
        font-size: 16px;
    }

    .hero-slides {
        height: 480px;
    }

    .hero-stats,
    .category-grid,
    .movie-grid,
    .ranking-strip,
    .related-grid,
    .aside-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-block {
        padding: 52px 0;
    }

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

    .footer-bottom {
        flex-direction: column;
    }
}
