:root {
  --bg: #fffaf0;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --line: #fed7aa;
  --text: #1f2937;
  --muted: #6b7280;
  --amber: #d97706;
  --orange: #ea580c;
  --deep: #7c2d12;
  --shadow: 0 24px 70px rgba(124, 45, 18, 0.13);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(251, 191, 36, 0.25), transparent 28rem),
    radial-gradient(circle at 90% 18%, rgba(249, 115, 22, 0.18), transparent 32rem),
    linear-gradient(180deg, #fff7ed 0%, #fffaf0 42%, #ffffff 100%);
  min-height: 100vh;
}

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

img,
video {
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(251, 191, 36, 0.28);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(124, 45, 18, 0.08);
}

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

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 16px 35px rgba(234, 88, 12, 0.27);
}

.brand-name {
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(135deg, #b45309, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--amber);
  background: rgba(251, 191, 36, 0.13);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 3px;
  background: var(--deep);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
  color: #374151;
}

.mobile-nav a:hover {
  color: var(--amber);
  background: #fff7ed;
}

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

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  padding: 44px 0 70px;
  overflow: hidden;
}

.hero-shell {
  position: relative;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.95), rgba(255, 237, 213, 0.82));
  border: 1px solid rgba(251, 191, 36, 0.4);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: auto -12% -22% 45%;
  height: 360px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.35), transparent 66%);
  filter: blur(12px);
  pointer-events: none;
}

.hero-slide {
  display: none;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  min-height: 520px;
  padding: clamp(28px, 6vw, 70px);
  align-items: center;
}

.hero-slide.active {
  display: grid;
}

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  color: #92400e;
  font-weight: 800;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  background: rgba(255, 251, 235, 0.8);
}

.hero h1,
.hero h2 {
  margin: 20px 0 18px;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.08em;
  color: #111827;
}

.hero h1 span,
.hero h2 span,
.section-title span {
  background: linear-gradient(135deg, #d97706, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 680px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.9;
}

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

.hero-meta span,
.detail-meta span,
.card-meta span {
  display: inline-flex;
  padding: 6px 10px;
  color: #92400e;
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(255, 237, 213, 0.9);
}

.hero-actions,
.section-actions,
.card-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
}

.primary-btn,
.secondary-btn,
.text-link,
.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  padding: 13px 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 16px 38px rgba(234, 88, 12, 0.28);
}

.secondary-btn {
  padding: 12px 20px;
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(255, 255, 255, 0.86);
}

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

.hero-art {
  position: relative;
  min-height: 430px;
}

.hero-poster-main {
  position: absolute;
  inset: 0 8% 10% 6%;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 30px 80px rgba(124, 45, 18, 0.28);
  transform: rotate(2deg);
}

.hero-poster-main img,
.poster-frame img,
.mini-poster img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster-main::after,
.poster-frame::after,
.detail-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.58));
}

.hero-card-stack {
  position: absolute;
  right: 0;
  bottom: 4%;
  width: min(280px, 66%);
  padding: 18px;
  color: #fff;
  border-radius: 26px;
  background: rgba(124, 45, 18, 0.74);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 50px rgba(124, 45, 18, 0.25);
}

.hero-card-stack strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.hero-card-stack em {
  display: block;
  color: #ffedd5;
  font-style: normal;
  font-size: 14px;
  line-height: 1.7;
}

.hero-dots {
  position: absolute;
  left: clamp(28px, 6vw, 70px);
  bottom: 30px;
  display: flex;
  gap: 9px;
}

.hero-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(146, 64, 14, 0.25);
}

.hero-dots button.active {
  width: 32px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.section {
  padding: 36px 0;
}

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

.section-title {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.section-desc {
  max-width: 760px;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.34);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 45px rgba(124, 45, 18, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 22px 64px rgba(124, 45, 18, 0.16);
}

.poster-link {
  display: block;
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 14%, rgba(255, 255, 255, 0.35), transparent 26%),
    linear-gradient(135deg, #fbbf24, #ea580c 62%, #7c2d12);
}

.poster-fallback {
  position: absolute;
  inset: auto 14px 14px;
  z-index: 2;
  color: #ffffff;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.35;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.4);
}

.image-missing {
  display: none;
}

.card-content {
  padding: 18px;
}

.card-content h3 {
  margin: 12px 0 9px;
  font-size: 19px;
  line-height: 1.35;
  color: #111827;
}

.card-content p {
  min-height: 72px;
  margin: 0;
  color: #6b7280;
  line-height: 1.7;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 28px;
  margin-top: 14px;
}

.tag-row span {
  padding: 5px 8px;
  color: #9a3412;
  font-size: 12px;
  border-radius: 999px;
  background: #ffedd5;
}

.text-link {
  padding: 9px 0;
  color: var(--amber);
}

.pill-link {
  padding: 8px 12px;
  color: #9a3412;
  background: #fff7ed;
}

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

.category-card {
  position: relative;
  min-height: 160px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 26px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: 0 18px 45px rgba(124, 45, 18, 0.08);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -48px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.14);
}

.category-card h3 {
  position: relative;
  margin: 0 0 12px;
  font-size: 24px;
  color: #111827;
}

.category-card p {
  position: relative;
  margin: 0;
  color: #6b7280;
  line-height: 1.75;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(251, 191, 36, 0.34);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(124, 45, 18, 0.07);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  border-radius: 18px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.rank-item h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.rank-item p {
  margin: 0;
  color: #6b7280;
  line-height: 1.65;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 34px 0 8px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  padding: 10px 13px;
  text-align: center;
  border-radius: 14px;
  font-weight: 800;
  background: #fff7ed;
  color: #92400e;
}

.pagination .current {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.detail-hero {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 36px;
  align-items: center;
  padding: 42px;
  margin: 36px 0;
  border: 1px solid rgba(251, 191, 36, 0.36);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 247, 237, 0.9));
  box-shadow: var(--shadow);
}

.detail-poster {
  position: relative;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, #fbbf24, #ea580c 62%, #7c2d12);
  box-shadow: 0 24px 60px rgba(124, 45, 18, 0.22);
}

.detail-poster .poster-fallback {
  font-size: 24px;
}

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

.detail-info h1 {
  margin: 14px 0 18px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-info .lead {
  color: #4b5563;
  font-size: 18px;
  line-height: 1.9;
}

.player-panel {
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(251, 191, 36, 0.36);
  background: #111827;
  box-shadow: var(--shadow);
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(249, 115, 22, 0.28), transparent 42%),
    rgba(17, 24, 39, 0.32);
}

.player-box.is-playing .play-overlay {
  display: none;
}

.play-button {
  width: 96px;
  height: 96px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  font-size: 34px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 20px 60px rgba(249, 115, 22, 0.35);
}

.player-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  color: #fff7ed;
}

.content-block {
  padding: 28px;
  border: 1px solid rgba(251, 191, 36, 0.34);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 40px rgba(124, 45, 18, 0.07);
}

.content-block h2 {
  margin: 0 0 14px;
  font-size: 28px;
  color: #111827;
}

.content-block p {
  margin: 0;
  color: #4b5563;
  line-height: 2;
  font-size: 17px;
}

.detail-layout {
  display: grid;
  gap: 22px;
}

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

.small-card {
  display: grid;
  gap: 9px;
}

.mini-poster {
  position: relative;
  aspect-ratio: 3 / 4.1;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #fbbf24, #ea580c);
}

.mini-poster span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  color: #ffffff;
  font-weight: 900;
  line-height: 1.3;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.35);
}

.small-card strong {
  line-height: 1.35;
}

.small-card em {
  color: #6b7280;
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.search-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(251, 191, 36, 0.34);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 170px 140px;
  gap: 12px;
}

.search-row input,
.search-row select {
  width: 100%;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 16px;
  padding: 13px 14px;
  outline: none;
  background: #fffaf0;
}

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

.site-footer {
  margin-top: 70px;
  padding: 48px 0 30px;
  border-top: 1px solid rgba(251, 191, 36, 0.36);
  background: linear-gradient(135deg, #fff7ed, #ffffff);
}

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

.footer-brand {
  margin-bottom: 12px;
}

.site-footer p {
  color: #6b7280;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #111827;
}

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

.footer-links a {
  padding: 8px 10px;
  color: #92400e;
  border-radius: 999px;
  background: #ffedd5;
  font-weight: 800;
  font-size: 14px;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(251, 191, 36, 0.32);
  text-align: center;
}

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

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

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

  .hero-art {
    min-height: 360px;
  }

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

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

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

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

@media (max-width: 620px) {
  .header-inner {
    height: 66px;
  }

  .brand-name {
    font-size: 20px;
  }

  .hero {
    min-height: auto;
    padding: 22px 0 42px;
  }

  .hero-slide {
    padding: 24px;
  }

  .hero h1,
  .hero h2 {
    font-size: 42px;
  }

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

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

  .rank-item .primary-btn {
    grid-column: 1 / -1;
  }

  .detail-hero {
    padding: 22px;
  }

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