:root {
  --bg: #fffaf4;
  --surface: #ffffff;
  --text: #161616;
  --muted: #6b7280;
  --line: #f1e7dc;
  --brand: #ea580c;
  --brand-dark: #c2410c;
  --gold: #f59e0b;
  --soft: #fff3e4;
  --shadow: 0 18px 50px rgba(124, 45, 18, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #fff 0%, var(--bg) 58%, #fff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

body.no-scroll {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(234, 88, 12, 0.1);
}

.nav-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.28);
}

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

.main-nav a {
  padding: 10px 15px;
  color: #374151;
  border-radius: 999px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--brand);
  background: var(--soft);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--soft);
  color: var(--brand-dark);
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  isolation: isolate;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 1.2s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.62) 44%, rgba(0, 0, 0, 0.2) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.58));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 430px;
  align-items: end;
  gap: 42px;
  color: #fff;
}

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

.hero-kicker,
.section-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: rgba(234, 88, 12, 0.9);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 12px 32px rgba(234, 88, 12, 0.26);
}

.section-kicker,
.eyebrow {
  color: var(--brand-dark);
  background: var(--soft);
  box-shadow: none;
}

.hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 660px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 900;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  box-shadow: 0 14px 34px rgba(234, 88, 12, 0.32);
}

.btn.primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 20px 44px rgba(234, 88, 12, 0.38);
}

.btn.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.btn.light {
  color: var(--brand-dark);
  background: var(--soft);
}

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

.hero-meta span,
.detail-meta span,
.movie-meta span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 700;
}

.hero-meta span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-panel {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  border-radius: 28px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.hero-panel h3 {
  margin: 0 0 16px;
  font-size: 18px;
}

.hero-picks {
  display: grid;
  gap: 12px;
}

.hero-pick {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  color: #fff;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.13);
  transition: all 0.25s ease;
}

.hero-pick:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateX(2px);
}

.pick-cover {
  height: 90px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
}

.hero-pick strong {
  display: block;
  margin-bottom: 6px;
}

.hero-pick span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

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

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

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: linear-gradient(135deg, #fff7ed, #fff 48%, #eff6ff);
}

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

.section-title h1,
.section-title h2 {
  margin: 10px 0 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-title p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
}

.section-more {
  flex: none;
  color: var(--brand);
  font-weight: 900;
}

.scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 280px);
  gap: 22px;
  overflow-x: auto;
  padding: 4px 0 22px;
  scroll-snap-type: x mandatory;
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(124, 45, 18, 0.18);
}

.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  background-color: #171717;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.18), transparent 32%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.play-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(234, 88, 12, 0.94);
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, #ef4444, var(--gold));
}

.card-body {
  padding: 16px;
}

.movie-title {
  display: block;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.28;
  margin-bottom: 10px;
}

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

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

.movie-meta span,
.detail-meta span {
  color: #7c2d12;
  background: #ffedd5;
}

.card-body p {
  min-height: 4.8em;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-list span {
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.category-chip {
  display: inline-flex;
  margin-top: 12px;
  color: var(--brand-dark);
  font-weight: 900;
  font-size: 14px;
}

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

.category-card {
  min-height: 158px;
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.95), rgba(245, 158, 11, 0.9)), var(--cover);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease;
}

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

.category-card strong {
  font-size: 22px;
}

.category-card span {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.filter-panel {
  margin: 0 0 28px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
}

.search-input,
.select-input {
  width: 100%;
  border: 1px solid #fed7aa;
  background: #fffaf4;
  color: #111827;
  border-radius: 16px;
  padding: 13px 14px;
  font: inherit;
  outline: none;
}

.search-input:focus,
.select-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.list-layout {
  display: grid;
  gap: 16px;
}

.rank-row {
  display: grid;
  grid-template-columns: 72px 110px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(124, 45, 18, 0.08);
}

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

.rank-cover {
  height: 140px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
}

.rank-row h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-row p {
  margin: 0;
  color: var(--muted);
}

.rank-score {
  color: var(--brand-dark);
  font-size: 20px;
  font-weight: 900;
  white-space: nowrap;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin: 26px 0;
}

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

.detail-hero {
  padding: 34px 0 76px;
  background: radial-gradient(circle at 10% 0%, rgba(245, 158, 11, 0.2), transparent 32%), linear-gradient(180deg, #fff, #fff7ed);
}

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

.player-card,
.detail-card,
.sidebar-card {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.video-shell {
  position: relative;
  overflow: hidden;
  background: #050505;
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.play-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.62));
}

.play-overlay span {
  position: relative;
  z-index: 1;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  font-size: 30px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.38);
}

.play-overlay.is-hidden {
  display: none;
}

.player-title {
  padding: 18px 20px;
}

.player-title h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.detail-card {
  padding: 24px;
}

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

.detail-card p {
  margin: 0 0 18px;
  color: #374151;
}

.sidebar-card {
  padding: 20px;
}

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

.side-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #fff7ed;
  transition: background 0.25s ease;
}

.side-item:hover {
  background: #ffedd5;
}

.side-cover {
  height: 96px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
}

.side-item strong {
  display: block;
  margin-bottom: 4px;
  line-height: 1.25;
}

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

.site-footer {
  padding: 42px 0;
  color: #fff;
  background: #111827;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
}

.footer-inner strong {
  font-size: 22px;
}

.footer-inner p {
  color: rgba(255, 255, 255, 0.68);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
  justify-content: end;
}

.footer-links a {
  padding: 9px 13px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--line);
}

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

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

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

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

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    position: fixed;
    inset: 68px 14px auto 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
  }

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

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 64px 20px 76px;
  }

  .hero-panel {
    display: none;
  }

  .section {
    padding: 48px 0;
  }

  .section-title {
    display: block;
  }

  .section-more {
    display: inline-block;
    margin-top: 12px;
  }

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

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

  .rank-row {
    grid-template-columns: 52px 78px 1fr;
  }

  .rank-score {
    grid-column: 3;
    font-size: 15px;
  }

  .rank-cover {
    height: 104px;
  }

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

  .footer-links {
    justify-content: start;
  }
}

@media (max-width: 470px) {
  .grid,
  .grid.six,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .scroller {
    grid-auto-columns: 78%;
  }

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

  .movie-title {
    font-size: 17px;
  }
}
