
:root {
    --bg-main: #020617;
    --bg-card: #0f172a;
    --bg-card-soft: #111827;
    --bg-panel: rgba(15, 23, 42, 0.82);
    --line: rgba(148, 163, 184, 0.18);
    --line-strong: rgba(34, 211, 238, 0.28);
    --text-main: #f8fafc;
    --text-soft: #cbd5e1;
    --text-muted: #94a3b8;
    --cyan: #22d3ee;
    --blue: #2563eb;
    --orange: #f97316;
    --green: #22c55e;
    --radius: 22px;
    --shadow: 0 25px 70px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 32rem),
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.16), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.92), rgba(15, 23, 42, 0.96));
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 26px;
    width: min(1240px, calc(100% - 32px));
    height: 70px;
    margin: 0 auto;
}

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

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, #38bdf8, #2563eb 52%, #22d3ee);
    box-shadow: 0 12px 25px rgba(34, 211, 238, 0.25);
    transition: transform 0.28s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-3deg);
}

.brand-text {
    font-size: 20px;
    color: transparent;
    background: linear-gradient(90deg, #60a5fa, #22d3ee);
    background-clip: text;
    -webkit-background-clip: text;
    white-space: nowrap;
}

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

.nav-link {
    position: relative;
    padding: 23px 0 21px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 700;
    transition: color 0.25s ease;
}

.nav-link::after {
    position: absolute;
    right: 0;
    bottom: 15px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--cyan);
    content: "";
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.header-search,
.mobile-search,
.wide-search {
    display: flex;
    align-items: center;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.66);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.header-search input,
.mobile-search input,
.wide-search input {
    min-width: 220px;
    border: 0;
    outline: none;
    color: var(--text-main);
    background: transparent;
    padding: 10px 16px;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.wide-search input::placeholder,
.catalog-toolbar input::placeholder {
    color: rgba(203, 213, 225, 0.7);
}

.header-search button,
.mobile-search button,
.wide-search button,
.catalog-toolbar button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(90deg, #2563eb, #0891b2);
    padding: 10px 18px;
    cursor: pointer;
    transition: filter 0.22s ease, transform 0.22s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.wide-search button:hover,
.catalog-toolbar button:hover {
    filter: brightness(1.12);
}

.mobile-menu-button {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.78);
    padding: 10px;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: var(--text-main);
}

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

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

.mobile-link {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text-soft);
    background: rgba(15, 23, 42, 0.52);
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.2) contrast(1.08) blur(1px);
    transform: scale(1.04);
    opacity: 0.36;
}

.hero-bg::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.74) 48%, rgba(2, 6, 23, 0.38) 100%),
        linear-gradient(0deg, #020617 0%, transparent 42%, rgba(2, 6, 23, 0.88) 100%);
    content: "";
}

.hero-content,
.detail-layout,
.footer-grid,
.section-wrap,
.search-hero-panel,
.page-hero,
.catalog-toolbar {
    width: min(1240px, calc(100% - 32px));
    margin-right: auto;
    margin-left: auto;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 410px);
    gap: 48px;
    align-items: center;
    padding: 78px 0 90px;
}

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

.eyebrow,
.section-heading span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 70px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-copy h2 {
    margin: 18px 0 14px;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 850;
    line-height: 1.05;
}

.hero-copy p,
.page-hero p,
.detail-one-line,
.search-hero-panel p,
.featured-stack p,
.category-card-body p,
.card-body p,
.horizontal-info p,
.rank-info p,
.detail-article p,
.site-footer p {
    color: var(--text-soft);
    line-height: 1.82;
}

.hero-copy p {
    max-width: 760px;
    font-size: 17px;
}

.hero-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 28px;
}

.hero-tags span,
.detail-tags span,
.poster-year,
.movie-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 999px;
    color: #bae6fd;
    background: rgba(8, 47, 73, 0.45);
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    padding: 0 24px;
    font-weight: 800;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.24);
}

.ghost-button {
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: #e0f2fe;
    background: rgba(15, 23, 42, 0.62);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(34, 211, 238, 0.18);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 520px;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 32px;
    background: rgba(15, 23, 42, 0.56);
    box-shadow: var(--shadow);
    transform: rotate(1.2deg);
}

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

.hero-poster span,
.poster-play,
.player-cover span {
    position: absolute;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #22d3ee);
    box-shadow: 0 18px 38px rgba(34, 211, 238, 0.32);
}

.hero-poster span {
    right: 28px;
    bottom: 28px;
    width: 66px;
    height: 66px;
    font-size: 26px;
}

.hero-poster:hover img,
.movie-card:hover img,
.category-card:hover img,
.rank-row:hover img {
    transform: scale(1.06);
}

.hero-dots {
    position: absolute;
    right: 0;
    bottom: 34px;
    left: 0;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.hero-dot {
    width: 34px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.42);
    cursor: pointer;
    transition: width 0.24s ease, background 0.24s ease;
}

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

.search-hero-panel,
.page-hero,
.catalog-toolbar,
.accent-panel,
.ranking-panel,
.featured-stack,
.detail-side-card,
.detail-article,
.player-section {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.72));
    box-shadow: var(--shadow);
}

.search-hero-panel {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    gap: 24px;
    align-items: center;
    margin-top: -46px;
    padding: 26px;
    position: relative;
    z-index: 8;
}

.search-hero-panel h2,
.featured-stack h2,
.detail-article h2,
.player-section h2,
.detail-side-card h2 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 850;
}

.wide-search {
    width: 100%;
}

.wide-search input {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
}

.wide-search button {
    align-self: stretch;
    padding-right: 24px;
    padding-left: 24px;
}

.section-wrap {
    padding: 70px 0 0;
}

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

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

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

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

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

.movie-card,
.category-card,
.rank-row {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.86);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover,
.category-card:hover,
.rank-row:hover {
    border-color: var(--line-strong);
    background: rgba(30, 41, 59, 0.92);
    transform: translateY(-5px);
}

.poster-link,
.horizontal-cover,
.category-visual,
.rank-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    background: #0f172a;
}

.poster-link {
    aspect-ratio: 2 / 3;
}

.poster-link img,
.horizontal-cover img,
.category-visual img,
.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.42s ease;
}

.poster-link::after,
.category-visual::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(2, 6, 23, 0.86) 100%);
    content: "";
}

.poster-year {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.poster-play {
    right: 14px;
    bottom: 14px;
    z-index: 2;
    width: 44px;
    height: 44px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translateY(0);
}

.card-body,
.category-card-body,
.horizontal-info {
    padding: 18px;
}

.movie-title {
    display: -webkit-box;
    margin-bottom: 12px;
    color: #ffffff;
    font-weight: 850;
    line-height: 1.42;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.24s ease;
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 12px;
}

.card-body p,
.horizontal-info p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0;
    font-size: 14px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

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

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

.horizontal-row {
    display: grid;
    grid-auto-columns: minmax(320px, 380px);
    grid-auto-flow: column;
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 14px;
    scroll-snap-type: x proximity;
}

.movie-card.horizontal {
    display: grid;
    grid-template-columns: 150px 1fr;
    min-height: 156px;
    scroll-snap-align: start;
}

.horizontal-cover {
    height: 100%;
}

.horizontal-cover span,
.category-visual span {
    position: absolute;
    z-index: 2;
    right: 12px;
    bottom: 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.72);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

.split-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 26px;
}

.ranking-panel,
.featured-stack {
    padding: 26px;
}

.compact-heading h2 {
    font-size: 28px;
}

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

.ranking-list a {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px 12px;
    align-items: center;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.38);
    padding: 12px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-list a:hover {
    background: rgba(8, 47, 73, 0.52);
    transform: translateX(4px);
}

.ranking-list strong {
    grid-row: span 2;
    color: var(--orange);
    font-size: 18px;
}

.ranking-list span {
    color: #ffffff;
    font-weight: 800;
}

.ranking-list em {
    color: var(--text-muted);
    font-size: 12px;
    font-style: normal;
}

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

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

.category-visual {
    height: 210px;
}

.category-card-body h2 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 880;
}

.category-mini-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.category-mini-links a {
    color: var(--text-soft);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.34);
    padding: 9px 10px;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-mini-links a:hover {
    color: var(--cyan);
}

.page-hero {
    position: relative;
    margin-top: 46px;
    padding: 56px;
    overflow: hidden;
}

.page-hero::before {
    position: absolute;
    inset: -40% auto auto -10%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.28), transparent 66%);
    content: "";
}

.page-hero > * {
    position: relative;
    z-index: 1;
}

.page-hero p {
    max-width: 820px;
    margin: 14px 0 0;
    font-size: 17px;
}

.category-hero,
.ranking-hero,
.search-page-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px;
    gap: 14px;
    margin-top: 26px;
    padding: 18px;
}

.catalog-toolbar input,
.catalog-toolbar select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    color: var(--text-main);
    outline: none;
    background: rgba(2, 6, 23, 0.45);
    padding: 0 16px;
}

.catalog-toolbar select option {
    color: #0f172a;
}

.catalog-wrap {
    padding-top: 34px;
}

.catalog-card-hidden {
    display: none;
}

.rank-wrap {
    display: grid;
    gap: 16px;
}

.rank-row {
    display: grid;
    grid-template-columns: 74px 116px minmax(0, 1fr);
    align-items: center;
    padding: 14px;
}

.rank-number {
    color: var(--orange);
    font-size: 22px;
    font-weight: 900;
    text-align: center;
}

.rank-thumb {
    height: 148px;
    border-radius: 14px;
}

.rank-info {
    padding: 0 18px;
}

.rank-info h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 850;
}

.detail-hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
}

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

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(7px) saturate(1.18);
    transform: scale(1.04);
    opacity: 0.32;
}

.detail-backdrop::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.82) 52%, rgba(2, 6, 23, 0.62) 100%),
        linear-gradient(0deg, #020617 0%, transparent 46%);
    content: "";
}

.detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 42px;
    align-items: center;
    padding: 72px 0 92px;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 30px;
    box-shadow: var(--shadow);
}

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

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

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

.detail-copy h1 {
    max-width: 760px;
}

.detail-one-line {
    max-width: 820px;
    margin: 18px 0 0;
    font-size: 18px;
}

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

.player-section,
.detail-side-card,
.detail-article {
    padding: 24px;
}

.player-section {
    grid-column: 1 / 2;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 24px;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.movie-video,
.player-cover,
.player-cover img {
    width: 100%;
    height: 100%;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #000000;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
    object-fit: cover;
    opacity: 0.62;
}

.player-cover::after {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.18), rgba(2, 6, 23, 0.32) 48%, rgba(2, 6, 23, 0.72));
    content: "";
}

.player-cover span {
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 82px;
    height: 82px;
    font-size: 34px;
    transform: translate(-50%, -50%);
}

.player-shell.is-playing .player-cover,
.player-cover.is-hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.detail-side-card dl {
    display: grid;
    gap: 14px;
    margin: 0;
}

.detail-side-card div {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    align-items: start;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    padding-bottom: 12px;
}

.detail-side-card dt {
    color: var(--text-muted);
}

.detail-side-card dd {
    margin: 0;
    color: #ffffff;
}

.detail-side-card a {
    color: var(--cyan);
}

.detail-article {
    grid-column: 1 / -1;
}

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

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

.search-results-section {
    padding-top: 40px;
}

.empty-result {
    grid-column: 1 / -1;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--text-soft);
    background: rgba(15, 23, 42, 0.78);
    padding: 36px;
    text-align: center;
}

.site-footer {
    margin-top: 86px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.78);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    padding: 44px 0;
}

.footer-brand {
    margin-bottom: 14px;
    color: var(--cyan);
    font-size: 22px;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 850;
}

.footer-links {
    display: grid;
    gap: 9px;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
    color: var(--cyan);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    color: var(--text-muted);
    padding: 20px 0 28px;
    font-size: 14px;
}

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

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

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

    .detail-side-card {
        grid-column: 1 / -1;
    }

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

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

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

    .hero {
        min-height: auto;
    }

    .hero-slide {
        position: relative;
        display: none;
        min-height: 820px;
    }

    .hero-slide.active {
        display: grid;
    }

    .hero-content,
    .detail-layout,
    .search-hero-panel,
    .category-hero,
    .ranking-hero,
    .search-page-hero {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-content {
        gap: 30px;
    }

    .hero-poster {
        min-height: 420px;
        transform: none;
    }

    .hero-poster img {
        min-height: 420px;
    }

    .search-hero-panel {
        margin-top: 20px;
    }

    .movie-grid.four,
    .movie-grid.six,
    .movie-grid.two,
    .category-grid,
    .category-grid.full,
    .footer-grid,
    .catalog-toolbar {
        grid-template-columns: 1fr;
    }

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

    .rank-thumb {
        height: 120px;
    }

    .page-hero {
        padding: 34px 24px;
    }

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

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

    .brand-text {
        font-size: 17px;
    }

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

    .hero-copy h2 {
        font-size: 30px;
    }

    .hero-slide {
        min-height: 780px;
    }

    .hero-actions,
    .detail-actions {
        align-items: stretch;
        flex-direction: column;
    }

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

    .movie-card.horizontal {
        grid-template-columns: 118px 1fr;
    }

    .horizontal-row {
        grid-auto-columns: minmax(280px, 88vw);
    }

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

    .rank-number {
        text-align: left;
    }

    .rank-thumb {
        height: 220px;
    }

    .rank-info {
        padding: 0;
    }
}
