:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: #0f172a;
    --panel-soft: rgba(15, 23, 42, 0.78);
    --panel-strong: #1e293b;
    --line: #1e293b;
    --text: #ffffff;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --accent: #f59e0b;
    --accent-soft: rgba(245, 158, 11, 0.14);
    --danger: #ef4444;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    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(245, 158, 11, 0.12), transparent 34rem),
        linear-gradient(180deg, #020617 0%, #0f172a 55%, #020617 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.site-header-inner {
    width: min(1280px, 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: 12px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #111827;
    background: var(--accent);
    box-shadow: 0 0 28px rgba(245, 158, 11, 0.45);
    font-size: 15px;
    font-weight: 800;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 20px;
    letter-spacing: 0.02em;
}

.brand-text small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

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

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

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #1e293b;
    color: #fff;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 4px;
    background: #fff;
}

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #1e293b;
}

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

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

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

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.08) contrast(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-overlay-bottom {
    background: linear-gradient(to top, #020617 0%, rgba(2, 6, 23, 0.78) 42%, transparent 100%);
}

.hero-overlay-side {
    background: linear-gradient(to right, #020617 0%, rgba(2, 6, 23, 0.82) 38%, transparent 74%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    width: min(720px, calc(100% - 48px));
    transform: translateY(-50%);
    z-index: 3;
}

.hero-pill,
.eyebrow,
.movie-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    color: #fff;
    background: rgba(245, 158, 11, 0.88);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.04em;
}

.hero-pill {
    padding: 9px 18px;
    margin-bottom: 22px;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.hero p {
    max-width: 650px;
    margin: 0 0 30px;
    color: var(--soft);
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.65;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.hero-actions,
.detail-pager,
.filter-controls,
.hero-meta,
.movie-meta,
.tag-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-button,
.secondary-button,
.ghost-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
    color: #111827;
    background: var(--accent);
}

.secondary-button,
.ghost-button {
    color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: rgba(15, 23, 42, 0.62);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.secondary-button:hover,
.ghost-button:hover {
    background: rgba(30, 41, 59, 0.95);
}

.hero-meta {
    margin-top: 22px;
    color: var(--muted);
    font-size: 14px;
}

.hero-meta span,
.movie-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-meta span::before,
.movie-meta span::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
}

.hero-controls {
    position: absolute;
    right: max(24px, calc((100vw - 1280px) / 2 + 24px));
    bottom: 44px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
}

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

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    opacity: 0.48;
}

.hero-dot.is-active {
    width: 26px;
    opacity: 1;
    background: var(--accent);
}

.hero-search {
    position: absolute;
    left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    right: max(24px, calc((100vw - 1280px) / 2 + 24px));
    bottom: 38px;
    z-index: 5;
    width: min(520px, calc(100% - 48px));
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(12px);
}

.hero-search input,
.filter-input input,
.filter-select select {
    width: 100%;
    border: 0;
    outline: none;
    color: #fff;
    background: transparent;
}

.hero-search input {
    min-height: 54px;
    padding: 0 18px;
}

.hero-search button {
    border: 0;
    padding: 0 22px;
    color: #111827;
    background: var(--accent);
    font-weight: 850;
}

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

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

.section-band {
    padding: 72px 0;
    background: rgba(15, 23, 42, 0.5);
}

.gradient-band {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(15, 23, 42, 0.92));
}

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

.section-head h2,
.filter-panel h2,
.content-panel h2,
.category-overview-body h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-head > a,
.text-link {
    color: var(--accent);
    font-size: 14px;
    font-weight: 850;
}

.eyebrow {
    margin-bottom: 10px;
    padding: 6px 12px;
    color: var(--accent);
    background: var(--accent-soft);
}

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

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

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

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

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

.movie-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(30, 41, 59, 0.78);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.42);
    box-shadow: var(--shadow);
}

.movie-poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f172a;
}

.movie-card:not(.movie-card-large) .movie-poster-wrap {
    aspect-ratio: 2 / 3;
}

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

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

.movie-category {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 6px 10px;
    font-size: 12px;
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #111827;
    background: var(--accent);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.32);
}

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

.movie-card h3,
.movie-horizontal-body h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 18px;
    line-height: 1.3;
}

.movie-card h3 a:hover,
.movie-horizontal-body h3 a:hover {
    color: var(--accent);
}

.movie-one-line,
.movie-horizontal-body p,
.category-overview-body p,
.content-panel p,
.page-hero p,
.site-footer p {
    color: var(--muted);
    line-height: 1.75;
}

.movie-one-line {
    min-height: 3.5em;
    margin: 0 0 14px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
}

.movie-meta {
    color: var(--muted);
    font-size: 12px;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.1);
    font-size: 12px;
}

.movie-card-large .movie-poster-wrap {
    aspect-ratio: 16 / 9;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    min-height: 150px;
}

.movie-card-horizontal:hover {
    transform: translateY(-3px);
}

.movie-horizontal-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: #0f172a;
}

.movie-horizontal-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.movie-horizontal-body .movie-category {
    position: static;
    margin-bottom: 10px;
}

.movie-horizontal-body p {
    margin: 0 0 12px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.horizontal-list,
.ranking-list {
    display: grid;
    gap: 16px;
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #0f172a;
    box-shadow: var(--shadow);
}

.category-tile::after,
.category-overview-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.9), transparent 62%);
}

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

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile span,
.category-tile strong {
    position: absolute;
    left: 18px;
    z-index: 2;
}

.category-tile span {
    bottom: 50px;
    font-size: 24px;
    font-weight: 850;
}

.category-tile strong {
    bottom: 20px;
    color: var(--accent);
}

.rail {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 18px;
    scrollbar-width: none;
}

.rail::-webkit-scrollbar {
    display: none;
}

.rail-item {
    width: 330px;
    flex: 0 0 auto;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 56px;
    background:
        linear-gradient(120deg, rgba(245, 158, 11, 0.12), transparent 36%),
        linear-gradient(180deg, #0f172a, #020617);
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    max-width: 880px;
    margin: 0 0 16px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -0.045em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    font-size: 18px;
}

.filter-panel,
.content-panel,
.category-overview-card {
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.74);
    box-shadow: 0 18px 64px rgba(0, 0, 0, 0.22);
}

.filter-panel {
    margin-bottom: 28px;
    padding: 22px;
}

.filter-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.filter-panel-head span {
    color: var(--accent);
    font-weight: 800;
}

.filter-controls {
    align-items: flex-end;
}

.filter-input,
.filter-select {
    flex: 1 1 220px;
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

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

.empty-state {
    margin: 18px 0 0;
    color: var(--muted);
}

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

.category-overview-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 44% 1fr;
}

.category-overview-cover {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    min-height: 270px;
    overflow: hidden;
}

.category-overview-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overview-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-overview-body h2 {
    margin-bottom: 12px;
}

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

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.28;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(6px) saturate(1.08);
    transform: scale(1.05);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, #020617 0%, rgba(2, 6, 23, 0.82) 55%, rgba(2, 6, 23, 0.32) 100%),
        linear-gradient(to right, rgba(2, 6, 23, 0.95), transparent);
}

.detail-inner {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 74px;
}

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

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

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

.detail-cover {
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    background: #0f172a;
}

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

.detail-info h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 5vw, 70px);
    line-height: 1;
    letter-spacing: -0.045em;
}

.detail-one-line {
    max-width: 820px;
    margin: 0 0 28px;
    color: var(--soft);
    font-size: 20px;
    line-height: 1.7;
}

.detail-meta-grid,
.info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.detail-meta-grid span,
.info-list span {
    min-height: 58px;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    color: var(--soft);
    background: rgba(15, 23, 42, 0.72);
}

.detail-meta-grid b,
.info-list b {
    display: block;
    margin-bottom: 4px;
    color: var(--accent);
    font-size: 12px;
}

.detail-tags,
.genre-row {
    margin-top: 18px;
}

.detail-section {
    padding-top: 36px;
    padding-bottom: 36px;
}

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

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

.player-poster {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    color: #fff;
    background: #000;
}

.player-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
}

.player-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #111827;
    background: var(--accent);
    box-shadow: 0 0 44px rgba(245, 158, 11, 0.52);
    font-size: 30px;
    transform: translate(-50%, -50%);
}

.player-shell.is-playing .player-poster {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

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

.content-panel {
    padding: 28px;
}

.content-panel p {
    margin: 16px 0 0;
    font-size: 16px;
}

.info-list a {
    color: var(--accent);
}

.detail-pager a {
    padding: 10px 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 12px;
    color: var(--soft);
    background: rgba(15, 23, 42, 0.72);
}

.detail-pager a:hover {
    color: var(--accent);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.86);
}

.site-footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    margin-bottom: 14px;
    font-size: 20px;
    font-weight: 850;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: var(--muted);
    font-size: 14px;
}

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

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

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

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: 620px;
    }

    .hero-content {
        top: 44%;
    }

    .hero-controls {
        right: 24px;
        bottom: 104px;
    }

    .grid-3,
    .grid-4,
    .grid-5,
    .grid-6,
    .category-grid,
    .category-overview-grid,
    .two-column-detail,
    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-grid,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .detail-cover {
        max-width: 320px;
    }
}

@media (max-width: 640px) {
    .site-header-inner {
        width: calc(100% - 24px);
        height: 66px;
    }

    .brand-text strong {
        font-size: 17px;
    }

    .brand-text small {
        display: none;
    }

    .hero {
        height: 82vh;
        min-height: 620px;
    }

    .hero-content {
        top: 42%;
        left: 16px;
        width: calc(100% - 32px);
    }

    .hero h1 {
        font-size: 40px;
    }

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

    .hero-actions a {
        width: 100%;
    }

    .hero-controls {
        left: 16px;
        right: auto;
        bottom: 96px;
    }

    .hero-search {
        left: 16px;
        right: 16px;
        bottom: 24px;
        width: calc(100% - 32px);
    }

    .section-block,
    .section-inner,
    .detail-inner,
    .site-footer-inner {
        width: calc(100% - 24px);
    }

    .section-block,
    .section-band {
        padding: 46px 0;
    }

    .section-head,
    .filter-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .grid-3,
    .grid-4,
    .grid-5,
    .grid-6,
    .category-grid,
    .category-overview-grid,
    .two-column-detail,
    .footer-main,
    .detail-meta-grid,
    .info-list {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal {
        grid-template-columns: 120px minmax(0, 1fr);
    }

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

    .movie-horizontal-body p,
    .movie-horizontal-body .movie-meta {
        display: none;
    }

    .category-overview-cover {
        min-height: 220px;
    }

    .detail-info h1 {
        font-size: 36px;
    }

    .detail-one-line {
        font-size: 17px;
    }
}
