:root {
  --bg: #fff7ed;
  --paper: #ffffff;
  --ink: #172033;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.25);
  --amber: #f59e0b;
  --amber-soft: #fde68a;
  --orange: #ea580c;
  --rose: #be123c;
  --slate: #0f172a;
  --teal: #0f766e;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 40%, #f8fafc 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.94), rgba(124, 45, 18, 0.94));
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.site-nav-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 15px;
  color: #78350f;
  background: radial-gradient(circle at 30% 20%, #fff7ed, #f59e0b 72%);
  box-shadow: 0 0 28px rgba(251, 191, 36, 0.56);
}

.logo-text {
  font-size: 1.45rem;
  background: linear-gradient(90deg, #fde68a, #fff7ed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  position: relative;
  color: #fffbeb;
  font-weight: 700;
  opacity: 0.9;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: #fbbf24;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fde68a;
  opacity: 1;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff7ed;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.page-main {
  padding-top: 72px;
  min-height: 68vh;
}

.hero-carousel {
  position: relative;
  min-height: clamp(560px, 70vh, 760px);
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(251, 191, 36, 0.28), transparent 32%),
    radial-gradient(circle at 85% 20%, rgba(244, 63, 94, 0.22), transparent 34%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.08));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: clamp(560px, 70vh, 760px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 56px;
  align-items: center;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(253, 230, 138, 0.34);
  font-weight: 800;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 24px;
  color: #ffedd5;
  font-size: clamp(1.08rem, 2vw, 1.38rem);
  line-height: 1.75;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.primary-btn,
.ghost-btn,
.text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #e11d48);
  box-shadow: 0 14px 32px rgba(225, 29, 72, 0.32);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.text-btn {
  min-height: 38px;
  padding: 8px 12px;
  color: #b45309;
}

.primary-btn:hover,
.ghost-btn:hover,
.text-btn:hover {
  transform: translateY(-2px);
}

.hero-poster-card {
  position: relative;
  display: block;
  padding: 14px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
}

.hero-poster-card span {
  position: absolute;
  left: 28px;
  bottom: 28px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  font-weight: 800;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 38px;
  background: #fbbf24;
}

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

.band-section {
  padding: 42px 0;
  background: linear-gradient(90deg, #0f766e, #0891b2);
  color: #ecfeff;
}

.band-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.band-item {
  text-align: center;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
}

.band-item strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 6px;
}

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

.section-title h2,
.page-title h1 {
  margin: 0;
  color: #1e293b;
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -0.04em;
}

.section-title p,
.page-title p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

.page-hero {
  padding: 86px 0 56px;
  color: #ffffff;
  background:
    radial-gradient(circle at 14% 20%, rgba(251, 191, 36, 0.35), transparent 36%),
    linear-gradient(135deg, #78350f, #7c2d12 48%, #881337);
}

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

.page-title h1 {
  color: #ffffff;
}

.page-title p {
  color: #ffedd5;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #fde68a;
  font-weight: 700;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #ffffff, #fff7ed);
  box-shadow: 0 10px 34px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.18);
}

.category-card::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -50px;
  top: -50px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.22);
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.category-card p {
  color: var(--muted);
  line-height: 1.7;
}

.category-samples {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 18px;
}

.category-samples span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 0.78rem;
  font-weight: 800;
}

.filter-panel {
  width: min(1180px, calc(100% - 32px));
  margin: -36px auto 34px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(260px, 1.5fr);
  gap: 20px;
  align-items: center;
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.filter-panel h2 {
  margin: 0 0 8px;
  color: #1e293b;
}

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

.filter-controls {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.8fr);
  gap: 12px;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  color: #334155;
  background: #ffffff;
  outline: 0;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

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

.movie-card {
  min-width: 0;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.movie-card a {
  display: block;
  height: 100%;
}

.movie-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #78350f, #0f172a);
}

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

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

.movie-poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.72), transparent);
}

.type-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 0.75rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.rank-badge {
  left: 12px;
  right: auto;
  background: linear-gradient(135deg, #f59e0b, #e11d48);
}

.movie-info {
  padding: 16px;
}

.movie-meta {
  color: #b45309;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 7px;
}

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

.movie-info p {
  min-height: 3.9em;
  margin: 0 0 12px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.compact-card .movie-info p {
  -webkit-line-clamp: 2;
  min-height: 3.1em;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 46px 92px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.rank-num {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #e11d48);
  font-weight: 900;
}

.rank-row img {
  width: 92px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

.rank-text strong,
.rank-text em {
  display: block;
}

.rank-text strong {
  margin-bottom: 4px;
  color: #1e293b;
}

.rank-text em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.9rem;
}

.rank-go {
  color: #b45309;
  font-weight: 900;
}

.no-results {
  display: none;
  margin: 28px 0 0;
  padding: 24px;
  border-radius: 18px;
  color: #92400e;
  background: #fef3c7;
  font-weight: 800;
  text-align: center;
}

.no-results.is-visible {
  display: block;
}

.detail-shell {
  background: linear-gradient(180deg, #111827 0%, #172033 34%, transparent 34%);
}

.detail-top {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 56px;
  color: #ffffff;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: start;
}

.player-panel,
.detail-info-panel,
.text-panel {
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  color: #1e293b;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.player-panel {
  background: #020617;
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #e11d48);
  box-shadow: 0 18px 42px rgba(225, 29, 72, 0.35);
  cursor: pointer;
  font-size: 2.35rem;
  line-height: 1;
}

.detail-info-panel {
  padding: 26px;
}

.detail-info-panel h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-weight: 800;
  font-size: 0.84rem;
}

.detail-info-panel p {
  color: #475569;
  line-height: 1.8;
}

.poster-side img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-body {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 76px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
}

.text-panel {
  padding: 30px;
}

.text-panel h2 {
  margin: 0 0 16px;
  color: #1e293b;
  font-size: 1.55rem;
}

.text-panel p {
  color: #475569;
  line-height: 1.9;
  margin: 0 0 24px;
}

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

.related-link {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: #fff7ed;
  transition: transform 0.18s ease, background 0.18s ease;
}

.related-link:hover {
  transform: translateX(4px);
  background: #ffedd5;
}

.related-link img {
  width: 74px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
}

.related-link strong,
.related-link span {
  display: block;
}

.related-link strong {
  margin-bottom: 6px;
  color: #1e293b;
}

.related-link span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #1e293b 52%, #0f172a);
  padding: 56px 0 28px;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr;
  gap: 36px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: #fde68a;
}

.site-footer p {
  margin: 0;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.footer-links a:hover {
  color: #fde68a;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #94a3b8;
}

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

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

  .detail-grid,
  .detail-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 18px;
    background: rgba(120, 53, 15, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(255, 255, 255, 0.12);
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 42px 0 70px;
  }

  .hero-poster-card {
    width: min(260px, 80%);
  }

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

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

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

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

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

@media (max-width: 640px) {
  .site-nav-shell {
    width: min(100% - 24px, 1180px);
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .hero-copy h1 {
    font-size: 2.45rem;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .band-grid,
  .category-grid,
  .movie-grid,
  .filter-controls {
    grid-template-columns: 1fr;
  }

  .section,
  .page-section {
    padding: 50px 0;
  }

  .section-title {
    display: block;
  }

  .rank-row {
    grid-template-columns: 36px 74px 1fr;
  }

  .rank-go {
    display: none;
  }

  .detail-top {
    padding-top: 28px;
  }

  .play-button {
    width: 74px;
    height: 74px;
    font-size: 1.9rem;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
