:root {
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.86);
    --panel-solid: #0f172a;
    --muted: #94a3b8;
    --text: #f8fafc;
    --soft: #cbd5e1;
    --line: rgba(148, 163, 184, 0.18);
    --sky: #0ea5e9;
    --sky-deep: #0284c7;
    --cyan: #22d3ee;
    --amber: #f59e0b;
    --radius: 24px;
    --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(14, 165, 233, 0.18), transparent 28rem),
        radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.12), transparent 22rem),
        linear-gradient(180deg, #020617 0%, #0f172a 52%, #020617 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

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

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--sky), var(--cyan));
    box-shadow: 0 12px 34px rgba(14, 165, 233, 0.35);
}

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

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

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(14, 165, 233, 0.16);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.8);
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    margin: 4px auto;
    display: block;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 12px;
    align-items: stretch;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
}

.hero-slider {
    position: relative;
    height: 76vh;
    min-height: 560px;
    overflow: hidden;
    background: #020617;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(2, 6, 23, 0.76) 42%, rgba(2, 6, 23, 0.22) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, transparent 34%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: max(24px, calc((100vw - 1180px) / 2));
    width: min(640px, calc(100% - 48px));
    transform: translateY(-50%);
}

.hero-badges,
.hero-tags,
.tag-row,
.detail-meta,
.quick-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-badges span,
.hero-tags span,
.tag-row span,
.detail-meta span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    color: #e0f2fe;
    border: 1px solid rgba(125, 211, 252, 0.24);
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.14);
}

.hero-content h1,
.hero-content h2 {
    margin: 18px 0;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-content p {
    width: min(100%, 620px);
    margin: 0 0 22px;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky), var(--cyan));
    box-shadow: 0 18px 42px rgba(14, 165, 233, 0.32);
}

.ghost-btn {
    color: #e0f2fe;
    border: 1px solid rgba(125, 211, 252, 0.28);
    background: rgba(15, 23, 42, 0.58);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(12px);
    transform: translateY(-50%);
}

.hero-arrow.prev {
    left: 24px;
}

.hero-arrow.next {
    right: 24px;
}

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

.hero-dot {
    width: 34px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
}

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

.intro-strip,
.content-section,
.split-section,
.page-main,
.detail-main,
.site-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.intro-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: -34px;
    padding: 30px;
    position: relative;
    z-index: 3;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.eyebrow {
    margin: 0 0 10px;
    color: #7dd3fc;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.intro-strip h2,
.section-heading h2,
.page-hero h1,
.spotlight-card h2,
.detail-info h1,
.story-card h2 {
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.04em;
}

.intro-strip h2,
.section-heading h2,
.spotlight-card h2 {
    font-size: clamp(28px, 4vw, 44px);
}

.intro-strip p,
.section-heading p,
.page-hero p,
.spotlight-card p,
.story-card p,
.lead {
    color: var(--soft);
    line-height: 1.85;
}

.content-section {
    padding: 72px 0 0;
}

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

.section-heading.slim {
    margin-bottom: 20px;
}

.section-heading a {
    color: #7dd3fc;
    font-weight: 700;
}

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.76);
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.26);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(14, 165, 233, 0.48);
    box-shadow: 0 30px 72px rgba(2, 132, 199, 0.18);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f172a;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent 58%);
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.88);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.poster-meta,
.rank-badge {
    position: absolute;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 4px 9px;
    color: #ffffff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(8px);
}

.poster-meta {
    right: 10px;
    top: 10px;
}

.rank-badge {
    left: 10px;
    top: 10px;
    background: linear-gradient(135deg, var(--amber), #ef4444);
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.card-title {
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.card-desc {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-info {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #7dd3fc;
    font-size: 13px;
}

.tag-row {
    margin-top: auto;
}

.tag-row span {
    min-height: 24px;
    color: var(--soft);
    font-size: 12px;
    background: rgba(148, 163, 184, 0.12);
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
    padding-top: 72px;
}

.spotlight-card,
.ranking-panel,
.story-card,
.filter-panel,
.page-hero,
.detail-hero {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow);
}

.spotlight-card {
    padding: 34px;
    background:
        radial-gradient(circle at 20% 0%, rgba(14, 165, 233, 0.22), transparent 18rem),
        rgba(15, 23, 42, 0.82);
}

.ranking-panel {
    padding: 24px;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.32);
    transition: background 0.2s ease;
}

.ranking-item:hover {
    background: rgba(14, 165, 233, 0.16);
}

.ranking-item span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.2);
    color: #7dd3fc;
    font-weight: 900;
}

.ranking-item strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking-item em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

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

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

.category-card {
    position: relative;
    min-height: 170px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 10px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.68));
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.24);
}

.category-card:hover .category-glow {
    opacity: 1;
    transform: scale(1.2);
}

.category-glow {
    position: absolute;
    right: -50px;
    top: -50px;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    opacity: 0.55;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.5), transparent 70%);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.category-card strong {
    position: relative;
    font-size: 24px;
}

.category-card span,
.category-card small {
    position: relative;
    color: var(--soft);
    line-height: 1.7;
}

.category-card small {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-card small span {
    padding: 4px 8px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(14, 165, 233, 0.14);
}

.page-main {
    padding: 48px 0 0;
}

.page-hero {
    padding: 42px;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, 0.18), transparent 42%),
        rgba(15, 23, 42, 0.82);
}

.small-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 170px;
    gap: 14px;
    margin-bottom: 22px;
    padding: 18px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.34);
}

.search-box input,
.site-sort {
    width: 100%;
    min-height: 46px;
    color: #ffffff;
    border: 0;
    outline: 0;
    background: transparent;
}

.site-sort {
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.34);
}

.site-sort option {
    color: #0f172a;
}

.quick-filters {
    grid-column: 1 / -1;
}

.quick-filter {
    min-height: 34px;
    padding: 0 12px;
    color: var(--soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.68);
}

.quick-filter.active,
.quick-filter:hover {
    color: #ffffff;
    border-color: rgba(14, 165, 233, 0.42);
    background: rgba(14, 165, 233, 0.18);
}

.empty-state {
    display: none;
    margin: 24px 0;
    padding: 28px;
    color: var(--soft);
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
}

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

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 30px 0 18px;
    color: var(--muted);
}

.breadcrumb a:hover {
    color: #7dd3fc;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 28px;
    padding: 24px;
}

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

.player-video,
.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.player-video {
    object-fit: contain;
    background: #000000;
}

.player-cover {
    z-index: 2;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #000000;
}

.player-cover.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

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

.player-mask {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.16), transparent 22rem),
        linear-gradient(0deg, rgba(2, 6, 23, 0.75), rgba(2, 6, 23, 0.18));
}

.player-start {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sky), var(--cyan));
    box-shadow: 0 18px 56px rgba(14, 165, 233, 0.45);
    transform: translate(-50%, -50%);
}

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    min-width: 0;
}

.detail-info h1 {
    font-size: clamp(32px, 4vw, 54px);
}

.detail-meta span {
    color: #ffffff;
    background: rgba(148, 163, 184, 0.12);
}

.detail-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 24px;
}

.story-card {
    padding: 28px;
}

.story-card h2 {
    margin-bottom: 14px;
    font-size: 26px;
}

.related-section {
    padding-bottom: 20px;
}

.movie-card.compact .poster-wrap {
    aspect-ratio: 16 / 9;
}

.site-footer {
    margin-top: 80px;
    padding: 34px 0 42px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner p {
    max-width: 560px;
    line-height: 1.8;
}

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

.footer-links a {
    padding: 8px 12px;
    color: var(--soft);
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.1);
}

.copyright {
    margin: 22px 0 0;
    font-size: 14px;
}

[data-movie-card].hidden {
    display: none;
}

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

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

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

    .menu-toggle {
        display: block;
    }

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

    .hero-slider {
        height: 72vh;
        min-height: 520px;
    }

    .hero-content {
        top: auto;
        bottom: 86px;
        transform: none;
    }

    .hero-arrow {
        display: none;
    }

    .intro-strip,
    .section-heading,
    .footer-inner {
        align-items: stretch;
        flex-direction: column;
    }

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

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

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

    .detail-hero {
        padding: 16px;
    }
}

@media (max-width: 560px) {
    .nav-shell,
    .intro-strip,
    .content-section,
    .split-section,
    .page-main,
    .detail-main,
    .site-footer {
        width: min(100% - 24px, 1180px);
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 42px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .list-grid,
    .movie-grid,
    .category-grid,
    .category-grid.overview {
        grid-template-columns: 1fr;
    }

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

    .ranking-item em {
        grid-column: 2;
    }

    .page-hero,
    .spotlight-card,
    .story-card {
        padding: 24px;
    }
}
