
:root {
    --bg: #070a12;
    --panel: rgba(16, 23, 39, 0.78);
    --panel-strong: rgba(20, 31, 54, 0.94);
    --text: #f6f8ff;
    --muted: #9aa8c7;
    --line: rgba(255, 255, 255, 0.12);
    --primary: #7c3cff;
    --primary-2: #00d4ff;
    --warm: #ffb86b;
    --radius: 22px;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 5%, rgba(124, 60, 255, 0.24), transparent 30%),
        radial-gradient(circle at 82% 0%, rgba(0, 212, 255, 0.18), transparent 34%),
        linear-gradient(180deg, #080b14 0%, #0a0e19 44%, #070a12 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    min-height: 100vh;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 10, 18, 0.76);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 16px 34px rgba(124, 60, 255, 0.38);
}

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

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

.nav-link {
    color: var(--muted);
    padding: 10px 14px;
    border-radius: 999px;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 20px;
}

.hero {
    max-width: 1360px;
    margin: 24px auto 0;
    padding: 0 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
}

.hero-slider {
    position: relative;
    min-height: 570px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--panel-strong);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.12) contrast(1.04);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 10, 18, 0.95) 0%, rgba(7, 10, 18, 0.64) 48%, rgba(7, 10, 18, 0.08) 100%),
        radial-gradient(circle at 25% 20%, rgba(124, 60, 255, 0.35), transparent 36%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 72px 64px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d9e3ff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    backdrop-filter: blur(12px);
}

.hero h1 {
    margin: 24px 0 18px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

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

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.tag-row span {
    color: #e9edff;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
}

.hero-actions {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid transparent;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: #050713;
    background: linear-gradient(135deg, #fff, #bdeeff);
}

.ghost-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--line);
}

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

.hero-dots {
    position: absolute;
    z-index: 5;
    left: 64px;
    bottom: 38px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
}

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

.hero-panel {
    border: 1px solid var(--line);
    border-radius: 34px;
    background: var(--panel);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-search label,
.filter-label {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 700;
}

.search-box,
.filter-box {
    display: flex;
    gap: 10px;
}

.search-box input,
.filter-box input,
.filter-box select {
    min-width: 0;
    width: 100%;
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px 14px;
    outline: none;
}

.search-box button {
    flex: 0 0 auto;
    border: 0;
    color: #06101b;
    background: linear-gradient(135deg, var(--primary-2), #fff);
    border-radius: 16px;
    padding: 0 16px;
    font-weight: 900;
    cursor: pointer;
}

.hero-category-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hero-category-links a,
.category-card,
.compact-card,
.detail-card,
.player-card,
.rank-item,
.stat-card {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
}

.hero-category-links a {
    padding: 12px;
    color: #e8edff;
    font-weight: 800;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.compact-card:hover,
.category-card:hover,
.movie-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.11);
}

.compact-card img {
    width: 74px;
    height: 54px;
    object-fit: cover;
    border-radius: 14px;
}

.compact-card span {
    font-weight: 800;
    line-height: 1.4;
}

main {
    max-width: 1360px;
    margin: 0 auto;
    padding: 24px 22px 58px;
}

.content-section {
    margin-top: 42px;
}

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

.section-head > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-head h2 {
    margin: 0;
    font-size: 28px;
}

.section-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
}

.section-more {
    color: #bdeeff;
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.075);
    transition: transform 0.2s ease, background 0.2s ease;
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #11182a;
}

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

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

.poster-badge {
    position: absolute;
    right: 10px;
    top: 10px;
    color: #09101d;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 900;
}

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

.movie-title {
    display: block;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 8px;
}

.movie-card p {
    height: 66px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 12px;
}

.meta-line,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 10px;
}

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

.category-card {
    padding: 22px;
    min-height: 170px;
    transition: transform 0.2s ease, background 0.2s ease;
}

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

.category-card p {
    color: var(--muted);
    line-height: 1.7;
}

.category-card span {
    color: #bdeeff;
    font-weight: 900;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 82px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 12px;
}

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

.rank-item img {
    width: 82px;
    height: 110px;
    object-fit: cover;
    border-radius: 16px;
}

.rank-info h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-info p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

.page-title {
    margin-top: 28px;
    padding: 44px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        radial-gradient(circle at 10% 0%, rgba(124, 60, 255, 0.28), transparent 42%),
        rgba(255, 255, 255, 0.075);
}

.page-title h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: -0.05em;
}

.page-title p {
    color: var(--muted);
    line-height: 1.8;
    margin: 0;
}

.filter-box {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.07);
}

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

.player-card,
.detail-card {
    padding: 18px;
    background: rgba(255, 255, 255, 0.075);
}

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

.video-box video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.5));
}

.play-layer.hidden {
    display: none;
}

.play-layer button {
    width: 92px;
    height: 92px;
    border: 0;
    border-radius: 50%;
    color: #07101c;
    background: #fff;
    font-weight: 1000;
    cursor: pointer;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.detail-card {
    margin-top: 18px;
}

.detail-card h1,
.detail-card h2 {
    margin-top: 0;
}

.detail-card p {
    color: #d9e0f6;
    line-height: 1.9;
}

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

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

.stat-card {
    padding: 18px;
}

.stat-card strong {
    display: block;
    font-size: 30px;
    margin-bottom: 8px;
}

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

.empty-state {
    display: none;
    padding: 30px;
    color: var(--muted);
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
}

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

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

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

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

@media (max-width: 760px) {
    .header-inner {
        padding: 14px 16px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: rgba(10, 14, 25, 0.96);
    }

    .site-nav.open {
        display: flex;
    }

    .hero {
        padding: 0 14px;
        margin-top: 14px;
    }

    .hero-slider {
        min-height: 620px;
        border-radius: 26px;
    }

    .hero-content {
        padding: 46px 28px;
    }

    .hero-dots {
        left: 28px;
        bottom: 24px;
    }

    main {
        padding: 18px 14px 42px;
    }

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

    .filter-box,
    .search-box {
        flex-direction: column;
    }

    .rank-item {
        grid-template-columns: 42px 68px minmax(0, 1fr);
    }

    .rank-item .primary-btn {
        grid-column: 2 / 4;
    }

    .page-title {
        padding: 30px 22px;
    }
}

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

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