:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: #111827;
    --panel-2: #1e293b;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --amber: #f59e0b;
    --amber-2: #fbbf24;
    --amber-deep: #92400e;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at 18% 0%, rgba(245, 158, 11, 0.14), transparent 28rem),
        radial-gradient(circle at 88% 12%, rgba(59, 130, 246, 0.10), transparent 26rem),
        var(--bg);
    color: var(--text);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(15, 23, 42, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    max-width: 1240px;
    height: 68px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--amber), var(--amber-2));
    color: #111827;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.25);
}

.brand-name {
    font-size: 20px;
    color: #ffffff;
}

.nav-panel {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-link {
    color: #cbd5e1;
    font-weight: 650;
    transition: color 0.2s ease;
}

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

.top-search {
    display: flex;
    align-items: center;
    background: rgba(30, 41, 59, 0.82);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px;
    min-width: 260px;
}

.top-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 8px 12px;
}

.top-search button,
.primary-btn,
.ghost-btn,
.hero-arrow,
.menu-toggle {
    border: 0;
    cursor: pointer;
}

.top-search button {
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--amber);
    color: #111827;
    font-weight: 800;
}

.menu-toggle {
    display: none;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.9);
}

.hero-section {
    max-width: 1320px;
    margin: 0 auto;
    padding: 34px 20px 32px;
}

.hero-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
}

.hero-main {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--panel);
    box-shadow: var(--shadow);
    isolation: isolate;
}

.hero-title-block {
    position: absolute;
    top: 34px;
    left: 36px;
    right: 36px;
    z-index: 6;
    max-width: 760px;
}

.hero-title-block span,
.section-heading span,
.page-hero span,
.category-kicker {
    display: inline-flex;
    align-items: center;
    color: var(--amber-2);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-title-block h1 {
    margin: 10px 0 0;
    font-size: clamp(30px, 4.8vw, 64px);
    line-height: 1.06;
    letter-spacing: -0.05em;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.65s ease, transform 0.85s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.75) 45%, rgba(2, 6, 23, 0.28) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.08) 58%);
}

.hero-copy {
    position: absolute;
    left: 36px;
    bottom: 94px;
    z-index: 7;
    width: min(680px, calc(100% - 72px));
}

.hero-eyebrow {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.14);
    color: var(--amber-2);
    border: 1px solid rgba(245, 158, 11, 0.26);
    font-weight: 800;
}

.hero-copy h2 {
    margin: 18px 0 12px;
    font-size: clamp(34px, 5vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0;
    color: #dbe4ef;
    font-size: 17px;
    line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span {
    border-radius: 999px;
    color: #f8fafc;
    background: rgba(148, 163, 184, 0.16);
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: #111827;
    background: linear-gradient(135deg, var(--amber), var(--amber-2));
    box-shadow: 0 16px 42px rgba(245, 158, 11, 0.26);
}

.ghost-btn {
    color: #ffffff;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.category-card:hover {
    transform: translateY(-3px);
}

.hero-controls {
    position: absolute;
    z-index: 10;
    left: 36px;
    right: 36px;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.70);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

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

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

.hero-side {
    border-radius: var(--radius-xl);
    padding: 22px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.95));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero-side h2 {
    margin: 0 0 18px;
    font-size: 24px;
}

.hero-pick {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid transparent;
    margin-bottom: 12px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.hero-pick:hover {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.08);
}

.hero-pick img {
    width: 76px;
    height: 104px;
    border-radius: 14px;
    object-fit: cover;
    background: #111827;
}

.hero-pick strong,
.hero-pick em {
    display: block;
}

.hero-pick strong {
    color: #ffffff;
    line-height: 1.35;
}

.hero-pick em {
    color: var(--muted);
    margin-top: 7px;
    font-size: 12px;
    font-style: normal;
}

.hero-side-link {
    display: block;
    margin-top: 16px;
    text-align: center;
    padding: 12px;
    border-radius: 16px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--amber-2);
    font-weight: 900;
}

.content-section,
.detail-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 36px 20px;
}

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

.section-heading h2 {
    margin: 6px 0 0;
    font-size: clamp(26px, 3vw, 40px);
    letter-spacing: -0.04em;
}

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

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

.category-card {
    display: block;
    min-height: 160px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(145deg, rgba(245, 158, 11, 0.18), rgba(59, 130, 246, 0.06)),
        rgba(30, 41, 59, 0.84);
    border: 1px solid var(--line);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
    border-color: rgba(245, 158, 11, 0.35);
}

.category-card strong {
    display: block;
    margin-top: 12px;
    color: #ffffff;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.category-card p {
    color: #cbd5e1;
    margin: 12px 0 0;
    line-height: 1.7;
}

.category-overview-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-card-large {
    min-height: 190px;
}

.category-sample-links {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid var(--line);
}

.category-sample-links a {
    color: #cbd5e1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-sample-links a:hover {
    color: var(--amber-2);
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(30, 41, 59, 0.78);
    border: 1px solid var(--line);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    border-color: rgba(245, 158, 11, 0.34);
    box-shadow: 0 24px 68px rgba(0, 0, 0, 0.34);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111827;
}

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

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.08) 48%, rgba(2, 6, 23, 0.02));
    opacity: 0.82;
}

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    padding: 6px 9px;
}

.year-badge {
    right: 12px;
    color: #111827;
    background: var(--amber-2);
}

.rank-badge {
    left: 12px;
    color: #ffffff;
    background: rgba(239, 68, 68, 0.92);
}

.poster-play {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    transform: translate(-50%, -50%) scale(0.82);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    background: var(--amber);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

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

.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 10px 0 8px;
    font-size: 19px;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.movie-card h3 a:hover {
    color: var(--amber-2);
}

.movie-card p {
    margin: 0 0 12px;
    min-height: 46px;
    color: #cbd5e1;
    line-height: 1.65;
    font-size: 14px;
}

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

.movie-card-compact h3 {
    font-size: 16px;
}

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

.page-hero {
    max-width: 1240px;
    margin: 34px auto 0;
    padding: 0 20px;
}

.page-hero > div {
    border-radius: var(--radius-xl);
    padding: clamp(34px, 5vw, 66px);
    background:
        linear-gradient(120deg, rgba(245, 158, 11, 0.18), rgba(30, 41, 59, 0.72)),
        rgba(15, 23, 42, 0.88);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 10px 0 12px;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 790px;
    margin: 0;
    color: #dbe4ef;
    line-height: 1.85;
    font-size: 17px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 210px 210px;
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid var(--line);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.22);
    outline: 0;
    color: #ffffff;
    background: rgba(30, 41, 59, 0.88);
    border-radius: 14px;
    padding: 12px 13px;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(245, 158, 11, 0.62);
}

.filter-empty {
    margin: 10px 0 24px;
    padding: 20px;
    text-align: center;
    color: #cbd5e1;
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.72);
    border: 1px solid var(--line);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 4px 0 22px;
    color: #cbd5e1;
}

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

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    aspect-ratio: 16 / 9;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 22px;
    text-align: center;
    background:
        radial-gradient(circle, rgba(245, 158, 11, 0.18), transparent 20rem),
        linear-gradient(0deg, rgba(2, 6, 23, 0.65), rgba(2, 6, 23, 0.36));
    cursor: pointer;
}

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

.big-play {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 999px;
    padding: 16px 24px;
    color: #111827;
    background: linear-gradient(135deg, var(--amber), var(--amber-2));
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 18px 46px rgba(245, 158, 11, 0.28);
}

.big-play span {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.9);
}

.player-overlay p {
    margin: 0;
    max-width: 680px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

.detail-content-card,
.side-poster-card,
.side-info-card {
    margin-top: 22px;
    border-radius: var(--radius-xl);
    background: rgba(30, 41, 59, 0.78);
    border: 1px solid var(--line);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22);
}

.detail-content-card {
    padding: clamp(24px, 4vw, 38px);
}

.detail-content-card h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.detail-content-card h2,
.side-info-card h2 {
    margin: 28px 0 12px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.detail-content-card p {
    color: #dbe4ef;
    line-height: 1.9;
    font-size: 16px;
}

.detail-one-line {
    color: var(--amber-2) !important;
    font-size: 18px !important;
    font-style: italic;
}

.detail-tags {
    margin: 18px 0 6px;
}

.side-poster-card,
.side-info-card {
    padding: 16px;
}

.side-poster-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 20px;
    background: #111827;
}

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

.side-info-card dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px 12px;
    margin: 0;
}

.side-info-card dt {
    color: var(--muted);
    font-weight: 800;
}

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

@media (max-width: 1120px) {
    .hero-stage,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

    .hero-side h2,
    .hero-side-link {
        grid-column: 1 / -1;
    }

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

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

@media (max-width: 860px) {
    .nav-wrap {
        height: auto;
        min-height: 64px;
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
    }

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

    .nav-panel {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 10px 0 4px;
    }

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

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .nav-link {
        padding: 10px 12px;
        border-radius: 14px;
        background: rgba(30, 41, 59, 0.66);
    }

    .top-search {
        min-width: 0;
        width: 100%;
    }

    .hero-main {
        min-height: 680px;
    }

    .hero-copy,
    .hero-title-block,
    .hero-controls {
        left: 22px;
        right: 22px;
    }

    .hero-copy {
        bottom: 92px;
        width: auto;
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .category-overview-grid,
    .hero-side,
    .filter-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-panel label:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .hero-section,
    .content-section,
    .detail-wrap,
    .page-hero {
        padding-left: 14px;
        padding-right: 14px;
    }

    .brand-name {
        font-size: 18px;
    }

    .hero-main {
        min-height: 640px;
        border-radius: 22px;
    }

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

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

    .movie-grid,
    .compact-grid,
    .category-grid,
    .category-overview-grid,
    .hero-side,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .poster-link {
        aspect-ratio: 16 / 20;
    }

    .detail-content-card,
    .side-poster-card,
    .side-info-card {
        border-radius: 20px;
    }

    .player-overlay p {
        font-size: 18px;
    }
}
