:root {
  --bg: #fff7ed;
  --bg-soft: #fffbf5;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --border: rgba(251, 146, 60, 0.16);
  --primary: #f97316;
  --primary-2: #f59e0b;
  --primary-dark: #ea580c;
  --shadow: 0 20px 40px rgba(17, 24, 39, 0.08);
  --shadow-strong: 0 30px 60px rgba(17, 24, 39, 0.14);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 30%),
    linear-gradient(180deg, #fffaf0 0%, #fff7ed 18%, #fffdf8 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(90deg, rgba(234, 88, 12, 0.95), rgba(249, 115, 22, 0.95));
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 30px rgba(234, 88, 12, 0.18);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), rgba(255,255,255,0.18) 28%, transparent 40%),
    linear-gradient(145deg, rgba(255,255,255,0.32), rgba(255,255,255,0.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
  display: grid;
  place-items: center;
  font-size: 22px;
}

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

.brand-title strong {
  font-size: 1.1rem;
}

.brand-title span {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.85;
}

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

.nav a {
  color: rgba(255,255,255,0.96);
  font-weight: 600;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav a:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  background: rgba(255,255,255,0.14);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.mobile-nav {
  display: none;
  padding: 14px 0 20px;
  border-top: 1px solid rgba(255,255,255,0.14);
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  color: #fff;
  font-weight: 600;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12), transparent 18%),
    linear-gradient(180deg, #111827 0%, #1f2937 55%, #111827 100%);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(249,115,22,0.28), transparent 42%),
    linear-gradient(315deg, rgba(245,158,11,0.18), transparent 40%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 620px;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
}

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

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

.hero-slide .bg {
  position: absolute;
  inset: 0;
}

.hero-slide .bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.03);
}

.hero-slide .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17,24,39,0.18) 0%, rgba(17,24,39,0.48) 36%, rgba(17,24,39,0.88) 100%),
    linear-gradient(90deg, rgba(17,24,39,0.84) 0%, rgba(17,24,39,0.28) 52%, rgba(17,24,39,0.72) 100%);
}

.hero-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 48px 0 58px;
}

.hero-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(255,255,255,0.14);
  transform: translateY(8px);
}

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

.hero-poster .badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(17,24,39,0.66);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-copy {
  padding-bottom: 16px;
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 12ch;
  text-wrap: balance;
}

.hero-copy p {
  margin: 18px 0 0;
  max-width: 58ch;
  font-size: 1.02rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.88);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  box-shadow: 0 16px 28px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 34px rgba(249, 115, 22, 0.38);
}

.btn-ghost {
  color: #fff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
}

.btn-ghost:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.18);
}

.hero-nav {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-nav button {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(17,24,39,0.45);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-nav button:hover {
  background: rgba(17,24,39,0.7);
  transform: translateY(-50%) scale(1.03);
}

.hero-nav .prev { left: 18px; }
.hero-nav .next { right: 18px; }

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: linear-gradient(135deg, #facc15, #f97316);
}

.section {
  padding: 34px 0;
}

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

.section-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-title h2,
.section-title h3 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.2;
}

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

.section-link {
  color: var(--primary-dark);
  font-weight: 700;
  white-space: nowrap;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(249,115,22,0.16);
  border-radius: 16px;
  background: #fff;
  padding: 0 16px;
  color: var(--ink);
  outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: rgba(249,115,22,0.45);
  box-shadow: 0 0 0 4px rgba(249,115,22,0.12);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(249,115,22,0.18);
  color: var(--muted);
  font-weight: 600;
}

.pill strong {
  color: var(--ink);
}

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

.card {
  display: block;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface-strong);
  border: 1px solid rgba(249,115,22,0.12);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #f3f4f6;
}

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

.card:hover .card-media img {
  transform: scale(1.08);
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(17,24,39,0.7);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

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

.card-body h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.1em;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: #6b7280;
  font-size: 0.78rem;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(249,115,22,0.08);
  color: #9a3412;
  font-weight: 700;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid rgba(249,115,22,0.12);
  box-shadow: var(--shadow);
}

.rank-index {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
}

.rank-main h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

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

.rank-side {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--primary-dark);
  font-weight: 700;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 30px 0 22px;
}

.detail-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 26px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(17,24,39,0.94), rgba(17,24,39,0.87)),
    radial-gradient(circle at top left, rgba(249,115,22,0.22), transparent 38%);
  color: #fff;
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(255,255,255,0.08);
}

.detail-poster {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 36px rgba(0,0,0,0.32);
}

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

.detail-poster .play-overlay {
  position: absolute;
  inset: auto 20px 20px 20px;
}

.play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(249,115,22,0.96), rgba(245,158,11,0.96));
  box-shadow: 0 16px 28px rgba(249,115,22,0.32);
  cursor: pointer;
}

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

.detail-sub {
  margin: 12px 0 0;
  color: rgba(255,255,255,0.84);
  line-height: 1.9;
}

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

.detail-meta .chip {
  background: rgba(255,255,255,0.11);
}

.detail-info {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

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

.info-box {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}

.info-box span {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.info-box strong {
  font-size: 1rem;
}

.player-card,
.content-card {
  padding: 24px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid rgba(249,115,22,0.12);
  box-shadow: var(--shadow);
}

.player-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #111827;
}

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

.player-hint {
  padding: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.content-card h2,
.content-card h3 {
  margin: 0 0 14px;
  font-size: 1.4rem;
}

.content-card p {
  margin: 0;
  color: #374151;
  line-height: 1.95;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud a,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(249,115,22,0.08);
  color: #9a3412;
  border: 1px solid rgba(249,115,22,0.15);
  font-weight: 700;
}

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

.related-grid .card {
  height: 100%;
}

.footer {
  margin-top: 34px;
  padding: 34px 0 44px;
  background: #111827;
  color: rgba(255,255,255,0.82);
}

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

.footer h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1.04rem;
}

.footer p,
.footer a {
  color: rgba(255,255,255,0.78);
  line-height: 1.85;
}

.footer a:hover {
  color: #fff;
}

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

.copyline {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.92rem;
  color: rgba(255,255,255,0.68);
}

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

.section-soft {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(249,115,22,0.12);
  box-shadow: var(--shadow);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249,115,22,0.28), transparent);
  margin: 24px 0;
}

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

  .hero-card,
  .detail-shell {
    grid-template-columns: 1fr;
  }

  .hero-card {
    align-items: start;
  }

  .hero-poster {
    max-width: 340px;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .hero,
  .hero-inner,
  .hero-carousel {
    min-height: 760px;
  }

  .hero-content {
    padding: 28px 0 36px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    max-width: none;
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

  .rank-side {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--container), calc(100% - 20px));
  }

  .hero,
  .hero-inner,
  .hero-carousel {
    min-height: 840px;
  }

  .hero-poster {
    max-width: 280px;
  }

  .grid-cards,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-nav button {
    width: 46px;
    height: 46px;
  }

  .hero-nav .prev { left: 8px; }
  .hero-nav .next { right: 8px; }
}
