:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-soft: rgba(30, 41, 59, 0.72);
    --line: rgba(148, 163, 184, 0.18);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --gold: #f59e0b;
    --gold-soft: rgba(245, 158, 11, 0.18);
    --accent: #fbbf24;
    --danger: #ef4444;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 0%, rgba(245, 158, 11, 0.14), transparent 26rem),
        radial-gradient(circle at 88% 10%, rgba(59, 130, 246, 0.14), transparent 28rem),
        linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

img {
    max-width: 100%;
}

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

button,
input {
    font: inherit;
}

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

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 168px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #111827;
    background: linear-gradient(135deg, var(--accent), #f97316);
    box-shadow: 0 14px 34px rgba(245, 158, 11, 0.3);
}

.brand-title {
    display: block;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

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

.primary-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.primary-nav a,
.mobile-menu a {
    border-radius: 999px;
    padding: 10px 14px;
    color: #cbd5e1;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.primary-nav a:hover,
.mobile-menu a:hover,
.primary-nav a.is-active {
    color: #ffffff;
    background: rgba(148, 163, 184, 0.12);
}

.site-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 250px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
}

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

.site-search button,
.hero-button,
.control-button,
.player-button,
.page-link,
.search-submit {
    border: 0;
    color: #111827;
    font-weight: 800;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #f97316);
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.site-search button {
    width: 38px;
    height: 38px;
}

.site-search button:hover,
.hero-button:hover,
.control-button:hover,
.player-button:hover,
.page-link:hover,
.search-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 22px 44px rgba(245, 158, 11, 0.36);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: #ffffff;
    background: rgba(30, 41, 59, 0.72);
}

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

.mobile-menu.is-open {
    display: grid;
    gap: 6px;
}

.page-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-slider {
    position: relative;
    width: min(1280px, calc(100% - 32px));
    min-height: 620px;
    margin: 32px auto 60px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: #0f172a;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 0.7s ease, visibility 0.7s ease, transform 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background:
        radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.25), transparent 18rem),
        linear-gradient(135deg, #1e293b, #020617);
}

.hero-bg.is-missing,
.poster-image.is-missing {
    opacity: 0;
}

.hero-layer {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.18) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.82) 0%, transparent 42%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 42px;
    padding: clamp(28px, 6vw, 78px);
}

.hero-copy {
    max-width: 690px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 12px;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 999px;
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.1);
    font-size: 14px;
    font-weight: 700;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.06em;
}

.hero-copy h1 {
    font-size: clamp(36px, 6vw, 72px);
    line-height: 0.95;
}

.hero-copy h2 {
    margin-top: 18px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.05;
}

.hero-copy p {
    max-width: 680px;
    margin: 20px 0 0;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

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

.hero-button,
.ghost-button,
.player-button,
.search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
}

.ghost-button {
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    background: rgba(15, 23, 42, 0.7);
    transition: background 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover {
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.9);
}

.hero-panel {
    align-self: end;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.66);
    backdrop-filter: blur(16px);
}

.hero-panel-title {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
}

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

.hero-mini-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.08);
}

.hero-mini-index {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #111827;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), #f97316);
}

.hero-mini-item strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
}

.hero-mini-item span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.hero-controls {
    position: absolute;
    right: 30px;
    bottom: 28px;
    display: flex;
    gap: 10px;
}

.control-button {
    width: 44px;
    height: 44px;
    border: 0;
}

.section {
    margin-bottom: 64px;
}

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

.section-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-lead {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.category-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.72);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(251, 191, 36, 0.46);
    background: rgba(245, 158, 11, 0.12);
}

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

.movie-card {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.62);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(251, 191, 36, 0.42);
    background: rgba(30, 41, 59, 0.78);
}

.poster-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 0%, rgba(251, 191, 36, 0.22), transparent 12rem),
        linear-gradient(135deg, #1e293b, #020617);
}

.poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.2s ease;
}

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

.card-badge,
.type-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: #111827;
    background: linear-gradient(135deg, var(--accent), #f97316);
    font-size: 12px;
    font-weight: 900;
}

.type-badge {
    left: auto;
    right: 12px;
    color: #e2e8f0;
    background: rgba(2, 6, 23, 0.72);
}

.movie-card-body {
    min-height: 174px;
    padding: 15px;
}

.movie-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.35;
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #fcd34d;
    font-size: 12px;
    font-weight: 700;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.62);
}

.rank-number {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), #f97316);
}

.rank-info strong {
    display: block;
    color: #ffffff;
    margin-bottom: 4px;
}

.rank-info span,
.rank-score {
    color: var(--muted);
}

.page-hero {
    margin: 34px 0 36px;
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 82% 0%, rgba(245, 158, 11, 0.16), transparent 22rem),
        rgba(15, 23, 42, 0.64);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 820px;
    margin: 14px 0 0;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.85;
}

.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 38px 0 64px;
}

.page-link {
    padding: 12px 18px;
}

.page-link.is-current,
.page-link.is-muted {
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.86);
    box-shadow: none;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    margin: 34px 0 46px;
}

.player-card,
.detail-side,
.content-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow);
}

.player-card {
    overflow: hidden;
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.video-shell video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.22)),
        radial-gradient(circle at 50% 30%, rgba(245, 158, 11, 0.22), transparent 20rem);
}

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

.player-button {
    gap: 10px;
    min-height: 54px;
    padding: 0 28px;
    font-size: 17px;
}

.player-status {
    position: absolute;
    left: 20px;
    bottom: 18px;
    z-index: 3;
    color: #fcd34d;
    font-size: 14px;
}

.player-info {
    padding: 22px;
}

.player-info h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.player-info p {
    margin: 14px 0 0;
    color: #cbd5e1;
    line-height: 1.85;
}

.detail-side {
    overflow: hidden;
}

.detail-poster {
    aspect-ratio: 2 / 3;
    background:
        radial-gradient(circle at 20% 0%, rgba(251, 191, 36, 0.22), transparent 16rem),
        linear-gradient(135deg, #1e293b, #020617);
}

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

.detail-meta {
    display: grid;
    gap: 12px;
    padding: 22px;
}

.meta-row {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    color: #cbd5e1;
}

.meta-row span:first-child {
    color: var(--muted);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.tag-list span,
.tag-list a {
    padding: 7px 10px;
    border: 1px solid rgba(251, 191, 36, 0.24);
    border-radius: 999px;
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.08);
    font-size: 13px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 54px;
}

.content-card {
    padding: 26px;
}

.content-card h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 24px;
}

.content-card p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.95;
}

.search-page-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    max-width: 760px;
    margin-top: 26px;
}

.search-page-box input {
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    background: rgba(15, 23, 42, 0.7);
    outline: 0;
    padding: 0 18px;
}

.search-submit {
    border: 0;
}

.search-empty {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 22px;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.62);
}

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

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

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

@media (max-width: 1120px) {
    .primary-nav,
    .site-search {
        display: none;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

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

    .hero-panel {
        align-self: auto;
    }

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

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

    .hero-slider {
        min-height: 700px;
        margin-top: 18px;
    }

    .hero-content {
        padding: 24px;
    }

    .hero-panel {
        display: none;
    }

    .hero-controls {
        left: 24px;
        right: auto;
    }

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

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

    .movie-card-body {
        min-height: 158px;
        padding: 12px;
    }

    .rank-list {
        grid-template-columns: 1fr;
    }

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

    .rank-score {
        grid-column: 2;
    }

    .search-page-box {
        grid-template-columns: 1fr;
    }

    .meta-row {
        grid-template-columns: 60px 1fr;
    }
}
