:root {
    color-scheme: light;
    --primary-950: #0f172a;
    --primary-900: #172554;
    --primary-800: #1e3a8a;
    --primary-700: #1d4ed8;
    --primary-600: #2563eb;
    --primary-500: #3b82f6;
    --primary-100: #dbeafe;
    --accent-600: #ea580c;
    --accent-500: #f97316;
    --accent-100: #ffedd5;
    --neutral-950: #0a0a0a;
    --neutral-900: #171717;
    --neutral-800: #262626;
    --neutral-700: #404040;
    --neutral-600: #525252;
    --neutral-500: #737373;
    --neutral-300: #d4d4d4;
    --neutral-200: #e5e5e5;
    --neutral-100: #f5f5f5;
    --neutral-50: #fafafa;
    --white: #ffffff;
    --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--neutral-50);
    color: var(--neutral-900);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid rgba(229, 229, 229, 0.88);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--primary-900);
}

.brand-mark {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.26);
}

.brand-mark::after {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 12px;
    height: 12px;
    content: "";
    border-radius: 50%;
    background: var(--accent-500);
    border: 3px solid var(--white);
}

.brand-text {
    font-size: clamp(18px, 2vw, 24px);
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
    color: var(--neutral-700);
    font-weight: 650;
}

.nav-links a,
.mobile-panel a,
.footer-links a {
    transition: color 0.2s ease;
}

.nav-links a:hover,
.mobile-panel a:hover,
.footer-links a:hover {
    color: var(--primary-600);
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-controls input,
.filter-controls select {
    border: 1px solid var(--neutral-300);
    border-radius: 12px;
    background: var(--white);
    color: var(--neutral-900);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 250px;
    padding: 10px 14px;
}

.header-search button,
.mobile-search button {
    border: 0;
    border-radius: 12px;
    padding: 10px 16px;
    background: var(--primary-600);
    color: var(--white);
    cursor: pointer;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-controls input:focus,
.filter-controls select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    padding: 10px;
    background: var(--neutral-100);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    border-radius: 99px;
    background: var(--neutral-700);
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    border: 1px solid var(--neutral-200);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.mobile-panel.is-open {
    display: grid;
    gap: 14px;
}

.mobile-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.mobile-search input {
    width: 100%;
    padding: 10px 14px;
}

.hero {
    position: relative;
    height: clamp(520px, 58vw, 680px);
    overflow: hidden;
    background: var(--primary-950);
}

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

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

.hero-slide img,
.detail-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.88) 0%, rgba(15, 23, 42, 0.66) 45%, rgba(15, 23, 42, 0.08) 100%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(1180px, calc(100% - 32px));
    transform: translate(-50%, -50%);
    color: var(--white);
}

.hero-content h1,
.sub-hero h1,
.detail-copy h1 {
    margin: 0 0 18px;
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.hero-content h1 {
    max-width: 720px;
    font-size: clamp(42px, 7vw, 74px);
}

.hero-content p {
    max-width: 640px;
    margin: 0 0 24px;
    font-size: clamp(17px, 2vw, 22px);
    color: rgba(255, 255, 255, 0.84);
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    border-radius: 999px;
    padding: 6px 12px;
    background: var(--accent-100);
    color: var(--accent-600);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-content .eyebrow,
.detail-copy .eyebrow,
.sub-hero .eyebrow {
    background: rgba(249, 115, 22, 0.92);
    color: var(--white);
}

.hero-meta,
.detail-meta,
.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-meta {
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.84);
}

.hero-meta span,
.detail-meta span,
.movie-meta span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    padding: 5px 10px;
    font-size: 13px;
}

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

.primary-button {
    background: var(--primary-600);
    color: var(--white);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.30);
}

.primary-button:hover,
.ghost-button:hover,
.movie-card:hover,
.category-tile:hover,
.category-overview-card:hover,
.compact-card:hover,
.ranking-item:hover {
    transform: translateY(-2px);
}

.primary-button:hover {
    background: var(--primary-700);
}

.ghost-button {
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: var(--white);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.42);
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(37, 99, 235, 0.82);
}

.hero-prev {
    left: max(16px, calc((100vw - 1180px) / 2 - 70px));
}

.hero-next {
    right: max(16px, calc((100vw - 1180px) / 2 - 70px));
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dots button.is-active {
    width: 32px;
    border-radius: 999px;
    background: var(--white);
}

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

.intro-strip,
.soft-panel {
    border-radius: var(--radius-lg);
    padding: 36px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.intro-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: -58px;
    position: relative;
    z-index: 5;
}

.intro-strip h2,
.section-title-row h2,
.content-card h2,
.filter-heading {
    margin: 0;
    color: var(--neutral-900);
    font-weight: 850;
    letter-spacing: -0.03em;
}

.intro-strip p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--neutral-600);
}

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

.section-title-row h2 {
    font-size: clamp(28px, 4vw, 38px);
}

.section-title-row a {
    color: var(--primary-600);
    font-weight: 800;
}

.section-title-row.compact {
    margin-bottom: 18px;
}

.category-grid,
.category-overview-grid {
    display: grid;
    gap: 18px;
}

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

.category-tile {
    position: relative;
    min-height: 170px;
    overflow: hidden;
    border-radius: var(--radius-md);
    color: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.86));
}

.category-tile span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    z-index: 1;
}

.category-tile strong,
.category-overview-card h2,
.compact-card strong,
.ranking-info strong,
.movie-title {
    display: block;
    font-weight: 850;
}

.category-tile em,
.compact-card em,
.ranking-info em {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-style: normal;
}

.category-tile:hover img,
.movie-card:hover img,
.compact-card:hover img {
    transform: scale(1.06);
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 229, 229, 0.92);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: var(--shadow-card);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--primary-950);
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 40%, rgba(15, 23, 42, 0.52));
}

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    background: var(--primary-600);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
}

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

.movie-title {
    margin-bottom: 8px;
    color: var(--neutral-900);
    font-size: 18px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-title:hover {
    color: var(--primary-600);
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--neutral-600);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    margin-bottom: 12px;
}

.movie-meta span {
    background: var(--neutral-100);
    color: var(--neutral-600);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span {
    border-radius: 999px;
    padding: 4px 9px;
    background: var(--primary-100);
    color: var(--primary-700);
    font-size: 12px;
    font-weight: 700;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.8fr);
    gap: 32px;
}

.list-stack,
.side-list {
    display: grid;
    gap: 14px;
}

.compact-card {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    padding: 12px;
    background: var(--white);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card img {
    width: 140px;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.compact-card em,
.ranking-info em {
    margin-top: 4px;
    color: var(--neutral-500);
}

.ranking-panel,
.content-card,
.filter-bar {
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.ranking-panel {
    align-self: start;
    padding: 24px;
}

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

.ranking-list.full {
    gap: 14px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 44px 86px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    padding: 12px;
    background: var(--white);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ranking-list.small .ranking-item {
    grid-template-columns: 34px 68px minmax(0, 1fr) auto;
    padding: 10px;
}

.ranking-item:hover {
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: var(--shadow-card);
}

.rank-number {
    color: var(--primary-600);
    font-weight: 900;
    font-size: 20px;
}

.ranking-item img {
    width: 86px;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    object-fit: cover;
}

.ranking-list.small .ranking-item img {
    width: 68px;
}

.heat-score {
    border-radius: 999px;
    padding: 5px 10px;
    background: var(--accent-100);
    color: var(--accent-600);
    font-weight: 900;
}

.sub-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 20% 10%, rgba(249, 115, 22, 0.40), transparent 32%), linear-gradient(135deg, var(--primary-950), var(--primary-800));
    color: var(--white);
}

.sub-hero > div {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 80px 0;
}

.sub-hero h1 {
    max-width: 760px;
    font-size: clamp(38px, 6vw, 62px);
}

.sub-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.80);
    font-size: 18px;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    padding: 16px;
    background: var(--white);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cover-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.cover-collage img {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    object-fit: cover;
}

.category-overview-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.category-overview-card p {
    margin: 0 0 14px;
    color: var(--neutral-600);
}

.category-overview-card span {
    color: var(--primary-600);
    font-weight: 800;
}

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

.filter-heading {
    margin-bottom: 16px;
    font-size: 22px;
}

.filter-controls {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, minmax(140px, 1fr));
    gap: 12px;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    padding: 12px 14px;
}

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

.detail-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: var(--primary-950);
    color: var(--white);
}

.detail-bg,
.detail-gradient {
    position: absolute;
    inset: 0;
}

.detail-gradient {
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.90) 0%, rgba(15, 23, 42, 0.72) 52%, rgba(15, 23, 42, 0.22) 100%);
}

.detail-content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 52px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 36px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

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

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

.detail-poster {
    width: 100%;
    aspect-ratio: 3 / 4;
    border: 6px solid rgba(255, 255, 255, 0.16);
    border-radius: 26px;
    object-fit: cover;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
}

.detail-copy h1 {
    max-width: 760px;
    font-size: clamp(42px, 6vw, 72px);
}

.detail-one-line {
    max-width: 760px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 20px;
}

.detail-meta {
    margin-bottom: 18px;
}

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

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

.detail-primary {
    display: grid;
    gap: 24px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #020617;
    box-shadow: var(--shadow-soft);
}

.movie-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.20), rgba(2, 6, 23, 0.46));
    color: var(--white);
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-shell.is-active .player-overlay {
    opacity: 0;
    visibility: hidden;
}

.player-start {
    border: 0;
    border-radius: 999px;
    padding: 16px 30px;
    background: var(--primary-600);
    color: var(--white);
    font-weight: 900;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.36);
}

.player-start:hover {
    background: var(--primary-700);
}

.player-status {
    min-height: 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
}

.content-card {
    padding: 24px;
}

.content-card h2 {
    margin-bottom: 14px;
    font-size: 24px;
}

.content-card p {
    margin: 0;
    color: var(--neutral-700);
}

.detail-sidebar {
    position: sticky;
    top: 96px;
}

.side-list .compact-card {
    grid-template-columns: 110px minmax(0, 1fr);
}

.side-list .compact-card img {
    width: 110px;
}

.site-footer {
    margin-top: 40px;
    background: var(--primary-900);
    color: rgba(255, 255, 255, 0.82);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 28px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
}

.footer-brand {
    margin-bottom: 12px;
    color: var(--white);
    font-size: 24px;
}

.footer-inner p {
    margin: 0;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
}

.copyright {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 18px;
    font-size: 14px;
}

[hidden] {
    display: none !important;
}

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

    .mobile-toggle {
        display: inline-grid;
    }

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

    .three-col,
    .category-overview-grid,
    .detail-main,
    .split-section {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .hero {
        height: 620px;
    }

    .hero-content {
        top: 54%;
    }

    .hero-arrow {
        display: none;
    }

    .intro-strip,
    .section-title-row,
    .footer-inner {
        display: grid;
        grid-template-columns: 1fr;
    }

    .category-grid,
    .four-col,
    .three-col,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .compact-card,
    .side-list .compact-card,
    .ranking-item,
    .ranking-list.small .ranking-item {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .compact-card img,
    .side-list .compact-card img {
        width: 92px;
    }

    .ranking-item img,
    .rank-number,
    .heat-score {
        display: none;
    }

    .footer-links {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}
