:root {
  --bg: #fff7ed;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: rgba(148, 163, 184, 0.28);
  --amber: #d97706;
  --amber-dark: #92400e;
  --amber-soft: #fef3c7;
  --slate: #0f172a;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.24), transparent 35%),
    linear-gradient(135deg, #f8fafc 0%, #fff7ed 45%, #f1f5f9 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(22px);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 16px 36px rgba(217, 119, 6, 0.32);
}

.brand-text {
  font-size: 1.28rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

.nav-link,
.mobile-nav-link {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.mobile-nav-link:hover {
  color: var(--amber-dark);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--amber-soft);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--amber-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

.mobile-nav.is-open {
  display: grid;
  gap: 12px;
}

.page-main {
  min-height: calc(100vh - 260px);
}

.hero-section {
  width: min(1280px, calc(100% - 32px));
  margin: 30px auto 70px;
}

.hero-stage {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 34px;
  background: var(--slate);
  box-shadow: var(--shadow);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  filter: saturate(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.68) 45%, rgba(15, 23, 42, 0.2) 100%),
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.44), transparent 28%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  min-height: 620px;
  padding: clamp(48px, 8vw, 110px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-content .eyebrow {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.28);
}

.hero-content h1 {
  margin: 22px 0 20px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.hero-content p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero-tags,
.detail-meta,
.movie-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 26px;
}

.hero-tags span,
.detail-meta span,
.movie-meta-line span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 800;
}

.detail-meta span,
.movie-meta-line span {
  background: #f1f5f9;
  color: #64748b;
}

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

.primary-btn,
.ghost-btn,
.text-btn,
.section-link,
.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  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, #b45309);
  box-shadow: 0 16px 36px rgba(217, 119, 6, 0.28);
}

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

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: #f59e0b;
}

.hero-search {
  width: min(1040px, calc(100% - 40px));
  margin: -42px auto 0;
  position: relative;
  z-index: 6;
  padding: 20px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(18px);
}

.hero-search label {
  display: block;
  margin-bottom: 10px;
  color: #475569;
  font-weight: 900;
}

.hero-search div,
.inline-search {
  display: flex;
  gap: 12px;
}

.hero-search input,
.inline-search input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--text);
  background: #ffffff;
  outline: none;
}

.hero-search input:focus,
.inline-search input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.hero-search button {
  min-width: 130px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  font-weight: 900;
  cursor: pointer;
}

.content-section,
.subpage-hero,
.detail-layout {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 72px;
}

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

.section-heading h2,
.subpage-hero h1,
.detail-main h1 {
  margin: 0 0 10px;
  color: #1e293b;
  line-height: 1.12;
  letter-spacing: -0.06em;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.section-heading p,
.subpage-hero p {
  margin: 0;
  color: var(--muted);
}

.section-link,
.text-btn,
.pill-link {
  color: var(--amber-dark);
  background: var(--amber-soft);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #92400e);
}

.movie-cover img {
  transition: transform 0.35s ease;
}

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  font-size: 0.84rem;
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
}

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

.movie-card h3,
.rank-list-body h3 {
  margin: 12px 0 10px;
  color: #172033;
  font-size: 1.08rem;
  line-height: 1.3;
}

.movie-card p,
.rank-list-body p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

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

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

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  align-items: start;
  gap: 28px;
}

.ranking-strip,
.rank-list {
  display: grid;
  gap: 14px;
}

.rank-list-item {
  display: grid;
  grid-template-columns: 56px 76px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.07);
}

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

.rank-thumb {
  width: 76px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: #0f172a;
}

.side-panel,
.subpage-hero,
.player-card,
.detail-main,
.detail-side,
.category-card-large {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.side-panel {
  padding: 26px;
  position: sticky;
  top: 100px;
}

.side-panel h2 {
  margin: 0 0 10px;
  font-size: 1.55rem;
}

.side-panel p {
  color: var(--muted);
}

.category-mini-grid {
  display: grid;
  gap: 10px;
}

.category-tile {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 18px;
  background: #fff7ed;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.category-tile span {
  color: var(--amber-dark);
  font-weight: 900;
}

.category-tile strong {
  color: #64748b;
  font-size: 0.88rem;
}

.subpage-hero {
  margin-top: 36px;
  padding: clamp(30px, 5vw, 64px);
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 30%),
    rgba(255, 255, 255, 0.88);
}

.subpage-hero h1 {
  max-width: 900px;
  margin-top: 18px;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
}

.subpage-hero p {
  max-width: 740px;
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: #64748b;
  font-weight: 800;
}

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

.inline-search {
  max-width: 680px;
  margin-top: 28px;
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  overflow: hidden;
  padding: 20px;
}

.category-card-media {
  min-height: 240px;
  overflow: hidden;
  border-radius: 20px;
  background: #0f172a;
}

.category-card-large h2 {
  margin: 16px 0 10px;
  color: #172033;
  font-size: 1.7rem;
}

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

.detail-layout {
  margin-top: 34px;
}

.detail-breadcrumb {
  margin-bottom: 18px;
}

.player-card {
  overflow: hidden;
  padding: 14px;
  background: #0f172a;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  background: #020617;
}

.movie-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.72));
  cursor: pointer;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  padding-left: 5px;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 22px 52px rgba(245, 158, 11, 0.36);
  font-size: 2rem;
}

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

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  margin-top: 28px;
}

.detail-main,
.detail-side {
  padding: clamp(22px, 3vw, 34px);
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.detail-main h1 {
  margin-top: 14px;
  font-size: clamp(2rem, 4vw, 3.7rem);
}

.detail-meta {
  margin: 18px 0;
}

.lead-text {
  margin: 0 0 20px;
  color: #475569;
  font-size: 1.15rem;
  font-weight: 700;
}

.detail-tags {
  margin-bottom: 26px;
}

.text-panel {
  padding: 24px;
  border-radius: 22px;
  background: #f8fafc;
}

.text-panel + .text-panel {
  margin-top: 18px;
}

.text-panel h2 {
  margin: 0 0 12px;
  color: #172033;
  font-size: 1.35rem;
}

.text-panel p {
  margin: 0;
  color: #475569;
}

.poster-panel {
  display: grid;
  gap: 18px;
}

.poster-panel img {
  aspect-ratio: 2 / 3;
  border-radius: 22px;
  background: #0f172a;
}

.full-btn {
  width: 100%;
}

.related-section {
  margin-top: -28px;
}

.empty-state {
  display: none;
  margin: 30px 0 0;
  padding: 28px;
  border-radius: 22px;
  text-align: center;
  color: #64748b;
  background: rgba(255, 255, 255, 0.84);
}

.empty-state.is-visible {
  display: block;
}

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

.site-footer {
  margin-top: 80px;
  padding: 44px 0;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  color: #ffffff;
  font-size: 1.4rem;
}

.footer-inner p {
  max-width: 620px;
  color: #94a3b8;
}

.footer-links {
  display: grid;
  gap: 10px;
  min-width: 180px;
  font-weight: 800;
}

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

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

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

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

  .split-section,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .hero-stage,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    padding: 44px 28px 86px;
  }

  .hero-arrow {
    top: auto;
    bottom: 22px;
  }

  .hero-prev {
    left: 22px;
  }

  .hero-next {
    right: 22px;
  }

  .hero-search div,
  .inline-search,
  .section-heading,
  .footer-inner,
  .detail-title-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search button {
    min-height: 50px;
  }

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

  .category-card-large {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .hero-section,
  .content-section,
  .subpage-hero,
  .detail-layout,
  .footer-inner,
  .mobile-nav {
    width: min(100% - 22px, 1280px);
  }

  .brand-text {
    font-size: 1.08rem;
  }

  .hero-stage {
    min-height: 520px;
    border-radius: 24px;
  }

  .hero-content {
    min-height: 520px;
  }

  .hero-search {
    width: calc(100% - 20px);
    padding: 16px;
  }

  .movie-grid,
  .movie-grid-wide {
    grid-template-columns: 1fr;
  }

  .rank-list-item {
    grid-template-columns: 46px 62px 1fr;
    gap: 10px;
  }

  .rank-thumb {
    width: 62px;
  }

  .rank-list-body p {
    display: none;
  }

  .detail-main,
  .detail-side {
    padding: 18px;
  }

  .text-panel {
    padding: 18px;
  }
}
