:root {
    color-scheme: dark;
    --site-bg: #020617;
    --site-panel: rgba(15, 23, 42, 0.82);
    --site-panel-strong: rgba(15, 23, 42, 0.94);
    --site-border: rgba(148, 163, 184, 0.18);
    --site-text: #ffffff;
    --site-muted: #94a3b8;
    --site-soft: #cbd5e1;
    --site-cyan: #22d3ee;
    --site-cyan-deep: #0891b2;
    --site-radius: 1.5rem;
    --site-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.13), transparent 34rem),
        radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.10), transparent 28rem),
        var(--site-bg);
    color: var(--site-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

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

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 1.25rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: inline-grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, #22d3ee, #2563eb);
    box-shadow: 0 14px 40px rgba(34, 211, 238, 0.28);
}

.brand-text {
    font-size: 1.08rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    overflow-x: auto;
}

.nav-link,
.mobile-nav-link {
    color: #cbd5e1;
    font-size: 0.92rem;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link {
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: #67e8f9;
    background: rgba(34, 211, 238, 0.10);
}

.mobile-menu-button {
    display: none;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--site-border);
    border-radius: 0.9rem;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid var(--site-border);
    background: rgba(2, 6, 23, 0.96);
}

.mobile-nav.is-open {
    display: flex;
}

.mobile-nav-link {
    padding: 0.7rem 0.85rem;
    border-radius: 0.9rem;
}

.hero-carousel {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    padding: 8rem 0 4rem;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: 0.28;
    filter: blur(1px) saturate(1.1);
    transform: scale(1.04);
    transition: background-image 0.4s ease, opacity 0.4s ease;
}

.hero-shade,
.detail-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.96)),
        linear-gradient(180deg, rgba(2, 6, 23, 0.18), #020617 96%);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(280px, 0.84fr);
    align-items: center;
    gap: 4rem;
}

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

.hero-eyebrow,
.section-eyebrow {
    margin: 0 0 0.75rem;
    color: #67e8f9;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.5rem, 6vw, 5.8rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-description {
    max-width: 660px;
    margin: 1.5rem 0 0;
    color: #e2e8f0;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.75;
}

.hero-meta,
.detail-meta {
    margin: 1rem 0 0;
    color: #94a3b8;
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.primary-button,
.ghost-button,
.section-action,
.filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    background: linear-gradient(135deg, #22d3ee, #2563eb);
    color: #ffffff;
    box-shadow: 0 18px 50px rgba(34, 211, 238, 0.24);
}

.ghost-button,
.section-action,
.filter-reset {
    border: 1px solid var(--site-border);
    background: rgba(15, 23, 42, 0.74);
    color: #e2e8f0;
}

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

.hero-search {
    display: flex;
    max-width: 620px;
    margin-top: 2rem;
    padding: 0.4rem;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.76);
    box-shadow: var(--site-shadow);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0.85rem 1rem;
    background: transparent;
    color: #ffffff;
}

.hero-search button {
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1.25rem;
    background: #0891b2;
    color: #ffffff;
    font-weight: 800;
}

.hero-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.hero-dots button {
    width: 2.1rem;
    height: 0.35rem;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.4);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: #22d3ee;
}

.hero-poster {
    position: relative;
    display: block;
    max-width: 430px;
    margin-left: auto;
    border: 1px solid rgba(34, 211, 238, 0.26);
    border-radius: 2rem;
    background: rgba(15, 23, 42, 0.82);
    box-shadow: 0 26px 90px rgba(0, 0, 0, 0.44);
    overflow: hidden;
    transform: rotate(2deg);
}

.hero-poster-image {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: linear-gradient(135deg, #0f172a, #164e63);
}

.hero-poster-glow {
    position: absolute;
    inset: auto 10% -20% 10%;
    height: 34%;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.36);
    filter: blur(34px);
}

.hero-score {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: grid;
    gap: 0.1rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1rem;
    background: rgba(2, 6, 23, 0.74);
    backdrop-filter: blur(10px);
}

.hero-score strong {
    font-size: 1.45rem;
    color: #67e8f9;
}

.hero-score em {
    color: #cbd5e1;
    font-size: 0.78rem;
    font-style: normal;
}

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

.page-hero {
    position: relative;
    padding: 5.5rem 0 3rem;
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.14), transparent 24rem),
        linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0));
}

.page-hero h1 {
    max-width: 880px;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.05;
}

.page-hero p:last-child {
    max-width: 820px;
    color: #cbd5e1;
    font-size: 1.08rem;
    line-height: 1.8;
}

.site-section {
    padding: 4rem 0;
}

.section-muted {
    background: rgba(15, 23, 42, 0.34);
}

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

.section-heading h2,
.panel-heading h2,
.player-heading h2,
.text-panel h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-heading p:not(.section-eyebrow) {
    max-width: 720px;
    margin: 0.5rem 0 0;
    color: #94a3b8;
    line-height: 1.75;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: 1.25rem;
    background: var(--site-panel);
    box-shadow: 0 14px 50px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.38);
    box-shadow: 0 24px 70px rgba(34, 211, 238, 0.13);
}

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

.poster-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(37, 99, 235, 0.12)),
        #0f172a;
}

.poster-image,
.category-cover-image,
.category-overview-image,
.detail-poster-image,
.rank-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.25s ease;
}

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

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

.poster-year,
.poster-play {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.poster-year {
    top: 0.7rem;
    left: 0.7rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.72);
    color: #e2e8f0;
    font-size: 0.75rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.poster-play {
    right: 0.7rem;
    bottom: 0.7rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.86);
    color: #020617;
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(34, 211, 238, 0.26);
}

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

.movie-card-title {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.35;
}

.movie-card-title a:hover,
.rank-info a:hover,
.text-link:hover {
    color: #67e8f9;
}

.movie-meta,
.movie-line {
    margin: 0.45rem 0 0;
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.55;
}

.movie-line {
    color: #cbd5e1;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.75rem;
}

.tag-badge {
    display: inline-flex;
    padding: 0.18rem 0.5rem;
    border: 1px solid rgba(34, 211, 238, 0.20);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.08);
    color: #a5f3fc;
    font-size: 0.72rem;
}

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

.category-tile,
.category-overview-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    background: var(--site-panel);
    box-shadow: var(--site-shadow);
}

.category-tile {
    min-height: 220px;
}

.category-cover {
    position: absolute;
    inset: 0;
    opacity: 0.28;
}

.category-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.96));
}

.category-content {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 220px;
    flex-direction: column;
    justify-content: end;
    gap: 0.4rem;
    padding: 1.25rem;
}

.category-content strong {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 900;
}

.category-content em,
.category-content span,
.category-overview-card p {
    color: #cbd5e1;
    font-style: normal;
    line-height: 1.65;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
}

.category-overview-cover {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 1rem;
    background: #0f172a;
}

.category-overview-card h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 900;
}

.category-keywords {
    color: #67e8f9 !important;
}

.text-link {
    display: inline-flex;
    margin-top: 0.4rem;
    color: #22d3ee;
    font-weight: 800;
}

.two-column-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 1.5rem;
    align-items: start;
}

.ranking-panel,
.text-panel {
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    background: var(--site-panel-strong);
    box-shadow: var(--site-shadow);
}

.ranking-panel {
    position: sticky;
    top: 90px;
    padding: 1rem;
}

.panel-heading {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.panel-heading p {
    margin: 0;
    color: #67e8f9;
    font-weight: 800;
}

.panel-heading a {
    color: #22d3ee;
    font-weight: 800;
}

.rank-list {
    display: grid;
    gap: 0.8rem;
}

.rank-row {
    display: grid;
    grid-template-columns: 54px 74px minmax(0, 1fr) auto;
    gap: 0.9rem;
    align-items: center;
    padding: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 1.1rem;
    background: rgba(15, 23, 42, 0.64);
}

.small-rank-list .rank-row {
    grid-template-columns: 42px 58px minmax(0, 1fr);
}

.small-rank-list .rank-score {
    display: none;
}

.rank-number {
    color: #67e8f9;
    font-size: 1.1rem;
    font-weight: 950;
}

.rank-thumb {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 0.75rem;
    background: #0f172a;
}

.rank-info h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 850;
}

.rank-info p {
    margin: 0.25rem 0 0;
    color: #94a3b8;
    font-size: 0.84rem;
    line-height: 1.5;
}

.rank-score {
    text-align: right;
}

.rank-score strong {
    display: block;
    color: #67e8f9;
    font-size: 1.3rem;
}

.rank-score span {
    color: #94a3b8;
    font-size: 0.78rem;
}

.filter-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 170px 170px auto;
    gap: 0.9rem;
    align-items: end;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    background: var(--site-panel);
}

.filter-field {
    display: grid;
    gap: 0.35rem;
}

.filter-field span {
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 800;
}

.filter-field input,
.filter-field select {
    min-height: 44px;
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 0.95rem;
    outline: 0;
    padding: 0.65rem 0.8rem;
    background: rgba(2, 6, 23, 0.66);
    color: #ffffff;
}

.result-status {
    margin: 0 0 1rem;
    color: #a5f3fc;
    font-weight: 800;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 5.5rem 0 3.5rem;
    background-image:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.74), rgba(2, 6, 23, 0.96)),
        var(--detail-bg);
    background-position: center;
    background-size: cover;
}

.detail-hero-content {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-bottom: 1.2rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.breadcrumb a:hover {
    color: #67e8f9;
}

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

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 1.7rem;
    background: #0f172a;
    box-shadow: var(--site-shadow);
}

.detail-poster-image {
    aspect-ratio: 2 / 3;
}

.detail-copy h1 {
    max-width: 860px;
    font-size: clamp(2.2rem, 5vw, 5rem);
}

.detail-one-line {
    max-width: 820px;
    color: #e2e8f0;
    font-size: 1.15rem;
    line-height: 1.8;
}

.detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.detail-stats span {
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--site-border);
    border-radius: 1rem;
    background: rgba(2, 6, 23, 0.52);
    color: #cbd5e1;
}

.detail-stats strong {
    color: #67e8f9;
}

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

.player-heading span {
    color: #67e8f9;
    font-weight: 800;
}

.video-stage {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: var(--site-radius);
    background: #000000;
    box-shadow: var(--site-shadow);
}

.video-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.4rem;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.82));
    color: #ffffff;
    cursor: pointer;
}

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

.video-play-icon {
    display: grid;
    width: 4.8rem;
    height: 4.8rem;
    place-items: center;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.92);
    color: #020617;
    font-size: 1.7rem;
    font-weight: 900;
    box-shadow: 0 18px 55px rgba(34, 211, 238, 0.28);
}

.video-overlay strong {
    font-size: 1.2rem;
}

.video-overlay em,
.video-tip {
    color: #cbd5e1;
    font-style: normal;
}

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

.text-panel {
    padding: 1.3rem;
}

.text-panel p:last-child {
    color: #cbd5e1;
    line-height: 1.9;
}

.site-footer {
    padding: 3.5rem 0;
    border-top: 1px solid var(--site-border);
    background: rgba(2, 6, 23, 0.86);
}

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

.footer-brand {
    margin-bottom: 1rem;
}

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

.site-footer h3 {
    margin: 0 0 0.8rem;
    color: #ffffff;
    font-weight: 900;
}

.footer-links {
    display: grid;
    gap: 0.45rem;
}

.footer-links a:hover {
    color: #67e8f9;
}

.is-hidden {
    display: none !important;
}

.image-fallback-hidden {
    opacity: 0;
}

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

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

    .two-column-layout {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }
}

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

    .mobile-menu-button {
        display: inline-flex;
    }

    .hero-carousel {
        min-height: auto;
        padding: 6.5rem 0 3rem;
    }

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

    .hero-poster {
        width: min(360px, 100%);
        margin: 0;
        transform: none;
    }

    .filter-toolbar,
    .search-toolbar {
        grid-template-columns: 1fr;
    }

    .rank-row,
    .small-rank-list .rank-row {
        grid-template-columns: 42px 58px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 3;
        text-align: left;
    }

    .category-overview-card {
        grid-template-columns: 120px minmax(0, 1fr);
    }
}

@media (max-width: 620px) {
    .site-container {
        width: min(100% - 22px, 1180px);
    }

    .brand-text {
        font-size: 0.98rem;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        letter-spacing: -0.04em;
    }

    .hero-search {
        flex-direction: column;
        border-radius: 1.2rem;
    }

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

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

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

    .category-overview-card {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .section-heading,
    .player-heading {
        align-items: start;
        flex-direction: column;
    }

    .detail-stats {
        flex-direction: column;
    }
}
