:root {
    --bg: #080b12;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-strong: #111827;
    --muted: #94a3b8;
    --text: #f8fafc;
    --soft: #cbd5e1;
    --line: rgba(148, 163, 184, 0.18);
    --primary: #f97316;
    --primary-2: #fb7185;
    --accent: #22d3ee;
    --radius: 24px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 5%, rgba(249, 115, 22, 0.22), transparent 28rem),
        radial-gradient(circle at 85% 8%, rgba(34, 211, 238, 0.16), transparent 30rem),
        linear-gradient(180deg, #0f172a 0%, var(--bg) 48%, #05070d 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 4vw, 56px);
    background: rgba(8, 11, 18, 0.76);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.28);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-nav a {
    padding: 10px 16px;
    color: var(--soft);
    border: 1px solid transparent;
    border-radius: 999px;
    transition: 0.22s ease;
}

.site-nav a:hover {
    color: #fff;
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.06);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #fff;
    border-radius: 99px;
}

main {
    overflow: hidden;
}

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

.hero {
    position: relative;
    min-height: 620px;
    padding: clamp(22px, 4vw, 44px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 36px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(88, 28, 135, 0.48));
    box-shadow: var(--shadow);
}

.hero-glow {
    position: absolute;
    inset: -20% -8% auto auto;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(251, 113, 133, 0.32), transparent 70%);
    pointer-events: none;
}

.hero-slider {
    position: relative;
    min-height: 520px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    align-items: center;
    gap: clamp(26px, 5vw, 64px);
    opacity: 0;
    transform: translateX(30px) scale(0.985);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-kicker,
.section-kicker,
.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.hero-lead,
.page-hero p,
.detail-intro {
    max-width: 720px;
    margin: 22px 0 0;
    color: var(--soft);
    font-size: clamp(16px, 2vw, 20px);
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    color: #e2e8f0;
    font-size: 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
}

.tag-row.large span {
    min-height: 34px;
    padding-inline: 14px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    font-weight: 800;
    border-radius: 999px;
    transition: 0.22s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(249, 115, 22, 0.38);
}

.btn-ghost {
    color: #f8fafc;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.07);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.12);
}

.hero-art {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 32px 88px rgba(0, 0, 0, 0.5);
}

.hero-art::after,
.movie-poster::after,
.detail-poster::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.72));
    pointer-events: none;
}

.hero-art img,
.movie-poster img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.35s ease;
}

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

.hero-art span {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 20px;
    z-index: 2;
    font-size: 22px;
    font-weight: 900;
}

.hero-controls {
    position: absolute;
    left: clamp(22px, 4vw, 44px);
    right: clamp(22px, 4vw, 44px);
    bottom: 28px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-arrow,
.hero-dot {
    cursor: pointer;
    border: 0;
}

.hero-arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #fff;
    font-size: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(10px);
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    transition: 0.22s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: #fff;
}

.content-section,
.filter-panel,
.player-section {
    width: min(1180px, calc(100% - 32px));
    margin: 72px auto 0;
}

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

.section-heading h2,
.filter-panel h2,
.spotlight-panel h2,
.detail-text h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.section-heading p,
.spotlight-panel p,
.detail-text p {
    max-width: 660px;
    margin: 10px 0 0;
    color: var(--muted);
}

.section-link {
    flex: 0 0 auto;
    color: #fff;
    font-weight: 800;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.68);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
    transition: 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.42);
    background: rgba(15, 23, 42, 0.9);
}

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

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(34, 211, 238, 0.12));
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: grid;
    place-items: center;
    min-width: 40px;
    height: 34px;
    padding: 0 10px;
    font-weight: 900;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

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

.movie-card h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.25;
}

.movie-card h3 a:hover {
    color: #fed7aa;
}

.movie-card-body > p:not(.eyebrow) {
    display: -webkit-box;
    min-height: 3.2em;
    margin: 10px 0 0;
    overflow: hidden;
    color: var(--muted);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.eyebrow {
    color: #fdba74;
    letter-spacing: 0.08em;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 26px;
    align-items: stretch;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
    transition: 0.22s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    border-color: rgba(249, 115, 22, 0.45);
}

.rank-item span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    font-weight: 900;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
}

.rank-item strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-item em {
    color: var(--muted);
    font-style: normal;
}

.spotlight-panel,
.filter-panel,
.page-hero,
.detail-hero,
.player-section,
.detail-text {
    border: 1px solid var(--line);
    border-radius: 30px;
    background: rgba(15, 23, 42, 0.7);
    box-shadow: var(--shadow);
}

.spotlight-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
}

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

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.74);
    transition: 0.22s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.45);
}

.category-card img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
    transition: 0.35s ease;
}

.category-card:hover img {
    transform: scale(1.07);
    opacity: 0.44;
}

.category-card::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    background: linear-gradient(180deg, rgba(8, 11, 18, 0.18), rgba(8, 11, 18, 0.86));
}

.category-card span,
.category-card p {
    position: relative;
    z-index: 2;
}

.category-card span {
    display: block;
    margin-top: 90px;
    font-size: 24px;
    font-weight: 900;
}

.category-card p {
    margin: 8px 0 0;
    color: var(--soft);
}

.page-hero,
.detail-hero {
    padding: clamp(28px, 5vw, 52px);
}

.compact-hero {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(340px, 1.2fr);
    gap: 24px;
    align-items: center;
    padding: 24px;
}

.filter-controls {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(110px, 0.7fr));
    gap: 12px;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    color: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    background: rgba(255, 255, 255, 0.08);
}

.filter-controls input::placeholder {
    color: #94a3b8;
}

.filter-controls select option {
    color: #0f172a;
}

.no-results {
    display: none;
    margin: 28px 0 0;
    padding: 22px;
    color: var(--soft);
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
}

.no-results.is-visible {
    display: block;
}

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

.breadcrumb a {
    color: #fdba74;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 58px);
    align-items: center;
}

.detail-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.player-section {
    padding: clamp(20px, 4vw, 34px);
}

.video-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #000;
}

.video-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #fff;
    cursor: pointer;
    border: 0;
    background: linear-gradient(180deg, rgba(8, 11, 18, 0.18), rgba(8, 11, 18, 0.72));
    transition: 0.22s ease;
}

.play-overlay:hover {
    background: linear-gradient(180deg, rgba(8, 11, 18, 0.08), rgba(8, 11, 18, 0.6));
}

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

.play-symbol {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    padding-left: 6px;
    font-size: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 18px 44px rgba(249, 115, 22, 0.35);
}

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

.detail-text {
    padding: clamp(24px, 4vw, 42px);
}

.detail-text h2 + p {
    color: var(--soft);
    font-size: 18px;
}

.detail-text h2:not(:first-child) {
    margin-top: 34px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    width: min(1180px, calc(100% - 32px));
    margin: 80px auto 32px;
    padding: 28px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.56);
}

.site-footer strong {
    color: #fff;
}

.site-footer p {
    margin: 6px 0 0;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

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

@media (max-width: 1080px) {
    .movie-grid,
    .category-grid,
    .category-grid.wide {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .filter-panel,
    .split-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .site-header {
        padding-inline: 16px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: calc(100% + 10px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: rgba(8, 11, 18, 0.96);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .hero {
        min-height: auto;
        border-radius: 26px;
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
    }

    .hero-art {
        width: min(100%, 340px);
        margin: 0 auto;
    }

    .hero-controls {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        margin-top: 18px;
    }

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

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

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

    .filter-controls input {
        grid-column: 1 / -1;
    }

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

    .detail-poster {
        width: min(100%, 320px);
    }
}

@media (max-width: 560px) {
    .brand-text {
        font-size: 17px;
    }

    .hero,
    .page-hero,
    .detail-hero,
    .content-section,
    .filter-panel,
    .player-section,
    .site-footer {
        width: min(100% - 22px, 1180px);
    }

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

    .movie-grid,
    .category-grid,
    .category-grid.wide,
    .filter-controls {
        grid-template-columns: 1fr;
    }

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

    .rank-item em {
        grid-column: 2;
    }

    .video-frame {
        border-radius: 18px;
    }
}
