:root {
    color-scheme: dark;
    --bg: #070b14;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.78);
    --bg-card-strong: rgba(17, 24, 39, 0.92);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --orange: #f97316;
    --orange-soft: rgba(249, 115, 22, 0.16);
    --cyan: #22d3ee;
    --cyan-soft: rgba(34, 211, 238, 0.14);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 5%, rgba(249, 115, 22, 0.24), transparent 32rem),
        radial-gradient(circle at 85% 15%, rgba(34, 211, 238, 0.18), transparent 28rem),
        linear-gradient(180deg, #020617 0%, #0f172a 42%, #070b14 100%);
    color: var(--text);
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

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

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 20px;
}

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--orange), var(--cyan));
    color: white;
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.3);
}

.brand-text,
.footer-brand span:last-child {
    background: linear-gradient(90deg, #fb923c, #ffffff, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.25rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.nav-link {
    padding: 10px 12px;
    border-radius: 999px;
    color: var(--muted-strong);
    font-size: 0.95rem;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: white;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(34, 211, 238, 0.14));
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
    padding: 9px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: white;
    border-radius: 999px;
}

.hero-section {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

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

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

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

.hero-slide img,
.detail-hero > img,
.page-hero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade,
.detail-hero-shade,
.page-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.35) 100%),
        linear-gradient(0deg, #070b14 0%, rgba(7, 11, 20, 0.12) 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(760px, calc(100% - 32px));
    margin-left: max(16px, calc((100vw - 1200px) / 2));
    padding-top: 145px;
}

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

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(2.5rem, 7vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
    background: linear-gradient(90deg, #fb923c, #ffffff 52%, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content p,
.page-hero p,
.detail-copy .lead {
    width: min(680px, 100%);
    margin: 0 0 26px;
    color: var(--muted-strong);
    font-size: clamp(1rem, 2.1vw, 1.28rem);
}

.hero-tags,
.detail-meta,
.movie-meta,
.tag-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.detail-meta span,
.movie-meta span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    color: var(--muted-strong);
    font-size: 0.78rem;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 850;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--cyan));
    color: white;
    box-shadow: 0 16px 42px rgba(249, 115, 22, 0.28);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.55);
    color: white;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 30px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(15, 23, 42, 0.62);
    color: white;
    backdrop-filter: blur(10px);
}

.hero-arrow {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    font-size: 2rem;
    line-height: 1;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 32px;
    background: linear-gradient(135deg, var(--orange), var(--cyan));
}

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

.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, 4vw, 3rem);
    line-height: 1.1;
}

.section-head p {
    margin: 0;
    max-width: 720px;
    color: var(--muted);
}

.section-action,
.inline-link {
    color: #67e8f9;
    font-weight: 800;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow);
    isolation: isolate;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.24) 100%);
}

.category-card img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.category-card span,
.category-card p {
    position: relative;
    display: block;
    padding-inline: 18px;
}

.category-card span {
    margin-top: 118px;
    font-size: 1.2rem;
    font-weight: 900;
}

.category-card p {
    margin: 6px 0 0;
    color: var(--muted-strong);
    font-size: 0.88rem;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 150px;
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.62);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.62);
    padding: 0 14px;
}

.search-box span {
    color: var(--cyan);
    font-size: 1.4rem;
}

.search-box input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 0;
    outline: 0;
    color: white;
    background: transparent;
}

.filter-panel select {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.72);
    padding: 0 12px;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

.movie-type,
.movie-year,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 8px;
    border-radius: 9px;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.movie-type {
    top: 10px;
    right: 10px;
    background: rgba(249, 115, 22, 0.86);
}

.movie-year {
    bottom: 10px;
    left: 10px;
    background: rgba(2, 6, 23, 0.72);
}

.rank-badge {
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, var(--orange), var(--cyan));
}

.movie-info {
    padding: 14px;
}

.movie-info h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.35;
}

.movie-info h3 a:hover {
    color: #fb923c;
}

.movie-info p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 10px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--muted);
    font-size: 0.86rem;
}

.movie-meta {
    margin-bottom: 10px;
}

.tag-row span {
    background: rgba(34, 211, 238, 0.08);
    color: #bae6fd;
}

.empty-state {
    display: none;
    margin-top: 20px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    color: var(--muted);
    text-align: center;
}

.empty-state.is-visible {
    display: block;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.page-hero {
    min-height: 420px;
}

.compact-hero {
    display: flex;
    align-items: center;
    min-height: 360px;
    background:
        radial-gradient(circle at 15% 35%, rgba(249, 115, 22, 0.22), transparent 24rem),
        radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.17), transparent 22rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.95));
}

.page-hero > img {
    position: absolute;
    inset: 0;
}

.page-hero-content,
.compact-hero .container {
    position: relative;
    z-index: 2;
    padding: 88px 0;
}

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

.category-panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--bg-card);
}

.category-panel-link {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    padding: 18px;
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.category-thumbs img {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    object-fit: cover;
}

.category-panel h2 {
    margin: 12px 0 8px;
}

.category-panel p {
    color: var(--muted);
}

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

.detail-hero > img {
    position: absolute;
    inset: 0;
    filter: blur(2px);
    transform: scale(1.02);
}

.detail-hero-content {
    position: relative;
    z-index: 2;
    padding: 56px 0 60px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 24px;
    color: var(--muted-strong);
    font-size: 0.92rem;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(220px, 300px) 1fr;
    gap: 34px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

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

.detail-copy h1 {
    max-width: 820px;
}

.detail-meta {
    margin-bottom: 14px;
}

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

.player-section {
    padding-top: 52px;
}

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

.video-player {
    display: block;
    width: 100%;
    height: 100%;
    background: #000;
}

.player-shade {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.76));
    color: white;
    text-align: center;
}

.player-card.is-playing .player-shade {
    display: none;
}

.play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--cyan));
    box-shadow: 0 18px 48px rgba(249, 115, 22, 0.38);
    font-size: 2rem;
}

.player-title {
    width: min(680px, 90%);
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 900;
}

.player-trigger {
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-weight: 850;
}

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

.article-card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.article-card h2 {
    margin: 12px 0 12px;
}

.article-card p {
    margin: 0;
    color: var(--muted-strong);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    gap: 32px;
    padding: 48px 0;
}

.footer-grid h3 {
    margin: 0 0 12px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
    color: var(--muted);
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-grid li + li {
    margin-top: 8px;
}

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

.footer-bottom {
    padding: 18px 16px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 0.9rem;
}

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 99;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.9), rgba(34, 211, 238, 0.9));
    color: white;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

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

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

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

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

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

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

    .hero-section {
        min-height: 610px;
    }

    .hero-content {
        padding-top: 108px;
    }

    .section-head,
    .detail-layout,
    .detail-text,
    .footer-grid,
    .category-panel-link {
        grid-template-columns: 1fr;
    }

    .section-head {
        display: grid;
    }

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

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

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

    .category-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

    .hero-section {
        min-height: 560px;
    }

    .hero-content {
        padding-top: 92px;
    }

    .hero-controls {
        bottom: 18px;
    }

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

    .category-card {
        min-height: 190px;
    }

    .movie-info {
        padding: 11px;
    }

    .movie-meta span,
    .tag-row span {
        font-size: 0.72rem;
    }

    .detail-layout {
        gap: 22px;
    }

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

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

    .article-card {
        padding: 20px;
    }
}
