:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --cyan-600: #0891b2;
    --cyan-500: #06b6d4;
    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --amber-500: #f59e0b;
    --white: #ffffff;
    --shadow-soft: 0 18px 55px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 35px rgba(15, 23, 42, 0.14);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--slate-800);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, var(--slate-50), var(--slate-100));
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(135deg, rgba(8, 47, 73, 0.96), rgba(30, 64, 175, 0.96));
    color: var(--white);
    box-shadow: 0 12px 36px rgba(2, 6, 23, 0.22);
    backdrop-filter: blur(16px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.32);
    font-size: 14px;
}

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

.nav-menu a {
    padding: 10px 15px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.hero-slider {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    color: var(--white);
    background: var(--slate-950);
}

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

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    filter: saturate(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 30%, rgba(6, 182, 212, 0.22), transparent 34%), linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.68) 48%, rgba(15, 23, 42, 0.3)), linear-gradient(0deg, rgba(2, 6, 23, 0.95), transparent 48%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 360px;
    align-items: center;
    gap: 48px;
    width: min(1180px, calc(100% - 32px));
    min-height: 650px;
    margin: 0 auto;
    padding: 88px 0 130px;
}

.hero-copy {
    max-width: 680px;
}

.hero-label,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 13px;
    border-radius: 999px;
    color: #cffafe;
    background: rgba(8, 145, 178, 0.18);
    border: 1px solid rgba(103, 232, 249, 0.25);
    font-size: 13px;
    font-weight: 800;
}

.hero-copy h1 {
    margin: 24px 0 18px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.03;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.85;
}

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

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

.chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--slate-700);
    background: var(--slate-100);
    font-size: 12px;
    font-weight: 700;
}

.hero-tags .chip {
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-600), var(--blue-600));
    box-shadow: 0 12px 30px rgba(8, 145, 178, 0.3);
}

.btn.glass {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn.glass.dark {
    color: var(--slate-800);
    background: rgba(255, 255, 255, 0.72);
}

.btn.full {
    width: 100%;
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: inherit;
}

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

.hero-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
    font-size: 34px;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.26);
    transform: translateY(-50%) scale(1.06);
}

.hero-arrow.prev {
    left: 24px;
}

.hero-arrow.next {
    right: 24px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 32px;
    background: var(--cyan-500);
}

.hero-search {
    position: absolute;
    z-index: 6;
    bottom: 28px;
    left: 50%;
    display: grid;
    grid-template-columns: 1fr auto;
    width: min(760px, calc(100% - 32px));
    padding: 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    transform: translateX(-50%);
}

.hero-search input,
.filter-panel input,
.filter-panel select {
    min-height: 48px;
    border: 0;
    outline: none;
    border-radius: 14px;
}

.hero-search input {
    padding: 0 16px;
    color: var(--white);
    background: transparent;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.hero-search button {
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-600), var(--blue-600));
    cursor: pointer;
    font-weight: 800;
}

.section {
    padding: 54px 0;
}

.page-main {
    padding: 34px 0 70px;
}

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

.section-head h2,
.page-hero h1,
.detail-card h1 {
    margin: 12px 0 0;
    color: var(--slate-800);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.14;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.section-head p,
.page-hero p,
.panel p,
.detail-card p,
.side-card p {
    color: var(--slate-600);
    line-height: 1.8;
}

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

.category-tile {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    border-radius: 22px;
    background: var(--slate-900);
    box-shadow: var(--shadow-card);
}

.category-tile img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.tile-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.18));
}

.tile-content {
    position: absolute;
    inset: auto 18px 18px;
    color: var(--white);
}

.tile-content strong {
    display: block;
    font-size: 22px;
    font-weight: 900;
}

.tile-content small {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
}

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: 20px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slate-800), var(--slate-950));
}

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

.movie-card:hover .poster-wrap img {
    transform: scale(1.06);
}

.poster-shade {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px;
    color: var(--white);
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.1) 70%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.play-mini {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan-600), var(--blue-600));
    box-shadow: 0 10px 24px rgba(6, 182, 212, 0.28);
}

.card-line {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 13px;
    line-height: 1.55;
}

.movie-info {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 14px;
}

.movie-title {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    color: var(--slate-800);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 850;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    color: var(--slate-500);
    font-size: 12px;
    font-weight: 650;
}

.movie-tags .chip {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.movie-card.compact .movie-title {
    font-size: 14px;
}

.movie-rail {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 0 18px;
    scrollbar-width: none;
}

.movie-rail::-webkit-scrollbar {
    display: none;
}

.rail-item {
    flex: 0 0 230px;
}

.row-head {
    align-items: center;
}

.rail-actions {
    display: flex;
    gap: 10px;
}

.rail-actions button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--slate-700);
    background: var(--white);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    font-size: 26px;
}

.split-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

.panel,
.detail-card,
.side-card,
.player-card,
.category-overview-card {
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.panel {
    padding: 28px;
}

.gradient-panel {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.95), rgba(37, 99, 235, 0.95));
}

.gradient-panel .section-kicker {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.14);
}

.gradient-panel h2 {
    color: var(--white);
    font-size: 40px;
    line-height: 1.15;
    letter-spacing: -0.05em;
}

.gradient-panel p {
    color: rgba(255, 255, 255, 0.86);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: var(--slate-50);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    background: #e0f2fe;
    transform: translateX(4px);
}

.rank-num {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-600), var(--blue-600));
    font-weight: 900;
}

.rank-title {
    min-width: 0;
    overflow: hidden;
    color: var(--slate-800);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

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

.more-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--cyan-600);
    font-weight: 900;
}

.page-hero {
    position: relative;
    margin-bottom: 26px;
    padding: 42px;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--white), #e0f2fe);
    box-shadow: var(--shadow-soft);
}

.small-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.22), transparent 70%);
}

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

.breadcrumb a {
    color: var(--cyan-600);
    font-weight: 800;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px 160px;
    gap: 12px;
    margin-bottom: 24px;
    padding: 12px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    padding: 0 14px;
    color: var(--slate-700);
    background: var(--slate-50);
}

.no-results {
    display: none;
    padding: 28px;
    border-radius: 20px;
    color: var(--slate-500);
    text-align: center;
    background: var(--white);
}

.no-results.is-visible {
    display: block;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 24px;
    padding: 24px;
}

.overview-copy h2 {
    margin: 12px 0;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.overview-copy p {
    color: var(--slate-600);
    line-height: 1.8;
}

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

.overview-posters a {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.overview-posters img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
    background: var(--slate-900);
}

.overview-posters span {
    display: -webkit-box;
    overflow: hidden;
    color: var(--slate-700);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.ranking-card {
    position: relative;
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 16px;
    padding: 14px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.ranking-card img {
    width: 96px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
    background: var(--slate-900);
}

.ranking-index {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), #ef4444);
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.28);
}

.ranking-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.ranking-info strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--slate-800);
    font-size: 18px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ranking-info small {
    color: var(--slate-500);
}

.ranking-info em {
    display: -webkit-box;
    overflow: hidden;
    color: var(--slate-600);
    font-style: normal;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.detail-left {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.player-card {
    padding: 12px;
    background: var(--slate-950);
}

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

.movie-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: var(--white);
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.42));
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
}

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

.play-circle {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-600), var(--blue-600));
    box-shadow: 0 18px 45px rgba(8, 145, 178, 0.38);
    font-size: 30px;
}

.detail-card {
    padding: 28px;
}

.detail-card h1 {
    margin-top: 0;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
    color: var(--slate-500);
    font-size: 14px;
    font-weight: 750;
}

.detail-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--slate-100);
}

.detail-card section {
    margin-top: 24px;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 12px;
    color: var(--slate-800);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.detail-card p {
    margin: 0;
    font-size: 16px;
}

.detail-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 92px;
}

.side-card {
    padding: 18px;
}

.cover-side img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 18px;
    background: var(--slate-900);
}

.cover-side h2 {
    margin-top: 16px;
}

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

.related-card {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    padding: 8px;
    border-radius: 16px;
    background: var(--slate-50);
    transition: background 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
    background: #e0f2fe;
    transform: translateX(3px);
}

.related-card img {
    width: 76px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
    background: var(--slate-900);
}

.related-card span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.related-card strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--slate-800);
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-card small {
    color: var(--slate-500);
    font-size: 12px;
}

.related-card em {
    display: -webkit-box;
    overflow: hidden;
    color: var(--slate-600);
    font-size: 12px;
    font-style: normal;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.site-footer {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.82);
    background: var(--slate-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 30px;
    padding: 42px 0;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #67e8f9;
    font-size: 18px;
}

.site-footer p {
    max-width: 460px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
}

.site-footer a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.72);
    transition: color 0.2s ease;
}

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

.footer-bottom {
    padding: 18px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.58);
    text-align: center;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .hero-content {
        grid-template-columns: 1fr 280px;
    }

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

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

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

    .detail-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .nav-menu {
        position: absolute;
        top: 72px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 20px;
        background: rgba(15, 23, 42, 0.98);
        box-shadow: var(--shadow-card);
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-menu a {
        border-radius: 14px;
    }

    .hero-slider,
    .hero-content {
        min-height: 680px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 72px;
        gap: 26px;
    }

    .hero-poster {
        display: none;
    }

    .hero-arrow {
        display: none;
    }

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

    .hero-search button {
        margin-top: 8px;
    }

    .category-grid,
    .movie-grid,
    .movie-grid.compact-grid,
    .ranking-grid,
    .split-section,
    .footer-grid,
    .category-overview-card,
    .detail-sidebar {
        grid-template-columns: 1fr;
    }

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

    .filter-panel {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 44px 1fr;
    }

    .rank-meta {
        grid-column: 2;
    }
}

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

    .brand {
        font-size: 18px;
    }

    .hero-copy h1 {
        font-size: 36px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .section {
        padding: 38px 0;
    }

    .page-hero,
    .detail-card,
    .panel {
        padding: 22px;
    }

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

    .movie-card {
        border-radius: 16px;
    }

    .movie-tags {
        display: none;
    }

    .ranking-card {
        grid-template-columns: 82px 1fr;
        gap: 12px;
    }

    .ranking-card img {
        width: 82px;
    }
}
