:root {
    color-scheme: dark;
    --page-bg: #020617;
    --panel: rgba(15, 23, 42, 0.72);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --panel-soft: rgba(30, 41, 59, 0.72);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --brand: #0ea5e9;
    --brand-deep: #2563eb;
    --gold: #f59e0b;
    --danger: #ef4444;
    --radius: 18px;
    --shadow: 0 24px 70px rgba(2, 6, 23, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 32rem),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(20px);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    box-shadow: 0 14px 36px rgba(14, 165, 233, 0.35);
    transition: transform 0.25s ease;
}

.logo:hover .logo-mark {
    transform: scale(1.06) rotate(-2deg);
}

.logo-title {
    display: block;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: transparent;
    background: linear-gradient(90deg, #e0f2fe, #93c5fd);
    -webkit-background-clip: text;
    background-clip: text;
}

.logo-subtitle {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #94a3b8;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 10px 13px;
    border-radius: 999px;
    color: #dbeafe;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.14);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    color: #e0f2fe;
    background: rgba(15, 23, 42, 0.6);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 0 0 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.mobile-nav.open {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mobile-nav .nav-link {
    text-align: center;
    background: rgba(15, 23, 42, 0.72);
}

.hero {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: #020617;
}

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

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.76) 38%, rgba(2, 6, 23, 0.28) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.58) 42%, rgba(2, 6, 23, 0.12) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 72vh;
    display: flex;
    align-items: flex-end;
    padding: 88px 0 84px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid rgba(125, 211, 252, 0.38);
    border-radius: 999px;
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.17);
    font-size: 13px;
    font-weight: 800;
}

.hero-title {
    margin: 18px 0 14px;
    font-size: clamp(38px, 7vw, 74px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.hero-desc {
    max-width: 680px;
    margin: 0 0 26px;
    color: #dbeafe;
    font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 12px 18px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    box-shadow: 0 16px 40px rgba(14, 165, 233, 0.32);
}

.btn-primary:hover {
    box-shadow: 0 20px 48px rgba(14, 165, 233, 0.42);
}

.btn-ghost {
    border: 1px solid rgba(226, 232, 240, 0.22);
    background: rgba(15, 23, 42, 0.72);
}

.btn-ghost:hover {
    background: rgba(30, 41, 59, 0.9);
}

.hero-control {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(2, 6, 23, 0.56);
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(12px);
}

.hero-control:hover {
    background: rgba(14, 165, 233, 0.72);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 34px;
    background: #fff;
}

.search-strip {
    position: relative;
    z-index: 8;
    margin-top: -34px;
}

.search-box {
    display: grid;
    grid-template-columns: 1fr 180px 170px;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-box input,
.search-box select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    outline: 0;
    color: #e2e8f0;
    background: rgba(2, 6, 23, 0.62);
    padding: 0 14px;
}

.search-box input:focus,
.search-box select:focus {
    border-color: rgba(14, 165, 233, 0.72);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
}

.page-main {
    padding: 74px 0;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 66px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background:
        radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.18), transparent 32rem),
        radial-gradient(circle at 90% 10%, rgba(37, 99, 235, 0.16), transparent 30rem),
        linear-gradient(120deg, #0f172a, #020617);
}

.page-kicker {
    margin: 0 0 10px;
    color: #7dd3fc;
    font-weight: 900;
}

.page-title {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.page-desc {
    max-width: 820px;
    margin: 16px 0 0;
    color: #cbd5e1;
    font-size: 18px;
}

.section {
    margin: 0 0 74px;
}

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 3.5vw, 38px);
    line-height: 1.16;
    letter-spacing: -0.02em;
}

.section-desc {
    margin: 8px 0 0;
    color: var(--muted);
}

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

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

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

.movie-card a {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.68), rgba(15, 23, 42, 0.82));
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.24);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card a:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(14, 165, 233, 0.52);
    box-shadow: 0 26px 64px rgba(2, 6, 23, 0.42);
}

.poster {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.movie-grid.compact .poster {
    aspect-ratio: 3 / 4;
}

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

.movie-card a:hover .poster img {
    transform: scale(1.06);
    filter: saturate(1.08);
}

.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.64), transparent 58%);
    opacity: 0.78;
    transition: opacity 0.2s ease;
}

.play-chip {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: #fff;
    background: rgba(14, 165, 233, 0.9);
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.32);
}

.card-body {
    padding: 15px;
}

.card-title {
    margin: 0 0 8px;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
}

.card-desc {
    display: -webkit-box;
    min-height: 46px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #94a3b8;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.14);
    font-size: 12px;
    font-weight: 800;
}

.badge.gold {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.16);
}

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

.category-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.16), transparent 16rem),
        linear-gradient(180deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.78));
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(14, 165, 233, 0.48);
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.25), transparent 16rem),
        linear-gradient(180deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.9));
}

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

.category-card p {
    margin: 0;
    color: var(--muted-strong);
}

.sample-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.sample-links a {
    padding: 5px 9px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(2, 6, 23, 0.36);
    font-size: 12px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 104px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    border-color: rgba(14, 165, 233, 0.46);
}

.rank-num {
    color: #f8fafc;
    font-size: 28px;
    font-weight: 950;
    text-align: center;
}

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

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

.rank-title {
    margin: 0 0 5px;
    font-size: 17px;
    font-weight: 900;
}

.rank-desc {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
    color: #94a3b8;
    font-size: 14px;
}

.breadcrumb a {
    color: #bae6fd;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(125, 211, 252, 0.2);
    border-radius: 24px;
    background: #000;
    box-shadow: var(--shadow);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    cursor: pointer;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background:
        radial-gradient(circle at center, rgba(14, 165, 233, 0.22), transparent 15rem),
        linear-gradient(0deg, rgba(2, 6, 23, 0.46), rgba(2, 6, 23, 0.14));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    box-shadow: 0 24px 60px rgba(14, 165, 233, 0.36);
    font-size: 32px;
}

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

.info-panel,
.text-panel {
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.76);
    box-shadow: 0 20px 56px rgba(2, 6, 23, 0.26);
}

.detail-title {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.detail-line {
    margin: 0 0 18px;
    color: #cbd5e1;
    font-size: 17px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0;
}

.tag {
    padding: 6px 10px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.12);
    font-size: 13px;
}

.text-panel {
    margin-top: 28px;
}

.text-panel h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.text-panel p {
    margin: 0;
    color: #cbd5e1;
    font-size: 16px;
}

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

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.68), rgba(2, 6, 23, 0.96));
}

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

.footer-title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 900;
}

.footer-text,
.footer-links a {
    color: #94a3b8;
}

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

.footer-bottom {
    padding: 18px 0 30px;
    color: #64748b;
    text-align: center;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.empty-state {
    display: none;
    padding: 44px;
    color: var(--muted);
    text-align: center;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
}

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

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

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

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

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

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

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

    .hero {
        min-height: 82vh;
    }

    .hero-content {
        min-height: 82vh;
        padding: 86px 0 82px;
    }

    .hero-control {
        display: none;
    }

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

    .card-body {
        padding: 12px;
    }

    .card-title {
        font-size: 15px;
    }

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

    .rank-num {
        font-size: 22px;
    }

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

    .page-main {
        padding: 46px 0;
    }
}

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

    .mobile-nav.open {
        grid-template-columns: 1fr;
    }

    .logo-subtitle {
        display: none;
    }

    .logo-title {
        font-size: 21px;
    }

    .hero-title {
        font-size: 38px;
    }
}
