:root {
    color-scheme: light;
    --blue-950: #10224f;
    --blue-900: #153d85;
    --blue-800: #1d4fa3;
    --cyan-500: #06b6d4;
    --emerald-500: #10b981;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --amber-300: #fcd34d;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-100: #f1f5f9;
    --gray-50: #f8fafc;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-soft: 0 20px 50px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 28px rgba(15, 23, 42, 0.10);
    --radius-lg: 22px;
    --radius-md: 16px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--gray-50);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 35, 82, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--white);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange-500), var(--amber-300));
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
}

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

.nav-link,
.mobile-link {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--white);
    border-radius: 999px;
}

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

.mobile-nav.open {
    display: grid;
    gap: 8px;
}

.mobile-link {
    display: block;
    padding: 12px 16px;
}

.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.28), transparent 26%), linear-gradient(135deg, var(--blue-950), var(--blue-900) 48%, #082f49);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.55), rgba(15, 23, 42, 0.10));
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    opacity: 0.28;
    background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 58px 58px;
}

.hero-container {
    position: relative;
    z-index: 1;
    min-height: 650px;
    padding: 84px 0 92px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
    align-items: center;
    gap: 56px;
}

.hero-slide.active {
    display: grid;
    animation: fadeUp 0.55s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 14px;
    margin-bottom: 20px;
    color: #ffe7d1;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(14px);
}

.hero h1 {
    margin: 0 0 14px;
    max-width: 820px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.hero h2 {
    margin: 0 0 18px;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.18;
    color: var(--amber-300);
}

.hero p {
    max-width: 760px;
    margin: 0 0 24px;
    color: rgba(239, 246, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.tag-row span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 700;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    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: var(--white);
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    box-shadow: 0 18px 38px rgba(249, 115, 22, 0.35);
}

.btn-ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
    transform: rotate(2deg);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.64));
}

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

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-poster span {
    position: absolute;
    left: 24px;
    bottom: 24px;
    z-index: 1;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--orange-500);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.45);
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 36px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 42px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.30);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 66px;
    background: var(--orange-500);
}

.section {
    padding: 64px 0;
}

.section-white {
    background: var(--white);
}

.section-orange {
    background: linear-gradient(90deg, #fff7ed, #fffbeb);
}

.section-blue {
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
}

.section-slate {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

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

.section-head h2 {
    margin: 0 0 8px;
    color: var(--gray-900);
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
}

.section-head p {
    margin: 0;
    color: var(--gray-500);
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--orange-600);
    font-weight: 800;
}

.section-more span {
    font-size: 24px;
    line-height: 1;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    content-visibility: auto;
    contain-intrinsic-size: 360px 260px;
}

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

.movie-card[hidden] {
    display: none;
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--slate-800);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.72));
}

.play-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--white);
    background: var(--orange-500);
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-dot {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.rank-badge,
.year-pill {
    position: absolute;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
}

.rank-badge {
    top: 10px;
    left: 10px;
    min-width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--orange-500), var(--amber-300));
}

.year-pill {
    right: 10px;
    bottom: 10px;
    padding: 4px 9px;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(10px);
}

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

.movie-title {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    color: var(--gray-900);
    font-weight: 900;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-title:hover {
    color: var(--orange-600);
}

.movie-meta {
    margin: 6px 0 8px;
    color: var(--gray-500);
    font-size: 12px;
}

.movie-meta span + span::before {
    content: "·";
    margin-right: 8px;
    color: #cbd5e1;
}

.movie-card p {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--gray-500);
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row span {
    min-height: 24px;
    color: #0f766e;
    background: #ccfbf1;
    font-size: 12px;
}

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

.category-chip,
.category-card {
    display: block;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chip:hover,
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.category-chip strong,
.category-card h2 {
    display: block;
    margin: 0 0 8px;
    color: var(--gray-900);
    font-size: 22px;
}

.category-chip span,
.category-card p {
    color: var(--gray-500);
}

.page-hero {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-950), var(--blue-800));
    padding: 56px 0;
}

.page-hero h1 {
    max-width: 880px;
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.12;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: #dbeafe;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.breadcrumb a:hover {
    color: var(--white);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px 160px;
    gap: 14px;
    padding: 18px;
    margin-bottom: 24px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--gray-900);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: var(--white);
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--cyan-500);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.13);
}

.rank-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

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

.rank-item {
    display: grid;
    grid-template-columns: auto 82px 1fr;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-card);
}

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

.rank-item strong,
.rank-item em {
    display: block;
}

.rank-item strong {
    margin-bottom: 4px;
    font-size: 15px;
}

.rank-item em {
    color: var(--gray-500);
    font-size: 12px;
    font-style: normal;
}

.list-rank {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    color: var(--white);
    background: var(--orange-500);
    font-weight: 900;
}

.detail-page {
    background: linear-gradient(135deg, var(--slate-950), var(--slate-900));
    color: var(--white);
}

.detail-shell {
    padding: 34px 0 70px;
}

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

.player-card,
.detail-card,
.side-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(30, 41, 59, 0.92);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.30);
}

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

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

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.26), rgba(2, 6, 23, 0.70));
    cursor: pointer;
}

.play-overlay span {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 50%;
    font-size: 30px;
    background: var(--orange-500);
    box-shadow: 0 18px 42px rgba(249, 115, 22, 0.42);
    transition: transform 0.2s ease;
}

.play-overlay:hover span {
    transform: scale(1.08);
}

.video-wrap.is-playing .play-overlay {
    display: none;
}

.detail-card {
    padding: 28px;
    margin-top: 22px;
}

.detail-card h1 {
    margin: 0 0 16px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.16;
}

.detail-meta {
    margin-bottom: 20px;
}

.detail-meta span {
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.10);
}

.detail-card .lead {
    margin: 0 0 22px;
    color: #67e8f9;
    font-size: 20px;
}

.detail-card h2,
.detail-card h3,
.side-card h2 {
    margin: 0 0 14px;
    color: var(--white);
}

.detail-card p {
    color: #cbd5e1;
    font-size: 16px;
}

.review-box {
    margin-top: 22px;
    padding: 22px;
    color: #e2e8f0;
    border-left: 4px solid var(--orange-500);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.66);
}

.side-card {
    padding: 18px;
}

.side-poster {
    overflow: hidden;
    margin-bottom: 18px;
    border-radius: 18px;
}

.side-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

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

.related-list .rank-item {
    grid-template-columns: 82px 1fr;
    color: var(--white);
    background: rgba(15, 23, 42, 0.55);
    box-shadow: none;
}

.related-list .rank-item em {
    color: #94a3b8;
}

.site-footer {
    color: #cbd5e1;
    background: var(--slate-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 30px;
    padding: 44px 0;
}

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

.site-footer h2 {
    margin: 0 0 12px;
    color: var(--white);
    font-size: 18px;
}

.site-footer p {
    margin: 0;
    max-width: 460px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

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

.footer-links a:hover {
    color: var(--orange-500);
}

.footer-bottom {
    padding: 16px;
    text-align: center;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.empty-state {
    display: none;
    padding: 40px;
    text-align: center;
    color: var(--gray-500);
    border-radius: var(--radius-lg);
    background: var(--white);
}

.empty-state.show {
    display: block;
}

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

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

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

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

    .nav-toggle {
        display: block;
    }

    .hero-container {
        min-height: auto;
        padding: 52px 0 76px;
    }

    .hero-slide,
    .hero-slide.active {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero-poster {
        max-width: 360px;
        margin: 0 auto;
        transform: none;
    }

    .hero-dots {
        left: 0;
        right: 0;
        justify-content: center;
    }

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

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

    .filter-panel .search-box {
        grid-column: 1 / -1;
    }

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

@media (max-width: 620px) {
    .container {
        width: min(100% - 24px, var(--container));
    }

    .brand {
        font-size: 18px;
    }

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

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

    .category-grid,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 46px 0;
    }

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

    .detail-card,
    .side-card {
        padding: 18px;
    }

    .rank-item {
        grid-template-columns: auto 72px 1fr;
        gap: 10px;
    }

    .related-list .rank-item {
        grid-template-columns: 72px 1fr;
    }

    .rank-item img {
        width: 72px;
        height: 54px;
    }
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 60px;
    margin: 16px 0 20px;
}

.mini-links a {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    color: #0f766e;
    border-radius: 999px;
    background: #ccfbf1;
    font-size: 13px;
    font-weight: 700;
}
