:root {
    color-scheme: dark;
    --site-bg: #020617;
    --panel-bg: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(30, 41, 59, 0.92);
    --border: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --accent: #06b6d4;
    --accent-strong: #0891b2;
    --accent-soft: rgba(6, 182, 212, 0.16);
    --radius: 22px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, rgba(8, 145, 178, 0.2), transparent 34rem),
        radial-gradient(circle at 90% 18%, rgba(14, 116, 144, 0.16), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

img {
    max-width: 100%;
}

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

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

.site-header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.site-logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.28);
}

.site-logo-text {
    font-size: 1.15rem;
}

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

.desktop-nav {
    margin-left: auto;
}

.nav-link,
.nav-chip,
.mobile-nav-link {
    color: var(--soft);
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover {
    color: #67e8f9;
}

.nav-chip {
    padding: 8px 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.6);
    font-size: 0.86rem;
}

.nav-chip:hover {
    background: var(--accent-soft);
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.7);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-button span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
}

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

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

.mobile-nav-link {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.75);
}

.hero-section {
    position: relative;
    height: min(760px, 72vh);
    min-height: 560px;
    overflow: hidden;
    background: #020617;
}

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

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hero-slide-image,
.detail-backdrop {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.68) 45%, rgba(2, 6, 23, 0.18) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.25) 45%, rgba(2, 6, 23, 0.15) 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 86px;
}

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

.hero-kicker,
.section-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 13px;
    border: 1px solid rgba(103, 232, 249, 0.22);
    border-radius: 999px;
    color: #67e8f9;
    background: rgba(6, 182, 212, 0.13);
    font-size: 0.86rem;
    font-weight: 700;
}

.hero-copy h1,
.page-hero h1,
.detail-intro h1 {
    margin: 0;
    color: white;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    font-size: clamp(2.4rem, 7vw, 5.6rem);
    max-width: 860px;
}

.hero-copy p {
    max-width: 720px;
    margin: 22px 0 0;
    color: #cbd5e1;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
}

.hero-meta,
.detail-meta-grid,
.rank-meta,
.movie-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta {
    margin-top: 22px;
}

.hero-meta span,
.detail-meta-grid span,
.rank-meta span,
.movie-card-meta span,
.movie-card-meta a {
    color: var(--soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
}

.hero-meta span,
.detail-meta-grid span,
.rank-meta span {
    padding: 7px 12px;
}

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

.primary-button,
.secondary-button,
.rank-action,
.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.primary-button {
    color: white;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 16px 42px rgba(6, 182, 212, 0.25);
}

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

.primary-button:hover,
.secondary-button:hover,
.rank-action:hover,
.text-button:hover {
    transform: translateY(-2px);
}

.hero-dots {
    position: absolute;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 70px;
    z-index: 4;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.28);
}

.hero-dot.is-active {
    width: 34px;
    border-color: #67e8f9;
    background: #67e8f9;
}

.hero-featured-panel {
    position: relative;
    z-index: 5;
    margin-top: -58px;
    display: grid;
    grid-template-columns: 0.9fr 1.6fr;
    gap: 22px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.hero-featured-copy h2,
.section-heading h2,
.player-caption h2,
.content-card h2,
.footer-heading {
    color: white;
    font-weight: 850;
}

.hero-featured-copy h2 {
    font-size: 1.6rem;
    line-height: 1.25;
}

.hero-featured-copy p,
.section-heading p,
.page-hero p,
.footer-text,
.content-card p,
.player-caption p {
    color: var(--muted);
    line-height: 1.8;
}

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

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

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 2.55rem);
    letter-spacing: -0.03em;
}

.section-more,
.text-button {
    color: #67e8f9;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(103, 232, 249, 0.38);
    background: rgba(15, 23, 42, 0.96);
}

.movie-card.is-hidden,
.rank-item.is-hidden {
    display: none;
}

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

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

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

.movie-play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    background: rgba(6, 182, 212, 0.88);
    box-shadow: 0 16px 42px rgba(6, 182, 212, 0.32);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    transition: opacity 220ms ease, transform 220ms ease;
}

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

.movie-year-pill {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: white;
    background: rgba(2, 6, 23, 0.78);
    font-size: 0.8rem;
    font-weight: 800;
}

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

.movie-card-meta {
    gap: 7px;
    margin-bottom: 12px;
}

.movie-card-meta span,
.movie-card-meta a {
    padding: 4px 8px;
    font-size: 0.76rem;
}

.movie-card-title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 820;
    line-height: 1.38;
}

.movie-card-title a:hover,
.rank-content h2 a:hover {
    color: #67e8f9;
}

.movie-card-summary {
    min-height: 3.2em;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-badge {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    color: #a5f3fc;
    background: rgba(8, 145, 178, 0.15);
    font-size: 0.78rem;
}

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

.movie-card-compact .movie-card-summary,
.movie-card-compact .movie-card-tags,
.movie-card-compact .movie-card-meta span:nth-child(n+3) {
    display: none;
}

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

.category-tile,
.category-overview-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.8);
}

.category-tile {
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    padding: 22px;
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: transform 500ms ease, opacity 300ms ease;
}

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

.category-tile:hover img {
    opacity: 0.7;
    transform: scale(1.05);
}

.category-tile div {
    position: relative;
    z-index: 2;
}

.category-tile span {
    color: #67e8f9;
    font-size: 0.86rem;
    font-weight: 800;
}

.category-tile h2 {
    margin: 8px 0;
    font-size: 1.35rem;
    font-weight: 850;
}

.category-tile p {
    margin: 0;
    color: var(--soft);
    line-height: 1.6;
}

.rank-list {
    display: grid;
    gap: 14px;
}

.rank-item {
    display: grid;
    grid-template-columns: 56px 88px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.76);
}

.rank-number {
    color: #64748b;
    font-size: 1.35rem;
    font-weight: 900;
}

.rank-top {
    color: #67e8f9;
}

.rank-poster {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 2 / 3;
    background: #0f172a;
}

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

.rank-content h2 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    font-weight: 850;
}

.rank-content p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.6;
}

.rank-action {
    color: white;
    background: rgba(8, 145, 178, 0.9);
}

.page-hero {
    padding: 86px 0 22px;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 4.2rem);
}

.page-hero p {
    max-width: 760px;
    margin-top: 18px;
    font-size: 1.05rem;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 0.95fr 1.1fr;
    gap: 18px;
    padding: 18px;
}

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

.category-image-stack img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
    background: #0f172a;
}

.category-overview-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-overview-body h1 {
    margin: 0 0 12px;
    font-size: 1.55rem;
    font-weight: 850;
}

.category-overview-body p {
    color: var(--muted);
    line-height: 1.7;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.8fr repeat(4, 1fr) auto;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.78);
}

.filter-control {
    display: grid;
    gap: 8px;
    color: var(--soft);
    font-size: 0.86rem;
}

.filter-control input,
.filter-control select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0 12px;
    color: white;
    background: rgba(2, 6, 23, 0.72);
    outline: none;
}

.filter-control input:focus,
.filter-control select:focus {
    border-color: rgba(103, 232, 249, 0.55);
}

.filter-result {
    align-self: end;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 14px;
    color: #a5f3fc;
    background: rgba(6, 182, 212, 0.12);
    white-space: nowrap;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
}

.detail-backdrop,
.detail-backdrop-overlay {
    position: absolute;
    inset: 0;
}

.detail-backdrop {
    opacity: 0.38;
    filter: blur(1px);
}

.detail-backdrop-overlay {
    background:
        linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.82) 42%, rgba(2, 6, 23, 0.92) 100%),
        linear-gradient(0deg, #020617 0%, transparent 65%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 46px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    margin-bottom: 28px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 42px;
    align-items: end;
}

.detail-poster-wrap {
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 10px;
    background: rgba(15, 23, 42, 0.74);
    box-shadow: var(--shadow);
}

.detail-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 22px;
    background: #0f172a;
}

.detail-intro h1 {
    font-size: clamp(2.2rem, 5vw, 4.8rem);
}

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

.detail-meta-grid {
    margin-bottom: 18px;
}

.detail-tags {
    margin-bottom: 28px;
}

.player-card,
.content-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.82);
    box-shadow: var(--shadow);
}

.player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.movie-player {
    width: 100%;
    height: 100%;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: white;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.74), rgba(2, 6, 23, 0.26));
}

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

.player-button {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 22px 60px rgba(6, 182, 212, 0.38);
    font-size: 2rem;
}

.player-caption {
    padding: 24px;
}

.player-caption h2,
.content-card h2 {
    margin: 0 0 12px;
    font-size: 1.45rem;
}

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

.content-card {
    padding: 26px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 32px;
    padding: 44px 0;
}

.footer-heading {
    margin: 0 0 16px;
    font-size: 1rem;
}

.footer-links {
    display: grid;
    gap: 10px;
}

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

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

.footer-text {
    margin-top: 16px;
}

.footer-bottom {
    padding: 18px;
    border-top: 1px solid var(--border);
    color: #64748b;
    text-align: center;
}

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

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

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

@media (max-width: 820px) {
    .site-header-inner {
        height: 66px;
    }

    .desktop-nav {
        display: none;
    }

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

    .hero-section {
        height: auto;
        min-height: 680px;
    }

    .hero-content {
        align-items: flex-end;
        padding-bottom: 96px;
    }

    .hero-overlay {
        background:
            linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.75) 62%, rgba(2, 6, 23, 0.3) 100%);
    }

    .hero-dots {
        left: 16px;
        right: auto;
        bottom: 42px;
    }

    .hero-featured-panel,
    .detail-layout,
    .detail-content,
    .footer-grid,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

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

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

    .detail-poster-wrap {
        max-width: 320px;
    }

    .rank-item {
        grid-template-columns: 44px 68px 1fr;
    }

    .rank-action {
        grid-column: 2 / -1;
        width: fit-content;
    }
}

@media (max-width: 560px) {
    .site-container,
    .site-header-inner,
    .mobile-nav {
        width: min(100% - 22px, 1180px);
    }

    .site-logo-text {
        font-size: 1rem;
    }

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

    .hero-featured-grid,
    .movie-grid,
    .category-grid,
    .filter-panel {
        grid-template-columns: 1fr;
    }

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

    .rank-item {
        grid-template-columns: 40px 58px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .rank-content p,
    .rank-meta {
        display: none;
    }

    .detail-hero-inner {
        padding-top: 28px;
    }

    .detail-poster-wrap {
        max-width: 240px;
    }
}
