:root {
    color-scheme: dark;
    --page-bg: #11100f;
    --panel-bg: rgba(32, 29, 26, 0.82);
    --panel-strong: #1f1b18;
    --card-bg: #211d19;
    --line: rgba(245, 158, 11, 0.22);
    --line-soft: rgba(255, 255, 255, 0.08);
    --text: #fff7ed;
    --muted: #d6d3d1;
    --muted-2: #a8a29e;
    --brand: #d97706;
    --brand-2: #f59e0b;
    --brand-dark: #92400e;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
    --radius: 22px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 34rem),
        linear-gradient(180deg, #171412 0%, #11100f 46%, #0d0c0b 100%);
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

img {
    background: linear-gradient(135deg, #2f2924, #151311);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(17, 16, 15, 0.78);
    backdrop-filter: blur(18px);
}

.header-inner,
.footer-inner,
.section-inner,
.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 20px;
}

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

.brand-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-2), var(--brand-dark));
    color: #1c1104;
    box-shadow: 0 10px 34px rgba(245, 158, 11, 0.28);
}

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

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--muted);
    transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: #fff7ed;
    background: rgba(245, 158, 11, 0.15);
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    width: 42px;
    height: 42px;
    font-size: 22px;
}

.hero-carousel {
    position: relative;
    height: clamp(580px, 72vh, 760px);
    overflow: hidden;
    background: #14110f;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    background-position: center;
    background-size: cover;
    transition: opacity 0.8s ease, transform 1.1s ease;
    transform: scale(1.03);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.56) 45%, rgba(0, 0, 0, 0.16) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(17, 16, 15, 0.78));
}

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

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    max-width: 700px;
    justify-self: start;
    padding-top: 36px;
}

.hero-eyebrow,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.13);
    color: #fcd34d;
    font-size: 13px;
    font-weight: 800;
}

.hero-title {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.96;
    letter-spacing: -0.06em;
    text-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

.hero-desc {
    max-width: 640px;
    margin: 0 0 28px;
    color: #e7e5e4;
    font-size: clamp(17px, 2.2vw, 22px);
    line-height: 1.8;
}

.hero-meta,
.detail-meta,
.movie-meta,
.filter-row,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

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

.hero-meta span,
.detail-meta span,
.movie-meta span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: var(--muted);
    font-size: 13px;
}

.hero-meta span:first-child,
.detail-meta span:first-child {
    background: var(--brand);
    color: #1c1104;
    font-weight: 900;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-weight: 900;
    transition: 0.2s ease;
}

.btn-primary {
    background: var(--brand);
    color: #1c1104;
    box-shadow: 0 18px 36px rgba(217, 119, 6, 0.32);
}

.btn-primary:hover {
    background: var(--brand-2);
    transform: translateY(-2px);
}

.btn-soft {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.btn-soft:hover {
    border-color: var(--line);
    background: rgba(245, 158, 11, 0.15);
}

.hero-controls {
    position: absolute;
    right: max(16px, calc((100vw - 1180px) / 2));
    bottom: 40px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-dot {
    width: 38px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--brand-2);
}

main {
    position: relative;
}

.section {
    padding: 64px 0;
}

.section + .section {
    padding-top: 10px;
}

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

.section-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.04em;
}

.section-desc {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--muted-2);
    line-height: 1.8;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: var(--line);
    background: rgba(245, 158, 11, 0.06);
}

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

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

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

.poster-mask {
    position: absolute;
    inset: auto 14px 14px;
    display: inline-flex;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.66);
    color: #fff7ed;
    font-weight: 900;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.25s ease;
}

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

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-grid;
    min-width: 40px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #fbbf24, #b45309);
    color: #1c1104;
    font-size: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

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

.movie-meta {
    margin-bottom: 12px;
}

.movie-meta span {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 12px;
}

.movie-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: #fbbf24;
}

.movie-card p {
    min-height: 48px;
    margin: 0 0 14px;
    color: var(--muted-2);
    font-size: 14px;
    line-height: 1.65;
}

.tag-row span {
    min-height: 24px;
    padding: 4px 8px;
    background: rgba(245, 158, 11, 0.12);
    color: #fcd34d;
    font-size: 12px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
}

.panel {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--panel-bg);
    box-shadow: var(--shadow);
}

.panel-pad {
    padding: 24px;
}

.mini-list {
    display: grid;
    gap: 12px;
}

.mini-card {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    transition: 0.2s ease;
}

.mini-card:hover {
    border-color: var(--line);
    background: rgba(245, 158, 11, 0.11);
}

.mini-card img {
    width: 62px;
    height: 86px;
    border-radius: 12px;
    object-fit: cover;
}

.mini-card strong,
.mini-card em {
    display: block;
}

.mini-card strong {
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-card em {
    color: var(--muted-2);
    font-size: 12px;
    font-style: normal;
    line-height: 1.45;
}

.mini-rank {
    position: absolute;
    min-width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--brand);
    color: #1c1104;
    font-size: 12px;
    font-weight: 900;
}

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

.category-card {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--panel-strong);
    box-shadow: var(--shadow);
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.82)),
        var(--category-bg, linear-gradient(135deg, #3f2f18, #14110f));
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.category-card:hover::before {
    transform: scale(1.06);
}

.category-card-content {
    position: absolute;
    inset: auto 20px 20px 20px;
}

.category-card h2,
.category-card h3 {
    margin: 0 0 8px;
    font-size: 26px;
}

.category-card p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.7;
}

.page-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line-soft);
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.19), transparent 38%),
        radial-gradient(circle at right top, rgba(255, 255, 255, 0.08), transparent 35rem),
        #151311;
}

.page-hero .page-shell {
    padding: 76px 0 56px;
}

.page-hero h1 {
    margin: 0;
    max-width: 900px;
    font-size: clamp(38px, 6vw, 70px);
    line-height: 1.03;
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 780px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 12px;
    margin-bottom: 26px;
    padding: 16px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
}

.search-panel input,
.search-panel select {
    min-height: 48px;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.28);
    color: var(--text);
    padding: 0 14px;
    outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--line);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 52px 0;
    border-bottom: 1px solid var(--line-soft);
    background-position: center;
    background-size: cover;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(12, 10, 9, 0.95), rgba(12, 10, 9, 0.78), rgba(12, 10, 9, 0.52)),
        linear-gradient(180deg, rgba(12, 10, 9, 0.18), #11100f);
}

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

.detail-cover {
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

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

.breadcrumb a:hover {
    color: #fbbf24;
}

.detail-title {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.detail-intro {
    max-width: 780px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: #000;
    box-shadow: var(--shadow);
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.72));
    color: #fff7ed;
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
}

.player-start.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.play-icon {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    border-radius: 999px;
    background: var(--brand);
    color: #1c1104;
    font-size: 34px;
    box-shadow: 0 18px 48px rgba(217, 119, 6, 0.36);
}

.article-body {
    display: grid;
    gap: 24px;
}

.article-body section {
    padding: 24px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.045);
}

.article-body h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.article-body p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.95;
}

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

.page-links a {
    padding: 18px;
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
}

.page-links a:hover {
    border-color: var(--line);
    color: #fbbf24;
}

.site-footer {
    margin-top: 56px;
    border-top: 1px solid var(--line-soft);
    background: rgba(0, 0, 0, 0.22);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 28px 0;
    color: var(--muted-2);
}

.footer-brand .brand-name {
    font-size: 17px;
}

.is-hidden-card {
    display: none !important;
}

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

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

    .detail-cover {
        max-width: 280px;
    }

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

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

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

    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }

    .site-nav {
        position: absolute;
        top: 64px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--line-soft);
        border-radius: 18px;
        background: rgba(17, 16, 15, 0.96);
        box-shadow: var(--shadow);
    }

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

    .site-nav a {
        border-radius: 12px;
    }

    .hero-carousel {
        height: 680px;
    }

    .hero-content {
        align-self: end;
        padding-bottom: 104px;
    }

    .hero-controls {
        left: 16px;
        right: auto;
        bottom: 34px;
    }

    .section {
        padding: 44px 0;
    }

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

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

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

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

    .movie-card p {
        min-height: auto;
        font-size: 13px;
    }

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

    .page-hero .page-shell {
        padding: 56px 0 42px;
    }

    .page-links {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

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

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

    .hero-title,
    .detail-title,
    .page-hero h1 {
        letter-spacing: -0.04em;
    }
}
