/* Site layer using the same dark slate and cyan visual language as the uploaded build. */
:root {
    color-scheme: dark;
    --bg: #020617;
    --surface: rgba(15, 23, 42, 0.82);
    --surface-strong: #0f172a;
    --surface-soft: rgba(30, 41, 59, 0.72);
    --border: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --orange: #fb923c;
    --red: #ef4444;
    --shadow: 0 24px 70px rgba(2, 6, 23, 0.45);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 28rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 32rem),
        var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

img {
    max-width: 100%;
}

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

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0));
    transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(18px);
}

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

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

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #ffffff;
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.35);
    font-size: 14px;
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted-strong);
    font-size: 14px;
    font-weight: 600;
}

.nav-link {
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--cyan);
}

.nav-link-soft {
    color: #94a3b8;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
    padding: 9px;
}

.mobile-menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    border-radius: 99px;
    background: var(--text);
}

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

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

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--muted-strong);
}

.mobile-nav a:hover {
    background: rgba(34, 211, 238, 0.12);
    color: var(--cyan);
}

.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(to top, var(--bg), transparent);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.36), rgba(2, 6, 23, 0.88)),
        radial-gradient(circle at 20% 70%, rgba(34, 211, 238, 0.18), transparent 22rem);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 132px 0 72px;
    max-width: 820px;
    margin-left: max(16px, calc((100vw - 1280px) / 2));
}

.hero-label,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--cyan);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-label::before,
.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--cyan);
    box-shadow: 0 0 18px var(--cyan);
}

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

.hero-content p {
    max-width: 760px;
    margin: 0 0 24px;
    color: #dbeafe;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.8;
}

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

.hero-tags span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.78);
    color: #cffafe;
}

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

.primary-button,
.ghost-button,
.hero-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-button,
.hero-search button {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #ffffff;
    box-shadow: 0 16px 35px rgba(6, 182, 212, 0.25);
}

.primary-button:hover,
.hero-search button:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 20px 45px rgba(6, 182, 212, 0.36);
}

.ghost-button {
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.64);
    color: #e2e8f0;
}

.ghost-button:hover {
    border-color: rgba(34, 211, 238, 0.55);
    color: var(--cyan);
}

.hero-search {
    display: flex;
    width: min(680px, 100%);
    margin-top: 30px;
    padding: 8px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.66);
    backdrop-filter: blur(16px);
}

.hero-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    outline: none;
    background: rgba(15, 23, 42, 0.82);
    color: var(--text);
    padding: 0 14px;
}

.hero-search input {
    border: none;
    background: transparent;
    font-size: 16px;
}

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

.no-top-padding {
    padding-top: 0;
}

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

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

.section-heading a {
    color: var(--cyan);
    font-weight: 800;
}

.compact-heading {
    margin-bottom: 20px;
}

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

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

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

.movie-card {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.58));
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.18);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: 0 26px 70px rgba(6, 182, 212, 0.15);
}

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

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

.movie-card:hover .poster-link img {
    transform: scale(1.06);
    filter: brightness(0.78);
}

.type-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.78);
    color: #cffafe;
    border: 1px solid rgba(34, 211, 238, 0.32);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.rank-badge {
    left: auto;
    right: 12px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    color: #ffffff;
    border: none;
}

.play-hover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 38px;
    opacity: 0;
    transition: opacity 0.25s ease;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.22), rgba(2, 6, 23, 0.56));
}

.movie-card:hover .play-hover {
    opacity: 1;
}

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

.movie-meta-row {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
}

.score {
    margin-left: auto;
    color: #facc15;
    font-weight: 900;
}

.movie-card h3 {
    min-height: 2.8em;
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--cyan);
}

.movie-card p {
    display: -webkit-box;
    min-height: 3.9em;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--muted-strong);
    line-height: 1.55;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list span {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.8);
    color: #cbd5e1;
    font-size: 12px;
}

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

.category-card {
    display: grid;
    gap: 18px;
    min-height: 240px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.14), transparent 12rem),
        rgba(15, 23, 42, 0.78);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

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

.category-covers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.category-covers img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.category-card span {
    color: var(--cyan);
    font-weight: 800;
}

.category-card h3 {
    margin: 8px 0;
    font-size: 24px;
}

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

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 28px;
    align-items: start;
}

.ranking-panel,
.detail-sidebar,
.detail-article,
.player-section {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.16);
}

.ranking-panel {
    position: sticky;
    top: 92px;
    padding: 20px;
}

.ranking-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-list a {
    display: grid;
    grid-template-columns: 34px 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.58);
}

.ranking-list a:hover {
    background: rgba(34, 211, 238, 0.12);
}

.ranking-index {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    font-weight: 900;
}

.ranking-list img {
    width: 58px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 10px;
}

.ranking-info {
    min-width: 0;
}

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

.ranking-info em {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

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

.page-hero {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 28px;
    padding: 56px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.62)),
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 24rem);
    box-shadow: var(--shadow);
}

.slim-hero {
    min-height: 280px;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 6vw, 64px);
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: var(--muted-strong);
    font-size: 18px;
    line-height: 1.8;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 0.5fr)) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.78);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 800;
}

.filter-count {
    min-width: 100px;
    color: var(--cyan);
    font-weight: 900;
    padding: 14px 0;
}

.empty-state {
    display: none;
    padding: 42px;
    text-align: center;
    color: var(--muted-strong);
    border: 1px dashed rgba(148, 163, 184, 0.3);
    border-radius: var(--radius);
}

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

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

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

.detail-hero {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 34px;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 20rem),
        rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 22px 55px rgba(2, 6, 23, 0.4);
}

.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.detail-one-line {
    max-width: 860px;
    color: #dbeafe;
    font-size: 19px;
    line-height: 1.8;
}

.detail-meta {
    margin: 22px 0;
}

.player-section {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 34px;
    padding: 24px;
}

.video-box {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

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

.video-play-button {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: none;
    color: #ffffff;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.18), rgba(2, 6, 23, 0.58));
    font-size: 20px;
    font-weight: 900;
}

.video-play-button span {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 45px rgba(34, 211, 238, 0.42);
    font-size: 34px;
}

.video-play-button.is-hidden {
    display: none;
}

.video-status {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.68);
    color: var(--muted-strong);
    font-size: 13px;
    pointer-events: none;
}

.video-status:empty {
    display: none;
}

.detail-content-grid {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
}

.detail-article,
.detail-sidebar {
    padding: 28px;
}

.detail-article h2,
.detail-sidebar h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

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

.detail-article p {
    margin: 0;
    color: var(--muted-strong);
    line-height: 2;
    font-size: 17px;
}

.detail-sidebar dl {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px 16px;
    margin: 0;
}

.detail-sidebar dt {
    color: var(--muted);
}

.detail-sidebar dd {
    margin: 0;
    color: var(--text);
}

.related-section {
    padding-top: 18px;
}

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

.footer-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: 28px;
    color: var(--muted-strong);
}

.footer-brand {
    margin-bottom: 12px;
    color: var(--text);
    font-size: 20px;
}

.footer-shell p {
    max-width: 640px;
    margin: 0;
    line-height: 1.7;
}

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

.footer-links a:hover {
    color: var(--cyan);
}

[hidden],
.movie-card.is-hidden {
    display: none !important;
}

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

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

    .two-column-section,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }
}

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

    .mobile-menu-button {
        display: block;
    }

    .hero-content {
        width: min(100% - 32px, 1280px);
        margin: 0 auto;
        padding-bottom: 44px;
    }

    .hero-search {
        display: grid;
        gap: 8px;
    }

    .hero-search button {
        width: 100%;
    }

    .content-section,
    .page-hero,
    .detail-hero,
    .player-section,
    .detail-content-grid,
    .breadcrumb,
    .footer-shell {
        width: min(100% - 24px, 1280px);
    }

    .page-hero {
        padding: 34px 22px;
    }

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .ranking-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

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

    .detail-hero {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .detail-poster {
        max-width: 280px;
    }

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

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .nav-shell {
        width: calc(100% - 20px);
    }

    .brand-text {
        font-size: 18px;
    }

    .hero-section {
        min-height: 76vh;
    }

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

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .ranking-grid {
        grid-template-columns: 1fr;
    }

    .movie-card h3 {
        min-height: auto;
    }

    .movie-card p {
        min-height: auto;
    }

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