:root {
  --bg: #fff7ed;
  --bg-soft: #fffbf5;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #fed7aa;
  --brand: #f97316;
  --brand-dark: #ea580c;
  --gold: #eab308;
  --rose: #ef4444;
  --shadow: 0 18px 45px rgba(249, 115, 22, 0.14);
  --shadow-soft: 0 12px 30px rgba(17, 24, 39, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(249, 115, 22, 0.15), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(234, 179, 8, 0.18), transparent 30%),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 44%, #fff7ed 100%);
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(254, 215, 170, 0.72);
  background: rgba(255, 251, 245, 0.88);
  backdrop-filter: blur(20px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, #f97316, #facc15);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
}

.brand-name {
  display: block;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-tagline {
  display: block;
  margin-top: -6px;
  color: var(--muted);
  font-size: 12px;
}

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

.desktop-nav a,
.mobile-nav a {
  color: #374151;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--brand-dark);
}

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.2);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 0 16px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  color: #ffffff;
  background:
    linear-gradient(115deg, rgba(17, 24, 39, 0.94), rgba(127, 29, 29, 0.78)),
    linear-gradient(135deg, #f97316, #ef4444);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 42px 42px;
}

.hero-slider {
  position: relative;
  min-height: 560px;
}

.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-slide-bg {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
}

.hero-slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(17, 24, 39, 0.72) 46%, rgba(17, 24, 39, 0.24) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.86), transparent 46%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.6fr);
  gap: 42px;
  align-items: center;
  min-height: 560px;
  padding: 70px 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  color: #ffedd5;
  border: 1px solid rgba(255, 237, 213, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 800;
}

.hero h1,
.hero h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero h1 span,
.hero h2 span {
  color: #fed7aa;
}

.hero-text {
  max-width: 690px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}

.hero-tags a,
.hero-tags span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 18px 34px rgba(249, 115, 22, 0.34);
}

.btn-light {
  color: #9a3412;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(255, 255, 255, 0.18);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent 46%);
}

.hero-poster-info {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
}

.hero-poster-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 900;
}

.hero-poster-meta {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

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

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

.hero-dot.is-active {
  width: 30px;
  background: #ffffff;
}

.section {
  padding: 70px 0;
}

.section-compact {
  padding: 44px 0;
}

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.section-desc {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
}

.link-more {
  color: var(--brand-dark);
  font-weight: 900;
  white-space: nowrap;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.search-input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  outline: none;
  background: #fffaf4;
}

.search-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.13);
}

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

.stat-card,
.category-card,
.info-card {
  border: 1px solid rgba(254, 215, 170, 0.8);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.stat-card {
  padding: 24px;
}

.stat-number {
  display: block;
  color: var(--brand-dark);
  font-size: 34px;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.stat-label {
  color: var(--muted);
  font-weight: 700;
}

.category-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  min-height: 190px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -46px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.18), transparent 70%);
}

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

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

.category-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  color: var(--brand-dark);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(254, 215, 170, 0.72);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  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.44);
  box-shadow: var(--shadow);
}

.movie-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
}

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

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

.movie-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  color: #9a3412;
  border-radius: 999px;
  background: rgba(255, 237, 213, 0.9);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 900;
}

.movie-score {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 900;
}

.movie-body {
  padding: 16px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 12px;
  font-weight: 800;
}

.movie-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

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

.movie-line {
  min-height: 44px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.movie-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #6b7280;
  font-size: 12px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 68px 86px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(254, 215, 170, 0.76);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

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

.rank-thumb {
  width: 72px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: #ffedd5;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.rank-score {
  color: var(--brand-dark);
  font-weight: 950;
  white-space: nowrap;
}

.page-hero {
  padding: 70px 0 50px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(154, 52, 18, 0.84)),
    linear-gradient(135deg, #f97316, #ef4444);
}

.page-hero h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-card,
.related-card {
  overflow: hidden;
  border: 1px solid rgba(254, 215, 170, 0.78);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background: #000000;
  aspect-ratio: 16 / 9;
  cursor: pointer;
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.16)),
    transparent;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 18px 42px rgba(239, 68, 68, 0.38);
  font-size: 32px;
}

.player-meta {
  padding: 22px;
}

.player-meta h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.player-meta p {
  margin: 0;
  color: var(--muted);
}

.detail-card {
  padding: 24px;
}

.detail-card h2,
.related-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.detail-card p {
  margin: 0 0 14px;
}

.meta-table {
  display: grid;
  gap: 12px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #fed7aa;
}

.meta-row span:first-child {
  color: var(--muted);
}

.meta-row span:last-child {
  font-weight: 800;
  text-align: right;
}

.poster-side {
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: 24px;
  background: #ffedd5;
  box-shadow: var(--shadow-soft);
}

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

.related-card {
  padding: 22px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 62px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
  background: #ffedd5;
}

.related-item strong {
  display: block;
  line-height: 1.35;
}

.related-item span {
  color: var(--muted);
  font-size: 12px;
}

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

.footer {
  margin-top: 70px;
  padding: 44px 0;
  color: #7c2d12;
  border-top: 1px solid #fed7aa;
  background: rgba(255, 247, 237, 0.72);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-weight: 800;
}

.hide-by-search {
  display: none !important;
}

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

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

  .detail-side {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
  }

  .poster-side {
    margin-bottom: 0;
  }
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 360px;
  }

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

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

  .section-head {
    display: block;
  }

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

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

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

  .brand {
    min-width: 0;
  }

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

  .hero,
  .hero-slider,
  .hero-inner {
    min-height: 680px;
  }

  .hero-inner {
    padding: 46px 0 82px;
  }

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

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

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

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

  .rank-thumb {
    display: none;
  }

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

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

  .footer-inner {
    display: block;
  }

  .footer-links {
    margin-top: 16px;
  }
}
