:root {
    color-scheme: dark;
    --bg: #0f172a;
    --bg-soft: #111827;
    --bg-deep: #020617;
    --card: rgba(30, 41, 59, 0.72);
    --card-strong: rgba(15, 23, 42, 0.92);
    --line: rgba(251, 191, 36, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #cbd5e1;
    --amber: #f59e0b;
    --amber-2: #f97316;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #0f172a 0%, #111827 48%, #020617 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 18% 10%, rgba(245, 158, 11, 0.16), transparent 34%), radial-gradient(circle at 82% 18%, rgba(249, 115, 22, 0.12), transparent 28%);
    z-index: -1;
}

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

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

button,
input {
    font: inherit;
}

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

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

.header-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--amber), var(--amber-2));
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.24);
    color: #ffffff;
    font-size: 17px;
}

.brand-copy {
    display: grid;
    line-height: 1.15;
}

.brand-copy strong {
    font-size: 22px;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #fbbf24, #fb923c);
    -webkit-background-clip: text;
    color: transparent;
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-link {
    color: var(--muted-2);
    font-weight: 600;
    transition: color 0.2s ease;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-open,
.mobile-toggle,
.mobile-nav button,
.search-close {
    border: 0;
    color: var(--text);
    cursor: pointer;
}

.search-open {
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.78);
    color: var(--muted-2);
}

.search-open:hover {
    color: #ffffff;
    background: rgba(51, 65, 85, 0.9);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.78);
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

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

.mobile-nav-inner {
    padding: 14px 0 18px;
    display: grid;
    gap: 10px;
}

.mobile-nav a,
.mobile-nav button {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.55);
    color: var(--muted-2);
    text-align: left;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 2;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.70) 42%, rgba(15, 23, 42, 0.2) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.96) 0%, transparent 58%);
}

.hero-content {
    position: relative;
    z-index: 3;
    min-height: 72vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding-top: 120px;
    padding-bottom: 86px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.24);
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.hero-content h1 {
    max-width: 760px;
    margin: 20px 0 16px;
    font-size: clamp(38px, 6vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 20px;
    color: #dbeafe;
    font-size: clamp(16px, 1.9vw, 20px);
    line-height: 1.8;
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted-2);
}

.hero-meta span,
.detail-meta span {
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
    background: linear-gradient(135deg, var(--amber), var(--amber-2));
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(245, 158, 11, 0.22);
}

.ghost-btn {
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(251, 191, 36, 0.26);
    color: #fde68a;
}

.ghost-btn.small {
    min-height: 40px;
    padding: 0 14px;
}

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

.hero-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    font-size: 36px;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 32px;
    background: #f59e0b;
}

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

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

.section-head h2 {
    margin: 12px 0 0;
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: -0.03em;
}

.section-head p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-more {
    color: #fbbf24;
    font-weight: 800;
}

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

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

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

.movie-card {
    min-width: 0;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid rgba(148, 163, 184, 0.12);
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(251, 191, 36, 0.35);
    box-shadow: 0 28px 60px rgba(2, 6, 23, 0.42);
}

.movie-link {
    display: grid;
    height: 100%;
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.9), rgba(15, 23, 42, 0.9));
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover .poster-frame img {
    transform: scale(1.08);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 62%);
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%) scale(0.86);
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.92);
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.poster-category {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 5px 9px;
    border-radius: 9px;
    background: rgba(15, 23, 42, 0.84);
    color: #fbbf24;
    font-size: 12px;
    font-weight: 800;
}

.movie-info {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.movie-title {
    color: #ffffff;
    font-size: 17px;
    line-height: 1.35;
}

.movie-meta {
    color: var(--muted);
    font-size: 13px;
}

.movie-desc {
    color: var(--muted-2);
    font-size: 14px;
    line-height: 1.65;
}

.movie-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-pill {
    display: inline-flex;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
    font-size: 12px;
}

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

.category-tile,
.category-overview-card a {
    display: grid;
    gap: 14px;
    height: 100%;
    padding: 16px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.70);
    border: 1px solid rgba(251, 191, 36, 0.16);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.category-overview-card a:hover {
    transform: translateY(-4px);
    border-color: rgba(251, 191, 36, 0.42);
}

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

.category-thumbs img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
    background: rgba(51, 65, 85, 0.8);
}

.wide-thumbs {
    grid-template-columns: repeat(3, 1fr);
}

.category-tile strong,
.category-copy strong {
    font-size: 20px;
    color: #ffffff;
}

.category-tile em,
.category-copy em {
    color: var(--muted);
    font-style: normal;
    line-height: 1.65;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 32px;
    align-items: start;
}

.ranking-panel,
.side-card {
    padding: 22px;
    border-radius: 24px;
    background: rgba(2, 6, 23, 0.54);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: var(--shadow);
}

.compact-head {
    align-items: center;
    margin-bottom: 18px;
}

.compact-head h2 {
    font-size: 28px;
}

.ranking-list,
.side-list,
.ranking-page-list {
    display: grid;
    gap: 14px;
}

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

.ranking-item {
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.12);
    overflow: hidden;
}

.ranking-link {
    display: grid;
    grid-template-columns: 46px 86px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
}

.ranking-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--amber-2));
    font-weight: 900;
}

.ranking-link img {
    width: 86px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
    background: rgba(51, 65, 85, 0.9);
}

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

.ranking-copy strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
}

.ranking-copy em,
.ranking-copy span {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    line-height: 1.45;
}

.toolbar-line {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
}

.catalog-filter-input,
.search-input {
    width: min(520px, 100%);
    min-height: 46px;
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    outline: none;
    padding: 0 16px;
}

.catalog-filter-input:focus,
.search-input:focus {
    border-color: rgba(251, 191, 36, 0.65);
}

.page-hero {
    padding: 74px 0 52px;
    background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 35%), linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.98));
    border-bottom: 1px solid rgba(251, 191, 36, 0.14);
}

.page-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(34px, 5vw, 60px);
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    color: var(--muted-2);
    line-height: 1.8;
}

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

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

.player-stage {
    padding: 28px 0 40px;
    background: #020617;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.48);
    border: 1px solid rgba(251, 191, 36, 0.18);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18));
    cursor: pointer;
}

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

.big-play {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.94);
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.28);
    font-size: 30px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
    padding: 48px 0 16px;
    align-items: start;
}

.detail-main {
    display: grid;
    gap: 24px;
}

.detail-head {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.detail-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
    background: rgba(51, 65, 85, 0.9);
}

.detail-head h1 {
    margin: 14px 0 14px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
}

.detail-one-line {
    color: var(--muted-2);
    line-height: 1.8;
    font-size: 17px;
}

.detail-block {
    padding: 24px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.66);
    border: 1px solid rgba(148, 163, 184, 0.13);
}

.detail-block h2,
.side-card h2,
.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
}

.detail-block p {
    margin: 0;
    color: var(--muted-2);
    line-height: 2;
    font-size: 16px;
}

.search-panel[hidden] {
    display: none;
}

.search-panel {
    position: fixed;
    inset: 0;
    z-index: 80;
}

.search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.76);
    backdrop-filter: blur(10px);
}

.search-dialog {
    position: relative;
    width: min(720px, calc(100% - 28px));
    max-height: min(760px, calc(100vh - 56px));
    overflow: auto;
    margin: 28px auto;
    padding: 26px;
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(251, 191, 36, 0.24);
    box-shadow: var(--shadow);
}

.search-dialog h2 {
    margin: 0 42px 18px 0;
}

.search-close {
    position: absolute;
    right: 18px;
    top: 16px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(51, 65, 85, 0.8);
    font-size: 26px;
}

.search-results {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.search-result-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.search-result-item img {
    width: 88px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
    background: rgba(51, 65, 85, 0.9);
}

.search-result-item strong,
.search-result-item span {
    display: block;
}

.search-result-item strong {
    color: #ffffff;
}

.search-result-item em,
.search-result-item span {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    line-height: 1.55;
}

.site-footer {
    margin-top: 48px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 6, 23, 0.95);
}

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

.footer-brand p,
.site-footer a,
.footer-bottom {
    color: var(--muted);
    line-height: 1.8;
}

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

.site-footer ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.site-footer a:hover {
    color: #fbbf24;
}

.footer-bottom {
    padding: 18px 0 30px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    font-size: 13px;
}

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

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

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

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

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

    .brand-copy strong {
        font-size: 18px;
    }

    .brand-copy small {
        display: none;
    }

    .hero-carousel,
    .hero-content {
        min-height: 640px;
    }

    .hero-arrow {
        display: none;
    }

    .content-section {
        padding: 42px 0;
    }

    .section-head,
    .toolbar-line {
        display: grid;
        align-items: stretch;
    }

    .movie-grid,
    .feature-grid,
    .small-grid,
    .latest-grid,
    .catalog-grid,
    .category-grid,
    .category-overview-grid,
    .ranking-page-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .ranking-link {
        grid-template-columns: 42px 78px minmax(0, 1fr);
    }

    .ranking-link img {
        width: 78px;
    }

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

    .detail-cover {
        max-width: 260px;
    }

    .player-shell {
        border-radius: 16px;
    }

    .search-dialog {
        padding: 20px;
    }
}
