:root {
    --night-950: #06080f;
    --night-900: #0b1020;
    --night-850: #11162a;
    --night-800: #151b31;
    --night-750: #1b223a;
    --night-700: #242b43;
    --night-500: #737b91;
    --night-400: #9ca3b8;
    --night-200: #d6dae6;
    --white: #ffffff;
    --gold-500: #f7c948;
    --gold-400: #ffd66b;
    --ember-500: #ff7a3d;
    --rose-500: #ff4d73;
    --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.35);
    --shadow-gold: 0 18px 45px rgba(247, 201, 72, 0.22);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --site-width: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--night-200);
    background:
        radial-gradient(circle at 15% 0%, rgba(247, 201, 72, 0.14), transparent 35%),
        radial-gradient(circle at 85% 10%, rgba(255, 122, 61, 0.12), transparent 30%),
        linear-gradient(180deg, #070914 0%, #0b1020 46%, #070914 100%);
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 8, 15, 0.82);
    backdrop-filter: blur(20px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    width: min(var(--site-width), calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--night-950);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold-500), var(--ember-500));
    box-shadow: var(--shadow-gold);
}

.brand-text {
    font-size: 20px;
    background: linear-gradient(90deg, var(--gold-400), var(--ember-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
}

.nav-link,
.mobile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--night-200);
    transition: 0.2s ease;
}

.nav-link {
    padding: 10px 14px;
    font-size: 15px;
}

.nav-link.small {
    color: var(--night-400);
    font-size: 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--gold-400);
    background: rgba(255, 255, 255, 0.06);
}

.top-search {
    display: flex;
    overflow: hidden;
    width: 286px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(21, 27, 49, 0.86);
}

.top-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-width: 0;
    color: var(--white);
    border: 0;
    outline: 0;
    background: transparent;
}

.top-search input {
    padding: 10px 13px;
}

.top-search button,
.mobile-search button,
.filter-bar button {
    color: var(--night-950);
    border: 0;
    background: linear-gradient(135deg, var(--gold-500), var(--ember-500));
    font-weight: 800;
}

.top-search button {
    padding: 0 16px;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.menu-button span {
    display: block;
    width: 19px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
    border-radius: 10px;
}

.mobile-panel {
    width: min(var(--site-width), calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(11, 16, 32, 0.98);
    box-shadow: var(--shadow-soft);
}

.mobile-link {
    justify-content: flex-start;
    width: 100%;
    padding: 12px 14px;
}

.mobile-search {
    display: flex;
    overflow: hidden;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.mobile-search input {
    padding: 12px 14px;
}

.mobile-search button {
    padding: 0 18px;
}

main {
    min-height: 70vh;
}

.hero-carousel,
.page-hero,
.section,
.detail-page {
    width: min(var(--site-width), calc(100% - 32px));
    margin-right: auto;
    margin-left: auto;
}

.hero-carousel {
    position: relative;
    margin-top: 28px;
}

.hero-stage {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    background: var(--night-900);
    box-shadow: var(--shadow-soft);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 42px;
    align-items: center;
    padding: 70px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(22px) saturate(1.1);
    opacity: 0.35;
    transform: scale(1.08);
}

.hero-bg::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(6, 8, 15, 0.96) 0%, rgba(6, 8, 15, 0.78) 48%, rgba(6, 8, 15, 0.45) 100%),
        radial-gradient(circle at 25% 30%, rgba(247, 201, 72, 0.18), transparent 34%);
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 2;
}

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

.hero-content h1,
.hero-content h2,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: var(--white);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.hero-content h1,
.hero-content h2 {
    max-width: 760px;
    font-size: clamp(42px, 7vw, 78px);
}

.hero-summary {
    max-width: 720px;
    margin: 24px 0 0;
    color: var(--night-200);
    font-size: 19px;
}

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

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.quality-badge,
.play-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--night-200);
}

.hero-tags span,
.tag-row span,
.detail-meta span {
    min-height: 32px;
    padding: 6px 12px;
    font-size: 13px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.btn,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.section-link:hover,
.movie-card:hover .poster-link img,
.compact-card:hover img {
    transform: translateY(-2px);
}

.btn.primary {
    color: var(--night-950);
    background: linear-gradient(135deg, var(--gold-500), var(--ember-500));
    box-shadow: var(--shadow-gold);
}

.btn.secondary,
.section-link {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.btn.ghost {
    color: var(--gold-400);
    border: 1px solid rgba(247, 201, 72, 0.22);
    background: rgba(247, 201, 72, 0.08);
}

.hero-poster {
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

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

.hero-controls {
    position: absolute;
    right: 34px;
    bottom: 30px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 30px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
}

.hero-dot.is-active {
    width: 28px;
    background: linear-gradient(135deg, var(--gold-500), var(--ember-500));
}

.section {
    padding: 64px 0 0;
}

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

.section-head h2,
.category-block h2,
.article-block h2,
.site-footer h2 {
    margin: 0;
    color: var(--white);
    line-height: 1.2;
}

.section-head h2 {
    font-size: clamp(26px, 4vw, 36px);
}

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

.category-pill,
.category-block,
.movie-card,
.rank-item,
.article-block,
.player-shell,
.page-hero,
.detail-hero {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
}

.category-pill {
    min-height: 132px;
    padding: 22px;
    border-radius: var(--radius-lg);
    transition: 0.2s ease;
}

.category-pill:hover,
.category-block:hover,
.movie-card:hover,
.rank-item:hover {
    border-color: rgba(247, 201, 72, 0.32);
    background: linear-gradient(180deg, rgba(247, 201, 72, 0.12), rgba(255, 255, 255, 0.035));
}

.category-pill span {
    display: block;
    color: var(--white);
    font-size: 21px;
    font-weight: 900;
}

.category-pill em {
    display: block;
    margin-top: 10px;
    color: var(--night-400);
    font-style: normal;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: var(--night-800);
}

.poster-link img,
.compact-card img,
.rank-cover img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.quality-badge,
.play-chip {
    position: absolute;
    z-index: 2;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 900;
}

.quality-badge {
    top: 10px;
    right: 10px;
    color: var(--night-950);
    border: 0;
    background: linear-gradient(135deg, var(--gold-500), var(--ember-500));
}

.play-chip {
    right: 12px;
    bottom: 12px;
    color: var(--white);
    background: rgba(6, 8, 15, 0.76);
    backdrop-filter: blur(12px);
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--night-400);
    font-size: 13px;
}

.movie-card h3 {
    margin: 9px 0 8px;
    color: var(--white);
    font-size: 17px;
    line-height: 1.35;
}

.movie-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 12px;
    color: var(--night-400);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row span {
    min-height: 28px;
    padding: 4px 9px;
    color: var(--gold-400);
    border-color: rgba(247, 201, 72, 0.16);
    background: rgba(247, 201, 72, 0.08);
}

.rank-section {
    padding-top: 78px;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 92px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
}

.rank-number {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--night-950);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gold-500), var(--ember-500));
    font-size: 20px;
    font-weight: 900;
}

.rank-cover {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    background: var(--night-800);
}

.rank-copy h2 {
    margin: 0 0 8px;
    font-size: 19px;
}

.rank-copy p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 10px;
    color: var(--night-400);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.page-hero {
    margin-top: 28px;
    padding: 76px;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(247, 201, 72, 0.14), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
}

.page-hero.slim {
    padding: 58px;
}

.page-hero h1 {
    font-size: clamp(38px, 6vw, 66px);
}

.page-hero p {
    max-width: 800px;
    margin: 18px 0 0;
    color: var(--night-300, #b9bfd1);
    font-size: 18px;
}

.page-actions {
    margin-top: 26px;
}

.category-stack {
    display: grid;
    gap: 24px;
}

.category-block {
    padding: 28px;
    border-radius: var(--radius-lg);
}

.category-block-head p {
    max-width: 740px;
    margin: 10px 0 0;
    color: var(--night-400);
}

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

.compact-card {
    display: grid;
    gap: 9px;
    color: var(--night-200);
    font-size: 13px;
}

.compact-card img {
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    background: var(--night-800);
}

.compact-card span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 170px 150px auto;
    gap: 12px;
    margin-bottom: 26px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
}

.filter-bar input,
.filter-bar select {
    height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(6, 8, 15, 0.55);
}

.filter-bar select option {
    color: #111827;
}

.filter-bar button {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
}

.empty-state {
    padding: 36px;
    color: var(--night-400);
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 20px;
}

.related-channels {
    padding-top: 42px;
}

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.detail-page {
    padding-top: 28px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--night-400);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--gold-400);
}

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 40px;
    padding: 36px;
    border-radius: var(--radius-xl);
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 24px;
    background: var(--night-800);
    box-shadow: var(--shadow-soft);
}

.detail-copy {
    align-self: center;
}

.detail-copy h1 {
    font-size: clamp(36px, 6vw, 64px);
}

.lead {
    max-width: 850px;
    margin: 20px 0 0;
    color: var(--night-200);
    font-size: 19px;
}

.detail-meta {
    margin-top: 24px;
}

.tag-row.large {
    margin-top: 20px;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    background: #000;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    gap: 14px;
    place-items: center;
    align-content: center;
    color: var(--white);
    border: 0;
    background: linear-gradient(180deg, rgba(6, 8, 15, 0.36), rgba(6, 8, 15, 0.78));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    padding-left: 6px;
    color: var(--night-950);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold-500), var(--ember-500));
    box-shadow: var(--shadow-gold);
    font-size: 32px;
}

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

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.article-block {
    padding: 28px;
    border-radius: var(--radius-lg);
}

.article-block h2 {
    margin-bottom: 14px;
    font-size: 25px;
}

.article-block p {
    margin: 0;
    color: var(--night-300, #b9bfd1);
}

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

.site-footer {
    width: min(var(--site-width), calc(100% - 32px));
    margin: 76px auto 0;
    padding: 38px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
}

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

.site-footer p {
    margin: 0;
    color: var(--night-400);
}

.site-footer h2 {
    margin-bottom: 14px;
    font-size: 17px;
}

.footer-links {
    display: grid;
    gap: 9px;
}

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

.footer-links a:hover {
    color: var(--gold-400);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1120px) {
    .top-search,
    .desktop-nav .small {
        display: none;
    }

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

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

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

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

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

    .hero-stage {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 28px;
        padding: 32px;
    }

    .hero-poster {
        width: min(260px, 70vw);
    }

    .hero-controls {
        right: 20px;
        bottom: 20px;
        left: 20px;
        justify-content: space-between;
    }

    .section-head,
    .category-block-head,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .home-rank,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .detail-hero {
        grid-template-columns: 1fr;
        padding: 24px;
    }

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

    .page-hero,
    .page-hero.slim {
        padding: 34px;
    }
}

@media (max-width: 560px) {
    .header-inner {
        min-height: 66px;
    }

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

    .hero-carousel,
    .page-hero,
    .section,
    .detail-page,
    .site-footer {
        width: min(100% - 20px, var(--site-width));
    }

    .hero-stage {
        min-height: 680px;
        border-radius: 22px;
    }

    .hero-slide {
        padding: 24px;
    }

    .hero-summary,
    .lead {
        font-size: 16px;
    }

    .hero-actions {
        gap: 10px;
    }

    .btn,
    .section-link {
        width: 100%;
    }

    .category-pills,
    .movie-grid,
    .compact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .rank-item {
        grid-template-columns: 46px 72px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-number {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }

    .rank-copy p {
        -webkit-line-clamp: 1;
    }

    .card-body {
        padding: 13px;
    }

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

    .article-block {
        padding: 20px;
    }
}
