:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.78);
    --bg-card-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(148, 163, 184, 0.22);
    --line-strong: rgba(234, 179, 8, 0.45);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --subtle: #94a3b8;
    --gold: #facc15;
    --gold-strong: #eab308;
    --orange: #fb923c;
    --radius-lg: 28px;
    --radius-md: 18px;
    --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
    --shadow-soft: 0 14px 40px rgba(2, 6, 23, 0.32);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(234, 179, 8, 0.12), transparent 28rem), linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    color: var(--text);
    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;
    width: 100%;
}

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.76);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #0f172a;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    box-shadow: 0 12px 34px rgba(234, 179, 8, 0.32);
}

.logo-text {
    font-size: 1.18rem;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: rgba(234, 179, 8, 0.14);
    transform: translateY(-1px);
}

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

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--text);
    border-radius: 999px;
}

.hero {
    position: relative;
    min-height: calc(100vh - 72px);
    overflow: hidden;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.star-field {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.28;
    background-image:
        radial-gradient(2px 2px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 60px 70px, white, transparent),
        radial-gradient(1px 1px at 50px 50px, white, transparent),
        radial-gradient(1px 1px at 130px 80px, white, transparent),
        radial-gradient(2px 2px at 90px 10px, white, transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: starMove 200s linear infinite;
}

@keyframes starMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-200px);
    }
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-media {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: saturate(1.05);
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 120px 0 190px;
}

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

.hero-copy h1 {
    max-width: 780px;
    margin: 18px 0 20px;
    font-size: clamp(3rem, 8vw, 6.9rem);
    line-height: 0.95;
    letter-spacing: -0.08em;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.42);
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 26px;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.28rem);
}

.hero-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 0;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid rgba(234, 179, 8, 0.28);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(234, 179, 8, 0.1);
    font-size: 0.85rem;
}

.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: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #0f172a;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    box-shadow: 0 16px 36px rgba(234, 179, 8, 0.28);
}

.btn-secondary {
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.62);
}

.hero-panel {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 4;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: end;
}

.hero-search-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    padding: 18px;
}

.hero-search-title {
    color: var(--gold);
    font-weight: 900;
    margin-bottom: 10px;
}

.hero-search-box,
.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.48);
    color: var(--subtle);
    padding: 12px 14px;
}

.hero-search-box input,
.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.hero-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.hero-category-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--muted);
    background: rgba(148, 163, 184, 0.1);
    transition: background 0.2s ease, color 0.2s ease;
}

.hero-category-links a:hover {
    color: var(--text);
    background: rgba(234, 179, 8, 0.16);
}

.hero-dots {
    display: flex;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(14px);
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(203, 213, 225, 0.5);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 34px;
    background: var(--gold);
}

.content-section {
    padding: 82px 0;
    position: relative;
}

.section-muted {
    background: rgba(15, 23, 42, 0.34);
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

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

.section-heading h2 {
    margin: 8px 0 8px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.section-heading p {
    max-width: 680px;
    margin: 0;
    color: var(--subtle);
}

.compact-heading {
    margin-bottom: 20px;
}

.compact-heading h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.section-link {
    flex: 0 0 auto;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.62);
}

.section-link:hover {
    color: var(--text);
    border-color: var(--line-strong);
}

.movie-tools {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 26px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.filter-chip {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.62);
    cursor: pointer;
    padding: 0 15px;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
    color: var(--text);
    border-color: rgba(234, 179, 8, 0.42);
    background: rgba(234, 179, 8, 0.14);
}

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

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

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

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

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: var(--bg-card);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(234, 179, 8, 0.5);
    background: rgba(15, 23, 42, 0.94);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(2, 6, 23, 0.92));
}

.poster-frame img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

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

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.88));
}

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    min-width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #0f172a;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
}

.movie-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
}

.movie-meta-line {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--subtle);
    font-size: 0.78rem;
}

.movie-card strong {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-desc {
    color: var(--muted);
    font-size: 0.88rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-tags {
    color: #fde68a;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-card.compact .movie-card-body {
    padding: 12px;
}

.movie-card.compact strong {
    -webkit-line-clamp: 1;
}

.movie-card.compact .movie-desc {
    -webkit-line-clamp: 2;
}

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

.category-tile {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    padding: 20px;
    background: radial-gradient(circle at top right, rgba(234, 179, 8, 0.18), transparent 12rem), rgba(15, 23, 42, 0.72);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(234, 179, 8, 0.45);
}

.category-tile span {
    color: var(--gold);
    font-weight: 900;
}

.category-tile strong {
    color: var(--muted);
    font-size: 0.94rem;
}

.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: grid;
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background-position: center;
    background-size: cover;
}

.small-hero {
    background: radial-gradient(circle at top left, rgba(234, 179, 8, 0.18), transparent 28rem), linear-gradient(135deg, #020617, #0f172a 58%, #1e293b);
}

.page-hero-inner {
    position: relative;
    z-index: 2;
    padding: 74px 0;
}

.page-hero h1 {
    max-width: 780px;
    margin: 12px 0 16px;
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    line-height: 0.96;
    letter-spacing: -0.07em;
}

.page-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 1.15rem;
}

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

.category-card-large {
    position: relative;
    min-height: 270px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow-soft);
}

.category-card-bg {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    opacity: 0.42;
}

.category-card-bg img {
    height: 100%;
    object-fit: cover;
}

.category-card-large::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.28), rgba(2, 6, 23, 0.92));
}

.category-card-copy {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    display: grid;
    gap: 10px;
    padding: 24px;
}

.category-card-copy em {
    color: var(--gold);
    font-style: normal;
    font-weight: 900;
    font-size: 1.45rem;
}

.category-card-copy strong {
    color: var(--muted);
    font-weight: 600;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    display: grid;
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: saturate(1.05);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 44px;
    align-items: center;
    padding: 82px 0;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(234, 179, 8, 0.32);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow);
}

.detail-poster img {
    aspect-ratio: 2 / 3;
    height: 100%;
    object-fit: cover;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--subtle);
    font-size: 0.9rem;
    margin-bottom: 18px;
}

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

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

.detail-copy h1 {
    margin: 10px 0 20px;
    font-size: clamp(2.8rem, 7vw, 6.2rem);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.detail-one-line {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 1.2rem;
}

.player-section {
    padding: 72px 0 30px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(234, 179, 8, 0.28);
    border-radius: var(--radius-lg);
    background: #000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    gap: 16px;
    width: 100%;
    height: 100%;
    border: 0;
    color: var(--text);
    text-align: center;
    background-position: center;
    background-size: cover;
    cursor: pointer;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.player-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-circle {
    width: 92px;
    height: 92px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    box-shadow: 0 18px 46px rgba(234, 179, 8, 0.38);
}

.play-circle span {
    display: block;
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 17px solid transparent;
    border-bottom: 17px solid transparent;
    border-left: 26px solid #0f172a;
}

.player-cover strong {
    width: min(92%, 760px);
    font-size: clamp(1.4rem, 4vw, 3rem);
    line-height: 1.1;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.detail-content {
    padding-top: 44px;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.text-panel {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    padding: 28px;
    box-shadow: var(--shadow-soft);
}

.text-panel h2 {
    margin: 10px 0 14px;
    font-size: 1.8rem;
}

.text-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
}

.site-footer {
    padding: 44px 0 52px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 6, 23, 0.72);
}

.footer-inner {
    display: grid;
    gap: 18px;
    color: var(--subtle);
}

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

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

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

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

@media (max-width: 1080px) {
    .movie-grid,
    .featured-grid,
    .large-grid,
    .movie-row,
    .ranking-grid,
    .ranking-list-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .detail-hero-inner {
        grid-template-columns: 240px minmax(0, 1fr);
    }
}

@media (max-width: 820px) {
    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: rgba(2, 6, 23, 0.94);
        box-shadow: var(--shadow-soft);
    }

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

    .nav-link {
        border-radius: 14px;
    }

    .hero {
        min-height: 780px;
    }

    .hero-copy {
        padding: 82px 0 260px;
    }

    .hero-panel {
        grid-template-columns: 1fr;
    }

    .hero-dots {
        justify-content: center;
        width: max-content;
        max-width: 100%;
    }

    .movie-tools {
        grid-template-columns: 1fr;
    }

    .filter-row {
        justify-content: flex-start;
    }

    .movie-grid,
    .featured-grid,
    .large-grid,
    .movie-row,
    .ranking-grid,
    .ranking-list-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-card-grid,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

    .detail-hero-inner {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .detail-poster {
        width: min(260px, 72vw);
    }
}

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

    .header-inner {
        min-height: 66px;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .hero-copy h1,
    .detail-copy h1,
    .page-hero h1 {
        letter-spacing: -0.05em;
    }

    .hero-actions {
        gap: 10px;
    }

    .btn {
        width: 100%;
    }

    .content-section {
        padding: 58px 0;
    }

    .section-heading {
        display: grid;
    }

    .movie-grid,
    .featured-grid,
    .large-grid,
    .movie-row,
    .ranking-grid,
    .ranking-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

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

    .movie-desc {
        display: none;
    }

    .page-hero,
    .detail-hero {
        min-height: auto;
    }

    .page-hero-inner,
    .detail-hero-inner {
        padding: 56px 0;
    }

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

    .play-circle {
        width: 70px;
        height: 70px;
    }

    .play-circle span {
        border-top-width: 13px;
        border-bottom-width: 13px;
        border-left-width: 21px;
    }
}
