:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.86);
    --panel-strong: #0f172a;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --amber: #f59e0b;
    --amber-light: #fbbf24;
    --rose: #fb7185;
    --blue: #38bdf8;
    --radius: 22px;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.16), transparent 32rem),
        radial-gradient(circle at 85% 0%, rgba(56, 189, 248, 0.12), transparent 28rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

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

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

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 72px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #111827;
    background: linear-gradient(135deg, var(--amber-light), var(--amber));
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.nav-link,
.mobile-nav-link {
    color: var(--soft);
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: #ffffff;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 310px;
}

.header-search input,
.mobile-search input,
.big-search input,
.local-filter input,
.local-filter select {
    width: 100%;
    color: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input,
.mobile-search input {
    padding: 10px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.local-filter input:focus,
.local-filter select:focus {
    border-color: rgba(251, 191, 36, 0.8);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
    background: rgba(15, 23, 42, 0.96);
}

.header-search button,
.mobile-search button,
.big-search button {
    border: 0;
    border-radius: 999px;
    color: #111827;
    background: var(--amber-light);
    cursor: pointer;
    font-weight: 700;
}

.header-search button,
.mobile-search button {
    padding: 10px 16px;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.86);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: #ffffff;
}

.mobile-nav {
    display: none;
    padding: 16px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.96);
}

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

.mobile-search {
    display: flex;
    gap: 8px;
}

.hero-section {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: #020617;
}

.hero-stage {
    position: relative;
    min-height: 560px;
}

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

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

.hero-slide img {
    height: 100%;
    min-height: 560px;
    object-fit: cover;
    filter: saturate(1.04) contrast(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.76) 42%, rgba(2, 6, 23, 0.16) 100%),
        linear-gradient(0deg, #020617 0%, transparent 42%);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1180px) / 2));
    bottom: 76px;
    width: min(670px, calc(100% - 48px));
    z-index: 2;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--amber-light);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(36px, 7vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-summary {
    max-width: 620px;
    margin: 22px 0 0;
    color: var(--soft);
    font-size: 18px;
    line-height: 1.8;
}

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

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 11px;
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.12);
    font-size: 12px;
}

.hero-tags {
    margin-top: 18px;
}

.hero-actions,
.spotlight-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.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, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
    min-height: 46px;
    padding: 0 22px;
    color: #111827;
    background: linear-gradient(135deg, var(--amber-light), var(--amber));
    box-shadow: 0 18px 40px rgba(245, 158, 11, 0.24);
}

.ghost-button {
    min-height: 46px;
    padding: 0 22px;
    color: #ffffff;
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.72);
}

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

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

.hero-dot {
    width: 38px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--amber-light);
}

.hero-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.28;
    z-index: 1;
    pointer-events: none;
}

.hero-glow-one {
    top: 90px;
    left: 18%;
    background: var(--amber);
}

.hero-glow-two {
    right: 9%;
    bottom: 70px;
    background: var(--rose);
}

.quick-filter-block {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-top: -42px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.big-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.big-search input {
    min-height: 50px;
    padding: 0 20px;
}

.big-search button {
    min-height: 50px;
    padding: 0 24px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-links a {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--soft);
    background: rgba(2, 6, 23, 0.42);
}

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

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

.section-heading h2,
.article-panel h2,
.info-panel h2,
.side-card-grid h2,
.site-footer h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

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

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

.category-card {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.category-card img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
    opacity: 0.54;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.92) 100%);
}

.category-card span,
.category-card strong,
.category-card em {
    position: relative;
    z-index: 1;
    display: block;
    margin-left: 18px;
    margin-right: 18px;
}

.category-card span {
    margin-top: 128px;
    color: var(--amber-light);
    font-size: 13px;
    font-weight: 800;
}

.category-card strong {
    margin-top: 7px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.25;
}

.category-card em {
    margin-top: 7px;
    color: var(--soft);
    font-size: 13px;
    font-style: normal;
    line-height: 1.5;
}

.category-card:hover img {
    transform: scale(1.08);
    opacity: 0.68;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.22);
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

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

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

.poster-link img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.38s ease;
}

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

.poster-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #111827;
    background: var(--amber-light);
    font-size: 12px;
    font-weight: 800;
}

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

.movie-card-title {
    display: -webkit-box;
    min-height: 46px;
    margin: 0;
    overflow: hidden;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.42;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card-title a:hover,
.rank-item h3 a:hover,
.category-overview-card h2 a:hover {
    color: var(--amber-light);
}

.movie-card-meta {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.movie-card-desc {
    display: -webkit-box;
    min-height: 60px;
    margin: 10px 0 12px;
    overflow: hidden;
    color: var(--soft);
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 28px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 48px 72px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #111827;
    background: var(--amber-light);
    font-weight: 900;
}

.rank-cover {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    background: #111827;
}

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

.rank-item h3 {
    margin: 0 0 5px;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.35;
}

.rank-item p {
    display: -webkit-box;
    margin: 5px 0 0;
    overflow: hidden;
    color: var(--soft);
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-meta {
    color: var(--muted) !important;
}

.spotlight-panel,
.article-panel,
.info-panel,
.side-card-grid,
.category-overview-card {
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.8);
    box-shadow: var(--shadow);
}

.spotlight-panel {
    position: sticky;
    top: 96px;
    align-self: start;
    padding: 30px;
    background:
        radial-gradient(circle at 78% 12%, rgba(245, 158, 11, 0.25), transparent 18rem),
        rgba(15, 23, 42, 0.82);
}

.spotlight-panel h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.spotlight-panel p {
    color: var(--soft);
    line-height: 1.8;
}

.page-hero {
    padding: 76px 0 24px;
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    color: var(--soft);
    font-size: 17px;
    line-height: 1.8;
}

.local-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 12px;
    max-width: 860px;
    margin-top: 24px;
}

.search-filter {
    grid-template-columns: minmax(0, 1fr) 180px 160px;
}

.local-filter input,
.local-filter select {
    min-height: 48px;
    padding: 0 18px;
}

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

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

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

.category-poster-stack img {
    height: 170px;
    border-radius: 16px;
    object-fit: cover;
}

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

.category-overview-card p:not(.eyebrow) {
    color: var(--soft);
    line-height: 1.75;
}

.text-button {
    color: var(--amber-light);
}

.ranking-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 24px;
}

.large-rank-list .rank-item {
    grid-template-columns: 56px 88px minmax(0, 1fr);
}

.side-card-grid {
    position: sticky;
    top: 96px;
    align-self: start;
    display: grid;
    gap: 14px;
    padding: 18px;
}

.side-card-grid .movie-card-desc,
.side-card-grid .tag-row {
    display: none;
}

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

.detail-bg,
.detail-bg-mask {
    position: absolute;
    inset: 0;
}

.detail-bg {
    height: 100%;
    object-fit: cover;
    filter: blur(8px) saturate(1.15);
    transform: scale(1.04);
    opacity: 0.5;
}

.detail-bg-mask {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.68)),
        linear-gradient(0deg, #020617 0%, transparent 44%);
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    padding-top: 36px;
}

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

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

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
    padding: 62px 0 72px;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #111827;
    box-shadow: var(--shadow);
}

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

.detail-copy h1 {
    max-width: 820px;
}

.detail-meta,
.detail-line {
    max-width: 820px;
    color: var(--soft);
    font-size: 17px;
    line-height: 1.8;
}

.detail-line {
    font-size: 20px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.72));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    color: #111827;
    background: var(--amber-light);
    box-shadow: 0 26px 60px rgba(245, 158, 11, 0.28);
    font-size: 34px;
    text-indent: 6px;
}

.play-overlay strong {
    font-size: 20px;
}

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

.article-panel,
.info-panel {
    padding: 28px;
}

.article-panel p {
    color: var(--soft);
    font-size: 16px;
    line-height: 1.95;
}

.info-panel dl {
    display: grid;
    gap: 12px;
    margin: 18px 0 22px;
}

.info-panel dl div {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.info-panel dt {
    color: var(--muted);
}

.info-panel dd {
    margin: 0;
    color: #ffffff;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.6fr) minmax(220px, 0.6fr);
    gap: 28px;
}

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

.site-footer p {
    max-width: 520px;
    color: var(--muted);
    line-height: 1.8;
}

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

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

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

.footer-bottom {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

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

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

    .menu-button {
        display: block;
        margin-left: auto;
    }

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

    .split-section,
    .ranking-page-grid,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

    .spotlight-panel,
    .side-card-grid {
        position: static;
    }
}

@media (max-width: 820px) {
    .quick-filter-block,
    .big-search,
    .local-filter,
    .search-filter,
    .category-overview-grid,
    .category-overview-card,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-section,
    .hero-stage,
    .hero-slide img {
        min-height: 620px;
    }

    .hero-content {
        bottom: 88px;
    }

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

    .detail-layout {
        padding-top: 34px;
    }

    .detail-poster {
        width: min(260px, 80vw);
    }

    .rank-item,
    .large-rank-list .rank-item {
        grid-template-columns: 44px 70px minmax(0, 1fr);
    }

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

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

    .site-logo {
        font-size: 17px;
    }

    .hero-content h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 36px;
    }

    .hero-summary,
    .detail-line {
        font-size: 15px;
    }

    .category-grid,
    .movie-grid,
    .full-grid {
        gap: 12px;
    }

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

    .movie-card-title {
        font-size: 14px;
    }

    .movie-card-desc,
    .tag-row {
        display: none;
    }

    .play-icon {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }

    .article-panel,
    .info-panel {
        padding: 20px;
    }
}
