:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.72);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(245, 158, 11, 0.2);
    --line-strong: rgba(245, 158, 11, 0.42);
    --text: #fff7ed;
    --muted: rgba(254, 243, 199, 0.72);
    --amber: #f59e0b;
    --amber-soft: #fbbf24;
    --purple: #581c87;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 5%, rgba(245, 158, 11, 0.16), transparent 32rem),
        radial-gradient(circle at 85% 0%, rgba(88, 28, 135, 0.42), transparent 36rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 75%);
    z-index: -1;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(88, 28, 135, 0.92), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.nav-shell {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
    background: linear-gradient(90deg, #fde68a, #f59e0b, #fde68a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    color: #0f172a;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    border-radius: 999px;
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.35);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 15px;
}

.desktop-nav a,
.mobile-panel a,
.footer-grid a,
.inline-link,
.card-kicker a,
.breadcrumbs a,
.side-card a {
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover,
.footer-grid a:hover,
.inline-link:hover,
.card-kicker a:hover,
.breadcrumbs a:hover,
.side-card a:hover {
    color: var(--amber-soft);
}

.nav-search {
    position: relative;
    min-width: 260px;
}

.nav-search input,
.mobile-panel input,
.filter-bar input,
.filter-bar select,
.search-band input {
    width: 100%;
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input {
    padding: 11px 44px 11px 16px;
}

.nav-search input:focus,
.mobile-panel input:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.search-band input:focus {
    border-color: var(--amber-soft);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
    background: rgba(255, 255, 255, 0.12);
}

.nav-search button {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: var(--amber-soft);
    background: transparent;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    color: var(--text);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 9px 12px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 18px 24px 24px;
    background: rgba(2, 6, 23, 0.98);
    border-top: 1px solid var(--line);
}

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

.mobile-panel form {
    display: flex;
    gap: 10px;
}

.mobile-panel input {
    padding: 11px 14px;
}

.mobile-panel button,
.search-band button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #0f172a;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    cursor: pointer;
}

.hero-carousel {
    position: relative;
    min-height: 78vh;
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid var(--line);
}

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

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(5px) saturate(1.18);
    transform: scale(1.08);
    opacity: 0.48;
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.86)),
        radial-gradient(circle at 70% 20%, rgba(245, 158, 11, 0.22), transparent 30rem);
}

.hero-inner {
    min-height: 78vh;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.66fr);
    align-items: center;
    gap: 56px;
    padding: 84px 0 96px;
}

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

.eyebrow,
.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--amber-soft);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-copy .hero-site-title {
    margin: 18px 0 12px;
    font-size: clamp(34px, 5vw, 70px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(28px, 4.4vw, 58px);
    line-height: 1.05;
    background: linear-gradient(90deg, #fff7ed, #fbbf24, #fff7ed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p,
.page-hero p,
.section-heading p,
.movie-detail-copy p,
.search-band p,
.category-overview-card p,
.site-footer p,
.movie-card p {
    color: var(--muted);
    line-height: 1.8;
}

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

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 28px 0 22px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    color: #0f172a;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    box-shadow: 0 16px 40px rgba(245, 158, 11, 0.25);
}

.btn.ghost {
    color: var(--text);
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.08);
}

.btn.text {
    color: var(--amber-soft);
}

.small-actions {
    margin: 20px 0 0;
}

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

.hero-tags span,
.tag-row span,
.detail-tags a,
.detail-meta span,
.detail-meta strong {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.1);
}

.hero-tags span {
    padding: 8px 12px;
}

.hero-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 34px;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.36);
    box-shadow: var(--shadow), 0 0 70px rgba(245, 158, 11, 0.16);
    transform: rotate(2deg);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 52%, rgba(2, 6, 23, 0.75));
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 1px solid rgba(253, 230, 138, 0.65);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.hero-dot.active {
    width: 34px;
    background: linear-gradient(90deg, #fde68a, #f59e0b);
}

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

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

.section-heading h2,
.page-hero h1,
.search-band h2,
.movie-detail-copy h1 {
    margin: 8px 0 0;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.section-more,
.inline-link {
    color: var(--amber-soft);
    font-weight: 800;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.48));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

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

.movie-card:hover .poster-link img,
.category-card:hover img,
.category-preview:hover img {
    transform: scale(1.06);
}

.card-year,
.rank-badge,
.card-play {
    position: absolute;
    z-index: 2;
}

.card-year {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
}

.rank-badge {
    top: 12px;
    right: 12px;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #0f172a;
    font-weight: 900;
    background: #fbbf24;
}

.card-play {
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: #0f172a;
    border-radius: 50%;
    background: rgba(253, 230, 138, 0.95);
    transform: translate(-50%, -50%) scale(0.84);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.card-body {
    padding: 16px;
}

.card-kicker,
.card-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: rgba(253, 230, 138, 0.76);
    font-size: 12px;
}

.card-body h3 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

.card-body p {
    min-height: 78px;
    margin: 0 0 12px;
    font-size: 14px;
}

.tag-row span,
.detail-tags a {
    padding: 5px 9px;
    font-size: 12px;
}

.card-score {
    margin-top: 14px;
}

.card-score strong {
    color: var(--amber-soft);
    font-size: 18px;
}

.search-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
    gap: 28px;
    align-items: center;
    margin-top: -42px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.86);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 6;
}

.search-band form {
    display: flex;
    gap: 12px;
}

.search-band input {
    padding: 14px 18px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px;
}

.category-card {
    position: relative;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    overflow: hidden;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
    transition: transform 0.35s ease;
}

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

.category-card span,
.category-card p {
    position: relative;
    z-index: 1;
}

.category-card span {
    font-size: 24px;
    font-weight: 900;
}

.page-hero.compact {
    padding: 72px 0 26px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(160px, 220px);
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
}

.filter-bar input,
.filter-bar select {
    padding: 13px 16px;
}

.filter-bar select {
    appearance: none;
}

.empty-state {
    padding: 38px;
    text-align: center;
    border: 1px dashed var(--line-strong);
    border-radius: 24px;
    color: var(--muted);
}

.category-overview-list {
    display: grid;
    gap: 22px;
    padding: 34px 0 72px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--panel);
}

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

.category-preview img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.25s ease;
}

.category-overview-card h2 {
    margin: 8px 0;
    font-size: 30px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 30px 0 18px;
    color: rgba(253, 230, 138, 0.72);
    font-size: 14px;
}

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

.detail-layout .breadcrumbs {
    grid-column: 1 / -1;
}

.detail-main {
    min-width: 0;
}

.player-card,
.movie-detail-copy,
.side-card {
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.player-card {
    padding: 14px;
}

.movie-player {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 22px;
    background: #000;
}

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

.movie-video {
    object-fit: contain;
    z-index: 1;
}

.player-cover {
    z-index: 2;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: #000;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover img {
    object-fit: cover;
    opacity: 0.72;
    filter: saturate(1.12);
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.12), rgba(2, 6, 23, 0.72));
}

.play-orb {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #0f172a;
    font-size: 32px;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    box-shadow: 0 18px 50px rgba(245, 158, 11, 0.35);
    transform: translate(-50%, -50%);
}

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

.movie-detail-copy {
    margin-top: 22px;
    padding: 28px;
}

.movie-detail-copy .lead {
    font-size: 18px;
    color: #fde68a;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.detail-meta span,
.detail-meta strong {
    padding: 8px 12px;
}

.movie-detail-copy h2,
.side-card h2,
.site-footer h2 {
    margin: 26px 0 10px;
    color: var(--amber-soft);
    font-size: 20px;
}

.detail-tags {
    margin: 16px 0 20px;
}

.detail-side {
    display: grid;
    align-content: start;
    gap: 18px;
}

.detail-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.side-card {
    padding: 22px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px 14px;
    margin: 0;
}

.side-card dt {
    color: rgba(253, 230, 138, 0.62);
}

.side-card dd {
    margin: 0;
    color: var(--text);
}

.site-footer {
    margin-top: 70px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), #020617);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding: 52px 0 34px;
}

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

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    color: var(--muted);
}

.footer-bottom {
    padding: 18px 0 30px;
    border-top: 1px solid rgba(245, 158, 11, 0.12);
    color: rgba(253, 230, 138, 0.58);
}

[hidden] {
    display: none !important;
}

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

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

    .hero-inner,
    .search-band,
    .detail-layout,
    .category-overview-card,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        max-width: 360px;
        transform: none;
    }

    .detail-layout .breadcrumbs {
        grid-column: auto;
    }

    .detail-side {
        grid-row: auto;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .nav-shell {
        height: 64px;
    }

    .brand {
        font-size: 18px;
    }

    .brand-mark {
        width: 30px;
        height: 30px;
    }

    .hero-carousel,
    .hero-inner {
        min-height: 92vh;
    }

    .hero-inner {
        padding: 54px 0 86px;
        gap: 28px;
    }

    .hero-copy p {
        font-size: 15px;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-actions,
    .search-band form,
    .mobile-panel form {
        flex-direction: column;
    }

    .btn,
    .search-band button,
    .mobile-panel button {
        width: 100%;
    }

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

    .card-body {
        padding: 12px;
    }

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

    .card-body p {
        min-height: 66px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .section-heading {
        display: grid;
    }

    .filter-bar {
        grid-template-columns: 1fr;
        padding: 14px;
    }

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

    .movie-detail-copy,
    .side-card {
        padding: 20px;
    }

    .play-orb {
        width: 64px;
        height: 64px;
        font-size: 26px;
    }
}
