:root {
    --bg: #0d0f14;
    --surface: #141824;
    --surface-soft: #1d2332;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --line: rgba(255, 255, 255, 0.14);
    --gold: #f59e0b;
    --gold-deep: #d97706;
    --orange: #f97316;
    --pink: #ec4899;
    --blue: #3b82f6;
    --green: #22c55e;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    --radius: 24px;
}

* {
    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.22), transparent 30rem),
        linear-gradient(180deg, #fff7ed 0%, #f8fafc 36%, #ffffff 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.nav-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--gold), var(--orange), var(--pink));
    box-shadow: 0 14px 34px rgba(245, 158, 11, 0.28);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.nav-link,
.mobile-link {
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 14px;
    color: #4b5563;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 0;
    border-radius: 14px;
    background: #111827;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #fff;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 0 24px 18px;
}

.mobile-category-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-top: 10px;
}

.category-chip {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff7ed;
    color: #b45309;
    font-size: 13px;
}

.hero {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    color: #fff;
    background: #0f172a;
}

.hero-track {
    position: relative;
    min-height: 72vh;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.70) 44%, rgba(15, 23, 42, 0.20) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.92) 0%, transparent 36%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    min-height: 72vh;
    margin: 0 auto;
    padding: 90px 24px 54px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 360px;
    align-items: center;
    gap: 44px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #fbbf24;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

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

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-meta span,
.tag-row span,
.detail-tag-row span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    color: #92400e;
    background: #fffbeb;
    font-size: 12px;
    font-weight: 700;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.28);
    transition: 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(249, 115, 22, 0.36);
}

.btn.ghost {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.32);
    color: #fff;
    box-shadow: none;
}

.hero-panel {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    padding: 16px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.24);
}

.hero-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 20px;
}

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

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

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

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

.hero-dot {
    width: 36px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
}

.hero-dot.is-active {
    background: linear-gradient(135deg, #fbbf24, #fb923c);
}

.main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 58px 24px 88px;
}

.section {
    margin-top: 68px;
}

.section:first-child {
    margin-top: 0;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 42px);
    letter-spacing: -0.05em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-heading a {
    flex: 0 0 auto;
    padding: 10px 16px;
    border-radius: 999px;
    color: #b45309;
    background: #fffbeb;
    font-weight: 800;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 26px;
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

.search-panel input {
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 16px;
    outline: none;
    background: #fff;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.filter-btn {
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    color: #4b5563;
    background: #f3f4f6;
}

.filter-btn.is-active,
.filter-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--gold), var(--orange));
}

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

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

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.78), transparent 52%);
}

.play-dot {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    background: rgba(245, 158, 11, 0.92);
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.35);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    font-size: 12px;
}

.card-body {
    padding: 15px;
}

.card-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9ca3af;
    font-size: 12px;
}

.card-body h3 {
    margin: 8px 0 8px;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.card-body p {
    min-height: 66px;
    margin: 0;
    color: #6b7280;
    line-height: 1.65;
    font-size: 14px;
}

.tag-row,
.detail-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 13px;
}

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

.category-tile {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 24px;
    color: #fff;
    background: #111827;
    box-shadow: var(--shadow);
}

.category-tile img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.12)),
        linear-gradient(135deg, rgba(245, 158, 11, 0.36), transparent);
}

.category-tile strong,
.category-tile em {
    position: relative;
    z-index: 2;
    display: block;
    padding: 0 18px;
}

.category-tile strong {
    padding-top: 120px;
    font-size: 24px;
    letter-spacing: -0.04em;
}

.category-tile em {
    margin-top: 8px;
    color: #e5e7eb;
    font-style: normal;
    line-height: 1.55;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 64px 92px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    font-weight: 900;
}

.rank-cover {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
}

.rank-cover img {
    height: 100%;
    object-fit: cover;
}

.rank-info h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-info p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.rank-heat {
    color: #b45309;
    font-weight: 900;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 24px 58px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 20%, rgba(245, 158, 11, 0.40), transparent 24rem),
        linear-gradient(135deg, #111827 0%, #1f2937 48%, #7c2d12 100%);
}

.page-hero-inner {
    max-width: 1240px;
    margin: 0 auto;
}

.page-hero h1 {
    margin: 0;
    max-width: 980px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 780px;
    margin: 18px 0 0;
    color: #e5e7eb;
    font-size: 17px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #fcd34d;
    font-size: 14px;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #030712;
    box-shadow: 0 32px 70px rgba(15, 23, 42, 0.28);
    aspect-ratio: 16 / 9;
}

.player-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #030712;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background:
        linear-gradient(0deg, rgba(3, 7, 18, 0.84), rgba(3, 7, 18, 0.12)),
        radial-gradient(circle at center, rgba(245, 158, 11, 0.34), transparent 18rem);
    cursor: pointer;
}

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

.player-overlay span {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    box-shadow: 0 22px 46px rgba(245, 158, 11, 0.35);
    font-size: 28px;
}

.player-overlay em {
    display: block;
    margin-top: 112px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.detail-card,
.side-card {
    padding: 24px;
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--shadow);
}

.detail-title {
    margin: 22px 0 10px;
    font-size: clamp(30px, 5vw, 52px);
    letter-spacing: -0.06em;
    line-height: 1.08;
}

.detail-lead {
    margin: 0 0 18px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.85;
}

.prose h2 {
    margin: 26px 0 10px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.prose p {
    margin: 0 0 14px;
    color: #4b5563;
    line-height: 1.9;
}

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

.side-poster {
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 3 / 4;
    margin-bottom: 18px;
}

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

.side-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 10px 12px;
    margin: 0;
    color: #4b5563;
}

.side-card dt {
    color: #9ca3af;
}

.side-card dd {
    margin: 0;
}

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

.empty-tip {
    display: none;
    padding: 24px;
    border-radius: 22px;
    color: #92400e;
    background: #fffbeb;
    font-weight: 800;
}

.site-footer {
    color: #d1d5db;
    background: #0f172a;
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-links a {
    color: #fbbf24;
}

.footer-inner p {
    margin: 0;
    color: #9ca3af;
}

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

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

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

    .side-card {
        position: static;
    }
}

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

    .menu-toggle {
        display: block;
    }

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

    .mobile-link {
        display: block;
        margin-bottom: 8px;
        background: #fff;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 62px;
    }

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

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

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

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

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

    .rank-heat {
        grid-column: 3;
    }
}

@media (max-width: 520px) {
    .nav-shell,
    .main,
    .page-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero {
        min-height: 82vh;
    }

    .hero-track,
    .hero-content {
        min-height: 82vh;
    }

    .movie-grid,
    .category-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        display: block;
    }

    .section-heading a {
        display: inline-flex;
        margin-top: 14px;
    }

    .card-body p {
        min-height: auto;
    }
}

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

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

.category-overview-card p {
    margin: 0 0 16px;
    color: #6b7280;
    line-height: 1.75;
}

.category-samples {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.category-samples a {
    color: #b45309;
    font-weight: 700;
}

@media (max-width: 960px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }
}
