:root {
    --color-night-darker: #0a0e1a;
    --color-night-dark: #0f1420;
    --color-night-medium: #1a1f2e;
    --color-night-light: #252b3d;
    --color-accent-blue: #3b82f6;
    --color-accent-cyan: #06b6d4;
    --color-accent-teal: #14b8a6;
    --color-text-primary: #e5e7eb;
    --color-text-secondary: #9ca3af;
    --color-text-muted: #6b7280;
    --shadow-cyan: 0 24px 60px rgba(6, 182, 212, 0.18);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background:
        radial-gradient(circle at top left, rgba(6, 182, 212, 0.16), transparent 28rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 28rem),
        var(--color-night-darker);
    color: var(--color-text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.glass-effect {
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.gradient-text {
    background: linear-gradient(90deg, #22d3ee, #3b82f6, #2dd4bf);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 14px;
    padding: 10px 20px;
    font-weight: 700;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.btn-primary {
    background: linear-gradient(90deg, #06b6d4, #2563eb);
    color: #fff;
    box-shadow: 0 18px 38px rgba(6, 182, 212, 0.22);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #dbeafe;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-width: 0 0 1px;
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, #22d3ee, #2563eb);
    color: #fff;
    font-size: 14px;
    box-shadow: 0 16px 36px rgba(6, 182, 212, 0.32);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-link {
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #22d3ee;
}

.nav-group {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;
    display: grid;
    width: 188px;
    border-radius: 18px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.nav-group:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a {
    border-radius: 12px;
    padding: 10px 12px;
    color: #dbeafe;
}

.nav-dropdown a:hover {
    background: rgba(34, 211, 238, 0.12);
    color: #67e8f9;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    background: #e0f2fe;
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    border-radius: 18px;
    padding: 10px;
}

.mobile-nav a {
    display: block;
    border-radius: 12px;
    padding: 12px;
    color: #e5e7eb;
}

.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.06) brightness(0.48);
    transform: scale(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 14, 26, 0.98) 0%, rgba(10, 14, 26, 0.78) 42%, rgba(10, 14, 26, 0.22) 100%),
        linear-gradient(0deg, var(--color-night-darker), transparent 30%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 44px;
    align-items: center;
    padding: 80px 0 110px;
}

.hero-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(6, 182, 212, 0.10);
    color: #67e8f9;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero h1,
.hero h2,
.page-title {
    margin: 18px 0 18px;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.06;
    letter-spacing: -0.05em;
}

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

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span,
.detail-chip,
.tag-row span {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.07);
    color: #dbeafe;
    font-size: 12px;
    font-weight: 700;
}

.hero-cover {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    aspect-ratio: 3 / 4.08;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.44);
}

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

.hero-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: inherit;
}

.hero-controls {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 34px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(-50%);
}

.hero-dot,
.hero-arrow {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    backdrop-filter: blur(12px);
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    padding: 0;
}

.hero-dot.is-active {
    width: 34px;
    background: #22d3ee;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.section-block {
    padding: 64px 0;
}

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

.section-title {
    margin: 0;
    color: #fff;
    font-size: clamp(25px, 4vw, 34px);
    line-height: 1.2;
}

.section-desc {
    max-width: 740px;
    margin: 10px 0 0;
    color: var(--color-text-secondary);
}

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

.movie-card {
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.10);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card-hover:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(34, 211, 238, 0.30);
    box-shadow: var(--shadow-cyan);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.08;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(20, 184, 166, 0.08));
}

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

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

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

.movie-year {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.poster-play {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.92);
    color: #00111a;
    font-size: 16px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

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

.movie-info {
    padding: 14px;
}

.movie-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    color: #93c5fd;
    font-size: 12px;
    font-weight: 800;
}

.movie-info h3,
.movie-info h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 17px;
    line-height: 1.35;
}

.movie-info h3 a,
.movie-info h2 a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-info p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #aeb8c8;
    font-size: 13px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 22px;
    min-height: 190px;
    background:
        linear-gradient(145deg, rgba(6, 182, 212, 0.18), rgba(37, 99, 235, 0.08)),
        rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    transition: transform 0.28s ease, border-color 0.28s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.32);
}

.category-tile h2,
.category-tile h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 22px;
}

.category-tile p {
    margin: 0 0 18px;
    color: #cbd5e1;
    font-size: 14px;
}

.category-samples {
    display: grid;
    gap: 6px;
    color: #67e8f9;
    font-size: 13px;
    font-weight: 700;
}

.toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    gap: 16px;
    align-items: center;
    border-radius: 22px;
    margin-bottom: 26px;
    padding: 14px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 16px;
    padding: 0 14px;
    min-height: 48px;
    background: rgba(0, 0, 0, 0.20);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.search-box span {
    color: #67e8f9;
    font-weight: 900;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
}

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

.filter-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 800;
}

.filter-btn.is-active,
.filter-btn:hover {
    background: rgba(34, 211, 238, 0.16);
    border-color: rgba(34, 211, 238, 0.34);
    color: #67e8f9;
}

.empty-state {
    display: none;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    color: #cbd5e1;
}

.empty-state.is-visible {
    display: block;
}

.page-hero,
.detail-hero {
    padding: 58px 0 34px;
}

.page-hero-card,
.detail-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: 38px;
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 28rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
    border: 1px solid rgba(255, 255, 255, 0.10);
}

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

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

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
}

.rank-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-item a {
    display: grid;
    grid-template-columns: 46px 64px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.052);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.rank-item a:hover {
    transform: translateX(4px);
    border-color: rgba(34, 211, 238, 0.28);
}

.rank-no {
    color: #67e8f9;
    font-size: 22px;
    font-weight: 900;
}

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

.rank-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.rank-copy strong {
    overflow: hidden;
    color: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-copy em {
    color: #94a3b8;
    font-size: 13px;
    font-style: normal;
}

.rank-item b {
    color: #22d3ee;
}

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

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 3 / 4.08;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: #93c5fd;
    font-size: 13px;
    font-weight: 800;
}

.detail-title {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.12;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.player-section,
.content-section {
    padding: 34px 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 16 / 9;
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 0;
    background:
        radial-gradient(circle at center, rgba(6, 182, 212, 0.28), transparent 15rem),
        rgba(2, 6, 23, 0.42);
    color: #fff;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.player-overlay span {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22d3ee, #2563eb);
    color: #fff;
    font-size: 28px;
    box-shadow: 0 18px 42px rgba(6, 182, 212, 0.32);
}

.player-overlay strong {
    font-size: 18px;
}

.article-card {
    border-radius: 24px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.article-card h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 26px;
}

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

.article-card p:last-child {
    margin-bottom: 0;
}

.site-footer {
    margin-top: 70px;
    padding: 46px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.22);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: 30px;
}

.footer-logo {
    margin-bottom: 14px;
}

.site-footer p {
    max-width: 620px;
    margin: 0;
    color: #94a3b8;
}

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

.footer-links a {
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    font-size: 13px;
}

.footer-links a:hover {
    color: #67e8f9;
}

[hidden] {
    display: none !important;
}

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

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

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 260px;
    }

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

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

    .menu-toggle {
        display: flex;
    }

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

    .hero {
        min-height: auto;
    }

    .hero-slide {
        position: relative;
        min-height: 760px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 66px 0 108px;
    }

    .hero-cover {
        width: min(260px, 72vw);
    }

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

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

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

    .detail-hero-card {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(280px, 80vw);
    }

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

    .footer-links {
        justify-content: flex-start;
    }
}

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

    .site-logo {
        font-size: 18px;
    }

    .hero h1,
    .hero h2,
    .page-title {
        font-size: 34px;
    }

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

    .movie-info {
        padding: 11px;
    }

    .movie-info h3,
    .movie-info h2 {
        font-size: 15px;
    }

    .movie-info p {
        font-size: 12px;
    }

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

    .page-hero-card,
    .detail-hero-card,
    .article-card {
        border-radius: 20px;
        padding: 22px;
    }

    .rank-item a {
        grid-template-columns: 36px 52px minmax(0, 1fr);
    }

    .rank-item b {
        display: none;
    }

    .rank-item img {
        width: 52px;
        height: 70px;
    }
}
