:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(15, 23, 42, 0.96);
    --line: rgba(56, 189, 248, 0.22);
    --line-strong: rgba(56, 189, 248, 0.48);
    --text: #f8fafc;
    --muted: #94a3b8;
    --cyan: #22d3ee;
    --blue: #2563eb;
    --orange: #f97316;
    --green: #22c55e;
    --shadow: 0 24px 80px rgba(8, 47, 73, 0.28);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 15% 0%, rgba(34, 211, 238, 0.16), transparent 30%),
        radial-gradient(circle at 88% 8%, rgba(37, 99, 235, 0.22), transparent 28%),
        linear-gradient(180deg, #020617 0%, #0b1120 48%, #020617 100%);
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid rgba(56, 189, 248, 0.16);
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 18px;
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: #00111d;
    background: linear-gradient(135deg, var(--cyan), #60a5fa 60%, var(--orange));
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.34);
}

.brand-text {
    font-size: 1.22rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #cbd5e1;
    font-weight: 700;
}

.site-nav a {
    position: relative;
    transition: color 0.2s ease;
}

.site-nav a::after {
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    content: "";
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    transition: width 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--cyan);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
    width: 100%;
}

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

.search-mini {
    position: relative;
    width: min(280px, 28vw);
}

.search-mini input,
.search-panel input,
.filter-input {
    width: 100%;
    border: 1px solid rgba(56, 189, 248, 0.24);
    border-radius: 999px;
    padding: 12px 46px 12px 16px;
    color: var(--text);
    outline: none;
    background: rgba(15, 23, 42, 0.74);
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-mini input:focus,
.search-panel input:focus,
.filter-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.11);
    background: rgba(15, 23, 42, 0.98);
}

.search-mini button,
.search-panel button {
    position: absolute;
    top: 50%;
    right: 8px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: var(--bg);
    background: linear-gradient(135deg, var(--cyan), #60a5fa);
    transform: translateY(-50%);
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 14px;
    color: var(--text);
    background: rgba(15, 23, 42, 0.72);
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(56, 189, 248, 0.16);
    background: rgba(2, 6, 23, 0.98);
}

.mobile-panel-inner {
    display: grid;
    gap: 12px;
    padding: 16px 0 22px;
}

.mobile-panel a {
    padding: 12px 14px;
    border-radius: 14px;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.7);
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.12);
}

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

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

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

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

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.38;
    filter: saturate(1.08) contrast(1.05);
    transform: scale(1.02);
}

.hero-backdrop::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at 80% 32%, rgba(34, 211, 238, 0.24), transparent 24%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.74) 46%, rgba(2, 6, 23, 0.38) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.18) 42%, rgba(2, 6, 23, 0.86) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: center;
    gap: 44px;
    min-height: 650px;
    padding: 80px 0 76px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--cyan);
    font-size: 0.92rem;
    font-weight: 800;
    background: rgba(8, 47, 73, 0.42);
}

.hero-title {
    margin: 0 0 18px;
    font-size: clamp(2.45rem, 6vw, 5.7rem);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.08em;
}

.hero-subtitle {
    display: block;
    margin-top: 14px;
    color: var(--cyan);
    font-size: clamp(1.3rem, 3vw, 2.4rem);
    letter-spacing: -0.04em;
}

.hero-text {
    max-width: 680px;
    margin: 0 0 28px;
    color: #cbd5e1;
    font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.hero-meta,
.card-meta,
.detail-meta,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.meta-pill,
.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    padding: 4px 10px;
    color: #dbeafe;
    font-size: 0.82rem;
    background: rgba(15, 23, 42, 0.58);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #00111d;
    background: linear-gradient(135deg, var(--cyan), #60a5fa);
    box-shadow: 0 16px 34px rgba(34, 211, 238, 0.26);
}

.btn-secondary {
    border: 1px solid rgba(56, 189, 248, 0.34);
    color: var(--text);
    background: rgba(15, 23, 42, 0.66);
}

.hero-poster-card {
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.24);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.48));
    box-shadow: var(--shadow);
}

.hero-poster-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.hero-poster-info {
    padding: 18px;
}

.hero-poster-info strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

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

.hero-dot {
    width: 38px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.28);
    cursor: pointer;
}

.hero-dot.is-active {
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.section {
    padding: 58px 0;
}

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

.section-kicker {
    color: var(--orange);
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-title {
    margin: 6px 0 0;
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-desc {
    max-width: 780px;
    margin-top: 10px;
    color: var(--muted);
}

.text-link {
    color: var(--cyan);
    font-weight: 900;
}

.grid {
    display: grid;
    gap: 20px;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.68);
    box-shadow: 0 14px 42px rgba(2, 6, 23, 0.2);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    border-color: rgba(34, 211, 238, 0.56);
    box-shadow: 0 24px 70px rgba(8, 145, 178, 0.22);
    transform: translateY(-6px);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: rgba(8, 47, 73, 0.4);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.25s ease;
}

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

.poster-link::after {
    position: absolute;
    inset: auto 0 0;
    height: 58%;
    content: "";
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent);
}

.quality-badge,
.rank-badge,
.score-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 950;
}

.quality-badge {
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    color: #00111d;
    background: linear-gradient(135deg, var(--cyan), #93c5fd);
}

.rank-badge {
    top: 12px;
    right: 12px;
    min-width: 32px;
    height: 32px;
    color: #fff7ed;
    background: linear-gradient(135deg, var(--orange), #ef4444);
}

.score-badge {
    right: 12px;
    bottom: 12px;
    padding: 5px 9px;
    color: #fff7ed;
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(10px);
}

.card-body {
    padding: 16px;
}

.card-title {
    display: -webkit-box;
    min-height: 3em;
    margin: 0 0 10px;
    overflow: hidden;
    font-size: 1.05rem;
    line-height: 1.45;
    font-weight: 900;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-title a:hover {
    color: var(--cyan);
}

.card-summary {
    display: -webkit-box;
    min-height: 4.8em;
    margin: 12px 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.92rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.category-card,
.stat-card,
.panel {
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 18px 60px rgba(2, 6, 23, 0.18);
}

.category-card {
    display: grid;
    min-height: 190px;
    padding: 24px;
    transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.category-card:hover {
    border-color: var(--line-strong);
    background: rgba(8, 47, 73, 0.44);
    transform: translateY(-4px);
}

.category-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.28rem;
}

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

.count-pill {
    justify-self: start;
    align-self: end;
    margin-top: 22px;
    border-radius: 999px;
    padding: 6px 12px;
    color: var(--cyan);
    background: rgba(8, 47, 73, 0.52);
}

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

.stat-card {
    padding: 24px;
}

.stat-card strong {
    display: block;
    color: var(--cyan);
    font-size: 2rem;
}

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

.page-hero {
    padding: 76px 0 36px;
}

.page-title {
    max-width: 920px;
    margin: 0;
    font-size: clamp(2.1rem, 5vw, 4.5rem);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.07em;
}

.page-desc {
    max-width: 860px;
    margin: 18px 0 0;
    color: #cbd5e1;
    font-size: 1.08rem;
}

.filter-bar {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 22px;
    padding: 18px;
    background: rgba(15, 23, 42, 0.66);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    padding: 8px 13px;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.66);
    cursor: pointer;
}

.filter-btn.is-active,
.filter-btn:hover {
    border-color: var(--cyan);
    color: #00111d;
    background: linear-gradient(135deg, var(--cyan), #93c5fd);
}

.result-note {
    color: var(--muted);
    font-size: 0.95rem;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 64px 74px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: 20px;
    padding: 12px;
    background: rgba(15, 23, 42, 0.68);
    transition: transform 0.2s ease, border 0.2s ease;
}

.rank-row:hover {
    border-color: var(--line-strong);
    transform: translateX(4px);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    color: #00111d;
    font-weight: 950;
    background: linear-gradient(135deg, var(--cyan), #60a5fa);
}

.rank-cover img {
    width: 74px;
    height: 104px;
    border-radius: 14px;
    object-fit: cover;
    background: rgba(8, 47, 73, 0.44);
}

.rank-info strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.12rem;
}

.rank-info strong:hover {
    color: var(--cyan);
}

.rank-info p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rank-score {
    padding-right: 10px;
    color: var(--orange);
    font-size: 1.2rem;
    font-weight: 950;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 0.94rem;
}

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

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

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.24);
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--text);
    background:
        radial-gradient(circle, rgba(34, 211, 238, 0.2), transparent 28%),
        rgba(2, 6, 23, 0.48);
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay.is-hidden {
    visibility: hidden;
    opacity: 0;
}

.play-circle {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    color: #00111d;
    font-size: 2.8rem;
    background: linear-gradient(135deg, var(--cyan), #93c5fd);
    box-shadow: 0 0 55px rgba(34, 211, 238, 0.45);
}

.player-status {
    position: absolute;
    left: 18px;
    bottom: 16px;
    z-index: 4;
    border-radius: 999px;
    padding: 6px 12px;
    color: #dbeafe;
    font-size: 0.86rem;
    background: rgba(2, 6, 23, 0.62);
    backdrop-filter: blur(10px);
}

.detail-card {
    margin-top: 24px;
    padding: 26px;
}

.detail-title {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.detail-lead {
    margin: 0 0 18px;
    color: #dbeafe;
    font-size: 1.08rem;
}

.detail-section {
    margin-top: 22px;
}

.detail-section h2,
.detail-section h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: var(--text);
}

.detail-section p {
    margin: 0;
    color: #cbd5e1;
}

.side-poster {
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
}

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

.side-info {
    padding: 16px;
}

.side-info dl {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 8px 12px;
    margin: 0;
    color: #cbd5e1;
}

.side-info dt {
    color: var(--muted);
}

.side-info dd {
    margin: 0;
}

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

.footer {
    margin-top: 68px;
    border-top: 1px solid rgba(56, 189, 248, 0.16);
    background: rgba(2, 6, 23, 0.76);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 28px;
    padding: 44px 0;
}

.footer h3 {
    margin: 0 0 14px;
    font-size: 1rem;
}

.footer p,
.footer li {
    color: var(--muted);
    font-size: 0.94rem;
}

.footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer a:hover {
    color: var(--cyan);
}

.footer-bottom {
    border-top: 1px solid rgba(56, 189, 248, 0.1);
    padding: 18px 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.hidden-by-filter {
    display: none !important;
}

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

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

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

    .hero-poster-card {
        display: none;
    }
}

@media (max-width: 860px) {
    .site-nav,
    .search-mini {
        display: none;
    }

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

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

    .hero-section,
    .hero-content {
        min-height: 600px;
    }

    .hero-content {
        padding: 58px 0 72px;
    }

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

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

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

    .rank-cover img {
        width: 58px;
        height: 82px;
    }

    .rank-score {
        grid-column: 3;
        padding: 0;
    }

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

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

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

    .hero-title {
        letter-spacing: -0.055em;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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

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