:root {
    --bg: #080b12;
    --bg-soft: #0f1521;
    --panel: rgba(17, 24, 39, 0.82);
    --panel-strong: rgba(30, 41, 59, 0.92);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --soft: #94a3b8;
    --amber: #f59e0b;
    --orange: #ea580c;
    --red: #ef4444;
    --green: #22c55e;
    --radius: 24px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 0%, rgba(245, 158, 11, 0.16), transparent 30rem),
        radial-gradient(circle at 92% 8%, rgba(234, 88, 12, 0.16), transparent 28rem),
        linear-gradient(180deg, #080b12 0%, #111827 46%, #080b12 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

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

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 20px;
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: #111827;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 16px 34px rgba(245, 158, 11, 0.28);
}

.brand-text {
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, #fbbf24, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-weight: 700;
    font-size: 15px;
}

.desktop-nav a {
    position: relative;
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: #fbbf24;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -9px;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.78);
    color: var(--text);
    cursor: pointer;
}

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

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.96);
}

.mobile-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-nav a {
    padding: 11px 12px;
    border-radius: 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
}

.main {
    min-height: 60vh;
}

.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 11, 18, 0.98) 0%, rgba(8, 11, 18, 0.78) 44%, rgba(8, 11, 18, 0.4) 100%),
        radial-gradient(circle at 88% 22%, rgba(245, 158, 11, 0.22), transparent 24rem);
    z-index: 2;
    pointer-events: none;
}

.hero-stage {
    position: relative;
    min-height: clamp(620px, 76vh, 820px);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

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

.hero-inner {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.62fr);
    align-items: center;
    gap: clamp(24px, 6vw, 72px);
    padding: 92px 0 72px;
}

.hero-copy {
    max-width: 720px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 13px;
    margin-bottom: 20px;
    color: #fef3c7;
    border: 1px solid rgba(245, 158, 11, 0.36);
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.13);
}

.hero-label i {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--amber);
    box-shadow: 0 0 20px var(--amber);
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 6.5vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero h2 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 56px);
    line-height: 1.04;
}

.hero p {
    margin: 0;
    max-width: 640px;
    color: var(--muted);
    font-size: clamp(16px, 2vw, 20px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 19px;
    border-radius: 999px;
    font-weight: 900;
    border: 1px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #fb923c);
    box-shadow: 0 18px 34px rgba(245, 158, 11, 0.28);
}

.btn-secondary {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(15, 23, 42, 0.7);
}

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

.hero-search {
    display: flex;
    width: min(520px, 100%);
    margin-top: 26px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(14px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 0 16px;
    color: var(--text);
    border: 0;
    outline: 0;
    background: transparent;
}

.hero-search button {
    border: 0;
    cursor: pointer;
}

.hero-panel {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.62);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-panel img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
}

.hero-panel strong {
    font-size: 22px;
}

.hero-panel span {
    color: var(--soft);
}

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

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

.hero-dot.is-active {
    background: linear-gradient(90deg, var(--amber), var(--orange));
}

.section {
    padding: 64px 0;
}

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

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

.kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: #fbbf24;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

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

.section-head p,
.page-title p {
    margin: 10px 0 0;
    max-width: 720px;
    color: var(--soft);
}

.section-link {
    flex: 0 0 auto;
    padding: 10px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #fbbf24;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.04);
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.48);
    box-shadow: 0 24px 60px rgba(245, 158, 11, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 5px 9px;
    color: #111827;
    font-size: 12px;
    font-weight: 900;
    border-radius: 999px;
    background: linear-gradient(135deg, #fbbf24, #fb923c);
}

.card-body {
    padding: 16px;
}

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

.card-body h2 {
    margin: 8px 0 8px;
    color: var(--text);
    font-size: 19px;
    line-height: 1.22;
}

.card-body p {
    min-height: 50px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.tag-row span,
.fact-list span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    color: #fde68a;
    font-size: 12px;
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.1);
}

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

.category-tile {
    min-height: 186px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.2), transparent 10rem),
        rgba(17, 24, 39, 0.82);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.48);
}

.category-tile strong {
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
}

.category-tile p {
    margin: 0;
    color: var(--soft);
    font-size: 14px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 56px 88px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(17, 24, 39, 0.78);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #111827;
    font-weight: 900;
    border-radius: 15px;
    background: linear-gradient(135deg, #fbbf24, #fb923c);
}

.rank-item img {
    width: 88px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
}

.rank-item h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.rank-item p {
    margin: 0;
    color: var(--soft);
    font-size: 14px;
}

.rank-heat {
    color: #fbbf24;
    font-weight: 900;
}

.page-hero {
    padding: 58px 0 34px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 24% 0%, rgba(245, 158, 11, 0.16), transparent 24rem),
        rgba(8, 11, 18, 0.2);
}

.page-title {
    display: grid;
    gap: 12px;
}

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

.breadcrumb a {
    color: #fbbf24;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px 160px;
    gap: 12px;
    margin: 28px 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.7);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 46px;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: 0;
    background: rgba(2, 6, 23, 0.42);
    padding: 0 14px;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(245, 158, 11, 0.62);
}

.empty-state {
    display: none;
    padding: 36px;
    text-align: center;
    color: var(--soft);
    border: 1px dashed var(--line);
    border-radius: 24px;
}

.watch-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.player-unit {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.26);
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
}

.player-unit video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
    object-fit: cover;
}

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 14px;
    color: var(--text);
    border: 0;
    cursor: pointer;
    background:
        radial-gradient(circle at center, rgba(245, 158, 11, 0.22), transparent 20rem),
        rgba(2, 6, 23, 0.48);
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-ring {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    padding-left: 5px;
    color: #111827;
    font-size: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fbbf24, #fb923c);
    box-shadow: 0 18px 48px rgba(245, 158, 11, 0.38);
}

.watch-copy {
    padding: 20px 0 0;
}

.watch-copy h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -0.04em;
}

.fact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.content-panel {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(17, 24, 39, 0.68);
}

.content-panel h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.content-panel p {
    margin: 0 0 16px;
    color: var(--muted);
}

.sidebar {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(17, 24, 39, 0.7);
}

.sidebar h2 {
    margin: 0 0 4px;
    font-size: 22px;
}

.small-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 16px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.small-card:hover {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(255, 255, 255, 0.05);
}

.small-card img {
    width: 58px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.small-card strong,
.small-card em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.small-card strong {
    color: var(--text);
}

.small-card em {
    color: var(--soft);
    font-style: normal;
    font-size: 12px;
}

.site-footer {
    margin-top: 70px;
    border-top: 1px solid var(--line);
    background: rgba(8, 11, 18, 0.9);
}

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

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

.site-footer a {
    display: block;
    margin: 8px 0;
    color: var(--soft);
    transition: color 0.2s ease;
}

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

.footer-brand p {
    max-width: 360px;
    color: var(--soft);
}

.footer-links {
    columns: 2;
}

.footer-bottom {
    padding: 18px 0;
    color: var(--soft);
    text-align: center;
    border-top: 1px solid var(--line);
}

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

    .nav-toggle {
        display: block;
    }

    .hero-inner,
    .watch-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        max-width: 360px;
    }

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

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

    .nav-shell {
        min-height: 66px;
    }

    .mobile-nav.open {
        grid-template-columns: 1fr;
    }

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

    .hero-inner {
        padding-top: 54px;
    }

    .hero-actions,
    .section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-search {
        border-radius: 24px;
        align-items: stretch;
        flex-direction: column;
    }

    .hero-search input {
        min-height: 46px;
    }

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

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

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

    .rank-heat {
        grid-column: 3;
    }

    .rank-item img {
        width: 64px;
    }

    .card-body {
        padding: 13px;
    }

    .card-body h2 {
        font-size: 16px;
    }

    .card-body p {
        min-height: auto;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .grid.cards,
    .grid.cards.compact-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 38px;
    }

    .play-ring {
        width: 66px;
        height: 66px;
        font-size: 25px;
    }
}
