:root {
    color-scheme: dark;
    --bg: #0f172a;
    --bg-soft: #111827;
    --panel: rgba(30, 41, 59, 0.72);
    --panel-strong: rgba(15, 23, 42, 0.92);
    --line: rgba(255, 255, 255, 0.12);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --gold: #facc15;
    --gold-deep: #f59e0b;
    --orange: #fb923c;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(250, 204, 21, 0.12), transparent 34rem),
        radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.10), transparent 28rem),
        linear-gradient(180deg, #0f172a 0%, #111827 42%, #0f172a 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

img,
video {
    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: rgba(15, 23, 42, 0.82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1220px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #111827;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    box-shadow: 0 14px 34px rgba(250, 204, 21, 0.25);
}

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

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

.nav-link,
.mobile-link {
    color: var(--soft);
    border: 1px solid transparent;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-link {
    padding: 10px 15px;
    border-radius: 999px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--text);
    background: rgba(250, 204, 21, 0.12);
    border-color: rgba(250, 204, 21, 0.22);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-button span {
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
}

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

.mobile-link {
    display: block;
    padding: 13px 14px;
    border-radius: 14px;
}

.page-main {
    min-height: 80vh;
}

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

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

.hero-slide {
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.8s ease, transform 1.2s ease;
    pointer-events: none;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.05);
}

.hero-mask {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.72) 40%, rgba(15, 23, 42, 0.30) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.15) 48%, rgba(15, 23, 42, 0.76) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding-top: 150px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    max-width: 840px;
    margin: 18px 0 18px;
    font-size: clamp(38px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 680px;
    color: var(--soft);
    font-size: clamp(17px, 2vw, 23px);
    line-height: 1.8;
}

.hero-tags,
.tag-row,
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags {
    margin: 24px 0 30px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    color: #fde68a;
    font-size: 13px;
    border: 1px solid rgba(250, 204, 21, 0.24);
    border-radius: 999px;
    background: rgba(250, 204, 21, 0.10);
}

.hero-actions,
.detail-info .primary-btn {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.primary-btn,
.ghost-btn,
.search-row button,
.hero-side-card a,
.section-action,
.category-overview-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-btn,
.search-row button {
    min-height: 48px;
    padding: 0 22px;
    color: #111827;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.24);
}

.ghost-btn,
.section-action {
    min-height: 48px;
    padding: 0 22px;
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.08);
}

.primary-btn:hover,
.ghost-btn:hover,
.search-row button:hover,
.hero-side-card a:hover,
.section-action:hover,
.category-overview-card a:hover span {
    transform: translateY(-2px);
}

.hero-controls {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 38px;
    width: min(1220px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-arrow,
.hero-dot {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.10);
    color: var(--text);
}

.hero-arrow {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    font-size: 30px;
}

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

.hero-dot {
    width: 36px;
    height: 8px;
    border-radius: 999px;
    padding: 0;
}

.hero-dot.active {
    width: 56px;
    border-color: rgba(250, 204, 21, 0.55);
    background: var(--gold);
}

.hero-side-card {
    position: absolute;
    z-index: 5;
    right: max(16px, calc((100vw - 1220px) / 2));
    bottom: 98px;
    width: min(320px, calc(100% - 32px));
    padding: 22px;
    border: 1px solid rgba(250, 204, 21, 0.18);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.74);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.hero-side-card strong,
.hero-side-card span,
.hero-side-card a {
    display: block;
}

.hero-side-card strong {
    font-size: 22px;
    margin-bottom: 8px;
}

.hero-side-card span {
    color: var(--soft);
    line-height: 1.7;
}

.hero-side-card a {
    width: fit-content;
    margin-top: 18px;
    padding: 10px 16px;
    color: #111827;
    background: var(--gold);
}

.content-section,
.inner-page .page-hero,
.breadcrumb,
.detail-hero {
    width: min(1220px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

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

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

.section-head h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.section-head p,
.page-hero p,
.detail-one-line,
.detail-column p,
.site-footer p {
    color: var(--soft);
    line-height: 1.8;
}

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

.category-card,
.category-overview-card a {
    position: relative;
    overflow: hidden;
    display: block;
    min-height: 220px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.category-card img,
.category-overview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-card::after,
.category-overview-card a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.28));
}

.category-card:hover img,
.category-overview-card a:hover img {
    transform: scale(1.06);
    opacity: 0.62;
}

.category-card span,
.category-card small {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
}

.category-card span {
    bottom: 64px;
    font-size: 22px;
    font-weight: 900;
}

.category-card small {
    bottom: 18px;
    color: var(--soft);
    line-height: 1.5;
}

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

.movie-card {
    min-width: 0;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.22);
}

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

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.88), transparent);
}

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

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #111827;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold), var(--orange));
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.movie-card h3 {
    margin: 8px 0 8px;
    color: var(--text);
    font-size: 18px;
    line-height: 1.3;
}

.movie-card h3 a:hover {
    color: var(--gold);
}

.movie-card p {
    min-height: 46px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card.compact p {
    min-height: 0;
}

.search-panel {
    margin: 0 0 22px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
}

.search-label {
    display: block;
    margin-bottom: 10px;
    color: var(--gold);
    font-weight: 800;
}

.search-row {
    display: flex;
    gap: 12px;
}

.search-row input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    color: var(--text);
    outline: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.search-row input:focus {
    border-color: rgba(250, 204, 21, 0.52);
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.10);
}

.filter-row {
    margin: 0 0 24px;
}

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

.filter-chip.active,
.filter-chip:hover {
    color: #111827;
    border-color: transparent;
    background: var(--gold);
}

.empty-result {
    display: none;
    padding: 22px;
    color: var(--soft);
    text-align: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.empty-result.show {
    display: block;
}

.inner-page {
    padding-top: 42px;
}

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

.breadcrumb a:hover {
    color: var(--gold);
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 8px);
    background:
        radial-gradient(circle at 16% 0%, rgba(250, 204, 21, 0.18), transparent 26rem),
        linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.88));
    box-shadow: var(--shadow);
}

.page-hero {
    padding: 54px;
}

.page-hero h1 {
    font-size: clamp(36px, 5vw, 64px);
}

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

.category-overview-card a {
    min-height: 260px;
}

.category-overview-card div {
    position: absolute;
    z-index: 2;
    left: 26px;
    right: 26px;
    bottom: 24px;
}

.category-overview-card h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.category-overview-card p {
    max-width: 620px;
    margin: 0 0 18px;
    color: var(--soft);
    line-height: 1.7;
}

.category-overview-card span {
    min-height: 40px;
    padding: 0 16px;
    color: #111827;
    background: var(--gold);
}

.ranking-board {
    padding-bottom: 16px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
    transform: translateY(-2px);
    border-color: rgba(250, 204, 21, 0.34);
}

.rank-row span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #111827;
    font-weight: 900;
    background: var(--gold);
}

.rank-row em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 34px;
    padding: 28px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 2 / 3;
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.35);
}

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

.detail-info {
    align-self: center;
}

.detail-info h1 {
    font-size: clamp(34px, 5vw, 66px);
}

.detail-one-line {
    max-width: 780px;
    margin-bottom: 20px;
    font-size: 18px;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 24px 0;
}

.detail-meta-grid span {
    padding: 12px 14px;
    color: var(--soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
}

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

.player-section {
    padding-bottom: 24px;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(250, 204, 21, 0.20);
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text);
    border: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.20), rgba(15, 23, 42, 0.86));
}

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

.play-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    color: #111827;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    box-shadow: 0 18px 48px rgba(250, 204, 21, 0.28);
}

.player-cover strong {
    max-width: min(640px, 90%);
    font-size: clamp(22px, 3vw, 34px);
}

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

.detail-column {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

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

.detail-column p {
    margin: 0;
    font-size: 16px;
}

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

.footer-inner {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    margin-bottom: 10px;
    font-size: 20px;
}

.site-footer p {
    max-width: 720px;
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.footer-links a {
    color: var(--soft);
}

.footer-links a:hover {
    color: var(--gold);
}

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

    .hero-side-card {
        display: none;
    }
}

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

    .menu-button {
        display: flex;
    }

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

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

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

    .hero-content h1,
    .page-hero h1,
    .detail-info h1 {
        letter-spacing: -0.04em;
    }

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

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

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

    .detail-poster {
        max-width: 260px;
    }

    .page-hero {
        padding: 34px;
    }

    .rank-row {
        grid-template-columns: 40px 1fr;
    }

    .rank-row em {
        grid-column: 2;
    }
}

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

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

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

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

    .hero-controls {
        bottom: 24px;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
    }

    .hero-dot {
        width: 22px;
    }

    .hero-dot.active {
        width: 38px;
    }

    .category-grid,
    .movie-grid,
    .category-overview-grid,
    .rank-list,
    .detail-content,
    .detail-meta-grid {
        grid-template-columns: 1fr;
    }

    .search-row {
        flex-direction: column;
    }

    .search-row button {
        width: 100%;
    }

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

    .player-wrap {
        border-radius: 20px;
    }
}
