:root {
    color-scheme: dark;
    --bg-0: #020617;
    --bg-1: #0f172a;
    --panel: rgba(30, 41, 59, 0.58);
    --panel-strong: rgba(15, 23, 42, 0.86);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --amber: #f59e0b;
    --orange: #ea580c;
    --rose: #e11d48;
    --green: #10b981;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    --radius-xl: 24px;
    --radius-lg: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 32rem),
        radial-gradient(circle at top right, rgba(225, 29, 72, 0.12), transparent 36rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

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

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

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

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

.brand__mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 10px 26px rgba(245, 158, 11, 0.28);
}

.brand__text {
    font-size: 20px;
    background: linear-gradient(90deg, #fbbf24, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

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

.site-nav a:hover {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.1);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    border-radius: 999px;
}

.hero-slider {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: #020617;
}

.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-bg {
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    filter: saturate(1.08);
}

.hero-bg::before,
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
}

.hero-bg::before {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.62) 45%, rgba(0, 0, 0, 0.12));
}

.hero-bg::after {
    background: linear-gradient(0deg, var(--bg-0), transparent 42%, rgba(2, 6, 23, 0.45));
}

.hero-wrap {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 70vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 56px;
    padding: 72px 0 92px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fbbf24;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero-content h1 {
    margin: 16px 0 12px;
    max-width: 760px;
    font-size: clamp(38px, 6vw, 70px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero-content h2 {
    margin: 0 0 18px;
    max-width: 720px;
    font-size: clamp(26px, 3vw, 44px);
    line-height: 1.08;
}

.hero-content p {
    max-width: 680px;
    margin: 0;
    color: var(--soft);
    font-size: 18px;
    line-height: 1.8;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
}

.hero-meta span,
.pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid rgba(245, 158, 11, 0.26);
    border-radius: 999px;
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.12);
}

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

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

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

.btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.25);
}

.btn--ghost {
    color: var(--text);
    border-color: var(--line);
    background: rgba(15, 23, 42, 0.68);
}

.hero-cover-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

.hero-cover-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #0f172a;
}

.hero-cover-caption {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(12px);
}

.hero-cover-caption strong {
    display: block;
    margin-bottom: 4px;
}

.hero-cover-caption span {
    color: var(--muted);
    font-size: 14px;
}

.hero-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    transform: translateY(-50%);
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.68);
}

.hero-arrow--prev {
    left: 20px;
}

.hero-arrow--next {
    right: 20px;
}

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

.hero-dots button {
    width: 18px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 36px;
    background: var(--amber);
}

.main-content {
    padding: 76px 0;
}

.section {
    margin-bottom: 86px;
}

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

.section-title {
    margin: 8px 0 0;
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: -0.03em;
}

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

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

.movie-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.48);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(245, 158, 11, 0.18);
}

.poster-wrap {
    position: relative;
    margin: 0;
    background: #0f172a;
    overflow: hidden;
}

.poster-wrap img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-badge,
.score-badge {
    position: absolute;
    top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.poster-badge {
    left: 12px;
    color: #fff;
    background: rgba(0, 0, 0, 0.52);
}

.score-badge {
    right: 12px;
    color: #111827;
    background: #fbbf24;
}

.movie-card__body {
    padding: 16px;
}

.movie-card h3 {
    margin: 0 0 9px;
    font-size: 17px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card p {
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-line,
.tag-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.meta-line {
    margin-bottom: 10px;
    color: var(--soft);
    font-size: 12px;
}

.tag-line span {
    padding: 4px 7px;
    border-radius: 999px;
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.1);
    font-size: 12px;
}

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

.category-card {
    display: grid;
    gap: 10px;
    min-height: 180px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(30, 41, 59, 0.6)),
        rgba(15, 23, 42, 0.72);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.44);
}

.category-card__icon {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.category-card__name {
    font-size: 20px;
    font-weight: 850;
}

.category-card__desc,
.category-card__sample {
    color: var(--muted);
    line-height: 1.65;
}

.category-card__sample {
    color: #fcd34d;
    font-size: 14px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 44px 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.58);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    border-color: rgba(245, 158, 11, 0.44);
}

.rank-number {
    color: #fbbf24;
    font-size: 20px;
    font-weight: 900;
}

.rank-item img {
    width: 58px;
    height: 82px;
    object-fit: cover;
    border-radius: 12px;
    background: #0f172a;
}

.rank-title {
    overflow: hidden;
    font-weight: 750;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-score {
    padding: 5px 9px;
    border-radius: 999px;
    color: #111827;
    background: #fbbf24;
    font-size: 13px;
    font-weight: 900;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.68);
    margin-bottom: 28px;
}

.search-panel input,
.search-panel select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    color: var(--text);
    background: rgba(2, 6, 23, 0.7);
    outline: none;
}

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

.page-hero {
    padding: 72px 0 38px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.15), transparent 30rem),
        rgba(2, 6, 23, 0.35);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    color: var(--soft);
    line-height: 1.85;
    font-size: 18px;
}

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

.breadcrumb a {
    color: #fbbf24;
}

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

.player-card,
.detail-card,
.side-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--panel);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.player-card {
    margin-bottom: 28px;
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.32), rgba(2, 6, 23, 0.74));
    cursor: pointer;
}

.play-overlay[hidden] {
    display: none;
}

.play-overlay__inner {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.play-overlay__icon {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #111827;
    background: #fbbf24;
    font-weight: 900;
}

.player-caption {
    padding: 22px;
}

.player-caption h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.player-caption p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.detail-card {
    padding: 26px;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.detail-card p {
    color: var(--soft);
    line-height: 1.9;
}

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

.info-item {
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.34);
}

.info-item span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 13px;
}

.info-item strong {
    display: block;
}

.side-card {
    padding: 18px;
}

.side-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 20px;
    background: #0f172a;
    margin-bottom: 18px;
}

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

.side-list a {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.32);
}

.side-list img {
    width: 54px;
    height: 76px;
    object-fit: cover;
    border-radius: 10px;
    background: #0f172a;
}

.side-list strong {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.side-list span {
    color: var(--muted);
    font-size: 13px;
}

.related-grid {
    margin-top: 26px;
}

.site-footer {
    margin-top: 76px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.96));
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
    padding: 44px 0;
}

.site-footer p,
.site-footer a {
    display: block;
    color: var(--muted);
    line-height: 1.8;
}

.site-footer a:hover {
    color: #fbbf24;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

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

.footer-bottom {
    padding: 18px 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
    font-size: 14px;
}

.empty-state {
    display: none;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    color: var(--muted);
    background: rgba(15, 23, 42, 0.58);
    text-align: center;
}

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

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-block;
    }

    .site-nav {
        position: fixed;
        inset: 72px 16px auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: rgba(2, 6, 23, 0.96);
        box-shadow: var(--shadow);
    }

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

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

    .hero-wrap {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 54px;
    }

    .hero-cover-card {
        width: min(260px, 70vw);
        justify-self: center;
        transform: none;
    }

    .hero-arrow {
        display: none;
    }

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

    .rank-panel,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 560px) {
    .site-header__inner {
        width: min(100% - 24px, 1180px);
    }

    .brand__text {
        font-size: 17px;
    }

    .container,
    .hero-wrap {
        width: min(100% - 24px, 1180px);
    }

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

    .movie-card__body {
        padding: 12px;
    }

    .movie-card p,
    .tag-line {
        display: none;
    }

    .rank-item {
        grid-template-columns: 34px 48px minmax(0, 1fr);
    }

    .rank-score {
        display: none;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}
