
:root {
  --bg: #fff7f2;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-solid: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #ef4444;
  --primary-2: #f97316;
  --accent: #ec4899;
  --border: rgba(148, 163, 184, 0.16);
  --shadow: 0 18px 45px rgba(31, 41, 55, 0.10);
  --shadow-strong: 0 26px 60px rgba(31, 41, 55, 0.18);
  --radius: 26px;
  --radius-sm: 18px;
  --container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.10), transparent 24%),
    linear-gradient(180deg, #fff8f4 0%, #fffdfb 50%, #fff7f2 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.page-main {
  min-height: 60vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2), var(--accent));
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.28);
}

.brand-text {
  font-size: 1.18rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #374151;
  transition: 0.2s ease;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(249, 115, 22, 0.12);
  color: #dc2626;
}

.nav-link-soft {
  color: #6b7280;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(249,115,22,0.1), rgba(236,72,153,0.1));
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.12);
}

.menu-line {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #ef4444;
  border-radius: 999px;
}

.mobile-panel {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.98);
}

.mobile-panel-inner {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 20px;
  display: grid;
  gap: 10px;
}

.mobile-link {
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  font-weight: 600;
}

.mobile-link-soft {
  background: rgba(249, 115, 22, 0.06);
}

.mobile-divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.18);
  margin: 6px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 28px;
  min-height: 600px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  width: 340px;
  height: 340px;
  right: -90px;
  top: 80px;
  background: radial-gradient(circle, rgba(255,255,255,0.55), rgba(255,255,255,0));
  filter: blur(4px);
}

.hero::after {
  width: 220px;
  height: 220px;
  left: -70px;
  bottom: 35px;
  background: radial-gradient(circle, rgba(249,115,22,0.20), rgba(249,115,22,0));
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: center;
}

.hero-copy {
  color: #7c2d12;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #c2410c;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.hero-title {
  margin: 18px 0 14px;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #7c2d12;
}

.hero-subtitle {
  margin: 0 0 10px;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  color: #9a3412;
  font-weight: 700;
}

.hero-text {
  margin: 0;
  max-width: 42rem;
  color: #7c2d12;
  opacity: 0.88;
  font-size: 1.02rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
  border: 0;
  cursor: pointer;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2), var(--accent));
  box-shadow: 0 18px 35px rgba(249, 115, 22, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 45px rgba(249, 115, 22, 0.32);
}

.btn-ghost {
  background: rgba(255,255,255,0.82);
  color: #9a3412;
  box-shadow: var(--shadow);
}

.btn-ghost:hover {
  transform: translateY(-1px);
  background: white;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.stat-card {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,0.78);
  box-shadow: var(--shadow);
}

.stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ef4444;
  line-height: 1.1;
}

.stat-label {
  color: #9a3412;
  margin-top: 4px;
  font-weight: 600;
  font-size: 0.92rem;
}

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

.spotlight-card {
  position: relative;
  display: block;
  padding: 18px 18px 20px;
  border-radius: 28px;
  color: white;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  background: linear-gradient(135deg, rgba(239,68,68,0.92), rgba(249,115,22,0.90), rgba(236,72,153,0.90));
  isolation: isolate;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.28), transparent 28%),
    radial-gradient(circle at bottom left, rgba(255,255,255,0.18), transparent 25%);
  z-index: -1;
}

.spotlight-card h3 {
  margin: 8px 0 8px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.spotlight-card p {
  margin: 0;
  opacity: 0.94;
  font-size: 0.95rem;
}

.spotlight-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  font-size: 0.82rem;
  font-weight: 700;
}

.spotlight-tags {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-size: 0.82rem;
  opacity: 0.95;
}

.section {
  padding: 28px 0 20px;
}

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

.section-title {
  margin: 0;
  font-size: clamp(1.55rem, 2.8vw, 2.4rem);
  letter-spacing: -0.02em;
}

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

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
  font-weight: 700;
  color: #c2410c;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-shell {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  margin: 0 0 16px;
  background: rgba(255,255,255,0.82);
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.search-shell span {
  color: #9a3412;
  font-weight: 700;
  white-space: nowrap;
}

.search-shell input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--text);
}

.filter-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.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;
}

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255,255,255,0.94);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.9);
  transition: 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.65), rgba(255,255,255,0.9));
}

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

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

.poster-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0);
  color: white;
  font-size: 2rem;
  font-weight: 800;
  transition: 0.2s ease;
}

.movie-card:hover .poster-overlay {
  background: rgba(0,0,0,0.28);
}

.poster-play {
  opacity: 0;
  transform: scale(0.8);
  transition: 0.2s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: scale(1);
}

.poster-meta {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}

.poster-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(12px);
}

.card-rank {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.25);
}

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

.movie-body h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
  line-height: 1.28;
}

.movie-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  min-height: 2.8em;
}

.movie-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.pill-orange {
  background: rgba(249,115,22,0.10);
  color: #c2410c;
}

.pill-rose {
  background: rgba(236,72,153,0.10);
  color: #be185d;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.9);
  transition: 0.2s ease;
}

.rank-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.rank-card .poster-wrap {
  border-radius: 18px;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

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

.category-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.90);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.9);
}

.category-card h3 {
  margin: 10px 0 6px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
}

.category-count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(239,68,68,0.10);
  color: #dc2626;
  font-weight: 800;
  font-size: 0.82rem;
}

.hero-section {
  border-radius: 34px;
  padding: 36px;
  background: linear-gradient(135deg, rgba(255,255,255,0.78), rgba(255,255,255,0.92));
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(255,255,255,0.9);
}

.page-banner {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 30px;
  color: white;
  background: linear-gradient(135deg, #ef4444, #f97316, #ec4899);
  box-shadow: var(--shadow-strong);
}

.page-banner p {
  margin: 10px 0 0;
  opacity: 0.95;
}

.page-banner .banner-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.banner-stat {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(12px);
}

.banner-stat strong {
  display: block;
  font-size: 1.25rem;
}

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

.player-shell,
.detail-panel,
.detail-box {
  border-radius: 28px;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(255,255,255,0.9);
}

.player-shell {
  overflow: hidden;
}

.player-stage {
  position: relative;
  background: #0f172a;
}

.player-stage video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: block;
}

.player-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.72);
  color: white;
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

.player-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  pointer-events: auto;
}

.player-btn {
  border: 0;
  cursor: pointer;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: white;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(14px);
  transition: 0.2s ease;
}

.player-btn:hover {
  background: rgba(255,255,255,0.24);
}

.player-btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.player-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px 16px;
  background: rgba(15,23,42,0.92);
  color: white;
}

.player-time {
  font-size: 0.88rem;
  white-space: nowrap;
}

.player-seek {
  width: 100%;
  accent-color: #f97316;
}

.detail-panel {
  padding: 22px;
}

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

.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.10);
  color: #c2410c;
  font-weight: 800;
}

.detail-hero-line {
  color: var(--muted);
  font-size: 1.02rem;
}

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

.meta-item {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(249,115,22,0.06);
}

.meta-item span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

.meta-item strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(236,72,153,0.10);
  color: #be185d;
  font-size: 0.85rem;
  font-weight: 700;
}

.detail-box {
  padding: 22px;
  margin-top: 18px;
}

.detail-box h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.detail-box p {
  margin: 0;
  color: var(--muted);
}

.detail-grid {
  display: grid;
  gap: 18px;
}

.breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #7c2d12;
  font-weight: 700;
}

.breadcrumb a {
  color: #c2410c;
}

.empty-state {
  display: grid;
  place-items: center;
  padding: 34px 18px;
  border-radius: 24px;
  background: rgba(255,255,255,0.86);
  box-shadow: var(--shadow);
  color: var(--muted);
  text-align: center;
}

.site-footer {
  margin-top: 34px;
  color: white;
  background: linear-gradient(135deg, #7f1d1d, #c2410c, #9d174d);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 22px;
  padding: 34px 0 24px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
}

.footer-desc {
  color: rgba(255,255,255,0.82);
  margin: 12px 0 0;
}

.footer-links {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.85);
}

.footer-links a:hover {
  color: white;
}

.footer-grid h4 {
  margin: 0;
}

.footer-bottom {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.86);
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2), var(--accent));
  color: white;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: var(--shadow-strong);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 70;
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.pill-soft {
  background: rgba(255,255,255,0.18);
  color: white;
}

.hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .grid-4,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-grid,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: unset;
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: inline-block;
  }
  .grid-4,
  .grid-3,
  .grid-2,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-stats,
  .detail-meta,
  .page-banner .banner-stats {
    grid-template-columns: 1fr 1fr;
  }
  .rank-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 22px));
  }
  .hero {
    padding-top: 22px;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-stats,
  .detail-meta,
  .page-banner .banner-stats,
  .grid-4,
  .grid-3,
  .grid-2,
  .category-grid {
    grid-template-columns: 1fr;
  }
  .search-shell {
    flex-direction: column;
    align-items: stretch;
  }
  .page-banner {
    padding: 22px;
  }
  .page-banner .banner-stats {
    gap: 10px;
  }
  .player-overlay {
    position: static;
    padding: 12px 14px 14px;
    background: linear-gradient(180deg, rgba(15,23,42,0.02), rgba(15,23,42,0.86));
  }
  .player-bar {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}


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

@media (max-width: 1100px) {
  .hero-panel.four-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero-panel.four-up {
    grid-template-columns: 1fr;
  }
}
