:root {
  color-scheme: light;
  --bg: #fff7ed;
  --ink: #0f172a;
  --muted: #64748b;
  --brand: #f97316;
  --brand-2: #ec4899;
  --brand-3: #fb7185;
  --card: rgba(255, 255, 255, 0.92);
  --line: rgba(15, 23, 42, 0.08);
  --shadow: 0 18px 45px rgba(244, 63, 94, 0.16);
}

html {
  scroll-behavior: smooth;
}

body.site-body {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.28), transparent 34rem),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.22), transparent 32rem),
    linear-gradient(180deg, #fff7ed 0%, #fff 42%, #f8fafc 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(251, 146, 60, 0.96), rgba(236, 72, 153, 0.96), rgba(251, 113, 133, 0.96));
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.22);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #f97316;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.22);
}

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

.nav-links a,
.nav-toggle {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 12px;
  padding: 9px 12px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active,
.nav-toggle:hover {
  color: #ea580c;
  background: #fff;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.36);
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: grid;
  align-items: center;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.95), rgba(236, 72, 153, 0.90), rgba(244, 63, 94, 0.92));
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.20), rgba(15, 23, 42, 0.12)),
    var(--hero-image, none) center / cover no-repeat;
  opacity: 0.92;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% -10%;
  height: 55%;
  background: linear-gradient(0deg, rgba(255, 247, 237, 1), transparent);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 34px;
  padding: 72px 0 84px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: -0.07em;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.20);
}

.hero p {
  max-width: 760px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.91);
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions,
.action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #f97316;
  background: #fff;
  box-shadow: 0 16px 30px rgba(255, 255, 255, 0.23);
}

.btn-dark {
  color: #fff;
  background: #0f172a;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.20);
}

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

.hero-panel {
  position: relative;
  border-radius: 32px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(16px);
}

.hero-poster {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
}

.hero-poster img,
.card-cover img,
.detail-cover img,
.mini-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
  margin-top: 12px;
}

.hero-thumb {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.28);
  opacity: 0.78;
}

.hero-thumb.active,
.hero-thumb:hover {
  opacity: 1;
  border-color: #fff;
}

.main {
  position: relative;
  z-index: 2;
  padding: 42px 0 70px;
}

.section {
  margin: 46px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.16;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.section-desc {
  margin: 8px 0 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.8;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.38);
  box-shadow: var(--shadow);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fb923c, #ec4899);
}

.card-cover img {
  transition: transform 0.45s ease;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(90deg, #f97316, #ec4899);
}

.card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
}

.card-score {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 12px;
  padding: 5px 8px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  font-weight: 900;
  font-size: 13px;
}

.card-body {
  padding: 15px;
}

.card-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
}

.card-title a:hover {
  color: var(--brand);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 9px 0;
  color: var(--muted);
  font-size: 13px;
}

.card-line {
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-card,
.filter-box,
.rank-item,
.detail-shell,
.player-card,
.text-card {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.category-card {
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 950;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.filter-box {
  padding: 16px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(130px, 0.4fr));
  gap: 12px;
  margin: 24px 0;
}

.input,
.select {
  width: 100%;
  border-radius: 16px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #0f172a;
  outline: none;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 120px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
}

.rank-num {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ec4899);
  font-weight: 950;
}

.mini-cover {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  background: #111827;
}

.rank-info h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 950;
}

.rank-info h3 a:hover {
  color: var(--brand);
}

.rank-info p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.rank-score {
  color: #ea580c;
  font-size: 20px;
  font-weight: 950;
}

.page-hero {
  padding: 54px 0 26px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.page-hero p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
  max-width: 820px;
}

.detail-shell {
  padding: 22px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  background: #111827;
}

.detail-title {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 16px 0;
}

.meta-pill,
.tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 800;
  color: #475569;
  background: #fff7ed;
  border: 1px solid rgba(249, 115, 22, 0.16);
}

.detail-line {
  color: #475569;
  font-size: 18px;
  line-height: 1.85;
}

.player-card {
  overflow: hidden;
  padding: 0;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  background: #020617;
  border-radius: 24px 24px 0 0;
  aspect-ratio: 16 / 9;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.20), rgba(15, 23, 42, 0.56));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  color: #f97316;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
  font-size: 38px;
  font-weight: 950;
}

.player-caption {
  padding: 14px 18px;
  color: #475569;
  line-height: 1.7;
}

.text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.text-card {
  padding: 22px;
}

.text-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 950;
}

.text-card p {
  margin: 0;
  color: #475569;
  line-height: 1.95;
}

.footer {
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #1e293b, #0f172a);
  padding: 42px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 22px;
}

.footer h3,
.footer h4 {
  margin: 0 0 12px;
}

.footer p,
.footer a {
  color: #cbd5e1;
  line-height: 1.8;
  font-size: 14px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #64748b;
  font-size: 14px;
}

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

.hidden-card {
  display: none !important;
}

@media (max-width: 1024px) {
  .hero-inner,
  .detail-shell {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 720px) {
  .nav-wrap {
    align-items: flex-start;
    padding-top: 14px;
    padding-bottom: 14px;
    min-height: auto;
  }

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

  .nav-links {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 68px;
    display: none;
    padding: 12px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.92);
  }

  .nav-links.open {
    display: grid;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 48px 0 60px;
  }

  .grid,
  .grid.small,
  .category-grid,
  .text-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-score {
    grid-column: 3;
  }

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

  .detail-cover {
    aspect-ratio: 16 / 10;
  }
}
