* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --bg: #0f172a;
    --bg-deep: #020617;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-soft: rgba(30, 41, 59, 0.72);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --cyan-soft: rgba(34, 211, 238, 0.18);
    --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 48%, #0f172a 100%);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    background:
        radial-gradient(circle at 14% 8%, rgba(34, 211, 238, 0.16), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(59, 130, 246, 0.14), transparent 30%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.76));
}

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-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.3);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 32px));
    min-height: 76px;
    margin-inline: auto;
    gap: 18px;
}

.brand,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.12);
    color: var(--cyan);
    box-shadow: 0 0 32px rgba(34, 211, 238, 0.28);
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong,
.footer-logo span:last-child {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--cyan), #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy small {
    color: var(--muted);
    font-size: 12px;
}

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

.desktop-nav a,
.mobile-panel a {
    color: var(--muted-strong);
    padding: 10px 14px;
    border-radius: 12px;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
    color: var(--cyan);
    background: rgba(51, 65, 85, 0.58);
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.catalog-tools input,
.catalog-tools select,
.search-panel input,
.search-panel select {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.66);
    color: var(--text);
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-search input {
    width: 230px;
    padding: 10px 14px;
}

.header-search input:focus,
.catalog-tools input:focus,
.catalog-tools select:focus,
.search-panel input:focus,
.search-panel select:focus {
    border-color: rgba(34, 211, 238, 0.78);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.11);
    background: rgba(30, 41, 59, 0.88);
}

.header-search button,
.search-panel button {
    border: 0;
    border-radius: 14px;
    padding: 10px 16px;
    color: white;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.header-search button:hover,
.search-panel button:hover,
.primary-button:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 16px 40px rgba(34, 211, 238, 0.22);
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--muted-strong);
    background: rgba(51, 65, 85, 0.6);
    cursor: pointer;
}

.mobile-panel {
    border-top: 1px solid var(--line);
    padding: 16px;
    background: rgba(15, 23, 42, 0.98);
}

.mobile-panel nav,
.mobile-categories {
    display: grid;
    gap: 8px;
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.mobile-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
}

.hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
}

.hero-stage,
.hero-slide {
    min-height: 70vh;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 700ms ease;
}

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 0.62) 42%, rgba(15, 23, 42, 0.04) 100%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.42) 46%, rgba(15, 23, 42, 0.78) 100%);
}

.hero-content {
    position: absolute;
    left: max(16px, calc((100vw - 1180px) / 2));
    bottom: 88px;
    max-width: 720px;
    display: grid;
    gap: 18px;
}

.hero-kicker,
.eyebrow {
    color: var(--cyan);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 76px);
    line-height: 1.03;
    letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p,
.detail-one-line {
    margin: 0;
    color: var(--muted-strong);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

.hero-meta,
.detail-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.hero-meta span,
.detail-meta span,
.card-meta span {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(15, 23, 42, 0.48);
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-button {
    color: white;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    box-shadow: 0 18px 45px rgba(34, 211, 238, 0.18);
}

.ghost-button {
    border: 1px solid rgba(148, 163, 184, 0.24);
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.36);
}

.ghost-button:hover {
    color: var(--cyan);
    border-color: rgba(34, 211, 238, 0.5);
    background: rgba(34, 211, 238, 0.08);
}

.hero-dots {
    position: absolute;
    left: max(16px, calc((100vw - 1180px) / 2));
    bottom: 38px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 34px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.32);
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--cyan);
}

.hero-rail {
    position: absolute;
    right: max(16px, calc((100vw - 1180px) / 2));
    bottom: 46px;
    display: grid;
    gap: 12px;
    width: 300px;
}

.hero-thumb {
    display: grid;
    grid-template-columns: 74px 1fr;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    padding: 8px;
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.48);
    cursor: pointer;
    backdrop-filter: blur(12px);
    text-align: left;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hero-thumb:hover,
.hero-thumb.is-active {
    transform: translateX(-4px);
    border-color: rgba(34, 211, 238, 0.58);
    background: rgba(34, 211, 238, 0.1);
}

.hero-thumb img {
    width: 74px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
}

.hero-thumb span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-weight: 700;
}

.content-section {
    padding: 72px 0;
}

.content-section.tinted {
    background: rgba(30, 41, 59, 0.35);
}

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

.section-title h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.1;
}

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

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

.horizontal-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 380px);
    gap: 22px;
    overflow-x: auto;
    padding: 4px 4px 22px;
    scrollbar-color: rgba(34, 211, 238, 0.45) rgba(30, 41, 59, 0.4);
}

.wide-card,
.card-cover,
.focus-large,
.focus-small,
.rank-cover,
.timeline-cover {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: rgba(30, 41, 59, 0.55);
}

.wide-card {
    min-height: 214px;
    box-shadow: var(--shadow);
}

.wide-card img,
.card-cover img,
.focus-large img,
.focus-small img,
.rank-cover img,
.timeline-cover img,
.detail-poster img,
.video-shell video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wide-card img,
.card-cover img,
.focus-large img,
.focus-small img,
.rank-cover img,
.timeline-cover img {
    transition: transform 420ms ease;
}

.wide-card:hover img,
.movie-card:hover .card-cover img,
.focus-large:hover img,
.focus-small:hover img,
.rank-card:hover img,
.timeline-item:hover img {
    transform: scale(1.06);
}

.wide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.85) 100%);
}

.wide-info {
    position: absolute;
    inset-inline: 18px;
    bottom: 18px;
    display: grid;
    gap: 5px;
}

.wide-info strong {
    font-size: 18px;
}

.wide-info em,
.card-meta,
.side-link em {
    color: var(--muted);
    font-style: normal;
}

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

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

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

.poster-grid .card-cover {
    aspect-ratio: 4 / 5;
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.54);
    box-shadow: 0 20px 48px rgba(2, 6, 23, 0.22);
    transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.38);
    background: rgba(30, 41, 59, 0.72);
}

.card-cover {
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 22px 22px 0 0;
}

.card-cover::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 35%, rgba(2, 6, 23, 0.78));
}

.card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    color: white;
    background: rgba(34, 211, 238, 0.84);
    transform: translate(-50%, -50%) scale(0.82);
    opacity: 0;
    transition: transform 220ms ease, opacity 220ms ease;
}

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

.card-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.card-body h3 {
    margin: 0;
    color: var(--text);
    font-size: 18px;
    line-height: 1.35;
}

.card-body h3 a:hover,
.rank-copy h2 a:hover,
.timeline-copy h3 a:hover {
    color: var(--cyan);
}

.card-body p,
.rank-copy p,
.timeline-copy p,
.article-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.card-body p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.timeline-list {
    display: grid;
    gap: 18px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 60px 240px 1fr;
    align-items: center;
    gap: 22px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    padding: 18px;
    background: rgba(15, 23, 42, 0.48);
    transition: background 180ms ease, transform 180ms ease;
}

.timeline-item:hover {
    transform: translateX(4px);
    background: rgba(30, 41, 59, 0.62);
}

.timeline-rank,
.rank-number {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    box-shadow: 0 12px 30px rgba(34, 211, 238, 0.2);
}

.timeline-cover {
    aspect-ratio: 16 / 10;
}

.timeline-copy {
    display: grid;
    gap: 10px;
}

.timeline-copy h3,
.rank-copy h2,
.article-panel h2,
.side-panel h2 {
    margin: 0;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud span {
    border-radius: 999px;
    padding: 6px 10px;
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.12);
}

.focus-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.focus-large,
.focus-small {
    display: block;
}

.focus-large {
    min-height: 410px;
}

.focus-small {
    min-height: 193px;
}

.focus-side {
    display: grid;
    gap: 24px;
}

.focus-large::after,
.focus-small::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, 0.86));
}

.focus-large span,
.focus-small span {
    position: absolute;
    inset-inline: 24px;
    bottom: 22px;
    z-index: 2;
    display: grid;
    gap: 8px;
}

.focus-large em,
.focus-small em {
    color: var(--cyan);
    font-style: normal;
    font-weight: 800;
}

.focus-large strong,
.focus-small strong {
    font-size: clamp(20px, 2.5vw, 32px);
}

.focus-large small {
    color: var(--muted-strong);
    line-height: 1.65;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
}

.page-hero {
    padding: 96px 0 70px;
    background:
        radial-gradient(circle at 15% 22%, rgba(34, 211, 238, 0.18), transparent 26%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.88));
}

.slim-hero {
    padding: 76px 0 56px;
}

.page-hero .container {
    display: grid;
    max-width: 920px;
    gap: 16px;
    margin-left: max(16px, calc((100vw - 1180px) / 2));
    margin-right: auto;
}

.compact-actions {
    margin-top: 8px;
}

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

.category-tile a {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    min-height: 220px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.58);
    transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.category-tile a:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.4);
    background: rgba(30, 41, 59, 0.72);
}

.tile-covers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 10px;
}

.tile-covers img {
    width: 100%;
    height: 100%;
    min-height: 92px;
    object-fit: cover;
    border-radius: 14px;
}

.tile-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 24px 24px 24px 0;
}

.tile-copy h2,
.tile-copy p {
    margin: 0;
}

.tile-copy p {
    color: var(--muted);
    line-height: 1.7;
}

.tile-copy span {
    color: var(--cyan);
    font-weight: 800;
}

.catalog-tools,
.search-panel {
    display: grid;
    grid-template-columns: 1fr 190px 190px;
    gap: 14px;
    margin-bottom: 28px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.52);
}

.search-panel {
    grid-template-columns: 1fr 190px 190px 120px;
}

.catalog-tools input,
.catalog-tools select,
.search-panel input,
.search-panel select {
    width: 100%;
    padding: 12px 14px;
}

.empty-state,
.search-status {
    margin: 26px 0;
    color: var(--muted);
    text-align: center;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 70px 180px 1fr;
    gap: 22px;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    padding: 18px;
    background: rgba(15, 23, 42, 0.54);
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.rank-card:hover {
    transform: translateX(4px);
    border-color: rgba(34, 211, 238, 0.34);
    background: rgba(30, 41, 59, 0.68);
}

.rank-cover {
    aspect-ratio: 16 / 10;
}

.rank-copy {
    display: grid;
    gap: 10px;
}

.detail-hero {
    min-height: 620px;
    display: flex;
    align-items: flex-end;
    padding: 90px 0 58px;
}

.detail-backdrop,
.detail-overlay {
    position: absolute;
    inset: 0;
}

.detail-backdrop {
    filter: blur(4px) saturate(1.1);
    transform: scale(1.03);
}

.detail-overlay {
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.74) 52%, rgba(15, 23, 42, 0.94) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 0.36) 70%);
}

.detail-head {
    position: relative;
    z-index: 2;
}

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

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

.detail-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 36px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 5;
}

.detail-copy {
    display: grid;
    gap: 18px;
    max-width: 760px;
}

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

.video-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.video-element {
    display: block;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    border: 0;
    color: white;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.64));
    cursor: pointer;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    box-shadow: 0 18px 50px rgba(34, 211, 238, 0.32);
    font-size: 30px;
}

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

.article-panel,
.side-panel {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.56);
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.18);
}

.article-panel {
    display: grid;
    gap: 18px;
    margin-top: 28px;
    padding: 28px;
}

.article-panel h2:not(:first-child) {
    margin-top: 12px;
}

.side-panel {
    position: sticky;
    top: 104px;
    padding: 22px;
}

.side-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.side-link {
    display: grid;
    grid-template-columns: 86px 1fr;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    padding: 8px;
    background: rgba(30, 41, 59, 0.42);
    transition: transform 180ms ease, background 180ms ease;
}

.side-link:hover {
    transform: translateX(3px);
    background: rgba(34, 211, 238, 0.1);
}

.side-link img {
    width: 86px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
}

.side-link span {
    display: grid;
    gap: 5px;
}

.side-link strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.35;
}

.side-link em {
    font-size: 13px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 1));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
    padding: 54px 0 34px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
    color: var(--muted);
}

.footer-grid p {
    line-height: 1.8;
}

.footer-grid h2 {
    margin: 0 0 16px;
    font-size: 17px;
}

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

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    padding: 18px 0 28px;
    font-size: 14px;
}

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

    .menu-toggle {
        display: inline-grid;
    }

    .hero-rail {
        display: none;
    }

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

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

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

    .side-panel {
        position: static;
    }
}

@media (max-width: 860px) {
    .hero,
    .hero-stage,
    .hero-slide {
        min-height: 76vh;
    }

    .hero-content {
        right: 16px;
        bottom: 82px;
    }

    .section-title,
    .detail-layout,
    .timeline-item,
    .rank-card,
    .category-tile a,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item,
    .rank-card {
        align-items: start;
    }

    .timeline-cover,
    .rank-cover {
        width: 100%;
    }

    .focus-grid,
    .catalog-tools,
    .search-panel {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(300px, 100%);
    }

    .tile-copy {
        padding: 0 22px 24px;
    }
}

@media (max-width: 640px) {
    .header-inner {
        min-height: 68px;
    }

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

    .brand-copy small {
        display: none;
    }

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

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

    .movie-grid,
    .catalog-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }

    .horizontal-scroll {
        grid-auto-columns: minmax(250px, 86vw);
    }

    .wide-card {
        min-height: 184px;
    }

    .hero-actions,
    .mobile-categories {
        grid-template-columns: 1fr;
    }

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

    .page-hero,
    .detail-hero {
        padding-top: 70px;
    }
}
