:root {
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.86);
    --panel-strong: rgba(15, 23, 42, 0.96);
    --line: rgba(148, 163, 184, 0.18);
    --text: #e5f0ff;
    --muted: #94a3b8;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --indigo: #6366f1;
    --rose: #fb7185;
    --gold: #fbbf24;
    --radius: 24px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 8%, rgba(34, 211, 238, 0.18), transparent 34rem),
        radial-gradient(circle at 82% 18%, rgba(99, 102, 241, 0.2), transparent 36rem),
        linear-gradient(180deg, #020617 0%, #07111f 42%, #020617 100%);
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.7;
}

body.menu-open {
    overflow: hidden;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: #06121f;
    font-size: 15px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 12px 34px rgba(34, 211, 238, 0.28);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 700;
}

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

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    border-radius: 99px;
    transform: scaleX(0);
    transform-origin: center;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    transition: transform 0.2s ease;
}

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

.main-nav a:hover::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.78);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: #e2e8f0;
    border-radius: 99px;
}

.hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(6px);
}

.hero::before {
    width: 440px;
    height: 440px;
    left: -120px;
    top: 120px;
    background: rgba(34, 211, 238, 0.18);
}

.hero::after {
    width: 500px;
    height: 500px;
    right: -160px;
    bottom: 0;
    background: rgba(59, 130, 246, 0.18);
}

.hero-slider {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 640px;
    margin: 0 auto;
    padding: 64px 0 44px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
    gap: 44px;
    align-items: center;
    min-height: 560px;
}

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

.hero-copy {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    color: #bff7ff;
    border: 1px solid rgba(34, 211, 238, 0.32);
    border-radius: 999px;
    background: rgba(8, 47, 73, 0.52);
    font-size: 13px;
    font-weight: 800;
}

.hero h1 {
    margin: 20px 0 16px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1.03;
    letter-spacing: -0.05em;
}

.hero h1 span {
    display: block;
    background: linear-gradient(90deg, var(--cyan), #bfdbfe 38%, var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc {
    max-width: 720px;
    margin: 0 0 24px;
    color: #cbd5e1;
    font-size: 18px;
}

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

.btn-primary,
.btn-soft,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 15px;
    font-weight: 900;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #04111f;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 36px rgba(34, 211, 238, 0.22);
}

.btn-soft {
    color: #e2f8ff;
    border: 1px solid rgba(34, 211, 238, 0.24);
    background: rgba(15, 23, 42, 0.82);
}

.btn-ghost {
    min-height: 38px;
    padding: 8px 12px;
    color: #bff7ff;
    border: 1px solid rgba(34, 211, 238, 0.24);
    background: rgba(8, 47, 73, 0.34);
    font-size: 13px;
}

.btn-primary:hover,
.btn-soft:hover,
.btn-ghost:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, 0.55);
}

.hero-poster {
    position: relative;
    z-index: 2;
    overflow: hidden;
    aspect-ratio: 3 / 4.2;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 32px;
    background: rgba(15, 23, 42, 0.8);
    box-shadow: var(--shadow);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(2, 6, 23, 0.86));
    z-index: 1;
}

.hero-poster img {
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.poster-label {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 2;
}

.poster-label strong {
    display: block;
    font-size: 24px;
    line-height: 1.24;
}

.poster-label span {
    display: inline-block;
    margin-top: 8px;
    color: var(--cyan);
    font-size: 14px;
    font-weight: 800;
}

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

.hero-dot {
    width: 36px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.32);
    cursor: pointer;
}

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

.quick-cats {
    width: min(1180px, calc(100% - 32px));
    margin: -34px auto 62px;
    position: relative;
    z-index: 4;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.82);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(16px);
}

.quick-cats a {
    flex: 0 0 auto;
    padding: 10px 15px;
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.72);
    font-weight: 800;
}

.quick-cats a:hover {
    color: #06121f;
    border-color: transparent;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.page-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 52px 0 82px;
}

.page-hero,
.detail-hero {
    margin: 26px 0 34px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(59, 130, 246, 0.08)),
        rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow);
}

.page-hero h1,
.detail-copy h1 {
    margin: 10px 0 12px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.1;
}

.page-hero p,
.detail-copy p {
    max-width: 850px;
    margin: 0;
    color: #cbd5e1;
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(25px, 4vw, 36px);
    letter-spacing: -0.03em;
}

.section-head p {
    margin: 8px 0 0;
    max-width: 720px;
    color: var(--muted);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.36);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.movie-card.is-hidden {
    display: none;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4.1;
    background: rgba(30, 41, 59, 0.8);
}

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

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

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

.play-dot {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #05111f;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    font-size: 13px;
    box-shadow: 0 12px 28px rgba(34, 211, 238, 0.24);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 3;
    display: grid;
    place-items: center;
    min-width: 36px;
    height: 30px;
    padding: 0 10px;
    color: #06121f;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--rose));
    font-size: 13px;
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.movie-meta span {
    padding: 3px 8px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.7);
}

.movie-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
}

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

.movie-card p {
    margin: 10px 0 0;
    color: #aab7c8;
    font-size: 14px;
}

.tag-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.tag-line span {
    color: #bff7ff;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(8, 47, 73, 0.62);
    font-size: 12px;
}

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

.category-card {
    min-height: 190px;
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 12rem),
        rgba(15, 23, 42, 0.82);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.36);
}

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

.category-card p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
}

.rank-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.rank-row {
    display: grid;
    grid-template-columns: auto 86px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.78);
}

.rank-row img {
    width: 86px;
    height: 112px;
    border-radius: 14px;
    object-fit: cover;
}

.rank-number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #06121f;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    font-weight: 900;
}

.rank-row h3 {
    margin: 0;
    font-size: 18px;
}

.rank-row p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 14px;
    margin: 28px 0 28px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.82);
}

.search-panel label {
    display: grid;
    gap: 8px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 800;
}

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

.search-panel input:focus,
.search-panel select:focus {
    border-color: rgba(34, 211, 238, 0.56);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.empty-result {
    padding: 26px;
    text-align: center;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
}

.detail-hero {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 30px;
    align-items: center;
}

.detail-cover {
    overflow: hidden;
    aspect-ratio: 3 / 4.2;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 28px;
    background: rgba(30, 41, 59, 0.82);
    box-shadow: var(--shadow);
}

.detail-cover img {
    height: 100%;
    object-fit: cover;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

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

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0;
}

.detail-tags span {
    padding: 6px 10px;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 999px;
    color: #bff7ff;
    background: rgba(8, 47, 73, 0.46);
    font-size: 13px;
    font-weight: 800;
}

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

.detail-info div {
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.38);
}

.detail-info b {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.detail-info span {
    display: block;
    margin-top: 4px;
    font-weight: 900;
}

.player-section,
.content-panel {
    margin-top: 28px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.82);
    box-shadow: var(--shadow);
}

.player-section h2,
.content-panel h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    aspect-ratio: 16 / 9;
}

.video-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #000;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.56;
}

.player-cover::after {
    content: "▶";
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    color: #06121f;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    transform: translate(-50%, -50%);
    font-size: 28px;
    box-shadow: 0 22px 50px rgba(34, 211, 238, 0.32);
}

.player-cover.is-hidden {
    display: none;
}

.content-panel p {
    margin: 0 0 14px;
    color: #cbd5e1;
}

.content-panel strong {
    color: #e5f0ff;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.84);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 28px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    font-size: 20px;
}

.site-footer p {
    max-width: 520px;
    color: var(--muted);
}

.site-footer h3 {
    margin: 0 0 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    padding: 8px 10px;
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.58);
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--cyan);
    border-color: rgba(34, 211, 238, 0.32);
}

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 32px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 13px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .hero-slide,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .detail-cover {
        max-width: 420px;
    }

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

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

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

@media (max-width: 760px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 82px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(15, 23, 42, 0.98);
        box-shadow: var(--shadow);
    }

    body.menu-open .main-nav {
        display: flex;
    }

    .main-nav a {
        padding: 14px 12px;
        border-radius: 14px;
    }

    .main-nav a:hover {
        background: rgba(34, 211, 238, 0.1);
    }

    .main-nav a::after {
        display: none;
    }

    .brand {
        font-size: 20px;
    }

    .hero {
        min-height: auto;
    }

    .hero-slider {
        min-height: auto;
        padding-top: 34px;
    }

    .hero-slide {
        min-height: auto;
        gap: 26px;
    }

    .hero-dots {
        position: static;
        margin-top: 22px;
    }

    .quick-cats {
        margin-top: 18px;
    }

    .section-head {
        display: block;
    }

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

    .category-grid,
    .detail-info,
    .search-panel,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-hero,
    .page-hero,
    .player-section,
    .content-panel {
        padding: 20px;
        border-radius: 22px;
    }
}

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

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

    .rank-row img {
        width: 72px;
        height: 96px;
    }
}
