:root {
  --orange: #f97316;
  --orange-dark: #c2410c;
  --amber: #d97706;
  --amber-light: #fef3c7;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --surface: #ffffff;
  --soft: #fff7ed;
  --shadow: 0 18px 45px rgba(154, 52, 18, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 46%, #fefce8 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.92);
  border-bottom: 1px solid rgba(251, 146, 60, 0.18);
  box-shadow: 0 8px 26px rgba(124, 45, 18, 0.08);
  backdrop-filter: blur(18px);
}

.nav-shell,
.footer-shell,
.section-shell,
.hero-shell,
.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.28);
  font-size: 18px;
}

.brand-text strong,
.footer-brand strong {
  display: block;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--orange-dark), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.nav-link {
  padding: 9px 17px;
  border-radius: 14px;
  color: #374151;
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  box-shadow: 0 12px 22px rgba(234, 88, 12, 0.2);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 13px;
  padding: 10px 13px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-size: 21px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #ea580c 0%, #d97706 52%, #92400e 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at 18% 18%, #ffffff 0 2px, transparent 2px), radial-gradient(circle at 80% 22%, #ffffff 0 2px, transparent 2px);
  background-size: 58px 58px, 86px 86px;
}

.hero-shell {
  position: relative;
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 46px;
  padding: 70px 0 88px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.hero h1,
.page-hero h1,
.detail-title {
  margin: 18px 0 18px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.hero-lead {
  max-width: 700px;
  margin: 0 0 28px;
  color: #ffedd5;
  font-size: clamp(18px, 2vw, 24px);
}

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

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  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 {
  color: var(--orange-dark);
  background: #ffffff;
  box-shadow: 0 18px 32px rgba(124, 45, 18, 0.18);
}

.btn-secondary {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.72);
}

.btn-ghost {
  color: var(--orange-dark);
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 34px rgba(124, 45, 18, 0.22);
}

.hero-stage {
  position: relative;
  min-height: 500px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(67, 20, 7, 0.36);
  background: rgba(255, 255, 255, 0.1);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(124, 45, 18, 0.88));
}

.hero-slide-card {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(16px);
}

.hero-slide-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.18;
}

.hero-slide-card p {
  margin: 0 0 16px;
  color: #ffedd5;
}

.hero-dots {
  position: absolute;
  right: 26px;
  top: 26px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

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

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

.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 76px;
  background: linear-gradient(to bottom right, transparent 49%, #fff7ed 50%);
}

.section-shell,
.page-shell {
  padding: 58px 0;
}

.section-head,
.page-headline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

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

.section-head h2,
.page-headline h2,
.detail-section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.section-head p,
.page-headline p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 162px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -48px;
  top: -48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.category-tile:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 24px 58px rgba(154, 52, 18, 0.2);
}

.category-tile strong {
  position: relative;
  z-index: 1;
  font-size: 22px;
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 1;
  color: #ffedd5;
  margin: 0;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(251, 146, 60, 0.18);
  box-shadow: 0 18px 44px rgba(154, 52, 18, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 68px rgba(154, 52, 18, 0.18);
}

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

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.06);
}

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(194, 65, 12, 0.86);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

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

.movie-card-title {
  display: -webkit-box;
  min-height: 44px;
  color: #111827;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.28;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-title:hover {
  color: var(--orange-dark);
}

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

.movie-meta span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card.is-compact {
  display: grid;
  grid-template-columns: 82px 1fr;
}

.movie-card.is-compact .poster-link {
  aspect-ratio: auto;
  min-height: 128px;
}

.movie-card.is-compact .movie-card-body {
  padding: 12px;
}

.movie-card.is-compact .movie-card-title {
  min-height: 0;
  font-size: 15px;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  overflow: hidden;
}

.page-hero .page-shell {
  padding: 64px 0;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #ffedd5;
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 14px;
  margin: 0 0 28px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(251, 146, 60, 0.22);
  box-shadow: var(--shadow);
}

.search-input {
  width: 100%;
  min-height: 50px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 0 16px;
  color: var(--text);
  background: #fff7ed;
  font-size: 16px;
  outline: none;
}

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

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.filter-chip {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--amber));
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 52px 78px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 14px;
  padding: 13px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(251, 146, 60, 0.2);
  box-shadow: 0 12px 32px rgba(154, 52, 18, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  box-shadow: 0 18px 40px rgba(154, 52, 18, 0.14);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-weight: 900;
}

.ranking-row img {
  width: 78px;
  height: 106px;
  object-fit: cover;
  border-radius: 14px;
  background: #fdba74;
}

.rank-copy strong,
.rank-copy small {
  display: block;
}

.rank-copy strong {
  color: #111827;
  font-size: 18px;
  line-height: 1.3;
}

.rank-copy small {
  margin-top: 6px;
  color: var(--muted);
}

.rank-arrow {
  color: var(--orange-dark);
  font-size: 32px;
  font-weight: 300;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #7c2d12 0%, #ea580c 55%, #f59e0b 100%);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-size: cover;
  background-position: center;
  filter: blur(6px);
}

.detail-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 56px 0;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(67, 20, 7, 0.34);
  background: #fdba74;
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: #ffedd5;
  font-weight: 700;
}

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

.detail-title {
  font-size: clamp(34px, 5vw, 62px);
}

.detail-intro {
  max-width: 820px;
  margin: 0 0 20px;
  color: #ffedd5;
  font-size: 18px;
}

.content-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 70px;
}

.player-section,
.detail-section,
.related-section {
  margin-bottom: 30px;
  padding: 24px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(251, 146, 60, 0.2);
  box-shadow: var(--shadow);
}

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

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111827;
}

.video-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.76));
  cursor: pointer;
}

.video-layer[hidden] {
  display: none;
}

.video-play {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--orange-dark);
  background: #ffffff;
  font-size: 30px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.video-layer strong {
  max-width: 78%;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.2;
}

.detail-section p {
  margin: 12px 0 0;
  color: #374151;
  font-size: 17px;
}

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

.empty-state {
  display: none;
  padding: 30px;
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
  border: 1px dashed #fdba74;
}

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

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-shell {
  padding: 44px 0;
}

.footer-brand p {
  max-width: 680px;
  margin: 8px 0 0;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 26px 0;
}

.footer-links a {
  color: #d1d5db;
}

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

.copyright {
  margin: 0;
  color: #9ca3af;
}

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

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

@media (max-width: 900px) {
  .hero-shell,
  .detail-shell,
  .ranking-layout {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    min-height: auto;
    padding: 48px 0 82px;
  }

  .hero-stage {
    min-height: 450px;
  }

  .detail-poster {
    max-width: 260px;
  }

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

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

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 20px 48px rgba(124, 45, 18, 0.18);
  }

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

  .nav-link {
    text-align: center;
  }

  .brand-text strong {
    font-size: 21px;
  }

  .hero-stage {
    min-height: 410px;
  }

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

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

  .ranking-row {
    grid-template-columns: 42px 64px minmax(0, 1fr) 18px;
    gap: 10px;
  }

  .ranking-row img {
    width: 64px;
    height: 90px;
  }
}

@media (max-width: 480px) {
  .nav-shell,
  .footer-shell,
  .section-shell,
  .hero-shell,
  .page-shell,
  .content-layout,
  .detail-shell {
    width: min(100% - 22px, 1180px);
  }

  .hero h1,
  .page-hero h1,
  .detail-title {
    letter-spacing: -0.04em;
  }

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

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

  .movie-card.is-compact {
    grid-template-columns: 74px 1fr;
  }

  .player-section,
  .detail-section,
  .related-section {
    padding: 16px;
  }
}
