
:root {
    color-scheme: dark;
    --bg: #0f172a;
    --bg-soft: #111827;
    --bg-card: rgba(15, 23, 42, 0.78);
    --bg-card-solid: #172033;
    --border: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --soft: #94a3b8;
    --accent: #f59e0b;
    --accent-strong: #d97706;
    --shadow: 0 24px 70px rgba(2, 6, 23, 0.42);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100%;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 42%, #0f172a 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(18px);
}

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

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

.brand-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #fb7185);
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(245, 158, 11, 0.22);
}

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

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

.nav-link,
.mobile-nav-link {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

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

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.1);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 0;
    color: #fff;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 12px;
}

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

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

.mobile-nav.open {
    display: grid;
    gap: 4px;
}

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

main {
    min-height: 70vh;
}

.home-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #020617;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 24%, rgba(245, 158, 11, 0.24), transparent 28%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.78) 46%, rgba(15, 23, 42, 0.3)),
        linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.62) 38%, transparent 100%);
}

.hero-content {
    position: relative;
    display: flex;
    align-items: flex-end;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    padding: 96px 0 82px;
}

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

.eyebrow,
.section-kicker,
.detail-kicker {
    display: inline-flex;
    width: max-content;
    margin-bottom: 14px;
    padding: 6px 12px;
    color: #fbbf24;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 70px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 620px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
}

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

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 700;
    background: rgba(30, 41, 59, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
}

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

.primary-button,
.ghost-button,
.section-more,
.rank-action,
.form-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    font-weight: 800;
    border-radius: 14px;
    transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.primary-button,
.form-button {
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 18px 40px rgba(245, 158, 11, 0.2);
}

.ghost-button,
.section-more {
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.48);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.rank-action:hover,
.form-button:hover {
    transform: translateY(-2px);
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 30px;
    z-index: 5;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
}

.hero-dot.active {
    width: 28px;
    background: var(--accent);
}

.hero-panel {
    position: absolute;
    right: max(16px, calc((100% - 1180px) / 2));
    bottom: 76px;
    z-index: 6;
    width: min(360px, calc(100% - 32px));
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow);
    border-radius: 24px;
    backdrop-filter: blur(18px);
}

.hero-search,
.filter-bar {
    display: flex;
    gap: 10px;
}

.hero-search input,
.filter-input,
.filter-select {
    width: 100%;
    min-height: 44px;
    color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    outline: 0;
    background: rgba(15, 23, 42, 0.82);
    border-radius: 14px;
}

.hero-search input,
.filter-input {
    padding: 0 14px;
}

.hero-search button {
    min-width: 74px;
    color: #fff;
    font-weight: 800;
    border: 0;
    background: var(--accent);
    border-radius: 14px;
}

.hero-panel-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.compact-card {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(30, 41, 59, 0.52);
    border-radius: 16px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.compact-card:hover {
    transform: translateX(-4px);
    background: rgba(51, 65, 85, 0.62);
}

.compact-card img {
    width: 62px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
}

.compact-card strong,
.compact-card em {
    display: block;
}

.compact-card strong {
    display: -webkit-box;
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.compact-card em {
    margin-top: 4px;
    color: var(--soft);
    font-size: 12px;
    font-style: normal;
}

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

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

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

.section-heading h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.88));
    border-radius: var(--radius);
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.18);
    transition: transform 0.22s ease, border 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.38);
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.42);
}

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

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

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

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

.poster-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 5px 9px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(245, 158, 11, 0.92);
    border-radius: 999px;
}

.poster-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    backdrop-filter: blur(8px);
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--soft);
    font-size: 12px;
    font-weight: 700;
}

.movie-card h2 {
    margin: 8px 0 7px;
    color: #fff;
    font-size: 17px;
    line-height: 1.3;
}

.movie-card h2 a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.tag-row span {
    min-height: 24px;
    padding: 4px 8px;
    color: #f8fafc;
    font-size: 11px;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 22px;
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at 84% 16%, rgba(245, 158, 11, 0.18), transparent 28%),
        linear-gradient(145deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.86));
    border-radius: var(--radius);
    transition: transform 0.2s ease, border 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.36);
}

.tile-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #fbbf24;
    font-weight: 900;
    background: rgba(245, 158, 11, 0.12);
    border-radius: 14px;
}

.category-tile h2 {
    margin: 20px 0 10px;
    font-size: 22px;
}

.category-tile p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.page-hero {
    padding: 72px 0 40px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    background:
        radial-gradient(circle at 18% 12%, rgba(245, 158, 11, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0));
}

.page-title p,
.detail-title p {
    max-width: 760px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.filter-panel {
    margin: 32px 0 28px;
    padding: 18px;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.58);
    border-radius: 20px;
}

.filter-bar {
    align-items: center;
}

.filter-select {
    max-width: 180px;
    padding: 0 12px;
}

.no-results {
    display: none;
    padding: 28px;
    color: var(--muted);
    text-align: center;
    border: 1px dashed rgba(148, 163, 184, 0.2);
    border-radius: 18px;
}

.no-results.show {
    display: block;
}

.ranking-list {
    display: grid;
    gap: 14px;
}

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

.rank-num {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    color: #fbbf24;
    font-size: 20px;
    font-weight: 900;
    background: rgba(245, 158, 11, 0.11);
    border-radius: 16px;
}

.rank-cover img {
    width: 92px;
    height: 118px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-info h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-info p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.7;
}

.rank-action {
    color: #fff;
    background: rgba(245, 158, 11, 0.95);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 480px;
    background: #020617;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px);
    transform: scale(1.08);
    opacity: 0.42;
}

.detail-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.72)),
        linear-gradient(0deg, #0f172a, transparent 60%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 34px;
    align-items: end;
    width: min(1180px, calc(100% - 32px));
    min-height: 480px;
    margin: 0 auto;
    padding: 92px 0 54px;
}

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

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

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

.breadcrumb a {
    color: #fbbf24;
}

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

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

.detail-meta span {
    padding: 8px 12px;
    color: #e2e8f0;
    font-weight: 800;
    background: rgba(30, 41, 59, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 340px;
    gap: 28px;
    padding: 56px 0 0;
}

.player-card,
.story-card,
.side-card {
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.66);
    border-radius: 24px;
    box-shadow: 0 18px 60px rgba(2, 6, 23, 0.22);
}

.player-card {
    overflow: hidden;
}

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

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

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

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.player-cover::after {
    position: absolute;
    inset: 0;
    content: "";
    background: radial-gradient(circle, rgba(245, 158, 11, 0.26), rgba(2, 6, 23, 0.56));
}

.play-button {
    position: relative;
    z-index: 2;
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    color: #fff;
    font-size: 32px;
    border: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    border-radius: 50%;
    box-shadow: 0 28px 70px rgba(245, 158, 11, 0.38);
}

.player-caption {
    padding: 22px;
}

.player-caption h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.player-caption p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.story-card {
    margin-top: 24px;
    padding: 26px;
}

.story-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.story-card p {
    margin: 0 0 18px;
    color: #dbeafe;
    line-height: 1.9;
}

.story-card p:last-child {
    margin-bottom: 0;
}

.detail-tags {
    margin-top: 20px;
}

.side-card {
    padding: 18px;
}

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

.spacer-bottom {
    height: 72px;
}

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

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

    .hero-panel {
        display: none;
    }
}

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

    .menu-toggle {
        display: block;
    }

    .home-hero,
    .hero-content {
        min-height: 560px;
    }

    .hero-content {
        padding-bottom: 72px;
    }

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

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

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select {
        max-width: none;
    }

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

    .rank-cover img {
        width: 72px;
        height: 96px;
    }

    .rank-action {
        grid-column: 2 / -1;
    }

    .detail-hero-inner {
        grid-template-columns: 160px 1fr;
        gap: 22px;
    }

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

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

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

    .hero-copy h1,
    .page-title h1,
    .detail-title h1 {
        letter-spacing: -0.03em;
    }

    .hero-copy p {
        font-size: 16px;
    }

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

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

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

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

    .detail-hero-inner {
        display: block;
        padding-top: 82px;
    }

    .detail-cover {
        width: 168px;
        margin-bottom: 24px;
    }
}
