:root {
    --bg: #030712;
    --bg-soft: #0f172a;
    --card: #111827;
    --card-strong: #1f2937;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --muted-2: #94a3b8;
    --accent: #f97316;
    --accent-strong: #ea580c;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.15), transparent 32rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(3, 7, 18, 0.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.nav-wrap {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #fb923c);
    box-shadow: 0 12px 34px rgba(249, 115, 22, 0.38);
}

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

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

.nav-link {
    padding: 9px 15px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fff;
    background: rgba(249, 115, 22, 0.95);
    transform: translateY(-1px);
}

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

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

.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #020617;
}

.hero-slides,
.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-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.32) blur(8px);
    transform: scale(1.05);
}

.hero-shade,
.detail-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 45%, rgba(2, 6, 23, 0.35) 100%),
        linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.96) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 390px);
    align-items: center;
    gap: 54px;
    padding-top: 86px;
    padding-bottom: 72px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 6px 12px;
    border: 1px solid rgba(249, 115, 22, 0.35);
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.12);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    line-height: 1.08;
    font-size: clamp(38px, 6vw, 78px);
    letter-spacing: -0.04em;
}

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

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

.hero-tags span {
    display: inline-flex;
    padding: 6px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.72);
    font-size: 13px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

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

.btn.primary {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 18px 44px rgba(249, 115, 22, 0.32);
}

.btn.primary:hover {
    background: var(--accent-strong);
}

.btn.ghost {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.hero-poster,
.detail-poster {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow);
}

.hero-poster::after,
.detail-poster::after {
    content: "";
    position: absolute;
    inset: auto 10% -14% 10%;
    height: 30%;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.42);
    filter: blur(34px);
}

.hero-poster img,
.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.hero-poster:hover img,
.detail-poster:hover img,
.poster-link:hover img,
.category-overview:hover img,
.rank-cover:hover img {
    transform: scale(1.055);
}

.hero-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

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

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

.section-block {
    padding: 72px 0;
}

.section-band {
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.08), rgba(15, 23, 42, 0.42));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

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

.section-head.compact {
    align-items: center;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.03em;
}

.section-head a {
    color: #fdba74;
    font-weight: 700;
}

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

.all-grid {
    margin-top: 26px;
}

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 115, 22, 0.45);
    background: rgba(30, 41, 59, 0.92);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #0f172a;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.74) 100%);
}

.poster-badge,
.poster-play {
    position: absolute;
    z-index: 2;
}

.poster-badge {
    top: 10px;
    left: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(249, 115, 22, 0.94);
    font-size: 12px;
    font-weight: 700;
}

.poster-play {
    left: 50%;
    top: 50%;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(249, 115, 22, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
    padding: 13px 13px 15px;
}

.movie-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 48px;
    color: #fff;
    font-weight: 800;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-title:hover {
    color: #fdba74;
}

.movie-card-body p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 42px;
    margin: 8px 0 0;
    color: var(--muted-2);
    font-size: 13px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    color: #fed7aa;
    font-size: 12px;
}

.movie-meta span {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.12);
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    gap: 36px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 70px 44px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.76);
    transition: border 0.2s ease, transform 0.2s ease;
}

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

.rank-cover {
    overflow: hidden;
    border-radius: 13px;
    background: #111827;
}

.rank-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rank-number {
    color: #fb923c;
    font-size: 22px;
    font-weight: 900;
}

.rank-content a {
    color: #fff;
    font-weight: 800;
}

.rank-content p {
    display: -webkit-box;
    overflow: hidden;
    margin: 4px 0 0;
    color: var(--muted-2);
    font-size: 13px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.full-rank-list {
    gap: 14px;
}

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

.category-card,
.category-overview {
    position: relative;
    overflow: hidden;
    min-height: 128px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(15, 23, 42, 0.88));
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover,
.category-overview:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.52);
}

.category-card span,
.category-overview span {
    display: block;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

.category-card strong,
.category-overview strong {
    display: block;
    margin-top: 4px;
    color: #fdba74;
}

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

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

.category-overview {
    min-height: auto;
    padding: 0;
    background: rgba(15, 23, 42, 0.86);
}

.category-overview img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    opacity: 0.82;
    transition: transform 0.3s ease;
}

.category-overview span,
.category-overview strong,
.category-overview p {
    padding-left: 16px;
    padding-right: 16px;
}

.category-overview span {
    padding-top: 16px;
}

.category-overview p {
    padding-bottom: 18px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    padding-top: 110px;
}

.small-hero {
    padding-bottom: 58px;
    background:
        radial-gradient(circle at 22% 18%, rgba(249, 115, 22, 0.2), transparent 28rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.98));
    border-bottom: 1px solid var(--line);
}

.filter-panel,
.search-panel {
    padding: 34px 0 72px;
}

.filter-controls,
.global-search {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 12px;
}

.global-search {
    grid-template-columns: minmax(220px, 1fr) 140px;
}

.filter-controls input,
.filter-controls select,
.global-search input,
.global-search button {
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 15px;
    color: #fff;
    background: rgba(15, 23, 42, 0.92);
    outline: none;
}

.filter-controls input,
.filter-controls select,
.global-search input {
    padding: 0 16px;
}

.filter-controls input:focus,
.filter-controls select:focus,
.global-search input:focus {
    border-color: rgba(249, 115, 22, 0.68);
}

.global-search button {
    border: 0;
    font-weight: 800;
    background: var(--accent);
}

.filter-result {
    min-height: 24px;
    margin: 14px 0 0;
    color: var(--muted-2);
}

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

.detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(230px, 330px) minmax(0, 1fr);
    gap: 46px;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 72px;
}

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

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

.player-section {
    padding: 50px 0 42px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 26px;
    background: #000;
    box-shadow: var(--shadow);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.82));
    font-weight: 900;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.big-play {
    display: grid;
    width: 84px;
    height: 84px;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 18px 48px rgba(249, 115, 22, 0.44);
    font-size: 30px;
}

.content-section {
    padding: 18px 0 42px;
}

.detail-text,
.content-page {
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px;
    background: rgba(15, 23, 42, 0.78);
}

.detail-text h2,
.content-page h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 24px;
}

.detail-text h2:not(:first-child),
.content-page h2:not(:first-child) {
    margin-top: 28px;
}

.detail-text p,
.content-page p {
    margin: 0;
    color: var(--muted);
}

.info-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0 0;
}

.info-list div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.62);
}

.info-list dt {
    color: var(--muted-2);
    font-size: 13px;
}

.info-list dd {
    margin: 4px 0 0;
    color: #fff;
    font-weight: 800;
}

.site-footer {
    margin-top: 42px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.9);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 28px;
    padding: 46px 0 34px;
}

.footer-grid h2 {
    margin: 0 0 12px;
    font-size: 16px;
}

.footer-grid p,
.footer-bottom p {
    margin: 12px 0 0;
    color: var(--muted-2);
}

.footer-grid a {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.footer-grid a:hover {
    color: #fdba74;
}

.footer-bottom {
    padding: 18px 0 26px;
    border-top: 1px solid var(--line);
}

.is-filter-hidden {
    display: none !important;
}

@media (min-width: 760px) {
    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1060px) {
    .movie-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .hero-content,
    .detail-layout,
    .two-column,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .filter-controls,
    .global-search,
    .info-list {
        grid-template-columns: 1fr;
    }
}

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

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

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

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

    .hero-content {
        gap: 28px;
        padding-top: 100px;
    }

    .hero h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 36px;
    }

    .hero p,
    .page-hero p,
    .detail-info .lead {
        font-size: 16px;
    }

    .section-head {
        display: block;
    }

    .section-head a {
        display: inline-block;
        margin-top: 10px;
    }

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

    .rank-number {
        display: none;
    }

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

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

    .detail-layout {
        padding-top: 24px;
    }

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

    .detail-text,
    .content-page {
        padding: 22px;
    }
}
