:root {
    color-scheme: dark;
    --page: #030712;
    --page-soft: #0b1120;
    --panel: rgba(17, 24, 39, 0.86);
    --panel-strong: rgba(15, 23, 42, 0.96);
    --line: rgba(148, 163, 184, 0.18);
    --muted: #9ca3af;
    --text: #f9fafb;
    --subtle: #d1d5db;
    --amber: #f59e0b;
    --amber-strong: #d97706;
    --amber-soft: rgba(245, 158, 11, 0.16);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 34rem),
        radial-gradient(circle at top right, rgba(30, 64, 175, 0.18), transparent 34rem),
        linear-gradient(180deg, #030712 0%, #0b1120 45%, #030712 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(3, 7, 18, 0.86);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    width: min(100% - 32px, var(--max));
    height: 74px;
    margin: 0 auto;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amber), #f97316);
    color: #111827;
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 20px;
    letter-spacing: 0.02em;
}

.brand-text small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link,
.mobile-link {
    border-radius: 12px;
    color: #d1d5db;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    background: var(--amber-soft);
    color: #fbbf24;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(17, 24, 39, 0.78);
    color: var(--text);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 10px;
    background: currentColor;
}

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

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

.mobile-link {
    display: block;
    padding: 11px 12px;
}

.mobile-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.mobile-cats a {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.82);
    color: #cbd5e1;
    font-size: 12px;
}

.hero-slider {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.hero-slide {
    position: absolute;
    inset: 0;
    min-height: 650px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.75s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.04);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 7, 18, 0.96) 0%, rgba(3, 7, 18, 0.78) 46%, rgba(3, 7, 18, 0.44) 100%),
        linear-gradient(180deg, rgba(3, 7, 18, 0.25) 0%, rgba(3, 7, 18, 0.92) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(260px, 0.62fr);
    align-items: center;
    gap: 52px;
    width: min(100% - 32px, var(--max));
    min-height: 650px;
    margin: 0 auto;
    padding: 92px 0 70px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #fbbf24;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

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

.hero-copy h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p {
    max-width: 760px;
    margin: 24px 0 0;
    color: #d1d5db;
    font-size: 18px;
}

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

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

.hero-tags span,
.tag-row span,
.rank-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(245, 158, 11, 0.26);
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.11);
    color: #fcd34d;
    font-size: 12px;
    font-weight: 700;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    background: linear-gradient(135deg, var(--amber), #f97316);
    color: #111827;
    box-shadow: 0 18px 32px rgba(245, 158, 11, 0.24);
}

.btn.secondary {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.74);
    color: #f8fafc;
}

.btn.full {
    width: 100%;
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4.15;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(15, 23, 42, 0.96));
    box-shadow: var(--shadow);
}

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

.hero-poster span,
.play-mark {
    position: absolute;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.95);
    color: #111827;
    font-weight: 900;
}

.hero-poster span {
    right: 18px;
    bottom: 18px;
    width: 62px;
    height: 62px;
    font-size: 25px;
}

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

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

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

.quick-search-wrap,
.section-shell,
.detail-shell {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
}

.quick-search-wrap {
    position: relative;
    z-index: 4;
    margin-top: -48px;
}

.quick-search,
.catalog-tools,
.detail-copy,
.detail-side,
.rank-panel,
.category-panel,
.category-card,
.page-hero-inner {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
}

.quick-search {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1fr);
    gap: 24px;
    align-items: center;
    padding: 24px;
    border-radius: 26px;
}

.quick-search h2,
.section-head h2,
.detail-copy h2,
.category-card h2 {
    margin: 0;
    font-size: clamp(24px, 3.2vw, 36px);
    line-height: 1.15;
}

.search-form,
.catalog-tools,
.mini-tools {
    display: flex;
    gap: 12px;
}

.search-form input,
.catalog-tools input,
.catalog-tools select,
.mini-tools input,
.mini-tools select {
    min-height: 46px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    background: rgba(3, 7, 18, 0.72);
    color: #f8fafc;
    outline: none;
}

.search-form input,
.catalog-tools input,
.mini-tools input {
    flex: 1;
    padding: 0 15px;
}

.catalog-tools select,
.mini-tools select {
    padding: 0 12px;
}

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

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

.section-head.compact {
    margin-bottom: 20px;
}

.section-head a,
.text-link {
    color: #fbbf24;
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.82);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.36);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

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

.movie-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(17, 24, 39, 1));
}

.movie-cover img,
.rank-cover img,
.detail-poster,
.category-tile img,
.category-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-mark {
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    opacity: 0;
    transform: scale(0.86);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: scale(1);
}

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

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

.movie-card h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-copy h3 a:hover,
.category-card h2 a:hover {
    color: #fbbf24;
}

.movie-card p {
    min-height: 44px;
    margin: 8px 0 12px;
    color: #aeb7c7;
    font-size: 13px;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
    gap: 28px;
}

.rank-panel,
.category-panel {
    padding: 24px;
    border-radius: 28px;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 82px 54px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 20px;
    background: rgba(3, 7, 18, 0.42);
}

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

.rank-number {
    color: #fbbf24;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.rank-copy h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.rank-copy p {
    margin: 0 0 10px;
    color: #aeb7c7;
    font-size: 13px;
}

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

.category-tile {
    position: relative;
    min-height: 160px;
    overflow: hidden;
    border-radius: 22px;
    isolation: isolate;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, transparent 0%, rgba(3, 7, 18, 0.92) 88%);
}

.category-tile img {
    position: absolute;
    inset: 0;
    z-index: -2;
    filter: saturate(1.05);
}

.category-tile strong {
    font-size: 20px;
}

.category-tile small {
    margin-top: 5px;
    color: #cbd5e1;
}

.page-hero {
    padding: 56px 0 0;
}

.page-hero.slim .page-hero-inner {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 42px;
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.14), transparent 38%),
        rgba(15, 23, 42, 0.88);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: #94a3b8;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #fbbf24;
}

.catalog-tools {
    position: relative;
    z-index: 3;
    margin-bottom: 28px;
    padding: 16px;
    border-radius: 22px;
}

.sticky-tools {
    position: sticky;
    top: 86px;
}

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

.category-card {
    overflow: hidden;
    border-radius: 26px;
}

.category-card-media {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: 210px;
    background: #111827;
}

.category-card-body {
    padding: 22px;
}

.category-card p {
    color: #b8c2d1;
}

.detail-shell {
    padding-top: 36px;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.22), rgba(0, 0, 0, 0.34));
    color: #111827;
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 20px 58px rgba(245, 158, 11, 0.38);
    font-size: 34px;
    font-weight: 900;
}

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

.detail-copy {
    margin-top: 24px;
    padding: 28px;
    border-radius: 26px;
}

.detail-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4.5vw, 52px);
    line-height: 1.12;
}

.detail-copy .lead {
    color: #fcd34d;
    font-size: 18px;
    font-weight: 700;
}

.detail-copy p {
    color: #d1d5db;
}

.detail-side {
    align-self: start;
    position: sticky;
    top: 96px;
    padding: 18px;
    border-radius: 26px;
}

.detail-poster {
    aspect-ratio: 2 / 3;
    border-radius: 20px;
    background: #111827;
}

.detail-meta {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.detail-meta div {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.detail-meta dt {
    color: #94a3b8;
}

.detail-meta dd {
    margin: 0;
    color: #fff;
    font-weight: 700;
}

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

.related-section {
    padding-bottom: 72px;
}

.site-footer {
    margin-top: 72px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(3, 7, 18, 0.84);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 34px 0 24px;
}

.footer-inner p {
    max-width: 560px;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-content: start;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.72);
    color: #cbd5e1;
}

.footer-bottom {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    padding: 0 0 26px;
    color: #64748b;
    font-size: 13px;
}

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

    .split-section,
    .detail-layout,
    .rank-list.wide,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
    }
}

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

    .menu-toggle {
        display: block;
    }

    .hero-slider,
    .hero-slide,
    .hero-inner {
        min-height: 720px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 84px;
    }

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

    .quick-search,
    .search-form,
    .catalog-tools,
    .section-head,
    .footer-inner {
        display: grid;
        grid-template-columns: 1fr;
    }

    .mini-tools {
        width: 100%;
    }

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

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

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

    .page-hero.slim .page-hero-inner {
        padding: 28px;
    }
}

@media (max-width: 520px) {
    .brand-text small {
        display: none;
    }

    .hero-copy p,
    .page-hero p {
        font-size: 16px;
    }

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

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

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

    .movie-card p {
        display: none;
    }

    .tag-row span:nth-child(n+3) {
        display: none;
    }

    .detail-copy,
    .detail-side,
    .rank-panel,
    .category-panel {
        padding: 18px;
    }
}
