
:root {
  --bg: #fff8f4;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(251, 146, 60, 0.16);
  --shadow: 0 18px 50px rgba(249, 115, 22, 0.12);
  --shadow-strong: 0 26px 60px rgba(236, 72, 153, 0.16);
  --brand-a: #f97316;
  --brand-b: #ec4899;
  --brand-c: #9333ea;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, PingFang SC, Hiragino Sans GB, Microsoft YaHei, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(253, 186, 116, 0.23), transparent 35%),
    radial-gradient(circle at top right, rgba(244, 114, 182, 0.18), transparent 28%),
    linear-gradient(180deg, #fffdfc 0%, var(--bg) 40%, #fff 100%);
  min-height: 100vh;
}

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

img {
  max-width: 100%;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.page-shell {
  padding-top: 92px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(249, 115, 22, 0.10);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.25);
}

.brand-text {
  font-size: 1.25rem;
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #374151;
}

.main-nav a {
  font-size: 0.96rem;
  font-weight: 600;
  padding: 10px 0;
}

.main-nav a:hover {
  color: var(--brand-a);
}

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  color: #374151;
  cursor: pointer;
}

.hero {
  padding: 28px 0 18px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 34px;
  background:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,0.2), transparent 24%),
    radial-gradient(circle at 80% 10%, rgba(255,255,255,0.12), transparent 20%),
    linear-gradient(135deg, #f97316 0%, #ec4899 52%, #9333ea 100%);
  color: #fff;
  box-shadow: var(--shadow-strong);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.2rem, 4vw, 4.8rem);
  line-height: 1.05;
}

.hero p {
  margin: 0;
  max-width: 56rem;
  font-size: 1.08rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.92);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  transition: transform .24s ease, box-shadow .24s ease, background .24s ease, color .24s ease;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #fff;
  color: var(--brand-a);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.btn-secondary {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-color: rgba(255,255,255,0.28);
}

.hero-rail {
  display: grid;
  gap: 14px;
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.stat-card {
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 16px 14px;
}

.stat-card strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.hero-feature {
  padding: 20px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(12px);
  border-radius: 24px;
}

.hero-feature h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.hero-feature p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.88);
}

.section {
  padding: 30px 0 18px;
}

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

.section-title {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2.5rem);
}

.section-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-link {
  color: var(--brand-a);
  font-weight: 700;
}

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

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(249,115,22,0.12);
  box-shadow: var(--shadow);
  font-weight: 700;
  color: #4b5563;
}

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

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

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

.movie-card {
  min-width: 0;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
  border: 1px solid rgba(249,115,22,0.10);
  transition: transform .24s ease, box-shadow .24s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(249,115,22,0.18);
}

.movie-link {
  display: block;
}

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

.movie-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.movie-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 8px;
}

.movie-summary {
  margin: 0;
  color: #4b5563;
  line-height: 1.7;
  font-size: 0.93rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 0.82rem;
  font-weight: 700;
}

.poster {
  position: relative;
  min-height: 280px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}

.poster-grad-0 { background: linear-gradient(135deg, #fb923c 0%, #ef4444 60%, #b91c1c 100%); }
.poster-grad-1 { background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 60%, #5b21b6 100%); }
.poster-grad-2 { background: linear-gradient(135deg, #f59e0b 0%, #f97316 55%, #ea580c 100%); }
.poster-grad-3 { background: linear-gradient(135deg, #38bdf8 0%, #6366f1 58%, #7c3aed 100%); }
.poster-grad-4 { background: linear-gradient(135deg, #10b981 0%, #14b8a6 50%, #0f766e 100%); }
.poster-grad-5 { background: linear-gradient(135deg, #f472b6 0%, #fb7185 54%, #c026d3 100%); }

.poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.2), transparent 30%),
    radial-gradient(circle at bottom right, rgba(255,255,255,0.12), transparent 28%);
  pointer-events: none;
}

.poster-topline,
.poster-content,
.poster-footer {
  position: relative;
  z-index: 1;
}

.poster-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.poster-badge,
.rank-badge,
.poster-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.20);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  font-weight: 700;
}

.poster-content {
  margin-top: 12px;
}

.poster-kicker {
  margin-bottom: 12px;
}

.poster-title {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.35;
}

.poster-summary {
  margin: 0;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  font-size: 0.92rem;
}

.poster-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.9);
}

.page-banner {
  border-radius: 34px;
  padding: 30px;
  color: #fff;
  background: linear-gradient(135deg, #f97316 0%, #ec4899 52%, #9333ea 100%);
  box-shadow: var(--shadow-strong);
}

.page-banner h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.page-banner p {
  margin: 0;
  max-width: 60rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.92);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  margin: 20px 0;
}

.search-box,
.select-box {
  width: 100%;
  border: 1px solid rgba(251,146,60,0.22);
  background: rgba(255,255,255,0.94);
  box-shadow: var(--shadow);
  color: var(--text);
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 0.98rem;
  outline: none;
}

.search-box:focus,
.select-box:focus {
  border-color: rgba(249,115,22,0.38);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-chip {
  border: 1px solid rgba(249,115,22,0.15);
  background: rgba(255,255,255,0.9);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  color: #4b5563;
  cursor: pointer;
  transition: .22s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  border-color: transparent;
}

.compact-list {
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255,255,255,0.88);
  box-shadow: var(--shadow);
  border: 1px solid rgba(249,115,22,0.10);
}

.compact-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1.6fr) 120px 180px 90px;
  gap: 12px;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(251,146,60,0.10);
}

.compact-row:hover {
  background: rgba(255,247,237,0.78);
}

.compact-id {
  width: 54px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff7ed, #ffe4e6);
  color: #c2410c;
  font-weight: 800;
}

.compact-title {
  font-weight: 800;
}

.compact-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}

.detail-card,
.panel {
  border-radius: 30px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(249,115,22,0.10);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.detail-card {
  padding: 22px;
}

.detail-title {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.12;
}

.detail-intro {
  margin: 0 0 18px;
  color: #4b5563;
  line-height: 1.85;
}

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

.meta-pill {
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fff7ed);
  border: 1px solid rgba(249,115,22,0.10);
}

.meta-pill span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.meta-pill strong {
  font-size: 0.98rem;
}

.player-shell {
  padding: 22px;
}

.player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.player-title {
  margin: 0;
  font-size: 1.28rem;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.source-btn {
  border: 1px solid rgba(249,115,22,0.18);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}

.source-btn.is-active,
.source-btn:hover {
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  color: #fff;
  border-color: transparent;
}

.video-shell {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #1f2937);
  box-shadow: 0 24px 50px rgba(17,24,39,0.24);
}

video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.video-overlay {
  position: absolute;
  inset: auto 16px 16px 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.video-hint {
  pointer-events: auto;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(0,0,0,0.42);
  color: #fff;
  font-size: 0.92rem;
  backdrop-filter: blur(10px);
}

.section-card {
  padding: 22px;
  border-radius: 30px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(249,115,22,0.10);
  box-shadow: var(--shadow);
  margin-top: 22px;
}

.section-card h2,
.section-card h3 {
  margin-top: 0;
}

.prose {
  color: #374151;
  line-height: 1.92;
}

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

.related-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #fff7ed);
  border: 1px solid rgba(249,115,22,0.10);
}

.related-item small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}

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

.about-stat {
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #fff7ed);
  border: 1px solid rgba(249,115,22,0.10);
  box-shadow: var(--shadow);
}

.about-stat strong {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 6px;
  color: var(--brand-a);
}

.site-footer {
  padding: 34px 0 22px;
  margin-top: 38px;
  background: linear-gradient(180deg, rgba(255,255,255,0.52), rgba(255,247,237,0.96));
  border-top: 1px solid rgba(249,115,22,0.10);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 20px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-note {
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 10px;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 10px;
  color: #4b5563;
}

.site-footer a:hover {
  color: var(--brand-a);
}

.footer-bottom {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(249,115,22,0.10);
  color: var(--muted);
  text-align: center;
}

.empty-state {
  padding: 24px;
  border-radius: 22px;
  border: 1px dashed rgba(249,115,22,0.24);
  text-align: center;
  color: var(--muted);
  background: rgba(255,255,255,0.72);
}

.backtop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  color: #fff;
  box-shadow: var(--shadow-strong);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3,
  .related-grid,
  .footer-grid,
  .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid,
  .detail-layout,
  .toolbar { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .page-shell { padding-top: 84px; }
  .container { width: min(var(--container), calc(100% - 22px)); }
  .header-inner { min-height: 68px; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 18px 18px;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid rgba(249,115,22,0.10);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  }
  .main-nav.is-open { display: flex; }
  .mobile-toggle { display: inline-flex; }
  .hero-panel,
  .page-banner { padding: 22px; border-radius: 26px; }
  .hero-stat-grid { grid-template-columns: 1fr; }
  .grid-6,
  .grid-4,
  .grid-3,
  .related-grid,
  .footer-grid,
  .about-grid,
  .detail-meta-grid { grid-template-columns: 1fr; }
  .compact-row {
    grid-template-columns: 58px 1fr;
    grid-auto-rows: auto;
  }
  .compact-row .compact-meta:nth-child(n+3) { display: none; }
  .related-item { flex-direction: column; }
  .about-grid { margin-top: 12px; }
}
