
:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-solid: #0f172a;
    --muted: #94a3b8;
    --text: #f8fafc;
    --line: rgba(148, 163, 184, 0.18);
    --accent: #f8fafc;
    --accent-dark: #0f172a;
}

body.site-page {
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(circle at top left, rgba(51, 65, 85, 0.42), transparent 34rem), var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.site-nav {
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: max-content;
}

.brand-mark {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    color: #e2e8f0;
    font-weight: 800;
    background: linear-gradient(135deg, #475569, #1e293b);
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.35);
}

.brand-copy {
    display: grid;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.brand-copy small {
    margin-top: 0.15rem;
    color: var(--muted);
    font-size: 0.72rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.nav-link,
.mobile-nav-link {
    color: #cbd5e1;
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 180ms ease, background 180ms ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: #ffffff;
}

.menu-button {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    color: #e2e8f0;
    background: rgba(30, 41, 59, 0.8);
}

.mobile-nav {
    display: none;
    padding: 0.7rem 1rem 1rem;
    border-top: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.96);
}

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

.mobile-nav-link {
    display: block;
    padding: 0.7rem 0.9rem;
    border-radius: 0.75rem;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    background: rgba(51, 65, 85, 0.55);
}

.site-main {
    padding-top: 4rem;
}

.home-hero {
    position: relative;
    min-height: 85vh;
    overflow: hidden;
    background: #020617;
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #020617 0%, rgba(2, 6, 23, 0.86) 28%, rgba(15, 23, 42, 0.48) 64%, rgba(2, 6, 23, 0.35) 100%);
}

.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5.8rem;
}

.hero-copy {
    max-width: 48rem;
}

.hero-eyebrow {
    display: inline-flex;
    margin: 0 0 1rem;
    padding: 0.36rem 0.72rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.hero-copy h2,
.inner-hero h1,
.detail-info h1 {
    margin: 0;
    color: #f8fafc;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.hero-copy h2 {
    max-width: 42rem;
    font-size: clamp(2.8rem, 7vw, 6rem);
}

.hero-copy p:not(.hero-eyebrow) {
    max-width: 44rem;
    margin: 1.25rem 0 0;
    color: #cbd5e1;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.75;
}

.hero-actions,
.detail-info .primary-button {
    margin-top: 2rem;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0 1.35rem;
    border-radius: 0.8rem;
    font-weight: 800;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-button {
    color: var(--accent-dark);
    background: var(--accent);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
}

.ghost-button {
    margin-left: 0.7rem;
    color: #e2e8f0;
    border: 1px solid rgba(226, 232, 240, 0.24);
    background: rgba(15, 23, 42, 0.55);
}

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

.hero-topline {
    position: absolute;
    top: 1.6rem;
    left: 0;
    right: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.hero-topline h1 {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #e2e8f0;
    font-weight: 800;
}

.hero-quick-links {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.hero-quick-links a {
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.68);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.82rem;
}

.hero-dots {
    position: absolute;
    z-index: 5;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.hero-dots button {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.45);
    transition: width 180ms ease, background 180ms ease;
}

.hero-dots button.is-active {
    width: 2rem;
    background: #f8fafc;
}

.category-strip,
.content-section,
.category-overview,
.rank-top,
.detail-hero,
.player-section,
.detail-text,
.inner-hero {
    position: relative;
}

.category-strip {
    padding-top: 3rem;
}

.category-strip h2,
.section-heading h2,
.site-footer h2,
.detail-text h2 {
    color: #f8fafc;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.category-strip h2,
.section-heading h2 {
    font-size: clamp(1.55rem, 3vw, 2rem);
}

.category-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.category-chip-row a {
    padding: 0.72rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.68);
    color: #dbeafe;
    font-weight: 700;
}

.content-section {
    padding-top: 4rem;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1.3rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.85));
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    border-color: rgba(226, 232, 240, 0.32);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.movie-link {
    display: block;
    height: 100%;
}

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

.feature-grid .poster-frame,
.compact-card .poster-frame {
    aspect-ratio: 16 / 10;
}

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

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

.type-badge,
.rank-badge {
    position: absolute;
    top: 0.75rem;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.72);
    color: #e2e8f0;
    font-size: 0.72rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.type-badge {
    right: 0.75rem;
}

.rank-badge {
    left: 0.75rem;
    background: rgba(248, 250, 252, 0.92);
    color: #0f172a;
}

.movie-card-body {
    padding: 1rem;
}

.movie-meta-line,
.tag-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.movie-meta-line {
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 700;
}

.movie-meta-line span + span::before {
    content: "·";
    margin-right: 0.45rem;
    color: #475569;
}

.movie-card h3 {
    margin: 0.55rem 0 0;
    color: #f8fafc;
    font-size: 1.03rem;
    font-weight: 900;
    line-height: 1.35;
}

.movie-card p {
    margin: 0.55rem 0 0;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.tag-row {
    margin-top: 0.85rem;
}

.tag-row span {
    padding: 0.28rem 0.55rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(51, 65, 85, 0.35);
    font-size: 0.72rem;
    font-weight: 800;
}

.inner-hero {
    padding-top: 4rem;
    padding-bottom: 1rem;
}

.inner-hero h1 {
    max-width: 52rem;
    font-size: clamp(2.3rem, 6vw, 4.8rem);
}

.inner-hero p:not(.hero-eyebrow) {
    max-width: 48rem;
    margin: 1.2rem 0 0;
    color: #cbd5e1;
    line-height: 1.8;
    font-size: 1.05rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.4rem;
    color: #94a3b8;
    font-size: 0.86rem;
}

.breadcrumb a {
    color: #cbd5e1;
}

.category-overview {
    padding-top: 2.5rem;
}

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

.category-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1.35rem;
    background: rgba(15, 23, 42, 0.72);
}

.category-card-main {
    display: block;
    padding: 1.4rem;
}

.category-card-main span {
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.category-card-main h2 {
    margin: 0.4rem 0;
    font-size: 1.45rem;
    font-weight: 900;
}

.category-card-main p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.7;
}

.category-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
    padding: 0 1.4rem 1.4rem;
}

.category-preview img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 0.65rem;
    background: #0f172a;
}

.filter-panel {
    margin-bottom: 1.4rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    background: rgba(15, 23, 42, 0.72);
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    flex: 1;
    display: grid;
    gap: 0.35rem;
    color: #cbd5e1;
    font-weight: 800;
    font-size: 0.8rem;
}

.search-box input,
.select-row select {
    width: 100%;
    min-height: 2.75rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 0.85rem;
    background: rgba(2, 6, 23, 0.62);
    color: #f8fafc;
    padding: 0 0.9rem;
    outline: none;
}

.search-box input:focus,
.select-row select:focus {
    border-color: rgba(248, 250, 252, 0.5);
}

.select-row {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.select-row select {
    min-width: 9rem;
}

.no-results {
    display: none;
    margin: 1rem 0 0;
    color: #cbd5e1;
}

.no-results.is-visible {
    display: block;
}

.rank-top {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    padding-top: 2.5rem;
}

.rank-feature {
    overflow: hidden;
    border-radius: 1.35rem;
    border: 1px solid var(--line);
    background: #0f172a;
}

.rank-feature a {
    position: relative;
    display: block;
    min-height: 25rem;
    padding: 1.2rem;
}

.rank-feature img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.rank-feature a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.12));
}

.rank-feature span,
.rank-feature h2,
.rank-feature p {
    position: relative;
    z-index: 2;
}

.rank-feature span {
    display: inline-flex;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #f8fafc;
    color: #0f172a;
    font-weight: 900;
}

.rank-feature h2 {
    margin: 14rem 0 0;
    font-size: 1.5rem;
    font-weight: 900;
}

.rank-feature p {
    color: #cbd5e1;
    line-height: 1.7;
}

.detail-hero {
    padding-top: 3.2rem;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(14rem, 22rem) minmax(0, 1fr);
    gap: 2rem;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border-radius: 1.35rem;
    border: 1px solid var(--line);
    background: #0f172a;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

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

.detail-info h1 {
    max-width: 56rem;
    font-size: clamp(2rem, 5vw, 4.5rem);
}

.detail-one-line {
    max-width: 54rem;
    margin: 1.2rem 0 0;
    color: #cbd5e1;
    font-size: 1.08rem;
    line-height: 1.85;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.3rem;
}

.detail-meta-grid div {
    padding: 0.8rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.72);
}

.detail-meta-grid span {
    display: block;
    color: #94a3b8;
    font-size: 0.75rem;
}

.detail-meta-grid strong {
    display: block;
    margin-top: 0.25rem;
    color: #f8fafc;
    font-size: 0.94rem;
}

.detail-tags {
    margin-top: 1rem;
}

.player-section {
    padding-top: 3rem;
}

.player-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1.35rem;
    background: #000000;
    box-shadow: 0 26px 90px rgba(0, 0, 0, 0.38);
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    color: #f8fafc;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.22), rgba(2, 6, 23, 0.78));
    cursor: pointer;
}

.player-overlay.is-hidden {
    display: none;
}

.play-circle {
    width: 5.2rem;
    height: 5.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #0f172a;
    background: #f8fafc;
    font-size: 2rem;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.player-overlay strong {
    font-size: 1.1rem;
}

.detail-text {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    padding-top: 3rem;
}

.detail-text article {
    padding: 1.4rem;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: rgba(15, 23, 42, 0.72);
}

.detail-text h2 {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
}

.detail-text p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.9;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    padding-top: 2.5rem;
    padding-bottom: 2rem;
}

.site-footer h2 {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
}

.site-footer p,
.site-footer a,
.footer-bottom {
    color: #94a3b8;
    line-height: 1.8;
}

.site-footer ul {
    display: grid;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    padding: 1rem;
    text-align: center;
    font-size: 0.88rem;
}

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

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

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

    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .home-hero {
        min-height: 78vh;
    }

    .hero-content {
        bottom: 5rem;
    }

    .hero-topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid,
    .feature-grid,
    .category-grid,
    .rank-top,
    .detail-text,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-layout {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .detail-poster {
        max-width: 18rem;
    }

    .filter-row {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .brand-copy small {
        display: none;
    }

    .hero-copy h2 {
        font-size: 2.7rem;
    }

    .hero-actions {
        display: grid;
        gap: 0.7rem;
    }

    .ghost-button {
        margin-left: 0;
    }

    .movie-grid,
    .feature-grid,
    .category-grid,
    .rank-top,
    .detail-text,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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