:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: #111827;
    --panel-2: #1e293b;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #cbd5e1;
    --accent: #f97316;
    --accent-2: #f59e0b;
    --accent-soft: rgba(249, 115, 22, 0.16);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 10%, rgba(249, 115, 22, 0.16), transparent 30rem),
        radial-gradient(circle at 90% 0%, rgba(245, 158, 11, 0.12), transparent 34rem),
        linear-gradient(180deg, #0f172a 0%, #020617 38%, #020617 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
}

.nav-shell,
.footer-shell,
.content-section,
.page-main,
.detail-main {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
}

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

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

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #0f172a;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.34);
}

.brand-name {
    font-size: 1.2rem;
    background: linear-gradient(90deg, #fb923c, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav,
.nav-actions,
.filter-actions,
.hero-actions,
.hero-quick-links,
.detail-meta,
.detail-tags,
.tag-row,
.meta-row {
    display: flex;
    align-items: center;
}

.desktop-nav {
    gap: 6px;
}

.nav-link,
.mobile-link {
    color: var(--muted-2);
    padding: 10px 14px;
    border-radius: 12px;
    transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #fff;
    background: rgba(249, 115, 22, 0.16);
}

.nav-actions {
    gap: 12px;
}

.nav-search-wrap,
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-search-wrap input,
.mobile-search-row input,
.search-box input {
    color: var(--text);
    border: 1px solid rgba(148, 163, 184, 0.18);
    outline: 0;
    background: rgba(15, 23, 42, 0.72);
    border-radius: 14px;
    transition: 0.22s ease;
}

.nav-search-wrap input {
    width: 230px;
    padding: 10px 14px 10px 38px;
}

.search-box input {
    width: 100%;
    padding: 15px 16px 15px 46px;
}

.search-icon,
.search-box span {
    position: absolute;
    left: 14px;
    color: var(--muted);
}

.nav-search-wrap input:focus,
.mobile-search-row input:focus,
.search-box input:focus {
    border-color: rgba(249, 115, 22, 0.74);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.menu-toggle {
    display: none;
    color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.75);
    border-radius: 12px;
    padding: 9px 12px;
    cursor: pointer;
}

.mobile-panel {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    padding: 12px 16px 18px;
}

.mobile-search-row input {
    width: 100%;
    padding: 12px 14px;
}

.mobile-nav {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 420px);
    align-items: center;
    gap: 50px;
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-slide.is-active .hero-bg {
    opacity: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(6px) saturate(1.15) brightness(0.42);
    transform: scale(1.06);
}

.hero-carousel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.74) 45%, rgba(2, 6, 23, 0.42) 100%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.1), #020617 100%);
    z-index: -1;
}

.hero-copy {
    padding-top: 50px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.14);
    border: 1px solid rgba(251, 146, 60, 0.24);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-panel h1 {
    margin: 18px 0 18px;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-copy h1,
.hero-copy h2 {
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    max-width: 820px;
}

.hero-copy p {
    max-width: 660px;
    color: var(--muted-2);
    font-size: 1.08rem;
    line-height: 1.9;
}

.hero-movie-title {
    margin-top: -6px;
    color: #fff8ed !important;
    font-weight: 800;
}

.hero-tags,
.detail-tags,
.tag-row {
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.detail-tags a,
.tag-row span {
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.16);
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.82rem;
}

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

.primary-btn,
.ghost-btn,
.section-more,
.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    transition: 0.22s ease;
}

.primary-btn {
    color: #111827;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    padding: 13px 20px;
    box-shadow: 0 18px 44px rgba(249, 115, 22, 0.32);
}

.ghost-btn,
.section-more {
    color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.56);
    padding: 12px 18px;
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.filter-btn:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    border-radius: 28px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.55);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-poster span {
    position: absolute;
    right: 20px;
    bottom: 20px;
    color: #111827;
    background: linear-gradient(135deg, #fb923c, #fbbf24);
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 800;
}

.hero-bottom {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    width: min(1220px, calc(100% - 32px));
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.38);
    cursor: pointer;
    transition: 0.22s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.hero-quick-links {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.hero-quick-links a {
    color: var(--muted-2);
    background: rgba(15, 23, 42, 0.66);
    border: 1px solid rgba(148, 163, 184, 0.16);
    padding: 9px 13px;
    border-radius: 999px;
}

main {
    position: relative;
}

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

.alt-section {
    padding-top: 28px;
}

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

.section-head h2 {
    margin: 12px 0 8px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: -0.03em;
}

.section-head p,
.page-hero p {
    color: var(--muted);
    margin: 0;
    line-height: 1.8;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
    transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.44);
    box-shadow: 0 28px 70px rgba(249, 115, 22, 0.12);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.8);
}

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

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

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

.rank-badge {
    position: absolute;
    z-index: 2;
    left: 12px;
    top: 12px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: #111827;
    font-weight: 900;
    background: linear-gradient(135deg, #fb923c, #fbbf24);
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.38);
}

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

.meta-row {
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.78rem;
}

.meta-row span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.09);
}

.card-body h3 {
    margin: 12px 0 8px;
    font-size: 1.06rem;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: #fb923c;
}

.card-body p {
    min-height: 58px;
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.62;
    font-size: 0.92rem;
}

.tag-row {
    display: flex;
}

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

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.24);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) brightness(0.58);
    transition: transform 0.45s ease;
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.88));
}

.category-name,
.category-desc {
    position: absolute;
    left: 20px;
    right: 20px;
}

.category-name {
    bottom: 68px;
    font-size: 1.35rem;
    font-weight: 900;
}

.category-desc {
    bottom: 20px;
    color: var(--muted-2);
    line-height: 1.55;
    font-size: 0.92rem;
}

.page-main,
.detail-main {
    padding-top: 36px;
}

.page-hero {
    overflow: hidden;
    border-radius: 30px;
    padding: 54px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background:
        radial-gradient(circle at 18% 12%, rgba(249, 115, 22, 0.24), transparent 24rem),
        linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.9));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    font-size: clamp(2.1rem, 5vw, 4rem);
}

.filter-panel {
    margin: 0 0 28px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.62);
}

.filter-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    gap: 16px;
    align-items: center;
}

.filter-actions {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.filter-btn {
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: var(--muted-2);
    background: rgba(30, 41, 59, 0.72);
    padding: 11px 13px;
    cursor: pointer;
}

.filter-btn.is-active {
    color: #111827;
    border-color: transparent;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.no-results {
    color: var(--muted);
    text-align: center;
    margin: 18px 0 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    margin: 28px 0 18px;
}

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

.player-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.7fr);
    gap: 26px;
    align-items: stretch;
}

.video-stage {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow);
    border: 1px solid rgba(148, 163, 184, 0.14);
    aspect-ratio: 16 / 9;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 12px;
    color: #fff;
    border: 0;
    cursor: pointer;
    text-align: center;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.78));
}

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

.play-icon {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    color: #111827;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 22px 50px rgba(249, 115, 22, 0.34);
    font-size: 2rem;
}

.detail-panel {
    padding: 28px;
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.94));
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.26);
}

.detail-panel h1 {
    font-size: clamp(1.85rem, 4vw, 3.2rem);
}

.detail-line {
    color: var(--muted-2);
    line-height: 1.85;
}

.detail-meta {
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.detail-meta span {
    color: var(--muted-2);
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 999px;
    padding: 8px 11px;
}

.story-card {
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.68);
    padding: 28px;
    margin-bottom: 18px;
}

.story-card h2 {
    margin: 0 0 14px;
    font-size: 1.55rem;
}

.story-card p {
    color: var(--muted-2);
    line-height: 1.95;
    margin: 0;
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.88));
}

.footer-shell {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    gap: 26px;
    padding: 46px 0;
}

.footer-shell p {
    color: var(--muted);
    line-height: 1.75;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: start;
    justify-content: flex-end;
}

.footer-links a:hover {
    color: #fb923c;
}

.copyright {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

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

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

    .hero-slide,
    .player-layout {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }
}

@media (max-width: 820px) {
    .desktop-nav,
    .nav-search-wrap {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .hero-carousel {
        min-height: 640px;
    }

    .hero-slide {
        align-content: center;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: clamp(2.4rem, 12vw, 4.2rem);
    }

    .hero-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-head,
    .footer-shell {
        grid-template-columns: 1fr;
        display: grid;
    }

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

    .filter-actions,
    .footer-links {
        justify-content: flex-start;
    }

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

    .page-hero {
        padding: 34px 24px;
    }
}

@media (max-width: 540px) {
    .nav-shell,
    .footer-shell,
    .content-section,
    .page-main,
    .detail-main,
    .hero-slide,
    .hero-bottom {
        width: min(100% - 22px, 1220px);
    }

    .brand-name {
        font-size: 1rem;
    }

    .movie-grid,
    .category-grid,
    .category-grid.large,
    .rank-strip {
        grid-template-columns: 1fr;
    }

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

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

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

    .detail-panel,
    .story-card {
        padding: 22px;
    }
}
