:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.72);
    --panel-strong: rgba(15, 23, 42, 0.92);
    --line: rgba(96, 165, 250, 0.18);
    --line-soft: rgba(148, 163, 184, 0.14);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --blue: #60a5fa;
    --cyan: #22d3ee;
    --deep: #0f172a;
    --radius: 22px;
    --shadow: 0 28px 90px rgba(15, 23, 42, 0.5);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.24), transparent 34rem),
        radial-gradient(circle at 88% 10%, rgba(34, 211, 238, 0.18), transparent 32rem),
        linear-gradient(180deg, #020617 0%, #0f172a 52%, #020617 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.86));
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.42);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--blue), var(--cyan), #93c5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #dbeafe;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(8, 145, 178, 0.95));
    box-shadow: 0 0 32px rgba(96, 165, 250, 0.35);
}

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

.desktop-nav a,
.mobile-nav a {
    padding: 10px 13px;
    border-radius: 999px;
    color: var(--soft);
    font-size: 14px;
    transition: 0.22s ease;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"],
.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.18);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.18);
}

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

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: #bfdbfe;
}

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.96);
}

.page-main {
    padding-top: 74px;
}

.hero {
    width: min(1280px, calc(100% - 32px));
    min-height: 720px;
    margin: 0 auto;
    padding: 56px 0 36px;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.75fr);
    gap: 24px;
    align-items: stretch;
}

.hero-stage {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    border: 1px solid var(--line);
    border-radius: 32px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: scale(1.02);
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.48), rgba(2, 6, 23, 0.78)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 58%);
}

.hero-content {
    position: absolute;
    left: clamp(22px, 5vw, 72px);
    right: clamp(22px, 10vw, 210px);
    bottom: clamp(34px, 8vw, 90px);
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-content p,
.hero-panel p,
.page-hero p,
.detail-lead {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--soft);
    font-size: 18px;
}

.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: 4px 10px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.14);
    color: #bfdbfe;
    font-size: 12px;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 800;
    transition: 0.22s ease;
}

.button-primary {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
    box-shadow: 0 16px 42px rgba(37, 99, 235, 0.35);
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 54px rgba(37, 99, 235, 0.48);
}

.button-ghost {
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.62);
    color: #e2e8f0;
}

.button-ghost:hover {
    background: rgba(30, 41, 59, 0.86);
    border-color: rgba(96, 165, 250, 0.35);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    transform: translateY(-50%);
    transition: 0.22s ease;
}

.hero-arrow:hover {
    background: rgba(37, 99, 235, 0.5);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

.hero-dots button {
    width: 26px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.36);
    transition: 0.22s ease;
}

.hero-dots button.is-active {
    width: 44px;
    background: #38bdf8;
}

.hero-panel,
.glass-card,
.filter-panel,
.category-card,
.category-overview-card,
.movie-card,
.rank-item a {
    border: 1px solid var(--line-soft);
    background: var(--panel);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.28);
}

.hero-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 4vw, 38px);
    border-radius: 32px;
}

.hero-panel h2,
.section-head h2,
.page-hero h1,
.detail-copy h1,
.detail-article h2,
.info-panel h2 {
    margin: 0;
    color: #fff;
}

.hero-panel h2,
.section-head h2 {
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.04em;
}

.hero-search,
.filter-search {
    display: flex;
    gap: 10px;
    margin-top: 28px;
}

.hero-search input,
.filter-search input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 16px;
    outline: none;
    background: rgba(2, 6, 23, 0.62);
    color: #fff;
}

.hero-search input:focus,
.filter-search input:focus {
    border-color: rgba(34, 211, 238, 0.64);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}

.hero-search button {
    min-width: 86px;
    border: 0;
    border-radius: 16px;
    background: #2563eb;
    color: #fff;
    font-weight: 800;
}

.quick-links,
.footer-links,
.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-links {
    margin-top: 22px;
}

.quick-links a,
.footer-links a,
.category-samples a,
.text-link {
    color: #93c5fd;
}

.quick-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.1);
}

.stats-strip,
.section-block,
.footer-grid {
    width: min(1280px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 8px;
    margin-bottom: 58px;
}

.stats-strip div {
    padding: 22px;
    border: 1px solid var(--line-soft);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.6);
}

.stats-strip strong {
    display: block;
    color: #fff;
    font-size: 34px;
    line-height: 1;
}

.stats-strip span {
    color: var(--muted);
}

.section-block {
    margin-bottom: 74px;
}

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

.section-head.compact {
    margin-bottom: 18px;
}

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

.category-card,
.category-overview-card {
    min-height: 170px;
    padding: 24px;
    border-radius: 26px;
    transition: 0.24s ease;
}

.category-card:hover,
.category-overview-card:hover,
.movie-card:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.38);
    box-shadow: 0 26px 76px rgba(2, 6, 23, 0.48);
}

.category-card span,
.category-title {
    display: block;
    color: #fff;
    font-size: 22px;
    font-weight: 850;
}

.category-card strong,
.category-overview-card strong {
    display: block;
    margin-top: 14px;
    color: var(--cyan);
    font-size: 30px;
}

.category-card em,
.category-overview-card p {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-style: normal;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    gap: 20px;
    align-items: start;
}

.spotlight-card {
    position: sticky;
    top: 98px;
    padding: 28px;
    border-radius: 26px;
}

.spotlight-card p {
    color: var(--soft);
}

.rank-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.rank-item a {
    display: grid;
    grid-template-columns: 44px 54px minmax(0, 1fr) 42px;
    gap: 12px;
    align-items: center;
    min-height: 82px;
    padding: 12px;
    border-radius: 20px;
}

.rank-number {
    color: #38bdf8;
    font-size: 22px;
    font-weight: 900;
}

.rank-item img {
    width: 54px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    background: #0f172a;
}

.rank-copy {
    min-width: 0;
}

.rank-copy strong,
.rank-copy em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-copy strong {
    color: #fff;
}

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

.rank-heat {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.18);
    color: #bfdbfe;
    font-weight: 800;
}

.filter-panel {
    margin-bottom: 22px;
    padding: 16px;
    border-radius: 24px;
}

.filter-panel .filter-search {
    margin-top: 0;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.filter-chip {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: var(--soft);
    transition: 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
    color: #fff;
    border-color: rgba(96, 165, 250, 0.42);
    background: rgba(37, 99, 235, 0.28);
}

.filter-result {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    transition: 0.24s ease;
}

.poster-link,
.poster-frame {
    display: block;
}

.poster-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #0f172a;
}

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

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

.poster-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.72);
    color: #e0f2fe;
    font-size: 12px;
    backdrop-filter: blur(10px);
}

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

.movie-title {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-title:hover {
    color: #7dd3fc;
}

.movie-meta {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

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

.movie-card-small .movie-line {
    display: none;
}

.inner-page {
    padding-top: 110px;
}

.page-hero {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 44px;
    padding: clamp(32px, 6vw, 72px);
    border: 1px solid var(--line);
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(15, 23, 42, 0.78)),
        radial-gradient(circle at 90% 0%, rgba(34, 211, 238, 0.22), transparent 25rem);
    box-shadow: var(--shadow);
}

.slim-hero,
.category-hero {
    min-height: 290px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.breadcrumb {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #93c5fd;
}

.detail-hero,
.detail-layout {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    gap: 24px;
}

.detail-hero {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
    align-items: stretch;
}

.player-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 32px;
    background: #000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.68));
    color: #fff;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-cover span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    padding-left: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 0 0 14px rgba(96, 165, 250, 0.14), 0 20px 70px rgba(37, 99, 235, 0.44);
    font-size: 36px;
}

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

.detail-copy {
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--line-soft);
    border-radius: 32px;
    background: rgba(15, 23, 42, 0.72);
}

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

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

.detail-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    margin-top: 24px;
    align-items: start;
}

.detail-article,
.info-panel {
    padding: 26px;
    border-radius: 26px;
}

.detail-article h2:not(:first-child) {
    margin-top: 28px;
}

.detail-article p {
    margin: 12px 0 0;
    color: var(--soft);
    font-size: 17px;
}

.info-panel {
    position: sticky;
    top: 98px;
}

.info-panel dl {
    margin: 18px 0 0;
}

.info-panel div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
}

.info-panel dt {
    color: var(--muted);
}

.info-panel dd {
    margin: 0;
    color: #fff;
    text-align: right;
}

.related-block {
    margin-top: 54px;
}

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

.site-footer {
    margin-top: 88px;
    padding: 48px 0;
    border-top: 1px solid var(--line-soft);
    background: rgba(2, 6, 23, 0.5);
}

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

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

.site-footer p,
.site-footer h2 {
    margin: 0;
}

.site-footer p {
    color: var(--muted);
}

.site-footer h2 {
    margin-bottom: 14px;
    font-size: 18px;
}

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

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

    .menu-button {
        display: block;
    }

    .mobile-nav.is-open {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .hero-stage {
        min-height: 560px;
    }

    .spotlight-card,
    .info-panel {
        position: static;
    }

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

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

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

@media (max-width: 820px) {
    .nav-shell {
        height: 66px;
    }

    .page-main {
        padding-top: 66px;
    }

    .hero {
        width: min(100% - 20px, 1280px);
        min-height: auto;
        padding-top: 24px;
    }

    .hero-stage {
        min-height: 540px;
        border-radius: 24px;
    }

    .hero-content {
        left: 22px;
        right: 22px;
        bottom: 50px;
    }

    .hero-content p,
    .hero-panel p,
    .page-hero p,
    .detail-lead {
        font-size: 16px;
    }

    .hero-arrow {
        display: none;
    }

    .stats-strip,
    .category-grid,
    .category-overview-grid,
    .rank-list,
    .rank-list-wide {
        grid-template-columns: 1fr;
    }

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

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

    .section-head {
        align-items: start;
        flex-direction: column;
    }

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

    .hero-search button {
        min-height: 46px;
    }

    .page-hero,
    .detail-hero,
    .detail-layout,
    .section-block,
    .stats-strip,
    .breadcrumb,
    .footer-grid {
        width: min(100% - 20px, 1280px);
    }

    .inner-page {
        padding-top: 92px;
    }

    .player-card {
        border-radius: 22px;
    }

    .play-cover span {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
}

@media (max-width: 520px) {
    .brand {
        font-size: 21px;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
    }

    .mobile-nav.is-open {
        grid-template-columns: 1fr;
    }

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

    .hero-stage {
        min-height: 500px;
    }

    .movie-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-heat {
        display: none;
    }
}
