:root {
    --bg-950: #020617;
    --bg-930: #07111f;
    --bg-900: #0f172a;
    --bg-850: #111c31;
    --bg-800: #1e293b;
    --bg-700: #334155;
    --text-100: #f8fafc;
    --text-200: #e2e8f0;
    --text-300: #cbd5e1;
    --text-400: #94a3b8;
    --text-500: #64748b;
    --amber: #f59e0b;
    --amber-light: #fbbf24;
    --orange: #f97316;
    --border: rgba(148, 163, 184, 0.16);
    --panel: rgba(30, 41, 59, 0.5);
    --panel-solid: #1e293b;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text-200);
    background: linear-gradient(180deg, var(--bg-950) 0%, var(--bg-900) 55%, var(--bg-950) 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(2, 6, 23, 0.86);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-950);
    border-radius: 11px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.22);
    font-size: 15px;
}

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

.nav-link,
.search-toggle,
.menu-toggle {
    color: var(--text-300);
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.search-toggle:hover,
.menu-toggle:hover {
    color: var(--amber);
}

.search-toggle {
    font-size: 24px;
    line-height: 1;
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -18px;
    width: 210px;
    padding: 10px;
    background: rgba(30, 41, 59, 0.98);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

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

.dropdown-menu a:hover {
    color: var(--amber);
    background: rgba(15, 23, 42, 0.8);
}

.menu-toggle {
    display: none;
    font-size: 26px;
}

.search-bar {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.search-bar.is-open {
    display: block;
}

.search-bar form,
.wide-search {
    display: flex;
    gap: 10px;
}

.search-bar input,
.wide-search input,
.mobile-panel input {
    flex: 1;
    min-width: 0;
    padding: 13px 16px;
    color: var(--text-200);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border);
    border-radius: 14px;
    outline: none;
}

.search-bar input:focus,
.wide-search input:focus,
.mobile-panel input:focus {
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.search-bar button,
.wide-search button,
.mobile-panel button,
.primary-btn,
.ghost-btn {
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.search-bar button,
.wide-search button,
.primary-btn {
    padding: 13px 24px;
    color: var(--bg-950);
    background: linear-gradient(135deg, var(--amber), var(--amber-light));
}

.ghost-btn {
    padding: 13px 24px;
    color: var(--text-200);
    background: rgba(15, 23, 42, 0.66);
    border: 1px solid var(--border);
}

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

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 10px 0 22px;
    border-top: 1px solid var(--border);
}

.mobile-panel.is-open {
    display: grid;
    gap: 8px;
}

.mobile-panel a {
    padding: 11px 14px;
    color: var(--text-300);
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
}

.mobile-panel a:hover {
    color: var(--amber);
    background: rgba(30, 41, 59, 0.8);
}

.mobile-panel form {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.mobile-panel button {
    padding: 0 18px;
    color: var(--bg-950);
    background: var(--amber);
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.95s ease;
}

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

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 20%, rgba(245, 158, 11, 0.16), transparent 34%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.08)),
        linear-gradient(0deg, var(--bg-950) 0%, transparent 48%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding-bottom: 86px;
    max-width: 1180px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    color: var(--amber);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    width: min(720px, 100%);
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero p {
    width: min(680px, 100%);
    margin: 0 0 24px;
    color: var(--text-300);
    font-size: 18px;
    line-height: 1.8;
}

.hero-meta,
.detail-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-meta {
    margin-bottom: 26px;
}

.hero-meta span,
.detail-meta span,
.detail-meta strong {
    display: inline-flex;
    padding: 7px 12px;
    color: var(--text-300);
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid var(--border);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.detail-meta strong {
    color: var(--bg-950);
    background: var(--amber);
}

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

.hero-prev,
.hero-next {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    font-size: 36px;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(0, 0, 0, 0.72);
    transform: translateY(-50%) scale(1.06);
}

.hero-prev {
    left: 22px;
    transform: translateY(-50%);
}

.hero-next {
    right: 22px;
    transform: translateY(-50%);
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(203, 213, 225, 0.55);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

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

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

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

.section-wrap.no-top {
    padding-top: 26px;
}

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

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

.section-head h2,
.page-hero h1,
.category-hero h1,
.detail-title-block h1 {
    margin: 0;
    color: var(--text-100);
    letter-spacing: -0.04em;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.section-head a {
    color: var(--amber);
    font-weight: 700;
}

.panel-section {
    padding: 42px;
    margin-top: 72px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.35));
}

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

.large-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.movie-card,
.movie-list-card {
    min-width: 0;
}

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

.card-link {
    display: block;
}

.card-poster {
    position: relative;
    overflow: hidden;
    height: 242px;
    margin-bottom: 14px;
    border-radius: 18px;
    background: var(--bg-800);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.card-poster-large {
    height: 380px;
    border-radius: 24px;
}

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

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

.card-shade,
.card-hover {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent 54%);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.card-hover {
    display: flex;
    align-items: flex-end;
    padding: 22px;
    color: var(--text-200);
    transform: translateY(14px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

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

.score-badge,
.type-badge,
.rank-num,
.list-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border-radius: 999px;
}

.score-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    min-width: 44px;
    height: 28px;
    color: var(--bg-950);
    background: var(--amber);
}

.type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    color: var(--text-200);
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(10px);
    font-size: 12px;
}

.movie-card h3,
.movie-list-card h3 {
    margin: 0 0 8px;
    color: var(--text-200);
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-card:hover h3,
.movie-list-card:hover h3,
.related-card:hover h3 {
    color: var(--amber);
}

.movie-card h3 {
    min-height: 48px;
    font-size: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc {
    margin: 0 0 12px;
    color: var(--text-400);
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    gap: 8px;
    color: var(--text-500);
    font-size: 12px;
}

.card-meta span {
    padding: 5px 8px;
    background: rgba(30, 41, 59, 0.72);
    border-radius: 8px;
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
    gap: 40px;
}

.feature-list,
.ranking-list {
    display: grid;
    gap: 14px;
}

.movie-list-card a {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    background: rgba(30, 41, 59, 0.42);
    border: 1px solid var(--border);
    border-radius: 18px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.movie-list-card a:hover {
    background: rgba(30, 41, 59, 0.74);
    transform: translateY(-2px);
}

.movie-list-card img {
    width: 150px;
    height: 92px;
    object-fit: cover;
    border-radius: 12px;
}

.movie-list-card h3 {
    font-size: 17px;
}

.movie-list-card p {
    margin: 0 0 10px;
    color: var(--text-400);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-num {
    width: 38px;
    height: 38px;
    margin-right: 10px;
    color: var(--bg-950);
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.list-score {
    width: 48px;
    height: 34px;
    color: var(--amber);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.22);
}

.amber-panel {
    padding: 42px;
    margin-top: 72px;
    margin-bottom: 76px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(249, 115, 22, 0.06));
}

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

.category-tile {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 22px;
    background: var(--bg-800);
    border: 1px solid var(--border);
}

.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

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

.category-tile div {
    position: absolute;
    inset: auto 0 0;
    padding: 22px;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), transparent);
}

.category-tile h3 {
    margin: 0 0 8px;
    color: var(--text-100);
    font-size: 20px;
}

.category-tile p {
    margin: 0;
    color: var(--text-300);
    font-size: 13px;
    line-height: 1.6;
}

.page-main {
    padding-bottom: 80px;
}

.page-hero,
.category-hero {
    margin-top: 34px;
}

.small-hero {
    padding: 52px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background:
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.13), transparent 34%),
        linear-gradient(135deg, rgba(30, 41, 59, 0.64), rgba(15, 23, 42, 0.72));
}

.page-hero h1 {
    font-size: clamp(34px, 6vw, 60px);
}

.page-hero p,
.category-hero p {
    width: min(760px, 100%);
    color: var(--text-300);
    line-height: 1.8;
    font-size: 17px;
}

.wide-search {
    width: min(720px, 100%);
    margin-top: 26px;
}

.filter-row,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.filter-chip,
.tag-filter,
.tag-links a {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    color: var(--text-300);
    background: rgba(30, 41, 59, 0.64);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.tag-filter {
    border: 0;
}

.filter-chip:hover,
.tag-filter:hover,
.tag-filter.is-active,
.tag-links a:hover {
    color: var(--amber);
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.28);
}

.empty-state {
    display: none;
    padding: 60px 20px;
    color: var(--text-400);
    text-align: center;
}

.empty-state.is-visible {
    display: block;
}

.category-hero {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    border-radius: 30px;
    background: var(--bg-800);
    box-shadow: var(--shadow);
}

.category-hero > img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.category-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.18)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.7), transparent);
}

.category-hero-content {
    position: absolute;
    left: 46px;
    right: 46px;
    bottom: 44px;
}

.category-hero h1 {
    font-size: clamp(38px, 6vw, 68px);
}

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

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

.ranking-page-list {
    gap: 16px;
}

.detail-main {
    padding-top: 26px;
}

.detail-breadcrumb {
    margin-top: 0;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.main-video {
    width: 100%;
    height: 100%;
    background: #000;
}

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0;
    color: #fff;
    border: 0;
    background: #000;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-start img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.68;
}

.player-dim {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2), rgba(0, 0, 0, 0.72));
}

.play-circle {
    position: relative;
    z-index: 2;
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    color: var(--bg-950);
    background: linear-gradient(135deg, var(--amber), var(--amber-light));
    border-radius: 999px;
    font-size: 32px;
    box-shadow: 0 0 0 16px rgba(245, 158, 11, 0.12);
}

.play-text {
    position: relative;
    z-index: 2;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.player-status {
    position: absolute;
    inset: 0;
    display: none;
    place-items: center;
    padding: 20px;
    color: var(--text-200);
    background: rgba(0, 0, 0, 0.76);
    text-align: center;
}

.player-status.is-visible {
    display: grid;
}

.custom-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 10px;
    padding: 16px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.player-shell:hover .custom-controls {
    opacity: 1;
    pointer-events: auto;
}

.custom-controls button {
    padding: 9px 13px;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    cursor: pointer;
}

.custom-controls button:hover {
    color: var(--amber);
}

.detail-title-block {
    padding: 28px 0 8px;
}

.detail-title-block h1 {
    margin-bottom: 16px;
    font-size: clamp(32px, 5vw, 56px);
}

.lead-text {
    color: var(--text-300);
    font-size: 18px;
    line-height: 1.8;
}

.content-panel,
.side-card {
    margin-top: 20px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(30, 41, 59, 0.5);
}

.content-panel h2,
.side-card h2 {
    margin: 0 0 14px;
    color: var(--text-100);
    font-size: 22px;
}

.content-panel p {
    margin: 0;
    color: var(--text-300);
    line-height: 1.9;
}

.tag-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-side {
    position: sticky;
    top: 92px;
}

.poster-side {
    overflow: hidden;
    padding: 0;
}

.poster-side img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.poster-side div {
    padding: 20px;
}

.poster-side p {
    color: var(--text-400);
}

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

.related-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.48);
    transition: background 0.2s ease;
}

.related-card:hover {
    background: rgba(15, 23, 42, 0.9);
}

.related-card img {
    width: 104px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
}

.related-card h3 {
    margin: 0 0 7px;
    color: var(--text-200);
    font-size: 15px;
}

.related-card p {
    margin: 0 0 6px;
    color: var(--text-400);
    font-size: 13px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(2, 6, 23, 0.92);
}

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

.footer-brand {
    margin-bottom: 14px;
}

.footer-inner p {
    width: min(520px, 100%);
    color: var(--text-400);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-content: start;
}

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

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

.footer-copy {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 30px;
    color: var(--text-500);
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .card-grid,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .large-grid,
    .two-column-section,
    .detail-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
    }
}

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

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

    .brand {
        font-size: 19px;
    }

    .hero {
        height: 74vh;
        min-height: 560px;
    }

    .hero-content {
        padding-bottom: 78px;
    }

    .hero h1 {
        font-size: 42px;
    }

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

    .hero-prev,
    .hero-next {
        display: none;
    }

    .section-wrap {
        padding-top: 50px;
    }

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

    .panel-section,
    .amber-panel,
    .small-hero {
        padding: 24px;
        border-radius: 22px;
    }

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

    .card-poster {
        height: 210px;
    }

    .card-poster-large {
        height: 260px;
    }

    .movie-list-card a {
        grid-template-columns: 108px minmax(0, 1fr);
    }

    .movie-list-card img {
        width: 108px;
        height: 76px;
    }

    .list-score {
        display: none;
    }

    .wide-search,
    .search-bar form,
    .mobile-panel form {
        flex-direction: column;
    }

    .category-hero-content {
        left: 24px;
        right: 24px;
        bottom: 26px;
    }

    .detail-meta span,
    .detail-meta strong {
        font-size: 13px;
    }

    .custom-controls {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 520px) {
    .card-grid,
    .large-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .card-poster,
    .card-poster-large {
        height: 330px;
    }

    .category-tile {
        min-height: 190px;
    }

    .related-card {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .related-card img {
        width: 92px;
        height: 66px;
    }
}
