:root {
    color-scheme: dark;
    --bg-deep: #020617;
    --bg-main: #0f172a;
    --bg-soft: #1e293b;
    --bg-card: rgba(30, 41, 59, 0.72);
    --bg-card-solid: #1e293b;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #64748b;
    --amber: #f59e0b;
    --orange: #ea580c;
    --blue: #38bdf8;
    --green: #22c55e;
    --radius-xl: 24px;
    --radius-lg: 18px;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.16), transparent 34rem),
        radial-gradient(circle at 80% 18%, rgba(234, 88, 12, 0.14), transparent 32rem),
        linear-gradient(180deg, var(--bg-deep), #0f172a 48%, var(--bg-deep));
    color: var(--text);
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Microsoft YaHei",
        "PingFang SC",
        sans-serif;
}

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: 60;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
    white-space: nowrap;
    background: linear-gradient(90deg, #fbbf24, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    font-size: 15px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.28);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 650;
}

.desktop-nav a,
.mobile-nav a {
    transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: #fbbf24;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.78);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: #e2e8f0;
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    color: #cbd5e1;
    border-radius: 12px;
}

.mobile-nav.is-open {
    display: block;
}

.hero {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.hero-slider,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transform: scale(1.015);
    transition: opacity 0.72s ease, transform 0.72s ease;
    pointer-events: none;
}

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

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.74) 42%, rgba(15, 23, 42, 0.36) 72%, rgba(15, 23, 42, 0.82) 100%),
        linear-gradient(0deg, #020617 0%, transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 3;
    width: min(1200px, calc(100% - 32px));
    min-height: 72vh;
    margin: 0 auto;
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.58fr);
    gap: 48px;
    padding: 72px 0;
}

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

.hero-kicker,
.section-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fbbf24;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 18px 0 18px;
    font-size: clamp(42px, 7vw, 84px);
    line-height: 0.98;
    letter-spacing: -0.07em;
    font-weight: 950;
    background: linear-gradient(90deg, #fbbf24, #fb923c, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    max-width: 680px;
    margin: 0 0 20px;
    color: #e2e8f0;
    font-size: clamp(18px, 2.2vw, 25px);
    line-height: 1.58;
    font-weight: 600;
}

.hero-desc {
    max-width: 660px;
    margin: 0 0 28px;
    color: #94a3b8;
    line-height: 1.88;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.primary-button,
.secondary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 850;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 16px 32px rgba(249, 115, 22, 0.28);
}

.secondary-button {
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(251, 191, 36, 0.28);
}

.ghost-button {
    color: #f8fafc;
    background: rgba(30, 41, 59, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
}

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

.hero-tags span,
.tag-row span,
.detail-tags span,
.rank-badge,
.meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.74);
    border: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 12px;
    font-weight: 700;
}

.hero-panel {
    position: relative;
    z-index: 4;
    padding: 18px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(251, 191, 36, 0.24);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.66), rgba(15, 23, 42, 0.38));
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero-panel img {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
    object-fit: cover;
}

.hero-panel h2 {
    margin: 16px 0 8px;
    font-size: 22px;
}

.hero-panel p {
    color: #cbd5e1;
    line-height: 1.7;
    margin: 0 0 14px;
}

.hero-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 28px;
    width: min(1200px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

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

.hero-dot {
    width: 34px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(226, 232, 240, 0.28);
    cursor: pointer;
}

.hero-dot.is-active {
    background: linear-gradient(90deg, var(--amber), var(--orange));
}

.hero-arrows {
    display: flex;
    gap: 10px;
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(251, 191, 36, 0.24);
    border-radius: 14px;
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.72);
    cursor: pointer;
}

.main-content,
.page-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0;
}

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

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

.page-hero p {
    max-width: 760px;
    color: #94a3b8;
    font-size: 18px;
    line-height: 1.82;
}

.content-section {
    margin: 0 0 64px;
}

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

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

.section-heading p {
    margin: 8px 0 0;
    max-width: 620px;
    color: #94a3b8;
    line-height: 1.7;
}

.section-more {
    flex: 0 0 auto;
    color: #fbbf24;
    font-weight: 800;
}

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

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

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

.movie-card-link {
    height: 100%;
    display: block;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
    transform: translateY(-6px) scale(1.012);
    border-color: rgba(251, 191, 36, 0.32);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.36);
}

.movie-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f172a;
}

.movie-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
}

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

.movie-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.76), transparent 58%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card-link:hover .movie-thumb::after {
    opacity: 1;
}

.play-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.62);
    border: 1px solid rgba(251, 191, 36, 0.34);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

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

.movie-card-body h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.22s ease;
}

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

.movie-card-body p {
    min-height: 48px;
    margin: 0 0 14px;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

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

.category-card {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(234, 88, 12, 0.05)),
        rgba(30, 41, 59, 0.72);
    border: 1px solid rgba(251, 191, 36, 0.16);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.38);
}

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

.category-card p {
    margin: 0;
    color: #94a3b8;
    line-height: 1.72;
}

.category-card span {
    margin-top: 22px;
    color: #fbbf24;
    font-weight: 850;
}

.tool-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin: 0 0 28px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.search-input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    color: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    outline: none;
    background: rgba(30, 41, 59, 0.88);
}

.search-input:focus {
    border-color: rgba(251, 191, 36, 0.72);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.12);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.filter-buttons button {
    min-height: 40px;
    padding: 0 14px;
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.68);
    cursor: pointer;
}

.filter-buttons button.is-active {
    color: #ffffff;
    border-color: rgba(251, 191, 36, 0.48);
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.ranking-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-item {
    display: grid;
    grid-template-columns: 74px 132px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.13);
    box-shadow: var(--shadow-soft);
}

.ranking-number {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #ffffff;
    font-weight: 950;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.ranking-poster {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 16px;
    background: #0f172a;
}

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

.ranking-info h2,
.ranking-info h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.ranking-info p {
    margin: 0;
    color: #94a3b8;
    line-height: 1.66;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 28px 0;
    color: #94a3b8;
    font-size: 14px;
}

.breadcrumb a {
    color: #fbbf24;
}

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

.detail-stack {
    display: grid;
    gap: 24px;
}

.player-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: #000000;
    border: 1px solid rgba(251, 191, 36, 0.18);
    box-shadow: var(--shadow);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    gap: 14px;
    padding: 24px;
    color: #ffffff;
    text-align: center;
    border: 0;
    background:
        radial-gradient(circle at center, rgba(245, 158, 11, 0.16), transparent 22rem),
        linear-gradient(0deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.18));
    cursor: pointer;
}

.play-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.play-circle {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 32px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 22px 42px rgba(249, 115, 22, 0.34);
}

.play-title {
    max-width: 680px;
    color: #f8fafc;
    font-size: clamp(24px, 4vw, 40px);
    line-height: 1.2;
    font-weight: 950;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.58);
}

.detail-card,
.side-card,
.review-card {
    padding: 24px;
    border-radius: 24px;
    background: rgba(30, 41, 59, 0.66);
    border: 1px solid rgba(148, 163, 184, 0.13);
    box-shadow: var(--shadow-soft);
}

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

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

.detail-card p,
.review-card p {
    color: #cbd5e1;
    line-height: 1.92;
    margin: 0 0 18px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.side-card {
    position: sticky;
    top: 96px;
}

.side-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 18px;
}

.info-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.info-list dt {
    color: #94a3b8;
}

.info-list dd {
    margin: 0;
    color: #ffffff;
    text-align: right;
    font-weight: 800;
}

.related-section {
    margin-top: 42px;
}

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

.empty-state {
    display: none;
    padding: 48px 20px;
    color: #94a3b8;
    text-align: center;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.13);
}

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

.site-footer {
    margin-top: 44px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.98));
}

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

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

.site-footer p {
    margin: 0;
    max-width: 520px;
    color: #94a3b8;
    line-height: 1.76;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.site-footer a {
    color: #94a3b8;
}

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

.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: #64748b;
}

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

    .menu-toggle {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-panel {
        max-width: 520px;
    }

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

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

    .side-card {
        position: static;
    }
}

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

    .site-logo {
        font-size: 20px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .hero {
        min-height: 78vh;
    }

    .hero-content {
        min-height: 78vh;
        padding: 56px 0 88px;
    }

    .hero-panel {
        display: none;
    }

    .hero-controls {
        bottom: 20px;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
    }

    .main-content,
    .page-shell {
        padding: 38px 0;
    }

    .section-heading,
    .tool-panel {
        grid-template-columns: 1fr;
        display: grid;
        align-items: start;
    }

    .filter-buttons {
        justify-content: flex-start;
    }

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

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

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

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

    .ranking-item {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .ranking-poster,
    .ranking-action {
        display: none;
    }

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

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

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

    .primary-button,
    .secondary-button,
    .ghost-button {
        width: 100%;
    }
}
