:root {
    --night-950: #020617;
    --night-900: #0f172a;
    --night-800: #1e293b;
    --night-700: #334155;
    --key-gold-600: #ca8a04;
    --key-gold-500: #eab308;
    --key-gold-400: #facc15;
    --blue-500: #3b82f6;
    --red-500: #ef4444;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --shadow-night: 0 22px 70px rgba(0, 0, 0, 0.45);
    --glow-gold: 0 0 28px rgba(234, 179, 8, 0.32);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(234, 179, 8, 0.12), transparent 32rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 30rem),
        var(--night-950);
    color: var(--text-main);
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(30, 41, 59, 0.92);
    background: rgba(2, 6, 23, 0.86);
    backdrop-filter: blur(14px);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 24px;
}

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

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: var(--night-950);
    background: linear-gradient(135deg, var(--key-gold-400), var(--key-gold-600));
    box-shadow: var(--glow-gold);
}

.brand-name,
.footer-brand {
    font-size: 1.22rem;
    background: linear-gradient(90deg, var(--key-gold-400), var(--key-gold-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.nav-link,
.mobile-link {
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--key-gold-400);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-panel input {
    width: 230px;
    border: 1px solid var(--night-700);
    border-radius: 14px;
    outline: none;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.95);
    padding: 10px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus {
    border-color: var(--key-gold-500);
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.14);
}

.header-search button,
.mobile-search button {
    border: 0;
    border-radius: 14px;
    padding: 10px 14px;
    color: var(--night-950);
    font-weight: 700;
    background: var(--key-gold-500);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--night-700);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.9);
}

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

.mobile-nav {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 18px;
    border-top: 1px solid rgba(30, 41, 59, 0.82);
}

.mobile-nav.open {
    display: grid;
    gap: 12px;
}

.mobile-link.sub {
    color: #94a3b8;
    padding-left: 12px;
}

.mobile-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.mobile-search input {
    width: 100%;
}

main {
    min-height: 70vh;
}

.hero-slider {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    min-height: 690px;
    overflow: hidden;
    border-bottom: 1px solid rgba(30, 41, 59, 0.78);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.68fr);
    gap: 44px;
    align-items: center;
    padding: 96px 48px 120px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-bg,
.detail-backdrop {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    filter: blur(16px) saturate(1.1);
    transform: scale(1.08);
    opacity: 0.34;
}

.hero-slider::after,
.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.92)),
        linear-gradient(0deg, var(--night-950), rgba(2, 6, 23, 0.2));
}

.hero-content {
    max-width: 760px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--key-gold-400);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    margin: 18px 0;
    color: #fff;
    font-size: clamp(2.7rem, 7vw, 5.8rem);
    line-height: 0.96;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.hero-content p,
.page-hero p,
.lead-text {
    max-width: 780px;
    color: #cbd5e1;
    font-size: 1.12rem;
    line-height: 1.85;
}

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

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

.hero-tags span,
.tag-row span,
.pill-link {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(234, 179, 8, 0.22);
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--key-gold-400);
    background: rgba(234, 179, 8, 0.08);
    font-size: 0.85rem;
}

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

.primary-btn,
.ghost-btn,
.section-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 16px;
    padding: 13px 20px;
    font-weight: 800;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: var(--night-950);
    background: linear-gradient(135deg, var(--key-gold-400), var(--key-gold-600));
    box-shadow: var(--glow-gold);
}

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

.primary-btn:hover,
.ghost-btn:hover,
.section-action:hover,
.movie-card:hover,
.category-card:hover {
    transform: translateY(-3px);
}

.hero-poster {
    position: relative;
    height: min(64vh, 540px);
    min-height: 420px;
    overflow: hidden;
    border: 1px solid rgba(250, 204, 21, 0.22);
    border-radius: 34px;
    box-shadow: var(--shadow-night), var(--glow-gold);
}

.hero-poster::after,
.card-cover::after,
.category-cover::after,
.detail-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 52%);
}

.hero-controls {
    position: absolute;
    left: 48px;
    bottom: 42px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 4;
}

.hero-controls button {
    border: 1px solid var(--night-700);
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.82);
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    font-size: 1.8rem;
}

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

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

.hero-dot.active {
    width: 28px;
    opacity: 1;
    background: var(--key-gold-500);
}

.hero-quick-links {
    position: absolute;
    right: 48px;
    bottom: 42px;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    max-width: 520px;
}

.hero-quick-links a,
.category-samples a {
    border-radius: 999px;
    padding: 8px 12px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.74);
    border: 1px solid rgba(51, 65, 85, 0.9);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.hero-quick-links a:hover,
.category-samples a:hover {
    color: var(--key-gold-400);
    border-color: rgba(234, 179, 8, 0.42);
}

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 24px 0;
}

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

.section-heading h2,
.story-card h2,
.site-footer h2 {
    color: #fff;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    font-weight: 850;
    letter-spacing: -0.03em;
}

.section-heading p,
.story-card p,
.site-footer p,
.category-body p {
    color: var(--text-muted);
    line-height: 1.76;
}

.section-action {
    color: var(--key-gold-400);
    border: 1px solid rgba(234, 179, 8, 0.2);
    background: rgba(234, 179, 8, 0.08);
    white-space: nowrap;
}

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

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

.movie-card,
.category-card,
.story-card,
.filter-panel {
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.72);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.66));
    box-shadow: 0 12px 42px rgba(0, 0, 0, 0.25);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover,
.category-card:hover {
    border-color: rgba(234, 179, 8, 0.34);
    box-shadow: var(--shadow-night);
}

.card-cover,
.category-cover,
.detail-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--night-900);
}

.card-cover {
    aspect-ratio: 3 / 4;
}

.card-cover img,
.category-cover img,
.detail-poster img,
.hero-poster img {
    transition: transform 0.45s ease;
}

.movie-card:hover img,
.category-card:hover img,
.detail-poster:hover img,
.hero-poster:hover img {
    transform: scale(1.06);
}

.card-play,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-weight: 900;
}

.card-play {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    color: var(--night-950);
    background: var(--key-gold-500);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .card-play {
    opacity: 1;
    transform: translateY(0);
}

.rank-badge {
    top: 12px;
    left: 12px;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    color: var(--night-950);
    background: linear-gradient(135deg, var(--key-gold-400), var(--key-gold-600));
    box-shadow: var(--glow-gold);
}

.card-body {
    padding: 18px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 0.82rem;
}

.card-body h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.35;
}

.card-body h2 a:hover {
    color: var(--key-gold-400);
}

.card-body p {
    display: -webkit-box;
    min-height: 3.05em;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.58;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row span {
    font-size: 0.78rem;
    padding: 5px 10px;
}

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

.tag-row.large span {
    font-size: 0.92rem;
    padding: 7px 12px;
}

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

.category-cover {
    aspect-ratio: 16 / 10;
}

.category-cover span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 900;
}

.category-body {
    padding: 18px;
}

.category-body h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.category-samples a {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.82rem;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
}

.small-hero {
    min-height: 300px;
    display: flex;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 78px 24px 46px;
}

.small-hero h1 {
    font-size: clamp(2.35rem, 5vw, 4.6rem);
}

.filter-section {
    padding-top: 30px;
}

.filter-panel {
    display: grid;
    gap: 18px;
    margin-bottom: 26px;
    padding: 20px;
}

.filter-panel input {
    width: 100%;
    padding: 14px 16px;
}

.pill-link.active,
.pill-link:hover {
    color: var(--night-950);
    background: var(--key-gold-500);
}

.movie-card[hidden] {
    display: none;
}

.detail-hero {
    min-height: 640px;
}

.detail-wrap {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 82px 24px 54px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 34px;
    color: #94a3b8;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: 30px;
    box-shadow: var(--shadow-night), var(--glow-gold);
}

.detail-info h1 {
    font-size: clamp(2.35rem, 6vw, 5rem);
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
    gap: 26px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(250, 204, 21, 0.24);
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow-night);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-content: center;
    gap: 16px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.14), rgba(2, 6, 23, 0.72));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    margin: 0 auto;
    border-radius: 999px;
    color: var(--night-950);
    font-size: 2rem;
    background: linear-gradient(135deg, var(--key-gold-400), var(--key-gold-600));
    box-shadow: var(--glow-gold);
}

.story-card {
    padding: 28px;
}

.story-card h2 + p {
    margin-top: 12px;
}

.story-card p + h2 {
    margin-top: 26px;
}

.site-footer {
    margin-top: 72px;
    border-top: 1px solid rgba(30, 41, 59, 0.92);
    background: rgba(2, 6, 23, 0.72);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 1fr 0.7fr;
    gap: 40px;
    padding: 48px 24px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 14px;
}

.footer-links a {
    color: #94a3b8;
}

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

.footer-bottom {
    border-top: 1px solid rgba(30, 41, 59, 0.72);
    padding: 18px 24px;
    color: #64748b;
    text-align: center;
}

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

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

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

    .hero-slide {
        padding: 84px 24px 130px;
    }

    .hero-poster {
        max-width: 420px;
        min-height: 460px;
    }

    .hero-quick-links {
        left: 24px;
        right: 24px;
        justify-content: flex-start;
    }

    .hero-controls {
        left: 24px;
        bottom: 92px;
    }

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

@media (max-width: 760px) {
    .header-inner {
        padding: 0 16px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .hero-slider {
        min-height: 820px;
    }

    .hero-slide {
        gap: 26px;
        padding: 64px 16px 170px;
    }

    .hero-content h1,
    .page-hero h1,
    .detail-info h1 {
        letter-spacing: -0.04em;
    }

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

    .hero-quick-links {
        bottom: 26px;
    }

    .hero-controls {
        bottom: 112px;
    }

    .content-section,
    .small-hero,
    .detail-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .card-body {
        padding: 14px;
    }

    .detail-poster {
        max-width: 330px;
    }
}

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

    .hero-actions,
    .detail-actions {
        flex-direction: column;
    }

    .primary-btn,
    .ghost-btn {
        width: 100%;
    }
}
