:root {
    --bg: #0f172a;
    --bg-soft: #111827;
    --paper: #ffffff;
    --muted: #64748b;
    --text: #0f172a;
    --orange: #f97316;
    --amber: #fbbf24;
    --cyan: #06b6d4;
    --emerald: #10b981;
    --line: rgba(148, 163, 184, 0.26);
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 42%, #fff7ed 100%);
    line-height: 1.65;
}
a {
    color: inherit;
    text-decoration: none;
}
img, video {
    display: block;
    max-width: 100%;
}
.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff;
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 52%, #0f172a 100%);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 20px;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.logo-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.main-nav a {
    padding: 9px 13px;
    border-radius: 12px;
    color: #e2e8f0;
    font-size: 14px;
    transition: 0.25s ease;
}
.main-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
.menu-toggle {
    display: none;
    border: 0;
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 10px 12px;
}
.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    color: #fff;
    background: #020617;
}
.hero-slide {
    display: none;
    position: relative;
    min-height: 640px;
    padding: 74px 0 90px;
}
.hero-slide.is-active {
    display: block;
}
.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.42;
    filter: saturate(1.12);
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 18%, rgba(249, 115, 22, 0.34), transparent 34%),
        radial-gradient(circle at 24% 74%, rgba(6, 182, 212, 0.24), transparent 32%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.82) 46%, rgba(15, 23, 42, 0.38) 100%);
}
.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) 360px;
    align-items: center;
    gap: 52px;
}
.eyebrow {
    margin: 0 0 14px;
    color: var(--amber);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.hero-text h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 66px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}
.hero-text p {
    max-width: 720px;
    margin: 22px 0 0;
    color: #dbeafe;
    font-size: 18px;
}
.hero-meta, .meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}
.hero-meta span, .meta-row span {
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255,255,255,0.08);
    color: #f8fafc;
    font-size: 13px;
}
.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid transparent;
    transition: 0.25s ease;
}
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 18px 30px rgba(249, 115, 22, 0.28);
}
.btn-secondary {
    color: #fff;
    border-color: rgba(255,255,255,0.24);
    background: rgba(255,255,255,0.08);
}
.btn:hover {
    transform: translateY(-2px);
}
.hero-poster {
    position: relative;
    border-radius: 30px;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}
.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
}
.hero-tools {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(1180px, calc(100% - 32px));
}
.hero-dots {
    display: flex;
    gap: 8px;
}
.hero-dot {
    width: 36px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.28);
}
.hero-dot.is-active {
    background: var(--amber);
}
.hero-arrows {
    display: flex;
    gap: 10px;
}
.hero-arrow {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.section {
    padding: 62px 0;
}
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}
.section-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.18;
    font-weight: 900;
}
.section-desc {
    margin: 8px 0 0;
    color: var(--muted);
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.category-card {
    position: relative;
    min-height: 156px;
    border-radius: 24px;
    overflow: hidden;
    padding: 22px;
    color: #fff;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    box-shadow: var(--shadow);
}
.category-card:before {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    right: -42px;
    top: -42px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251,191,36,0.45), transparent 70%);
}
.category-card h3,
.movie-card h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
}
.category-card p {
    position: relative;
    margin: 12px 0 0;
    color: #dbeafe;
    font-size: 14px;
}
.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 12px;
    padding: 16px;
    margin-bottom: 28px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 22px;
    background: rgba(255,255,255,0.72);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}
.filter-panel input,
.filter-panel select,
.search-bar input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.42);
    border-radius: 15px;
    padding: 12px 14px;
    outline: none;
    background: #fff;
}
.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 22px;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.10);
    transition: 0.25s ease;
}
.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 55px rgba(15, 23, 42, 0.18);
}
.movie-thumb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #334155);
}
.movie-thumb img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: 0.35s ease;
}
.movie-card:hover .movie-thumb img {
    transform: scale(1.045);
}
.movie-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    color: #fff;
    background: rgba(15,23,42,0.75);
    font-size: 12px;
    font-weight: 800;
}
.movie-body {
    padding: 16px;
}
.movie-body p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
}
.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    color: #475569;
    font-size: 12px;
}
.movie-meta span {
    border-radius: 999px;
    padding: 4px 8px;
    background: #f1f5f9;
}
.rank-list {
    display: grid;
    gap: 14px;
}
.rank-item {
    display: grid;
    grid-template-columns: 54px 84px 1fr auto;
    gap: 16px;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 18px;
    padding: 12px;
    background: rgba(255,255,255,0.88);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}
.rank-num {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--amber));
}
.rank-item img {
    width: 84px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
}
.rank-item h3 {
    margin: 0;
}
.rank-item p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}
.page-hero,
.detail-hero {
    color: #fff;
    background:
        radial-gradient(circle at 20% 18%, rgba(249,115,22,0.30), transparent 28%),
        radial-gradient(circle at 86% 10%, rgba(6,182,212,0.24), transparent 30%),
        linear-gradient(135deg, #0f172a, #1e293b 56%, #020617);
}
.page-hero {
    padding: 86px 0 70px;
}
.page-hero p {
    max-width: 760px;
    color: #dbeafe;
}
.detail-hero {
    padding: 34px 0 68px;
}
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 24px;
    color: #cbd5e1;
    font-size: 14px;
}
.breadcrumbs a:hover {
    color: var(--amber);
}
.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 36px;
    align-items: center;
}
.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}
.movie-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}
.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: #fff;
    background: #000;
}
.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
}
.player-cover.is-hidden {
    display: none;
}
.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 20px 46px rgba(249,115,22,0.42);
    font-size: 32px;
}
.detail-info .lead {
    margin: 20px 0 0;
    color: #dbeafe;
    font-size: 18px;
}
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}
.tag-cloud span {
    border-radius: 999px;
    padding: 7px 12px;
    color: #fff;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.16);
    font-size: 13px;
}
.detail-copy {
    max-width: 920px;
}
.detail-copy h2 {
    margin: 34px 0 14px;
    font-size: 26px;
    font-weight: 900;
}
.detail-copy p {
    margin: 0;
    color: #334155;
    font-size: 17px;
}
.compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.site-footer {
    color: #cbd5e1;
    background: linear-gradient(180deg, #0f172a, #020617);
    padding: 46px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr repeat(3, 1fr);
    gap: 26px;
}
.footer-grid h3 {
    margin: 0 0 12px;
    color: #fff;
}
.footer-grid p,
.footer-grid a {
    color: #cbd5e1;
    font-size: 14px;
}
.footer-grid a:hover {
    color: var(--amber);
}
.footer-links {
    display: grid;
    gap: 8px;
}
@media (max-width: 980px) {
    .main-nav {
        display: none;
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        padding: 14px;
        border-radius: 18px;
        background: #111827;
        box-shadow: var(--shadow);
    }
    .main-nav.is-open {
        display: grid;
    }
    .menu-toggle {
        display: inline-flex;
    }
    .hero-content,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-poster {
        max-width: 320px;
    }
    .movie-grid,
    .category-grid,
    .compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .filter-panel {
        grid-template-columns: 1fr;
    }
    .rank-item {
        grid-template-columns: 44px 70px 1fr;
    }
    .rank-item .btn {
        grid-column: 2 / -1;
        justify-self: start;
    }
}
@media (max-width: 620px) {
    .container {
        width: min(100% - 22px, 1180px);
    }
    .hero-slide,
    .hero-carousel {
        min-height: 720px;
    }
    .hero-slide {
        padding-top: 54px;
    }
    .hero-content {
        gap: 30px;
    }
    .hero-tools {
        bottom: 16px;
    }
    .movie-grid,
    .category-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }
    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .rank-item {
        grid-template-columns: 38px 62px 1fr;
        gap: 10px;
    }
}
