:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #07111f;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --text: #f8fafc;
    --muted: #94a3b8;
    --line: rgba(148, 163, 184, 0.18);
    --cyan: #22d3ee;
    --blue: #60a5fa;
    --pink: #f472b6;
    --amber: #f59e0b;
    --radius: 24px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 5%, rgba(34, 211, 238, 0.18), transparent 28rem),
        radial-gradient(circle at 88% 18%, rgba(96, 165, 250, 0.18), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #07111f 48%, #020617 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

button,
input,
select {
    font: inherit;
}

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

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 15px 0;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 14px;
    color: #00131f;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 12px 34px rgba(34, 211, 238, 0.24);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--muted);
    font-size: 15px;
}

.desktop-nav a,
.mobile-nav a,
.text-link {
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.text-link:hover {
    color: var(--cyan);
}

.mobile-menu-button {
    display: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    background: rgba(15, 23, 42, 0.82);
    padding: 8px 14px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
}

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

main {
    overflow: hidden;
}

.hero-section {
    position: relative;
    min-height: 680px;
    padding: 56px 0 44px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(34, 211, 238, 0.18), transparent 34%),
        linear-gradient(315deg, rgba(96, 165, 250, 0.22), transparent 34%);
    opacity: 0.9;
}

.hero-inner,
.section-block,
.page-hero,
.detail-content,
.site-footer .footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-inner {
    position: relative;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(8, 47, 73, 0.48)),
        rgba(15, 23, 42, 0.62);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-inner::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    right: -110px;
    top: -130px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.18);
    filter: blur(12px);
}

.hero-kicker {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    color: var(--muted);
}

.hero-kicker span,
.eyebrow {
    color: var(--cyan);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-kicker a {
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(15, 23, 42, 0.66);
}

.hero-slides {
    position: relative;
    min-height: 486px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
    align-items: center;
    gap: 34px;
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-copy h1 {
    margin: 10px 0 18px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero-text {
    width: min(650px, 100%);
    color: #cbd5e1;
    font-size: 17px;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.hero-tags span,
.tag-row span {
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 999px;
    color: #bae6fd;
    background: rgba(8, 47, 73, 0.42);
    padding: 5px 10px;
    font-size: 12px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.primary-button,
.ghost-button,
.full-width-button,
.wide-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-button,
.wide-search button {
    color: #031321;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    padding: 0 22px;
    box-shadow: 0 18px 42px rgba(34, 211, 238, 0.22);
}

.ghost-button {
    border: 1px solid var(--line);
    color: var(--text);
    background: rgba(15, 23, 42, 0.62);
    padding: 0 20px;
}

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

.hero-poster {
    position: relative;
    height: 440px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(2, 6, 23, 0.82));
}

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    border-radius: 999px;
    color: #00131f;
    background: var(--cyan);
    padding: 7px 12px;
    font-weight: 900;
}

.hero-dots {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 22px;
}

.hero-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.42);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 28px;
    background: var(--cyan);
}

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

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

.section-heading h2,
.page-hero h1,
.detail-info h1,
.text-card h2,
.sticky-rank h2 {
    margin: 6px 0 0;
    font-size: clamp(26px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.category-overview-card p,
.site-footer p {
    color: var(--muted);
}

.centered-heading {
    display: block;
    text-align: center;
    width: min(780px, 100%);
}

.search-panel {
    padding-top: 18px;
}

.wide-search,
.filter-toolbar {
    display: flex;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.70);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.wide-search {
    width: min(820px, 100%);
    margin: 0 auto;
}

.wide-search input,
.filter-toolbar input,
.filter-toolbar select {
    width: 100%;
    border: 0;
    outline: none;
    color: var(--text);
    background: transparent;
    padding: 0 16px;
}

.filter-toolbar select {
    width: 210px;
    border-left: 1px solid var(--line);
    color: #dbeafe;
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    padding: 18px;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.40);
}

.category-cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.28;
    transform: scale(1.02);
}

.category-name,
.category-desc,
.category-count {
    position: relative;
    display: block;
}

.category-name {
    font-size: 22px;
    font-weight: 900;
}

.category-desc {
    margin-top: 12px;
    color: #cbd5e1;
    font-size: 14px;
}

.category-count {
    position: absolute;
    left: 18px;
    bottom: 18px;
    border-radius: 999px;
    color: #00131f;
    background: var(--cyan);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 900;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(96, 165, 250, 0.10));
}

.poster-link img {
    transition: transform 0.32s ease, filter 0.32s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.055);
    filter: saturate(1.12);
}

.card-year,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    padding: 5px 9px;
}

.card-year {
    left: 10px;
    top: 10px;
    color: #00131f;
    background: var(--cyan);
}

.rank-badge {
    right: 10px;
    top: 10px;
    color: #fff7ed;
    background: rgba(245, 158, 11, 0.92);
}

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

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.movie-card h3 {
    margin: 8px 0 8px;
    font-size: 17px;
    line-height: 1.32;
}

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

.movie-card p {
    margin: 0;
    color: #aab7cc;
    font-size: 13px;
}

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

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    gap: 28px;
}

.hot-panel,
.sticky-rank,
.text-card,
.category-overview-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

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

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

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

.rank-line {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.54);
    padding: 10px;
}

.rank-number {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    color: #00131f;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-info {
    display: none;
    color: var(--muted);
    font-size: 12px;
}

.rank-score {
    color: var(--amber);
    font-size: 12px;
    font-weight: 900;
}

.full-width-button {
    width: 100%;
    margin-top: 14px;
    border: 1px solid rgba(34, 211, 238, 0.35);
    color: var(--cyan);
    background: rgba(8, 47, 73, 0.38);
}

.page-hero {
    position: relative;
    margin-top: 34px;
    padding: 64px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(8, 47, 73, 0.72)),
        var(--panel-strong);
    background-size: cover;
    background-position: center;
}

.compact-page-hero {
    text-align: center;
}

.compact-page-hero p {
    width: min(720px, 100%);
    margin-inline: auto;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

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

.filter-toolbar {
    margin-bottom: 12px;
    border-radius: 22px;
}

.large-toolbar {
    max-width: 880px;
}

.result-count {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 20px;
    padding: 16px;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-large-cover {
    display: flex;
    align-items: flex-end;
    min-height: 240px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    padding: 14px;
}

.category-large-cover span {
    border-radius: 999px;
    color: #00131f;
    background: var(--cyan);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 900;
}

.category-overview-card h2 {
    margin: 8px 0;
}

.category-stats,
.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.category-stats span,
.mini-links a {
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.48);
    padding: 5px 10px;
    font-size: 12px;
}

.rank-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.sticky-rank {
    position: sticky;
    top: 92px;
    padding: 18px;
}

.slim-rank-list .rank-line {
    grid-template-columns: 42px minmax(0, 1fr) auto;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    padding: 48px 0 70px;
}

.detail-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    filter: saturate(1.08);
}

.detail-content {
    position: relative;
}

.detail-grid {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    align-items: center;
    gap: 44px;
    margin-top: 30px;
}

.detail-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.detail-poster span {
    position: absolute;
    left: 16px;
    top: 16px;
    border-radius: 999px;
    color: #00131f;
    background: var(--cyan);
    padding: 6px 11px;
    font-weight: 900;
}

.detail-info h1 {
    font-size: clamp(42px, 7vw, 76px);
}

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

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.detail-meta-grid span {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.62);
    padding: 13px;
    color: #dbeafe;
}

.detail-meta-grid strong {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

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

.player-section {
    padding-top: 20px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: #000;
    box-shadow: var(--shadow);
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: var(--text);
    background: radial-gradient(circle, rgba(34, 211, 238, 0.22), rgba(2, 6, 23, 0.76));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border-radius: 999px;
    color: #00131f;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    font-size: 26px;
    box-shadow: 0 20px 50px rgba(34, 211, 238, 0.28);
}

.player-status {
    position: absolute;
    left: 18px;
    bottom: 14px;
    margin: 0;
    color: #dbeafe;
    font-size: 13px;
}

.source-note {
    color: var(--muted);
    font-size: 14px;
}

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

.text-card {
    padding: 24px;
}

.text-card p {
    color: #cbd5e1;
    font-size: 16px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 220px minmax(0, 1fr);
    gap: 30px;
    padding: 42px 0;
}

.footer-logo {
    margin-bottom: 12px;
}

.site-footer h3 {
    margin: 0 0 12px;
}

.site-footer a:not(.site-logo) {
    display: block;
    margin: 6px 0;
    color: var(--muted);
}

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

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

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

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

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

    .hot-panel,
    .sticky-rank {
        position: static;
    }
}

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

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

    .hero-section {
        min-height: 780px;
        padding-top: 28px;
    }

    .hero-inner {
        padding: 20px;
        border-radius: 26px;
    }

    .hero-slides {
        min-height: 650px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-poster {
        height: 330px;
    }

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

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

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

    .detail-poster {
        width: min(310px, 100%);
    }

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

    .page-hero {
        padding: 36px 22px;
        border-radius: 26px;
    }

    .filter-toolbar,
    .wide-search {
        flex-direction: column;
        border-radius: 22px;
    }

    .filter-toolbar select {
        width: 100%;
        border-left: 0;
        border-top: 1px solid var(--line);
        padding-top: 12px;
    }

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

@media (max-width: 560px) {
    .nav-shell,
    .hero-inner,
    .section-block,
    .page-hero,
    .detail-content,
    .site-footer .footer-grid {
        width: min(100% - 22px, 1180px);
    }

    .hero-copy h1,
    .detail-info h1 {
        font-size: 38px;
    }

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

    .detail-meta-grid {
        grid-template-columns: 1fr;
    }

    .rank-line {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 2;
    }
}
