:root {
    color-scheme: dark;
    --bg: #070912;
    --bg-soft: #0d1222;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-solid: #111827;
    --card: #111827;
    --card-strong: #172033;
    --text: #f8fafc;
    --muted: #a8b3c7;
    --line: rgba(148, 163, 184, 0.18);
    --primary: #f59e0b;
    --primary-strong: #f97316;
    --accent: #ef4444;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --max: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 0%, rgba(245, 158, 11, 0.16), transparent 30%),
        radial-gradient(circle at 86% 8%, rgba(239, 68, 68, 0.14), transparent 28%),
        linear-gradient(180deg, #070912 0%, #0b1020 45%, #070912 100%);
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, black, transparent 75%);
    z-index: -1;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.header-inner {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #111827;
    box-shadow: 0 12px 36px rgba(245, 158, 11, 0.28);
}

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

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

.site-nav a {
    color: var(--muted);
    padding: 10px 14px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
    width: 44px;
    height: 44px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
}

.hero-slider {
    position: relative;
    width: min(var(--max), calc(100% - 32px));
    min-height: 620px;
    margin: 28px auto 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 36px;
    background: #111827;
    box-shadow: var(--shadow);
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.75s ease;
}

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

.hero-image {
    position: absolute;
    inset: 0;
    filter: saturate(1.06) contrast(1.05);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 9, 18, 0.96) 0%, rgba(7, 9, 18, 0.72) 42%, rgba(7, 9, 18, 0.22) 100%),
        linear-gradient(0deg, rgba(7, 9, 18, 0.92) 0%, transparent 55%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 78px clamp(24px, 7vw, 88px);
}

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

.hero-content h1,
.hero-content h2,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-content h1 {
    max-width: 760px;
    font-size: clamp(38px, 6vw, 76px);
}

.hero-content h2 {
    margin-top: 12px;
    font-size: clamp(30px, 4vw, 54px);
}

.hero-content p {
    max-width: 720px;
    margin: 22px 0 0;
    color: #dbe3f3;
    font-size: clamp(16px, 2vw, 19px);
}

.hero-badges,
.detail-meta,
.card-meta,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-badges {
    margin-top: 24px;
}

.hero-badges span,
.detail-meta span,
.tag-row span {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #e5edf8;
    padding: 6px 12px;
    font-size: 13px;
}

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

.primary-btn,
.ghost-btn,
.home-search button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.home-search button {
    border: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #111827;
    padding: 0 24px;
    box-shadow: 0 16px 42px rgba(245, 158, 11, 0.24);
}

.ghost-btn,
.section-link {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    padding: 0 20px;
}

.primary-btn:hover,
.ghost-btn:hover,
.home-search button:hover,
.section-link:hover {
    transform: translateY(-2px);
}

.hero-dots {
    position: absolute;
    left: clamp(24px, 7vw, 88px);
    bottom: 34px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

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

.hero-dot.is-active {
    background: var(--primary);
}

.section {
    width: min(var(--max), calc(100% - 32px));
    margin: 54px auto;
}

.section-narrow {
    max-width: 980px;
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading h2,
.detail-text h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.home-search,
.filter-panel {
    display: grid;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(17, 24, 39, 0.72);
    padding: 18px;
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.22);
}

.home-search {
    grid-template-columns: 1fr auto;
}

.home-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: 0;
    background: rgba(7, 9, 18, 0.62);
    color: var(--text);
    padding: 0 18px;
}

.home-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(245, 158, 11, 0.68);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.filter-panel {
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 0.35fr));
    margin-bottom: 26px;
}

.filter-panel label span {
    display: block;
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
}

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

.category-tile,
.category-card-large a {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(239, 68, 68, 0.06)),
        rgba(17, 24, 39, 0.78);
    padding: 22px;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

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

.category-tile span,
.category-card-large h2 {
    color: var(--text);
    font-size: 22px;
    font-weight: 900;
}

.category-tile p,
.category-card-large p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
}

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

.category-card-large a {
    min-height: 210px;
}

.mini-title-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.mini-title-row span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #dbe3f3;
    padding: 6px 10px;
    font-size: 12px;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(17, 24, 39, 0.82);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.42);
    box-shadow: 0 20px 58px rgba(0, 0, 0, 0.34);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #1f2937, #111827);
}

.poster-link img {
    transition: transform 0.35s ease;
}

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(7, 9, 18, 0.92), transparent);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #111827;
    font-weight: 900;
}

.card-body {
    padding: 16px;
}

.card-meta {
    color: var(--muted);
    font-size: 12px;
    gap: 8px;
}

.card-meta span + span::before {
    content: "·";
    margin-right: 8px;
    color: rgba(168, 179, 199, 0.52);
}

.card-body h3 {
    margin: 9px 0 8px;
    font-size: 18px;
    line-height: 1.28;
}

.card-body h3 a:hover {
    color: var(--primary);
}

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

.tag-row span {
    padding: 4px 9px;
    font-size: 12px;
}

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

.page-hero {
    position: relative;
    overflow: hidden;
    margin-top: 28px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        radial-gradient(circle at 18% 22%, rgba(245, 158, 11, 0.2), transparent 28%),
        linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(7, 9, 18, 0.92));
    padding: clamp(34px, 6vw, 76px);
    box-shadow: var(--shadow);
}

.compact-hero h1 {
    max-width: 900px;
    font-size: clamp(34px, 6vw, 64px);
}

.compact-hero p:last-child {
    max-width: 780px;
    color: var(--muted);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 28px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 54px);
    align-items: center;
    margin-top: 24px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.18), transparent 30%),
        rgba(17, 24, 39, 0.78);
    padding: clamp(18px, 4vw, 42px);
    box-shadow: var(--shadow);
}

.detail-poster {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 26px;
    background: linear-gradient(135deg, #1f2937, #111827);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.35);
}

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

.detail-one-line {
    max-width: 840px;
    color: #dbe3f3;
    font-size: 20px;
}

.detail-meta {
    margin: 22px 0 18px;
}

.detail-tags {
    margin-bottom: 28px;
}

.player-section {
    margin-top: 46px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: #020617;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-video,
.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.movie-video {
    z-index: 1;
    background: #020617;
}

.player-cover {
    z-index: 2;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--text);
    background: #020617;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.16), transparent 24%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.2));
}

.play-symbol {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #111827;
    font-size: 34px;
    box-shadow: 0 18px 50px rgba(245, 158, 11, 0.32);
}

.player-cover.is-hidden {
    display: none;
}

.detail-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.detail-text article {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(17, 24, 39, 0.78);
    padding: clamp(22px, 4vw, 34px);
}

.detail-text p {
    margin: 18px 0 0;
    color: #d7e0ef;
    font-size: 17px;
}

.site-footer {
    margin-top: 80px;
    border-top: 1px solid var(--line);
    background: rgba(7, 9, 18, 0.74);
}

.footer-inner {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    display: flex;
    justify-content: space-between;
    gap: 28px;
    color: var(--muted);
}

.footer-inner strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 18px;
}

.footer-inner p {
    max-width: 560px;
    margin: 0;
}

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

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

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

@media (max-width: 1120px) {
    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

@media (max-width: 860px) {
    .header-inner {
        height: 68px;
    }

    .site-nav {
        position: absolute;
        top: 68px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: rgba(7, 9, 18, 0.96);
        padding: 12px;
        box-shadow: var(--shadow);
    }

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

    .nav-toggle {
        display: flex;
    }

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

    .hero-shade {
        background:
            linear-gradient(0deg, rgba(7, 9, 18, 0.96) 0%, rgba(7, 9, 18, 0.82) 52%, rgba(7, 9, 18, 0.35) 100%);
    }

    .hero-content {
        padding: 54px 24px 110px;
    }

    .hero-dots {
        left: 24px;
    }

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

    .home-search,
    .filter-panel,
    .detail-hero,
    .detail-text,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .hero-slider,
    .section,
    .page-hero,
    .detail-hero,
    .breadcrumb {
        width: calc(100% - 24px);
    }

    .hero-slider {
        margin-top: 16px;
        min-height: 620px;
    }

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

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

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

    .category-grid {
        grid-template-columns: 1fr;
    }

    .card-body {
        padding: 12px;
    }

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

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

    .video-shell {
        border-radius: 20px;
    }

    .play-symbol {
        width: 70px;
        height: 70px;
        font-size: 26px;
    }
}
