:root {
    --page-bg: #080808;
    --panel-bg: rgba(28, 25, 23, 0.82);
    --panel-strong: #1c1917;
    --line: rgba(255, 255, 255, 0.1);
    --text: #fafaf9;
    --muted: #a8a29e;
    --soft: #d6d3d1;
    --gold: #f59e0b;
    --orange: #ea580c;
    --red: #dc2626;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 10% 0%, rgba(234, 88, 12, 0.18), transparent 36rem),
        radial-gradient(circle at 90% 15%, rgba(245, 158, 11, 0.12), transparent 30rem),
        var(--page-bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.menu-open {
    overflow: hidden;
}

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

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

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

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #111;
    background: linear-gradient(135deg, var(--gold), #fff7ed 48%, var(--orange));
    box-shadow: 0 12px 36px rgba(245, 158, 11, 0.28);
}

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

.nav-links a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--soft);
    font-size: 15px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

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

.hero {
    position: relative;
    min-height: 620px;
    padding: 48px 0 34px;
    overflow: hidden;
}

.hero-stage {
    position: relative;
    min-height: 540px;
    border: 1px solid var(--line);
    border-radius: 36px;
    overflow: hidden;
    background: #111;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.65fr);
    align-items: center;
    gap: 32px;
    padding: 58px;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(8, 8, 8, 0.95) 0%, rgba(8, 8, 8, 0.68) 46%, rgba(8, 8, 8, 0.26) 100%),
        var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.08);
    transform: scale(1.04);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 50%;
    background: linear-gradient(0deg, rgba(8, 8, 8, 0.92), transparent);
}

.hero-copy,
.hero-poster-wrap {
    position: relative;
    z-index: 2;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(120, 53, 15, 0.34);
    font-size: 14px;
    font-weight: 700;
}

.hero h1,
.hero h2 {
    margin: 20px 0 18px;
    max-width: 760px;
    font-size: clamp(40px, 7vw, 82px);
    line-height: 0.94;
    letter-spacing: -0.075em;
    font-weight: 950;
}

.hero h2 {
    font-size: clamp(36px, 6vw, 70px);
}

.hero-desc {
    max-width: 680px;
    color: #e7e5e4;
    font-size: 18px;
    line-height: 1.9;
}

.hero-meta {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span,
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #f5f5f4;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.14);
}

.btn-primary {
    color: #111;
    border-color: transparent;
    background: linear-gradient(135deg, var(--gold), #fed7aa);
    box-shadow: 0 14px 44px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #fbbf24, #ffedd5);
}

.hero-poster-wrap {
    display: flex;
    justify-content: center;
}

.hero-poster {
    width: min(330px, 84vw);
    aspect-ratio: 2 / 3;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(145deg, #292524, #0c0a09);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    transform: rotate(2deg);
}

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

.hero-controls {
    position: absolute;
    z-index: 5;
    left: 58px;
    bottom: 36px;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

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

.section {
    padding: 34px 0;
}

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

.eyebrow {
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-title {
    margin-top: 6px;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.section-desc {
    max-width: 720px;
    color: var(--muted);
    line-height: 1.9;
}

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(28, 25, 23, 0.68);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(41, 37, 36, 0.9);
}

.poster-link,
.poster-box {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 12%, rgba(245, 158, 11, 0.35), transparent 42%),
        linear-gradient(145deg, #292524, #0c0a09);
}

.poster-link img,
.poster-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease, filter 0.28s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.06);
    filter: brightness(0.82);
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 999px;
    color: #111;
    background: #fbbf24;
    font-size: 12px;
    font-weight: 900;
}

.type-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    font-size: 12px;
}

.play-mini {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-left: -24px;
    margin-top: -24px;
    border-radius: 50%;
    color: #111;
    background: rgba(250, 250, 249, 0.86);
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .play-mini {
    opacity: 1;
    transform: scale(1);
}

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

.movie-card h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 900;
}

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

.card-meta {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-desc {
    margin-top: 8px;
    min-height: 42px;
    color: #d6d3d1;
    font-size: 13px;
    line-height: 1.62;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at 85% 10%, rgba(245, 158, 11, 0.22), transparent 42%),
        rgba(28, 25, 23, 0.78);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

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

.category-card strong {
    display: block;
    font-size: 22px;
    font-weight: 950;
}

.category-card span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.7;
}

.filter-panel {
    margin: 18px 0 26px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(28, 25, 23, 0.62);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.search-input {
    width: 100%;
    height: 50px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    outline: none;
    color: #fff;
    background: rgba(0, 0, 0, 0.26);
}

.search-input:focus {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--soft);
    background: rgba(255, 255, 255, 0.07);
}

.filter-chip.is-active,
.filter-chip:hover {
    color: #111;
    border-color: transparent;
    background: #fbbf24;
}

.no-result {
    display: none;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--muted);
    background: rgba(28, 25, 23, 0.64);
}

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

.rank-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.rank-item {
    display: grid;
    grid-template-columns: 54px 74px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(28, 25, 23, 0.72);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 15px;
    color: #111;
    background: linear-gradient(135deg, var(--gold), #ffedd5);
    font-weight: 950;
}

.rank-cover {
    width: 74px;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: #1c1917;
}

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

.rank-info h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 900;
}

.rank-info p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.breadcrumb {
    padding: 22px 0 8px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #fbbf24;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
    gap: 28px;
    align-items: stretch;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: rgba(28, 25, 23, 0.7);
    box-shadow: var(--shadow);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    border: 0;
    color: #111;
    background: radial-gradient(circle at 50% 50%, rgba(250, 250, 249, 0.32), rgba(0, 0, 0, 0.52));
    font-size: 22px;
    font-weight: 950;
}

.player-start span {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    color: #111;
    background: linear-gradient(135deg, var(--gold), #ffedd5);
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.35);
}

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

.detail-info h1 {
    margin: 0;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.04;
    letter-spacing: -0.055em;
    font-weight: 950;
}

.detail-info .lead {
    margin-top: 16px;
    color: #e7e5e4;
    font-size: 17px;
    line-height: 1.9;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.detail-poster {
    min-height: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: #1c1917;
}

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

.content-panel {
    margin-top: 22px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(28, 25, 23, 0.66);
}

.content-panel h2 {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 950;
}

.content-panel p {
    color: #d6d3d1;
    line-height: 2;
    margin: 0 0 14px;
}

.site-footer {
    margin-top: 50px;
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.22);
}

.footer-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: 14px;
}

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

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

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

@media (max-width: 860px) {
    .mobile-toggle {
        display: inline-grid;
        place-items: center;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 24px;
        background: rgba(12, 10, 9, 0.96);
    }

    body.menu-open .nav-links {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding-top: 26px;
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 30px;
    }

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

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

    .rank-list {
        grid-template-columns: 1fr;
    }

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

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

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

    .hero h1,
    .hero h2 {
        font-size: 42px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .section-head,
    .footer-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
}
