:root {
  color-scheme: light;
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fffbeb;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --brand: #f97316;
  --brand-dark: #c2410c;
  --brand-soft: #ffedd5;
  --gold: #f59e0b;
  --shadow: 0 24px 70px rgba(124, 45, 18, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.28), transparent 32rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 46%, #fff7ed 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent 68%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.9);
  border-bottom: 1px solid rgba(251, 146, 60, 0.22);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(154, 52, 18, 0.08);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1.35rem;
  background: linear-gradient(135deg, var(--brand-dark), var(--gold));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  color: #4b5563;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
}

.mobile-panel.open {
  display: grid;
  gap: 8px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  color: #fff;
  background: linear-gradient(135deg, #9a3412 0%, #f97316 42%, #f59e0b 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.24), transparent 22rem),
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.18), transparent 28rem),
    linear-gradient(180deg, rgba(67, 20, 7, 0.22), rgba(67, 20, 7, 0.68));
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 92px;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0 118px;
}

.hero-slide {
  display: none;
  align-items: center;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(28px, 5vw, 68px);
  min-height: 520px;
}

.hero-slide.active {
  display: grid;
  animation: heroFade 0.72s ease both;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy {
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  font-weight: 800;
  box-shadow: 0 12px 35px rgba(67, 20, 7, 0.18);
}

.hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(2.8rem, 7vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-shadow: 0 16px 34px rgba(67, 20, 7, 0.28);
}

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

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

.btn-primary,
.btn-ghost,
.section-more,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary,
.section-more {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.3);
}

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

.btn-ghost {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.hero-poster {
  position: relative;
  min-height: 520px;
}

.hero-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 32px 80px rgba(67, 20, 7, 0.35);
  transform: rotate(2deg);
}

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

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(67, 20, 7, 0.82));
}

.hero-mini {
  position: absolute;
  left: -24px;
  bottom: 28px;
  right: 46px;
  z-index: 2;
  padding: 22px;
  border-radius: 28px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 20px 52px rgba(67, 20, 7, 0.26);
  backdrop-filter: blur(18px);
}

.hero-mini strong {
  display: block;
  color: var(--brand-dark);
  font-size: 1.15rem;
}

.hero-mini span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

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

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

.hero-dot.active {
  background: #fff;
}

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

.page-hero {
  padding: 76px 0 34px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #431407;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.85;
}

.section {
  padding: 44px 0;
}

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

.kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--brand-dark);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  color: #431407;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
}

.section-head p {
  max-width: 700px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

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

.movie-card,
.category-card,
.feature-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(254, 215, 170, 0.88);
  box-shadow: 0 14px 42px rgba(154, 52, 18, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fdba74, #fed7aa);
}

.poster img,
.rank-cover img,
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(67, 20, 7, 0.72));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(249, 115, 22, 0.94);
  box-shadow: 0 14px 34px rgba(67, 20, 7, 0.28);
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-dot {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-info {
  padding: 18px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.movie-meta span {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
}

.movie-info h2,
.movie-info h3 {
  margin: 12px 0 8px;
  font-size: 1.1rem;
  line-height: 1.35;
}

.movie-info p {
  min-height: 68px;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.movie-card.compact .movie-info p {
  min-height: 0;
}

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

.tag-row span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-size: 0.82rem;
  font-weight: 700;
}

.text-link {
  min-height: 34px;
  margin-top: 16px;
  padding: 0 14px;
  color: var(--brand-dark);
  background: var(--brand-soft);
}

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

.category-card {
  position: relative;
  min-height: 230px;
  padding: 28px;
  overflow: hidden;
}

.category-card::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -80px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.22), rgba(245, 158, 11, 0.12));
}

.category-card h2,
.category-card h3 {
  position: relative;
  margin: 0;
  color: #431407;
  font-size: 1.7rem;
}

.category-card p {
  position: relative;
  max-width: 520px;
  margin: 14px 0 22px;
  color: var(--muted);
  line-height: 1.8;
}

.category-preview {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.category-preview span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fed7aa;
  font-size: 0.86rem;
  font-weight: 800;
}

.tool-bar {
  display: grid;
  gap: 16px;
  margin: 22px 0 30px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(154, 52, 18, 0.08);
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--brand-dark);
  font-weight: 900;
}

.search-box input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid #fdba74;
  border-radius: 18px;
  color: var(--text);
  background: #fff;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(249, 115, 22, 0.08);
}

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

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  color: #92400e;
  background: #fff7ed;
  font-weight: 800;
}

.chip.active,
.chip:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--gold));
}

.rank-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

.rank-list {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 96px;
}

.rank-item {
  display: grid;
  grid-template-columns: 52px 58px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(154, 52, 18, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: var(--brand);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  font-weight: 900;
}

.rank-cover {
  overflow: hidden;
  width: 58px;
  height: 78px;
  border-radius: 14px;
  background: var(--brand-soft);
}

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

.rank-text strong {
  line-height: 1.35;
}

.rank-text em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
  line-height: 1.4;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-weight: 700;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 34px;
  align-items: end;
  padding: 58px 0 34px;
}

.detail-cover {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 32px;
  background: linear-gradient(135deg, #fdba74, #fed7aa);
  box-shadow: var(--shadow);
}

.detail-title h1 {
  margin: 0;
  color: #431407;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.detail-title p {
  max-width: 800px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.9;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.player-section {
  padding: 24px 0 54px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: #111827;
  box-shadow: 0 26px 72px rgba(17, 24, 39, 0.28);
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.72));
  cursor: pointer;
}

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

.play-button {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  font-size: 2rem;
  transition: transform 0.25s ease;
}

.play-button:hover {
  transform: scale(1.06);
}

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

.content-card {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 14px 38px rgba(154, 52, 18, 0.08);
}

.content-card h2 {
  margin: 0 0 14px;
  color: #431407;
  font-size: 1.6rem;
}

.content-card p {
  margin: 0 0 18px;
  color: #4b5563;
  line-height: 2;
}

.side-card {
  position: sticky;
  top: 96px;
}

.site-footer {
  margin-top: 56px;
  padding: 54px 0 30px;
  color: #7c2d12;
  background: linear-gradient(180deg, rgba(255, 247, 237, 0), #ffedd5);
  border-top: 1px solid rgba(251, 146, 60, 0.18);
}

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

.footer-grid p {
  max-width: 520px;
  color: #92400e;
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 1.08rem;
}

.footer-grid a {
  display: block;
  margin: 9px 0;
  color: #92400e;
  font-weight: 700;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  color: #9a3412;
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

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

  .rank-layout,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .rank-list,
  .side-card {
    position: static;
  }
}

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

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

  .hero {
    min-height: auto;
  }

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

  .hero-poster {
    min-height: 420px;
  }

  .hero-card {
    transform: none;
  }

  .hero-mini {
    left: 18px;
    right: 18px;
  }

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

  .detail-cover {
    max-width: 360px;
  }
}

@media (max-width: 640px) {
  .brand-text small {
    display: none;
  }

  .hero-inner {
    padding-top: 48px;
  }

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

  .grid,
  .grid.dense {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-info {
    padding: 14px;
  }

  .movie-info p,
  .tag-row {
    display: none;
  }

  .rank-item {
    grid-template-columns: 42px 52px 1fr;
    gap: 10px;
  }

  .content-card {
    padding: 22px;
  }
}
