:root {
    --bg-deep: #020617;
    --bg-dark: #030712;
    --bg-card: #0f172a;
    --bg-card-soft: rgba(15, 23, 42, 0.82);
    --border: rgba(30, 41, 59, 0.9);
    --border-soft: rgba(34, 211, 238, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --cyan: #22d3ee;
    --cyan-dark: #0891b2;
    --blue: #3b82f6;
    --orange: #fb923c;
    --shadow: 0 24px 80px rgba(2, 6, 23, 0.55);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 6%, rgba(34, 211, 238, 0.13), transparent 32rem),
        radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.12), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #030712 46%, #020617 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(30, 41, 59, 0.72);
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--cyan-dark), var(--blue));
    box-shadow: 0 16px 40px rgba(8, 145, 178, 0.42);
}

.brand-text strong,
.footer-brand {
    display: block;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text em {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    position: relative;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--soft);
    font-weight: 600;
    transition: color 0.25s ease, background-color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(34, 211, 238, 0.12);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 99px;
    background: var(--cyan);
}

.mobile-nav {
    display: none;
    padding: 12px 16px 20px;
    border-top: 1px solid var(--border);
    background: rgba(2, 6, 23, 0.98);
}

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

.mobile-nav .nav-link,
.mobile-link {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.7);
    color: var(--soft);
}

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

.hero-slider {
    position: relative;
    min-height: 680px;
}

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

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 24% 28%, rgba(34, 211, 238, 0.18), transparent 22rem),
        linear-gradient(180deg, rgba(2, 6, 23, 0.08), #020617 96%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 360px;
    align-items: center;
    gap: 56px;
    padding: 72px 0 82px;
}

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

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.1);
    color: var(--cyan);
    font-size: 14px;
    font-weight: 700;
}

.hero h1,
.hero h2 {
    margin: 0;
    max-width: 920px;
    font-size: clamp(38px, 6vw, 74px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, #fff, var(--cyan) 58%, #93c5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

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

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

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.75);
    color: #cbd5e1;
    font-size: 12px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

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

.btn.primary {
    background: linear-gradient(135deg, var(--cyan-dark), var(--blue));
    color: #fff;
    box-shadow: 0 18px 42px rgba(8, 145, 178, 0.36);
}

.btn.ghost {
    border-color: rgba(34, 211, 238, 0.35);
    background: rgba(15, 23, 42, 0.7);
    color: #e0f2fe;
}

.btn.link {
    color: var(--cyan);
}

.hero-poster {
    position: relative;
    aspect-ratio: 3 / 4.15;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.8);
    box-shadow: var(--shadow);
}

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

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-poster span {
    position: absolute;
    right: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.92);
    color: #00111a;
    font-weight: 900;
    box-shadow: 0 16px 40px rgba(34, 211, 238, 0.35);
}

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

.hero-dot {
    width: 36px;
    height: 8px;
    border: 0;
    border-radius: 99px;
    background: rgba(148, 163, 184, 0.32);
}

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

.section {
    padding: 72px 0;
}

.section.alt {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.42), rgba(2, 6, 23, 0));
}

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

.section-title h2,
.section-title h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.03em;
}

.section-title p {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-card-soft);
    box-shadow: var(--shadow);
}

.search-panel input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(51, 65, 85, 0.9);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.72);
    color: #fff;
    padding: 0 14px;
    outline: none;
}

.search-panel input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(34, 211, 238, 0.68);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.category-pills a {
    padding: 10px 14px;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.74);
    color: #dbeafe;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.86);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.movie-card.horizontal .card-link {
    display: grid;
    grid-template-columns: 42% 1fr;
    height: 100%;
}

.thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    margin: 0;
    overflow: hidden;
    background: radial-gradient(circle at 50% 45%, rgba(34, 211, 238, 0.22), rgba(15, 23, 42, 0.92));
}

.movie-card.poster .thumb-wrap,
.movie-card.list .thumb-wrap {
    aspect-ratio: 3 / 4.1;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.movie-card:hover .video-thumb {
    transform: scale(1.08);
}

.thumb-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.84) 100%);
}

.play-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.9);
    color: #00111a;
    font-weight: 900;
}

.thumb-caption {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #e0f2fe;
    font-size: 12px;
}

.card-body {
    padding: 18px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--cyan);
    font-size: 12px;
}

.card-meta span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
}

.card-body h3 {
    margin: 0;
    color: #fff;
    font-size: 19px;
    line-height: 1.35;
}

.card-body p {
    display: -webkit-box;
    min-height: 3.2em;
    margin: 10px 0 14px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 24px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.72);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

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

.rank-num {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(59, 130, 246, 0.16));
    color: var(--cyan);
    font-weight: 900;
}

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

.rank-main em {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.rank-arrow {
    color: var(--cyan);
    font-size: 28px;
}

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

.category-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.84);
    transition: transform 0.28s ease, border-color 0.28s ease;
}

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

.category-card a {
    display: grid;
    grid-template-columns: 42% 1fr;
    min-height: 220px;
}

.category-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 4px;
    background: rgba(2, 6, 23, 0.78);
}

.category-visual img {
    width: 100%;
    height: 100%;
    min-height: 104px;
    object-fit: cover;
    border-radius: 12px;
}

.category-content {
    padding: 28px;
}

.category-index {
    color: var(--cyan);
    font-weight: 900;
}

.category-content h2 {
    margin: 10px 0 12px;
    font-size: 28px;
}

.category-content p {
    color: var(--muted);
    line-height: 1.75;
}

.category-enter {
    display: inline-flex;
    margin-top: 18px;
    color: var(--cyan);
    font-weight: 800;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(130px, 0.6fr));
    gap: 12px;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.78);
}

.empty-tip {
    display: none;
    padding: 36px;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--muted);
    text-align: center;
    background: rgba(15, 23, 42, 0.7);
}

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

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

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

.detail-hero {
    padding: 44px 0 70px;
    background:
        radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.12), transparent 30rem),
        linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0));
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) 340px;
    gap: 32px;
    align-items: start;
}

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

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background-size: cover;
    background-position: center;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.82));
}

.player-shell.is-playing .player-cover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-button {
    position: relative;
    z-index: 2;
    width: 96px;
    height: 96px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #00111a;
    font-size: 34px;
    font-weight: 900;
    box-shadow: 0 20px 60px rgba(34, 211, 238, 0.32);
}

.detail-copy {
    margin-top: 24px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.78);
}

.detail-copy h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 54px);
    letter-spacing: -0.03em;
}

.detail-copy .lead {
    margin: 16px 0 0;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

.info-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.info-strip span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.1);
    color: #e0f2fe;
}

.article-block {
    margin-top: 28px;
}

.article-block h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.article-block p {
    color: var(--soft);
    line-height: 1.9;
}

.side-panel {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 18px;
}

.poster-card,
.side-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.78);
}

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

.side-card {
    padding: 20px;
}

.side-card h2 {
    margin: 0 0 14px;
    font-size: 20px;
}

.side-card .rank-list {
    gap: 8px;
}

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

.side-card .rank-arrow {
    display: none;
}

.page-hero {
    padding: 64px 0 32px;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 820px;
    margin: 16px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 32px;
    padding: 48px 0 28px;
}

.footer-grid p {
    max-width: 620px;
    margin-top: 14px;
    color: var(--muted);
    line-height: 1.8;
}

.footer-links strong {
    display: block;
    margin-bottom: 14px;
}

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

.footer-links a {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--soft);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0 36px;
    color: #64748b;
    font-size: 14px;
}

@media (max-width: 1080px) {
    .hero-content,
    .detail-grid,
    .rank-panel {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .side-panel {
        position: static;
    }

    .hero-poster {
        max-width: 320px;
    }

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

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

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

    .header-inner {
        height: 68px;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .brand-text em {
        display: none;
    }

    .hero,
    .hero-slider,
    .hero-content {
        min-height: 0;
    }

    .hero-slide {
        position: relative;
        display: none;
    }

    .hero-slide.is-active {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 58px 0 86px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-poster {
        width: 72%;
        max-width: 260px;
    }

    .section {
        padding: 52px 0;
    }

    .section-head {
        display: block;
    }

    .section-actions {
        margin-top: 18px;
    }

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

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

    .movie-card.horizontal .card-link,
    .category-card a {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        display: block;
    }
}
