/*
  Static movie website styles.
  Visual direction follows the uploaded original dark slate / cyan gradient / card-based React bundle.
  Code is intentionally formatted and not compressed.
*/

:root {
    --bg-950: #020617;
    --bg-900: #0f172a;
    --bg-850: #111c32;
    --bg-800: #1e293b;
    --bg-700: #334155;
    --text-100: #f8fafc;
    --text-200: #e2e8f0;
    --text-300: #cbd5e1;
    --text-400: #94a3b8;
    --text-500: #64748b;
    --cyan: #22d3ee;
    --cyan-500: #06b6d4;
    --blue: #2563eb;
    --yellow: #facc15;
    --ring: rgba(34, 211, 238, 0.35);
    --shadow: 0 28px 70px rgba(2, 6, 23, 0.55);
    --radius: 18px;
    --container: 1180px;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg-950);
    color: var(--text-200);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 20% 10%, rgba(8, 145, 178, 0.18), transparent 32rem),
        radial-gradient(circle at 90% 5%, rgba(37, 99, 235, 0.15), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

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

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue));
    color: white;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.25);
}

.brand-text {
    display: grid;
    gap: 0;
}

.brand-text strong {
    color: var(--text-100);
    font-size: 1.12rem;
    letter-spacing: 0.02em;
}

.brand-text small {
    color: var(--text-400);
    font-size: 0.76rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--text-300);
    font-weight: 600;
}

.desktop-nav > a,
.nav-dropdown > a {
    padding: 24px 0;
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.nav-dropdown:hover > a {
    color: var(--cyan);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -24px;
    width: 220px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.18s ease;
}

.dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-300);
}

.dropdown-menu a:hover {
    background: rgba(34, 211, 238, 0.08);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.9);
    cursor: pointer;
}

.mobile-nav-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--text-200);
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    padding: 12px 16px 20px;
    background: rgba(2, 6, 23, 0.96);
}

.mobile-nav a {
    display: block;
    padding: 11px 0;
    color: var(--text-300);
}

.mobile-nav.is-open {
    display: block;
}

.hero {
    position: relative;
    height: min(80vh, 820px);
    min-height: 560px;
    overflow: hidden;
    background: var(--bg-950);
}

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

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

.hero-media,
.hero-media .poster-image,
.hero-media .poster-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-media .poster-image {
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 6s ease;
}

.hero-slide.is-active .poster-image {
    transform: scale(1.0);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.76) 45%, rgba(2, 6, 23, 0.15) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.98) 0%, transparent 45%, rgba(2, 6, 23, 0.34) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 720px;
    padding-top: 56px;
}

.hero-content h1 {
    margin: 18px 0 18px;
    color: var(--text-100);
    font-size: clamp(2.5rem, 7vw, 5.8rem);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-content p {
    margin: 0;
    color: var(--text-300);
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 660px;
}

.hero-actions,
.mini-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.hero-score {
    color: var(--text-300);
    font-weight: 700;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    background: linear-gradient(135deg, var(--cyan-500), var(--blue));
    color: white;
    box-shadow: 0 16px 34px rgba(6, 182, 212, 0.22);
}

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

.ghost-button {
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.64);
    color: var(--text-100);
}

.full {
    width: 100%;
    margin-top: 12px;
}

.hero-controls {
    position: absolute;
    right: max(24px, calc((100vw - var(--container)) / 2));
    bottom: 42px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 18px;
}

.hero-controls button {
    border: 0;
    color: white;
    cursor: pointer;
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    font-size: 2rem;
    line-height: 1;
    backdrop-filter: blur(12px);
}

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

.hero-dot {
    width: 18px;
    height: 5px;
    padding: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.6);
    transition: 0.2s ease;
}

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

.section {
    padding: 76px 0;
}

.section-gradient {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.72));
}

.section-gradient.reverse {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.96));
}

.section-solid {
    background: rgba(15, 23, 42, 0.98);
}

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

.section-heading.compact {
    margin-bottom: 20px;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.content-card h1 {
    margin: 0;
    color: var(--text-100);
    line-height: 1.16;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

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

.horizontal-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 300px);
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: thin;
}

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

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

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

.movie-card {
    position: relative;
    border-radius: var(--radius);
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: var(--radius);
    background: rgba(30, 41, 59, 0.82);
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.2);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card-link:hover {
    transform: translateY(-4px);
    border-color: var(--ring);
    box-shadow: 0 24px 60px rgba(8, 145, 178, 0.18);
}

.poster-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(37, 99, 235, 0.2)),
        var(--bg-800);
}

.poster-shell-large {
    min-height: 360px;
}

.poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.2s ease;
}

.movie-card-link:hover .poster-image,
.featured-main a:hover .poster-image,
.horizontal-card-link:hover .poster-image {
    transform: scale(1.08);
}

.poster-image.is-missing {
    opacity: 0;
}

.poster-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: rgba(248, 250, 252, 0.84);
    font-size: clamp(1.2rem, 4vw, 2.2rem);
    font-weight: 900;
    text-align: center;
    letter-spacing: -0.04em;
    background:
        radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.22), transparent 16rem),
        linear-gradient(135deg, #0f172a, #1e3a8a 52%, #164e63);
}

.poster-shade {
    position: absolute;
    inset: auto 0 0 0;
    height: 65%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
}

.score-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.62);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.rank-badge {
    left: 10px;
    right: auto;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.9), rgba(234, 88, 12, 0.9));
}

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

.movie-card-body h3 {
    min-height: 3.1em;
    margin: 0 0 8px;
    color: var(--text-100);
    font-size: 1.05rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-body p {
    min-height: 3.2em;
    margin: 0 0 14px;
    color: var(--text-400);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.movie-card-meta span,
.detail-meta span,
.pill,
.tag-list span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-300);
    font-size: 0.78rem;
    padding: 5px 9px;
}

.pill {
    background: rgba(34, 211, 238, 0.14);
    color: var(--cyan);
    font-weight: 900;
    backdrop-filter: blur(10px);
}

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

.category-card,
.category-overview-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.84);
    box-shadow: 0 20px 45px rgba(2, 6, 23, 0.24);
}

.category-card {
    min-height: 180px;
    padding: 24px;
}

.category-overview-card a {
    display: block;
    padding: 28px;
}

.category-card::before,
.category-overview-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.16;
    transition: opacity 0.25s ease;
}

.category-card:hover::before,
.category-overview-card:hover::before {
    opacity: 0.28;
}

.tone-1::before { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.tone-2::before { background: linear-gradient(135deg, #10b981, #0f766e); }
.tone-3::before { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.tone-4::before { background: linear-gradient(135deg, #f97316, #dc2626); }
.tone-5::before { background: linear-gradient(135deg, #ec4899, #e11d48); }
.tone-6::before { background: linear-gradient(135deg, #6366f1, #2563eb); }
.tone-7::before { background: linear-gradient(135deg, #22c55e, #059669); }
.tone-8::before { background: linear-gradient(135deg, #f59e0b, #ea580c); }

.category-card > *,
.category-overview-card > * {
    position: relative;
    z-index: 1;
}

.category-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue));
    color: white;
    font-weight: 900;
    margin-bottom: 16px;
}

.category-card strong,
.category-overview-card h2 {
    display: block;
    margin: 0 0 8px;
    color: var(--text-100);
    font-size: 1.18rem;
}

.category-card small,
.category-overview-card p,
.category-samples {
    color: var(--text-400);
}

.category-card em {
    display: block;
    margin-top: 14px;
    color: var(--cyan);
    font-style: normal;
    font-weight: 900;
}

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

.category-samples {
    padding: 0 28px 24px;
    font-size: 0.92rem;
}

.category-samples a {
    color: var(--cyan);
}

.two-column,
.ranking-page-layout,
.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.7fr);
    gap: 28px;
}

.featured-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 22px;
}

.featured-main,
.horizontal-card,
.ranking-panel,
.content-card,
.player-card,
.aside-card {
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: var(--radius);
    background: rgba(30, 41, 59, 0.78);
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.24);
    overflow: hidden;
}

.featured-main a {
    position: relative;
    display: block;
    height: 100%;
}

.featured-main-content {
    position: absolute;
    inset: auto 0 0 0;
    padding: 28px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent);
}

.featured-main-content h3 {
    margin: 12px 0 10px;
    color: white;
    font-size: 2rem;
}

.featured-main-content p {
    margin: 0 0 12px;
    color: var(--text-300);
}

.featured-side {
    display: grid;
    gap: 18px;
}

.horizontal-card-link {
    display: grid;
    grid-template-columns: 150px 1fr;
    height: 100%;
}

.horizontal-card .poster-shell {
    height: 100%;
    aspect-ratio: auto;
}

.horizontal-card-body {
    padding: 16px;
    display: grid;
    align-content: center;
    gap: 4px;
}

.horizontal-card-body strong {
    color: var(--text-100);
}

.horizontal-card-body span,
.horizontal-card-body p {
    margin: 0;
    color: var(--text-400);
    font-size: 0.9rem;
}

.ranking-panel {
    padding: 22px;
}

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

.rank-list li a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.62);
    transition: background 0.2s ease;
}

.rank-list li a:hover {
    background: rgba(34, 211, 238, 0.1);
}

.rank-number {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(34, 211, 238, 0.12);
    color: var(--cyan);
    font-weight: 900;
}

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

.rank-meta {
    grid-column: 2;
    color: var(--text-400);
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-list strong {
    grid-row: span 2;
    color: var(--yellow);
}

.ranking-page-layout {
    grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
    align-items: start;
}

.large-panel {
    position: sticky;
    top: 96px;
}

.page-hero {
    position: relative;
    padding: 86px 0 54px;
    background:
        radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.2), transparent 25rem),
        linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.82));
}

.compact-hero h1 {
    margin: 12px 0;
    font-size: clamp(2.2rem, 6vw, 4.6rem);
    letter-spacing: -0.05em;
}

.compact-hero p {
    max-width: 820px;
    color: var(--text-300);
    font-size: 1.05rem;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--text-400);
    font-size: 0.94rem;
    margin-bottom: 24px;
}

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

.search-panel {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr) auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
    margin-bottom: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.7);
}

.search-panel label {
    display: grid;
    gap: 6px;
    color: var(--text-400);
    font-size: 0.88rem;
    font-weight: 700;
}

.search-panel input,
.search-panel select {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.95);
    color: var(--text-100);
    padding: 0 12px;
    outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.result-count {
    margin-bottom: 20px;
    color: var(--text-400);
    font-weight: 800;
}

.movie-card.is-hidden {
    display: none;
}

.detail-page {
    padding: 34px 0 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.98));
}

.detail-layout {
    align-items: start;
}

.player-card {
    position: relative;
    background: black;
}

.video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: black;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    background:
        radial-gradient(circle at center, rgba(34, 211, 238, 0.18), transparent 22rem),
        rgba(0, 0, 0, 0.45);
    color: white;
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue));
    font-size: 2rem;
    box-shadow: 0 16px 40px rgba(6, 182, 212, 0.32);
}

.player-overlay strong {
    font-size: 1.25rem;
}

.player-overlay small {
    color: var(--text-300);
}

.player-card.is-playing .player-overlay {
    opacity: 0;
    visibility: hidden;
}

.player-status {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.62);
    color: var(--text-300);
    font-size: 0.78rem;
    pointer-events: none;
}

.content-card {
    padding: 28px;
    margin-top: 24px;
}

.content-card h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    margin-bottom: 12px;
}

.one-line {
    margin: 0 0 20px;
    color: var(--text-300);
    font-size: 1.1rem;
}

.detail-meta {
    margin-bottom: 18px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
}

.content-card h2,
.aside-card h2 {
    margin: 24px 0 10px;
    color: var(--text-100);
}

.content-card p,
.aside-card p {
    color: var(--text-300);
}

.detail-aside {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 20px;
}

.aside-poster {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.aside-card {
    padding: 22px;
}

.movie-index {
    display: grid;
    gap: 24px;
}

.index-group {
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.72);
    padding: 22px;
}

.index-group h2 {
    margin: 0 0 16px;
    color: var(--cyan);
}

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

.index-links a {
    display: grid;
    padding: 10px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.58);
    color: var(--text-100);
}

.index-links a:hover {
    background: rgba(34, 211, 238, 0.1);
}

.index-links span {
    color: var(--text-500);
    font-size: 0.8rem;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: #020617;
    padding: 54px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 0.7fr 0.7fr;
    gap: 34px;
}

.footer-brand p {
    max-width: 560px;
    color: var(--text-400);
}

.footer-grid h3 {
    margin: 0 0 12px;
    color: var(--text-200);
}

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

.footer-links a {
    color: var(--text-400);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    color: var(--text-500);
    font-size: 0.9rem;
}

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

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

    .two-column,
    .ranking-page-layout,
    .detail-layout,
    .featured-layout {
        grid-template-columns: 1fr;
    }

    .large-panel,
    .detail-aside {
        position: static;
    }

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

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

    .mobile-nav-button {
        display: block;
    }

    .hero {
        min-height: 620px;
        height: auto;
    }

    .hero-content {
        min-height: 620px;
        padding-bottom: 110px;
    }

    .hero-overlay {
        background:
            linear-gradient(0deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.76) 65%, rgba(2, 6, 23, 0.28) 100%);
    }

    .hero-controls {
        left: 16px;
        right: 16px;
        bottom: 28px;
        justify-content: space-between;
    }

    .section {
        padding: 54px 0;
    }

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

    .movie-grid-3,
    .movie-grid-4,
    .category-grid,
    .category-overview-grid,
    .index-links,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

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

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

    .brand-text small {
        display: none;
    }

    .movie-grid-3,
    .movie-grid-4,
    .category-grid,
    .category-overview-grid,
    .index-links,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .horizontal-card-link {
        grid-template-columns: 120px 1fr;
    }

    .content-card {
        padding: 20px;
    }
}
