:root {
  --bg: #fff7ed;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(251, 146, 60, 0.25);
  --brand: #f59e0b;
  --brand-dark: #ea580c;
  --brand-deep: #7c2d12;
  --shadow: 0 24px 70px rgba(124, 45, 18, 0.16);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.35), transparent 34rem),
    linear-gradient(135deg, #fff7ed 0%, #fffbeb 42%, #fef3c7 100%);
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #f97316, #ea580c);
  box-shadow: 0 18px 50px rgba(194, 65, 12, 0.24);
}

.site-header__inner {
  max-width: 1240px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.site-logo__mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #f97316;
  background: #ffffff;
  box-shadow: inset 0 -3px 8px rgba(249, 115, 22, 0.2);
}

.site-logo__text {
  font-size: 24px;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.17);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  padding: 8px 24px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hero {
  position: relative;
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px;
}

.hero-stage {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.55fr);
  gap: 36px;
  align-items: center;
  padding: 64px;
  color: #ffffff;
  background-position: center;
  background-size: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide__content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #f59e0b;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-slide .eyebrow {
  color: #fde68a;
}

.hero-slide h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-slide p {
  max-width: 720px;
  margin: 22px 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  line-height: 1.9;
}

.hero-slide__tags,
.detail-tags,
.movie-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-slide__tags span,
.detail-tags span,
.movie-card__tags span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

.hero-slide__tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-slide__actions,
.detail-actions,
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.32);
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
}

.btn-soft {
  color: #7c2d12;
  background: #ffffff;
}

.hero-slide__poster {
  height: 460px;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.24);
  border-radius: 30px;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.32);
  transform: rotate(2deg);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.32);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.hero-arrow--prev {
  left: 22px;
}

.hero-arrow--next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 10px;
}

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

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

.search-band,
.section,
.page-hero,
.detail-hero,
.player-section,
.detail-content,
.filter-bar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 54px 24px;
}

.search-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: center;
}

.search-band h2,
.section__head h2,
.page-hero h1,
.detail-hero h1 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.search-band p,
.section__head p,
.page-hero p,
.category-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.8;
}

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

.search-panel input,
.filter-grid input,
.filter-grid select {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 18px;
  padding: 15px 16px;
  background: #fff7ed;
  color: var(--text);
}

.search-panel button,
.filter-grid button,
.quick-filters button {
  border: 0;
  border-radius: 18px;
  padding: 0 20px;
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  cursor: pointer;
  font-weight: 900;
}

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

.section-link {
  flex: 0 0 auto;
  color: #ea580c;
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 42px rgba(124, 45, 18, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card__poster {
  position: relative;
  display: block;
  height: 280px;
  overflow: hidden;
  background: #fed7aa;
}

.movie-card--compact .movie-card__poster {
  height: 220px;
}

.movie-card__poster img {
  transition: transform 0.4s ease;
}

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

.movie-card__badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 900;
}

.movie-card__body {
  padding: 18px;
}

.movie-card h2 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.movie-card__meta,
.movie-card__line {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.movie-card__line {
  min-height: 56px;
}

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

.category-tile {
  min-height: 170px;
  padding: 22px;
  border-radius: var(--radius);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(251, 146, 60, 0.98), rgba(180, 83, 9, 0.96)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.55), transparent 12rem);
  box-shadow: var(--shadow);
}

.category-tile span {
  display: block;
  margin-bottom: 16px;
  font-size: 23px;
  font-weight: 900;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

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

.rank-list--large {
  grid-template-columns: 1fr;
}

.rank-item {
  display: grid;
  grid-template-columns: 56px 96px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 18px 42px rgba(124, 45, 18, 0.07);
}

.rank-item__index {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-weight: 900;
}

.rank-item__poster {
  height: 128px;
  overflow: hidden;
  border-radius: 18px;
}

.rank-item h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-item p,
.rank-item span {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.6;
}

.page-hero {
  margin-top: 24px;
  border-radius: 34px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(154, 52, 18, 0.84)),
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.55), transparent 20rem);
  box-shadow: var(--shadow);
}

.page-hero h1,
.page-hero p {
  color: #ffffff;
}

.page-hero p {
  max-width: 820px;
}

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

.category-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 18px;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 42px rgba(124, 45, 18, 0.08);
}

.category-card__cover {
  height: 230px;
  overflow: hidden;
  border-radius: 22px;
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.category-card__links a,
.quick-filters button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #92400e;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
}

.filter-grid {
  grid-template-columns: minmax(260px, 1fr) 180px 160px auto;
  margin-bottom: 22px;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.quick-filters button {
  border: 0;
  color: #92400e;
  background: #ffedd5;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-hero__poster {
  height: 520px;
  overflow: hidden;
  border: 12px solid rgba(255, 255, 255, 0.75);
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: #fed7aa;
}

.detail-hero__content {
  padding: 34px;
  border: 1px solid rgba(251, 146, 60, 0.2);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 60px rgba(124, 45, 18, 0.1);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: #9a3412;
  font-size: 14px;
  font-weight: 800;
}

.detail-meta,
.detail-line {
  color: var(--muted);
  line-height: 1.85;
}

.detail-line {
  font-size: 18px;
}

.detail-actions .btn-ghost,
.page-hero__actions .btn-ghost {
  color: #9a3412;
  border-color: rgba(234, 88, 12, 0.3);
  background: #ffedd5;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  background: #020617;
  object-fit: contain;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

.player-start span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 20px 50px rgba(249, 115, 22, 0.36);
  font-size: 34px;
}

.player-start strong {
  font-size: 20px;
}

.player-shell.is-playing .player-start {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.detail-content article {
  padding: 28px;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 42px rgba(124, 45, 18, 0.08);
}

.detail-content h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

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

.site-footer {
  margin-top: 60px;
  color: #d1d5db;
  background: linear-gradient(135deg, #1f2937, #111827);
}

.site-footer__grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 36px;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 22px;
}

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

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

.site-footer__bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 24px 30px;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

  .hero-slide__poster {
    display: none;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero,
  .search-band,
  .section,
  .page-hero,
  .detail-hero,
  .player-section,
  .detail-content,
  .filter-bar {
    padding: 28px 16px;
  }

  .hero-stage {
    min-height: 560px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 42px 24px;
  }

  .search-band,
  .detail-hero,
  .detail-content,
  .site-footer__grid,
  .category-card-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }

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

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

  .movie-card__poster,
  .movie-card--compact .movie-card__poster {
    height: 230px;
  }

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

  .category-card__cover {
    height: 170px;
  }

  .detail-hero__poster {
    height: 420px;
  }

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

  .rank-item__poster {
    height: 104px;
  }
}

@media (max-width: 520px) {
  .site-logo__text {
    font-size: 20px;
  }

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

  .hero-slide h1,
  .page-hero h1,
  .detail-hero h1 {
    font-size: 36px;
  }

  .hero-arrow {
    display: none;
  }

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

  .category-card__cover {
    height: 220px;
  }
}
