:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: #0f172a;
    --panel-soft: rgba(15, 23, 42, 0.78);
    --panel-strong: #111827;
    --border: rgba(148, 163, 184, 0.16);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #64748b;
    --amber: #f59e0b;
    --amber-soft: rgba(245, 158, 11, 0.16);
    --rose: #fb7185;
    --blue: #38bdf8;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 32rem),
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 36rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
    z-index: -1;
}

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

img,
video {
    max-width: 100%;
}

button,
input {
    font: inherit;
}

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

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

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.3);
}

.brand-text {
    font-size: 20px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 600;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.site-footer a:hover,
.section-link:hover {
    color: var(--amber);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.74);
}

.mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 99px;
    background: var(--text);
}

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

.mobile-nav a {
    display: block;
    padding: 10px 4px;
    color: #cbd5e1;
    font-weight: 600;
}

.hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background-image:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.62) 46%, rgba(2, 6, 23, 0.2)),
        linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(15, 23, 42, 0.92)),
        var(--poster);
    background-size: cover;
    background-position: center;
    transition: opacity 900ms ease, transform 1200ms ease;
    transform: scale(1.03);
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #020617, transparent 42%);
}

.hero-content {
    position: relative;
    display: grid;
    min-height: 70vh;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 48px;
    align-items: end;
    padding-top: 130px;
    padding-bottom: 74px;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 14px 0 16px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0;
    color: #dbeafe;
    font-size: clamp(17px, 2vw, 22px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--amber);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin: 24px 0 30px;
}

.hero-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.68);
    font-size: 13px;
    font-weight: 700;
}

.tag-list.large span {
    min-height: 34px;
    padding-inline: 13px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn,
.quick-search button,
.search-page-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:hover,
.quick-search button:hover,
.search-page-form button:hover {
    transform: translateY(-2px);
}

.btn.primary,
.quick-search button,
.search-page-form button {
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 16px 34px rgba(245, 158, 11, 0.22);
}

.btn.ghost {
    color: #e2e8f0;
    border-color: var(--border);
    background: rgba(15, 23, 42, 0.72);
}

.hero-card {
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.hero-card-cover {
    min-height: 430px;
    border-radius: 22px;
    background-image:
        linear-gradient(to top, rgba(2, 6, 23, 0.55), transparent),
        linear-gradient(135deg, rgba(245, 158, 11, 0.38), rgba(30, 41, 59, 0.9)),
        var(--poster);
    background-position: center;
    background-size: cover;
}

.hero-card-info {
    display: grid;
    gap: 4px;
}

.hero-card-info strong {
    font-size: 18px;
}

.hero-card-info small {
    color: var(--muted);
}

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

.hero-dots button {
    width: 34px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
}

.hero-dots button.is-active {
    background: var(--amber);
}

.section {
    padding: 74px 0;
}

.alt-section {
    background: rgba(15, 23, 42, 0.38);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.section-head h2,
.page-hero h1,
.prose-block h2,
.side-panel h2 {
    margin: 8px 0 8px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

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

.section-link,
.filter-row a {
    color: #fcd34d;
    font-weight: 800;
}

.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.72);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.46);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
}

.poster {
    position: relative;
    display: block;
    min-height: 340px;
    background-image:
        linear-gradient(to top, rgba(2, 6, 23, 0.72), transparent 56%),
        linear-gradient(135deg, rgba(245, 158, 11, 0.34), rgba(15, 23, 42, 0.92)),
        var(--poster);
    background-position: center;
    background-size: cover;
}

.poster-badge,
.poster-play {
    position: absolute;
    display: inline-grid;
    place-items: center;
}

.poster-badge {
    top: 14px;
    left: 14px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #111827;
    background: #fbbf24;
    font-size: 12px;
    font-weight: 900;
}

.poster-play {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #111827;
    background: rgba(251, 191, 36, 0.95);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

.card-body {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--amber);
    font-size: 12px;
    font-weight: 900;
}

.movie-card h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
}

.movie-card p {
    display: -webkit-box;
    min-height: 52px;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card.compact .poster {
    min-height: 260px;
}

.search-band {
    padding: 34px 0;
}

.search-band-inner,
.quick-search,
.search-page-form,
.filter-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-band-inner {
    justify-content: space-between;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.68);
}

.search-band h2 {
    margin: 6px 0;
    font-size: 26px;
}

.search-band p {
    margin: 0;
    color: var(--muted);
}

.quick-search,
.search-page-form {
    min-width: min(100%, 520px);
}

.quick-search input,
.search-page-form input,
.filter-row input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--border);
    border-radius: 999px;
    outline: none;
    color: var(--text);
    background: rgba(2, 6, 23, 0.82);
    padding: 0 18px;
}

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

.category-panel,
.category-overview-card,
.side-panel,
.player-panel,
.prose-block {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.category-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
}

.category-panel h3,
.category-overview-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.category-panel p,
.category-overview-card p {
    margin: 0;
}

.category-panel > a {
    flex: 0 0 auto;
    color: var(--amber);
    font-weight: 900;
}

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

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

.rank-item a {
    display: grid;
    grid-template-columns: 48px 70px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.52);
}

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

.rank-cover {
    width: 70px;
    height: 92px;
    border-radius: 14px;
    background-image:
        linear-gradient(to top, rgba(2, 6, 23, 0.55), transparent),
        linear-gradient(135deg, rgba(245, 158, 11, 0.34), rgba(15, 23, 42, 0.92)),
        var(--poster);
    background-position: center;
    background-size: cover;
}

.rank-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.rank-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-copy small {
    color: var(--muted);
}

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

.page-hero {
    position: relative;
    padding: 82px 0 58px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.18), transparent 28rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
}

.compact-hero h1 {
    margin: 10px 0;
    font-size: clamp(38px, 6vw, 68px);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 14px;
}

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

.category-overview-card {
    display: grid;
    gap: 16px;
    padding: 26px;
}

.category-count {
    color: var(--amber);
    font-weight: 900;
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-links a {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: #cbd5e1;
    font-size: 13px;
}

.filter-row {
    justify-content: space-between;
    margin-bottom: 24px;
}

.filter-row input {
    max-width: 520px;
}

.detail-hero {
    position: relative;
    padding: 100px 0 64px;
    overflow: hidden;
    background-image:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.74)),
        linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(15, 23, 42, 0.92)),
        var(--poster);
    background-position: center;
    background-size: cover;
}

.detail-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #020617, transparent 52%);
}

.detail-breadcrumbs,
.detail-hero-content {
    position: relative;
}

.detail-hero-content {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 36px;
    align-items: end;
}

.detail-poster {
    min-height: 440px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background-image:
        linear-gradient(to top, rgba(2, 6, 23, 0.6), transparent),
        linear-gradient(135deg, rgba(245, 158, 11, 0.34), rgba(15, 23, 42, 0.92)),
        var(--poster);
    background-position: center;
    background-size: cover;
    box-shadow: var(--shadow);
}

.detail-copy h1 {
    margin: 10px 0 14px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.player-panel,
.side-panel,
.prose-block {
    padding: 22px;
}

.video-box {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000;
    aspect-ratio: 16 / 9;
}

.video-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.player-start {
    position: absolute;
    left: 50%;
    top: 50%;
    min-width: 130px;
    min-height: 50px;
    border: 0;
    border-radius: 999px;
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    font-weight: 900;
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.video-box.is-playing .player-start {
    display: none;
}

.source-note {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    color: var(--muted);
}

.source-note strong {
    color: var(--text);
}

.side-panel dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px 16px;
}

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

.side-panel dd {
    margin: 0;
    color: var(--text);
    font-weight: 700;
}

.prose-block {
    max-width: 980px;
}

.prose-block h2 {
    font-size: 30px;
}

.prose-block p {
    color: #cbd5e1;
    font-size: 18px;
}

.search-page-form {
    margin-top: 24px;
}

.sitemap-columns {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 32px;
}

.sitemap-columns h2 {
    margin: 0 0 12px;
}

.sitemap-columns ul {
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.sitemap-columns li {
    margin-bottom: 8px;
}

.sitemap-columns a {
    color: #cbd5e1;
}

.sitemap-columns a:hover {
    color: var(--amber);
}

.sitemap-movies {
    columns: 4 180px;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.62);
}

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

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

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin-bottom: 8px;
}

.site-footer a,
.site-footer p {
    color: var(--muted);
}

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

    .mobile-toggle {
        display: block;
    }

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

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

    .hero-card {
        display: none;
    }

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

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .hero,
    .hero-content {
        min-height: 78vh;
    }

    .hero-content {
        padding-top: 112px;
        padding-bottom: 84px;
    }

    .section {
        padding: 52px 0;
    }

    .section-head,
    .search-band-inner,
    .quick-search,
    .search-page-form,
    .filter-row,
    .category-panel,
    .source-note {
        align-items: stretch;
        flex-direction: column;
    }

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

    .poster {
        min-height: 420px;
    }

    .detail-poster {
        min-height: 420px;
    }

    .detail-copy h1 {
        font-size: 40px;
    }
}
