:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: #0f172a;
    --panel-soft: rgba(15, 23, 42, 0.72);
    --panel-strong: #111827;
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #64748b;
    --line: rgba(148, 163, 184, 0.16);
    --amber: #f59e0b;
    --amber-2: #f97316;
    --amber-soft: rgba(245, 158, 11, 0.14);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
    --radius: 24px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 0%, rgba(245, 158, 11, 0.16), transparent 34rem),
        radial-gradient(circle at 90% 12%, rgba(249, 115, 22, 0.12), transparent 30rem),
        var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.header-inner {
    width: min(var(--max), calc(100% - 32px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amber), var(--amber-2));
    box-shadow: 0 16px 32px rgba(245, 158, 11, 0.28);
    color: white;
    font-size: 18px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, #fbbf24, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.nav-link {
    color: #cbd5e1;
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fbbf24;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 310px;
    padding: 6px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
}

.header-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    padding: 7px 10px;
}

.header-search input::placeholder {
    color: #64748b;
}

.header-search button,
.primary-btn,
.secondary-btn,
.filter-button {
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.header-search button,
.primary-btn,
.filter-button {
    color: white;
    background: linear-gradient(135deg, var(--amber), var(--amber-2));
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.22);
}

.header-search button {
    padding: 7px 16px;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
}

.secondary-btn {
    color: #f8fafc;
    border: 1px solid rgba(251, 191, 36, 0.32);
    background: rgba(15, 23, 42, 0.62);
}

.primary-btn:hover,
.secondary-btn:hover,
.header-search button:hover,
.filter-button:hover {
    transform: translateY(-1px);
}

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

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 99px;
    background: #f8fafc;
}

.mobile-nav {
    display: none;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.96);
}

.mobile-nav .nav-link {
    display: block;
    padding: 12px 10px;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.58) 42%, rgba(2, 6, 23, 0.2) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.3) 48%, rgba(2, 6, 23, 0.05) 100%);
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 68px;
    width: min(var(--max), calc(100% - 32px));
    transform: translateX(-50%);
    z-index: 2;
}

.hero-text {
    width: min(650px, 100%);
}

.eyebrow,
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    white-space: nowrap;
}

.eyebrow {
    margin-bottom: 18px;
    padding: 8px 14px;
    color: #fff7ed;
    background: rgba(245, 158, 11, 0.9);
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.22);
    font-size: 14px;
    font-weight: 800;
}

.hero h1,
.hero h2 {
    margin: 0 0 18px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 620px;
    margin: 0 0 26px;
    color: #cbd5e1;
    font-size: clamp(16px, 2vw, 20px);
}

.hero-meta,
.meta-row,
.tag-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-meta {
    margin-bottom: 26px;
}

.hero-meta span,
.tag-row span {
    padding: 5px 10px;
    border: 1px solid rgba(248, 250, 252, 0.12);
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    font-size: 13px;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-dots {
    position: absolute;
    right: max(24px, calc((100vw - var(--max)) / 2));
    bottom: 42px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    transition: width 0.25s ease, background 0.25s ease;
}

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

.main {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0 80px;
}

.main.wide {
    width: min(1320px, calc(100% - 32px));
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 34px;
    padding: 44px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 34px;
    background:
        radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.18), transparent 28rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.82));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #cbd5e1;
    font-size: 17px;
}

.content-stack {
    display: grid;
    gap: 58px;
}

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

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.16);
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.04em;
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fbbf24;
    font-weight: 800;
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

.grid.auto {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

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

.movie-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.68);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.38);
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

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

.thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .thumb-wrap img {
    transform: scale(1.08);
}

.image-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.04));
}

.play-chip {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: white;
    background: rgba(245, 158, 11, 0.92);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.poster-thumb {
    aspect-ratio: 2 / 3;
}

.large-thumb {
    aspect-ratio: 21 / 9;
}

.horizontal-thumb {
    width: 188px;
    aspect-ratio: 16 / 10;
    flex: 0 0 auto;
}

.card-body,
.large-info,
.horizontal-info {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.large-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 24px;
}

.horizontal-card {
    display: flex;
    align-items: stretch;
}

.horizontal-info {
    align-content: center;
}

.meta-row {
    color: var(--muted);
    font-size: 13px;
}

.pill {
    padding: 4px 9px;
    color: #fef3c7;
    background: var(--amber-soft);
    font-size: 12px;
    font-weight: 800;
}

.movie-card strong {
    color: #fff;
    font-size: 18px;
    line-height: 1.32;
    transition: color 0.2s ease;
}

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

.card-desc {
    display: -webkit-box;
    overflow: hidden;
    color: #94a3b8;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-card {
    position: relative;
    overflow: hidden;
    padding: 26px;
    min-height: 176px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(15, 23, 42, 0.64)),
        rgba(15, 23, 42, 0.8);
    box-shadow: var(--shadow);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -70px;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.15);
}

.category-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 24px;
}

.category-card span {
    display: block;
    color: #cbd5e1;
}

.highlight-panel {
    padding: 34px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.72));
}

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

.rank-item {
    display: grid;
    grid-template-columns: 52px 76px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.68);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    border-color: rgba(245, 158, 11, 0.32);
    background: rgba(15, 23, 42, 0.92);
}

.rank-number {
    color: #fbbf24;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-align: center;
}

.rank-item img {
    width: 76px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-info {
    min-width: 0;
}

.rank-info strong,
.rank-info span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info span {
    color: var(--muted);
    font-size: 13px;
}

.rank-action {
    padding: 7px 13px;
    border-radius: 999px;
    color: #fff;
    background: rgba(245, 158, 11, 0.18);
    font-size: 13px;
    font-weight: 800;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(130px, 0.6fr)) auto;
    gap: 12px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.75);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    outline: 0;
    padding: 0 14px;
    color: var(--text);
    background: rgba(2, 6, 23, 0.52);
}

.filter-button {
    min-height: 46px;
    padding: 0 18px;
}

.empty-state {
    display: none;
    padding: 44px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    color: var(--muted);
    text-align: center;
    background: rgba(15, 23, 42, 0.62);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.player-shell {
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow);
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-position: center;
    background-size: cover;
}

.player-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.34));
}

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

.player-start {
    position: relative;
    z-index: 2;
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--amber), var(--amber-2));
    box-shadow: 0 24px 60px rgba(245, 158, 11, 0.34);
    font-size: 34px;
    transition: transform 0.2s ease;
}

.player-start:hover {
    transform: scale(1.06);
}

.detail-card,
.detail-article,
.side-panel {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.68);
}

.detail-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    margin-top: 24px;
    padding: 22px;
}

.detail-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 20px;
    object-fit: cover;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: #fbbf24;
}

.detail-card h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

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

.detail-meta span {
    padding: 6px 11px;
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.12);
    font-size: 13px;
}

.detail-card p {
    color: #cbd5e1;
    font-size: 16px;
}

.detail-article {
    margin-top: 24px;
    padding: 28px;
}

.detail-article h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.detail-article p {
    margin: 0 0 18px;
    color: #cbd5e1;
}

.side-panel {
    position: sticky;
    top: 96px;
    padding: 18px;
}

.side-panel h2 {
    margin: 0 0 14px;
    font-size: 22px;
}

.side-panel .rank-list {
    gap: 10px;
}

.side-panel .rank-item {
    grid-template-columns: 42px 62px 1fr;
    padding: 9px;
}

.side-panel .rank-item img {
    width: 62px;
    height: 46px;
}

.side-panel .rank-action {
    display: none;
}

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

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

.footer-inner {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 28px;
}

.footer-copy {
    max-width: 620px;
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 28px 0;
    color: #cbd5e1;
}

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

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted-2);
    font-size: 14px;
}

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

    .menu-toggle {
        display: block;
    }

    body.nav-open .mobile-nav {
        display: block;
    }

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

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

    .side-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .header-inner {
        height: 68px;
    }

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

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

    .brand-subtitle {
        display: none;
    }

    .hero {
        min-height: 68vh;
    }

    .hero-content {
        bottom: 80px;
    }

    .hero-dots {
        left: 16px;
        right: auto;
        bottom: 34px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        max-width: 260px;
    }

    .main {
        padding-top: 36px;
    }

    .page-hero,
    .highlight-panel {
        padding: 26px;
        border-radius: 26px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .grid.three,
    .grid.four,
    .grid.categories-grid,
    .grid.auto {
        grid-template-columns: 1fr;
    }

    .horizontal-card,
    .detail-card {
        grid-template-columns: 1fr;
        display: grid;
    }

    .horizontal-thumb {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .rank-item {
        grid-template-columns: 42px 64px 1fr;
    }

    .rank-action {
        display: none;
    }

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

    .detail-card img {
        max-width: 220px;
    }

    .player-start {
        width: 74px;
        height: 74px;
        font-size: 26px;
    }
}
