:root {
    --bg: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --blue: #1d4ed8;
    --cyan: #0891b2;
    --emerald: #059669;
    --slate: #0f172a;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, #0f172a, #1e293b, #0f172a);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.24);
}

.nav-shell {
    width: min(1280px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #fb923c, #facc15);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    box-shadow: 0 12px 22px rgba(249, 115, 22, 0.35);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
}

.desktop-nav a,
.mobile-panel a {
    padding: 9px 13px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 700;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover {
    color: #ffffff;
    background: rgba(249, 115, 22, 0.92);
}

.nav-search {
    position: relative;
    flex: 0 0 220px;
}

.nav-search input {
    width: 100%;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    outline: none;
    padding: 0 16px;
}

.nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.68);
}

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 340px;
    max-height: 420px;
    overflow: auto;
    background: #ffffff;
    color: var(--text);
    border-radius: 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    display: none;
    padding: 8px;
}

.search-results.is-open {
    display: block;
}

.search-results a {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 12px;
}

.search-results a:hover {
    background: #fff7ed;
}

.search-results strong {
    font-size: 14px;
}

.search-results span {
    color: var(--muted);
    font-size: 12px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
}

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

.mobile-panel {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mobile-panel.is-open {
    display: grid;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 52%, #0f172a 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image: radial-gradient(circle at 18% 18%, rgba(251, 146, 60, 0.44), transparent 28%), radial-gradient(circle at 82% 12%, rgba(6, 182, 212, 0.32), transparent 30%), linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: auto, auto, 60px 60px, 60px 60px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    opacity: 0.38;
    filter: saturate(1.15);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(30, 64, 175, 0.72), rgba(15, 23, 42, 0.74));
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    min-height: 640px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
    gap: 42px;
    align-items: center;
    padding: 70px 0 86px;
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.16);
    border: 1px solid rgba(251, 146, 60, 0.28);
    font-weight: 800;
    margin-bottom: 22px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 70px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.hero h1 span {
    display: block;
    margin-top: 12px;
    background: linear-gradient(90deg, #fb923c, #facc15);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc {
    margin: 24px 0 0;
    max-width: 720px;
    color: #dbeafe;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.75;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 0;
}

.hero-tags a,
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

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

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 16px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
    background: linear-gradient(90deg, #f97316, #ea580c);
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.33);
}

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

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
}

.hero-poster-card {
    position: relative;
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.hero-poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.hero-poster-card strong {
    font-size: 24px;
    line-height: 1.25;
}

.hero-poster-card p {
    color: #dbeafe;
    line-height: 1.7;
}

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

.hero-dots button {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    padding: 0;
}

.hero-dots button.is-active {
    background: #fb923c;
}

.stats-band {
    position: relative;
    z-index: 3;
    width: min(1280px, calc(100% - 32px));
    margin: -48px auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.stat-card {
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.stat-card strong {
    display: block;
    font-size: 30px;
    color: var(--orange);
}

.stat-card span {
    color: var(--muted);
    font-weight: 700;
}

.main-section {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 70px 0 0;
}

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

.section-title h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
    font-weight: 950;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title h2::before {
    content: "";
    width: 8px;
    height: 36px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f97316, #ea580c);
}

.section-title.cyan h2::before {
    background: linear-gradient(180deg, #06b6d4, #0891b2);
}

.section-title.emerald h2::before {
    background: linear-gradient(180deg, #10b981, #059669);
}

.section-title.blue h2::before {
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
}

.section-title p {
    margin: 7px 0 0;
    color: var(--muted);
}

.section-more {
    flex: 0 0 auto;
    color: var(--orange-dark);
    font-weight: 900;
}

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.09);
    border: 1px solid rgba(226, 232, 240, 0.85);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 55px rgba(15, 23, 42, 0.16);
}

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

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

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

.poster-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.74));
}

.play-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 54px;
    height: 54px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.92);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 16px 32px rgba(249, 115, 22, 0.32);
}

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

.year-badge,
.rank-badge,
.type-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    padding: 6px 9px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.year-badge {
    left: 10px;
    bottom: 10px;
    background: rgba(249, 115, 22, 0.94);
}

.rank-badge {
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #f97316, #facc15);
}

.movie-meta {
    display: grid;
    gap: 7px;
    padding: 14px;
}

.movie-meta strong {
    line-height: 1.35;
    font-size: 15px;
    font-weight: 900;
}

.movie-meta em {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
}

.movie-meta small {
    color: #475569;
    font-size: 12px;
    line-height: 1.55;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    border-radius: 26px;
    padding: 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
    box-shadow: var(--shadow);
}

.category-card:nth-child(3n + 1) {
    background: linear-gradient(135deg, #c2410c, #7c2d12);
}

.category-card:nth-child(3n + 2) {
    background: linear-gradient(135deg, #0e7490, #164e63);
}

.category-card strong {
    position: relative;
    z-index: 2;
    font-size: 24px;
    font-weight: 950;
}

.category-card p {
    position: relative;
    z-index: 2;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.category-card span {
    position: relative;
    z-index: 2;
    display: inline-flex;
    margin-top: 18px;
    font-weight: 900;
}

.category-card::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -44px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.page-hero {
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
    color: #ffffff;
    padding: 72px 0;
}

.page-hero-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.page-hero h1 {
    margin: 0;
    max-width: 880px;
    font-size: clamp(34px, 4vw, 56px);
    font-weight: 950;
    line-height: 1.15;
}

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

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

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    margin-bottom: 26px;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid var(--line);
    outline: none;
    padding: 0 14px;
    background: #f8fafc;
}

.detail-layout {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
}

.player-card,
.detail-card,
.side-card {
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.92);
    overflow: hidden;
}

.player-box {
    position: relative;
    background: #020617;
    aspect-ratio: 16 / 9;
}

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.play-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 0;
    padding: 0;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.2);
    cursor: pointer;
}

.play-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
}

.play-cover span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 24px 42px rgba(249, 115, 22, 0.42);
    font-size: 28px;
}

.play-cover.is-hidden {
    display: none;
    pointer-events: none;
}

.player-info,
.detail-card,
.side-card {
    padding: 24px;
}

.player-info h2,
.detail-card h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 950;
}

.player-info p,
.detail-card p {
    color: #334155;
    line-height: 1.9;
}

.meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.meta-pills span,
.tag-list span {
    border-radius: 999px;
    padding: 7px 11px;
    background: #fff7ed;
    color: #c2410c;
    font-weight: 800;
    font-size: 13px;
}

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

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

.side-list a {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid var(--line);
}

.side-list img {
    width: 74px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
}

.side-list strong {
    display: block;
    font-size: 14px;
    line-height: 1.35;
}

.side-list span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.site-footer {
    margin-top: 80px;
    padding: 44px 0;
    background: #0f172a;
    color: #cbd5e1;
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.footer-logo {
    color: #fb923c;
    font-size: 22px;
    font-weight: 950;
}

.footer-inner p {
    max-width: 680px;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #ffffff;
    font-weight: 800;
}

.footer-inner small {
    color: #94a3b8;
}

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

    .menu-toggle {
        display: block;
    }

    .nav-search {
        margin-left: auto;
    }

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

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

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

@media (max-width: 760px) {
    .nav-shell {
        width: min(100% - 24px, 1280px);
        height: auto;
        min-height: 64px;
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .brand {
        font-size: 18px;
    }

    .nav-search {
        order: 3;
        flex: 1 0 100%;
    }

    .search-results {
        width: 100%;
        left: 0;
        right: auto;
    }

    .mobile-panel {
        width: min(100% - 24px, 1280px);
    }

    .hero,
    .hero-inner {
        min-height: auto;
    }

    .hero-inner {
        padding: 44px 0 70px;
        gap: 26px;
    }

    .hero-poster-card {
        border-radius: 22px;
        padding: 12px;
    }

    .stats-band {
        margin-top: -28px;
        grid-template-columns: 1fr;
    }

    .main-section {
        padding-top: 54px;
    }

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

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

    .category-showcase {
        grid-template-columns: 1fr;
    }

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

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