:root {
    --bg: #0f172a;
    --bg-soft: #111c31;
    --panel: rgba(15, 23, 42, 0.86);
    --panel-strong: #1e293b;
    --line: rgba(148, 163, 184, 0.18);
    --text: #ffffff;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --cyan: #06b6d4;
    --cyan-strong: #0891b2;
    --blue: #2563eb;
    --orange: #f97316;
    --radius: 22px;
    --shadow: 0 28px 80px rgba(2, 8, 23, 0.38);
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(6, 182, 212, 0.18), transparent 34rem),
        radial-gradient(circle at 88% 8%, rgba(37, 99, 235, 0.14), transparent 28rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

a {
    color: inherit;
}

img {
    object-fit: cover;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(18px);
}

.nav-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

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

.site-logo-mark {
    width: 2.45rem;
    height: 2.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 28px rgba(6, 182, 212, 0.35);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.site-nav a {
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
    color: var(--soft);
    transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    background: rgba(6, 182, 212, 0.14);
    color: #67e8f9;
}

.mobile-nav-button {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.28rem;
}

.mobile-nav-button span {
    width: 1.1rem;
    height: 2px;
    background: #ffffff;
    border-radius: 99px;
}

main {
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: saturate(1.08);
}

.hero-shadow {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.78) 42%, rgba(15, 23, 42, 0.42) 100%),
        linear-gradient(0deg, var(--bg) 0%, rgba(15, 23, 42, 0.08) 42%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 70vh;
    margin: 0 auto;
    padding: 5.5rem 1.25rem 4rem;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 24rem;
    align-items: center;
    gap: 3rem;
}

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

.eyebrow,
.page-hero span,
.section-heading span {
    display: inline-flex;
    color: #67e8f9;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    margin-bottom: 0.85rem;
}

.hero-copy h1,
.page-hero h1 {
    font-size: clamp(2.5rem, 6vw, 5.2rem);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -0.055em;
    margin: 0 0 1.2rem;
}

.hero-copy p,
.page-hero p {
    max-width: 720px;
    color: var(--soft);
    font-size: 1.08rem;
    line-height: 1.8;
}

.hero-tags,
.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1rem;
}

.hero-tags span,
.movie-tags span {
    padding: 0.35rem 0.58rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(103, 232, 249, 0.22);
    color: #cffafe;
    font-size: 0.78rem;
}

.hero-actions,
.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.8rem;
    align-items: center;
}

.primary-button,
.ghost-button,
.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.primary-button {
    padding: 0.82rem 1.32rem;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 14px 34px rgba(6, 182, 212, 0.26);
}

.ghost-button {
    padding: 0.76rem 1.18rem;
    border: 1px solid rgba(103, 232, 249, 0.28);
    background: rgba(15, 23, 42, 0.56);
    color: #e0f2fe;
}

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

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

.hero-poster {
    position: relative;
    display: block;
    border-radius: 2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
    aspect-ratio: 3 / 4.2;
}

.hero-poster img {
    width: 100%;
    height: 100%;
}

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

.hero-dot {
    width: 2rem;
    height: 0.3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
}

.hero-dot.is-active {
    background: #67e8f9;
}

.home-search-panel,
.section-block,
.search-tools,
.detail-layout,
.detail-top {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.home-search-panel {
    margin-top: -2.5rem;
    position: relative;
    z-index: 6;
    display: grid;
    grid-template-columns: 1fr minmax(300px, 520px);
    gap: 1.5rem;
    align-items: center;
    padding-top: 1.6rem;
    padding-bottom: 1.6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.86);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.home-search-panel h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 850;
    margin-bottom: 0.35rem;
}

.home-search-panel p {
    color: var(--muted);
}

.inline-search {
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(103, 232, 249, 0.22);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.45);
}

.inline-search input,
.search-tools input,
.search-tools select {
    min-width: 0;
    flex: 1;
    padding: 0.9rem 1rem;
    color: #ffffff;
    background: transparent;
    outline: none;
}

.inline-search button,
.search-tools button {
    padding: 0.85rem 1.25rem;
    background: var(--cyan);
    color: #082f49;
    font-weight: 850;
}

.section-block {
    padding-top: 4.5rem;
    padding-bottom: 0.5rem;
}

.section-block.narrow {
    max-width: 980px;
}

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

.section-heading.no-margin {
    margin-bottom: 1.25rem;
}

.section-heading h2 {
    font-size: clamp(1.65rem, 4vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-heading a {
    color: #67e8f9;
    font-weight: 800;
}

.movie-grid,
.compact-grid,
.category-grid {
    display: grid;
    gap: 1.25rem;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 1.25rem;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.76), rgba(15, 23, 42, 0.88));
    box-shadow: 0 12px 38px rgba(2, 8, 23, 0.22);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(103, 232, 249, 0.34);
    box-shadow: 0 20px 48px rgba(6, 182, 212, 0.12);
}

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

.poster-link img {
    width: 100%;
    height: 100%;
    transition: transform 0.45s ease;
}

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

.card-year,
.rank-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    border-radius: 999px;
    padding: 0.32rem 0.58rem;
    background: rgba(8, 47, 73, 0.76);
    color: #cffafe;
    font-size: 0.78rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.rank-badge {
    background: linear-gradient(135deg, var(--orange), var(--cyan));
    color: #ffffff;
}

.poster-play {
    position: absolute;
    right: 0.8rem;
    bottom: 0.8rem;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.9);
    box-shadow: 0 10px 26px rgba(6, 182, 212, 0.35);
}

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

.movie-title {
    display: block;
    font-size: 1.05rem;
    line-height: 1.35;
    min-height: 2.8rem;
    font-weight: 850;
}

.movie-title:hover {
    color: #67e8f9;
}

.movie-card-body p {
    color: var(--muted);
    margin-top: 0.45rem;
    line-height: 1.65;
    font-size: 0.92rem;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: #cbd5e1;
    font-size: 0.82rem;
    margin-top: 0.75rem;
}

.movie-meta span {
    padding: 0.16rem 0.45rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
}

.movie-card.compact .movie-card-body {
    padding: 0.82rem;
}

.movie-card.compact .movie-title {
    font-size: 0.95rem;
    min-height: 2.55rem;
}

.movie-card.compact .movie-card-body p {
    font-size: 0.84rem;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.75fr);
    gap: 1.5rem;
}

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

.ranking-list.large {
    gap: 1rem;
}

.ranking-row {
    display: grid;
    grid-template-columns: 3.5rem 4.5rem 1fr auto;
    align-items: center;
    gap: 0.9rem;
    padding: 0.72rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(30, 41, 59, 0.62);
}

.ranking-number {
    font-size: 1.2rem;
    font-weight: 900;
    color: #67e8f9;
}

.ranking-thumb {
    width: 4.5rem;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 0.8rem;
}

.ranking-thumb img {
    width: 100%;
    height: 100%;
}

.ranking-info a {
    font-weight: 850;
}

.ranking-info p {
    color: var(--muted);
    line-height: 1.55;
    margin: 0.25rem 0;
}

.ranking-info div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    color: #cbd5e1;
    font-size: 0.78rem;
}

.ranking-heat {
    color: #fbbf24;
    font-weight: 850;
    white-space: nowrap;
}

.category-card,
.category-overview-card,
.text-panel,
.detail-side,
.sitemap-group {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(30, 41, 59, 0.62);
    box-shadow: 0 12px 38px rgba(2, 8, 23, 0.15);
}

.category-card {
    padding: 1.25rem;
}

.category-card-title {
    display: inline-flex;
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 0.6rem;
}

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

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1rem;
}

.category-samples a {
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.1);
    color: #cffafe;
    font-size: 0.82rem;
}

.page-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 6.5rem 1.25rem 2.5rem;
}

.page-hero.slim {
    min-height: 320px;
    display: flex;
    align-items: end;
}

.search-tools {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, minmax(160px, 0.7fr)) auto;
    gap: 0.75rem;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}

.search-tools input,
.search-tools select {
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: rgba(15, 23, 42, 0.78);
}

.search-tools button {
    border-radius: 0.9rem;
}

.search-empty {
    grid-column: 1 / -1;
    padding: 2rem;
    border: 1px dashed rgba(103, 232, 249, 0.28);
    border-radius: 1rem;
    color: var(--muted);
    text-align: center;
}

.category-overview-list {
    display: grid;
    gap: 1.5rem;
}

.category-overview-card {
    padding: 1.25rem;
}

.category-overview-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.category-overview-head span {
    color: #67e8f9;
    font-weight: 800;
}

.category-overview-head h2 {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0.25rem 0;
}

.detail-top {
    padding-top: 6rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    color: var(--muted);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: #67e8f9;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid rgba(103, 232, 249, 0.25);
    background: #020617;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    background: #020617;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.62));
}

.player-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.player-button {
    width: 4.6rem;
    height: 4.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 42px rgba(6, 182, 212, 0.4);
    font-size: 1.6rem;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.5rem;
    padding-top: 2rem;
}

.detail-title-row {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-title-row h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
    font-weight: 920;
    letter-spacing: -0.04em;
}

.detail-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.detail-facts span {
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
}

.detail-lead {
    color: var(--soft);
    font-size: 1.05rem;
    line-height: 1.85;
}

.detail-tags {
    margin-bottom: 1.2rem;
}

.text-panel {
    padding: 1.35rem;
    margin-top: 1rem;
}

.text-panel h2,
.detail-side h2 {
    font-size: 1.35rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
}

.text-panel p {
    color: var(--soft);
    line-height: 1.9;
    white-space: pre-line;
}

.detail-side {
    align-self: start;
    padding: 1.25rem;
    position: sticky;
    top: 5.5rem;
}

.detail-side dl {
    display: grid;
    gap: 0.7rem;
}

.detail-side dt {
    color: var(--muted);
    font-size: 0.82rem;
}

.detail-side dd {
    color: #ffffff;
    font-weight: 700;
    margin: 0;
}

.sitemap-list {
    display: grid;
    gap: 1rem;
}

.sitemap-group {
    padding: 1.15rem;
}

.sitemap-group h2 {
    color: #67e8f9;
    font-weight: 900;
    margin-bottom: 0.9rem;
}

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

.sitemap-links a {
    color: var(--soft);
    line-height: 1.45;
}

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

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

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem;
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 0.7fr;
    gap: 2rem;
}

.footer-grid p {
    color: var(--muted);
    line-height: 1.75;
    margin-top: 1rem;
}

.footer-grid h2 {
    font-weight: 900;
    margin-bottom: 0.8rem;
}

.footer-links {
    display: grid;
    gap: 0.45rem;
    color: var(--soft);
}

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

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.25rem 1.6rem;
    color: var(--muted);
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

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

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

    .detail-side {
        position: static;
    }
}

@media (max-width: 860px) {
    .mobile-nav-button {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 1rem;
        right: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 0.8rem;
        border: 1px solid var(--line);
        border-radius: 1rem;
        background: rgba(15, 23, 42, 0.96);
        box-shadow: var(--shadow);
    }

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

    .hero-inner {
        grid-template-columns: 1fr;
        padding-top: 5rem;
        gap: 1.6rem;
    }

    .hero-poster {
        max-width: 240px;
    }

    .home-search-panel,
    .search-tools,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .inline-search {
        border-radius: 1rem;
    }

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

    .ranking-row {
        grid-template-columns: 2.4rem 4rem 1fr;
    }

    .ranking-heat {
        display: none;
    }
}

@media (max-width: 560px) {
    .nav-shell {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .site-logo {
        font-size: 0.95rem;
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: 2.45rem;
    }

    .hero-actions,
    .page-actions,
    .detail-title-row,
    .section-heading,
    .category-overview-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .movie-grid,
    .compact-grid,
    .compact-grid.six,
    .category-grid,
    .sitemap-links {
        grid-template-columns: 1fr;
    }

    .poster-link {
        aspect-ratio: 16 / 10;
    }

    .movie-card.compact .poster-link {
        aspect-ratio: 16 / 10;
    }

    .player-button {
        width: 3.5rem;
        height: 3.5rem;
    }
}
