:root {
  --gold: #facc15;
  --orange: #fb923c;
  --deep: #111827;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: rgba(15, 23, 42, 0.08);
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 16%, #f8fafc 100%);
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #fde68a, #fb923c 48%, #111827);
}

main {
  min-height: 70vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #facc15, #fb923c, #f59e0b);
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.28);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #f59e0b;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff7ed;
  font-weight: 700;
  white-space: nowrap;
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 24px;
}

.mobile-nav {
  display: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 16px;
  color: #ffffff;
  font-weight: 700;
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
}

.hero {
  position: relative;
  max-width: 1180px;
  min-height: 590px;
  margin: 28px auto 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.18));
}

.hero-panel {
  position: relative;
  min-height: 590px;
  padding: 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 44px;
}

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

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  color: #fef3c7;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero p,
.page-hero p,
.detail-one-line {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.16);
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.16);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.section-more,
.filter-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn,
.filter-bar button {
  color: #111827;
  background: linear-gradient(90deg, #fde047, #fb923c);
  box-shadow: 0 10px 24px rgba(251, 146, 60, 0.32);
}

.ghost-btn,
.section-more {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
}

.section-more {
  color: #92400e;
  border-color: rgba(251, 146, 60, 0.28);
  background: #fff7ed;
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.filter-bar button:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  height: 460px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

.hero-poster span,
.play-mini {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(251, 146, 60, 0.9);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 54px;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 38px;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 14px;
  border-radius: 0 18px 18px 0;
}

.hero-next {
  right: 14px;
  border-radius: 18px 0 0 18px;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 8px;
}

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

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

.quick-search,
.content-section,
.page-hero,
.detail-content,
.player-section {
  max-width: 1180px;
  margin: 34px auto 0;
  padding: 0 20px;
}

.quick-search form {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.quick-search label {
  display: block;
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 900;
}

.quick-search form div,
.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.quick-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(251, 146, 60, 0.28);
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  background: #ffffff;
  font-size: 15px;
}

.quick-search button {
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(90deg, #facc15, #fb923c);
  font-weight: 900;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.content-section .eyebrow,
.page-hero .eyebrow {
  color: #f59e0b;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

.poster-link img {
  transition: transform 0.35s ease;
}

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

.play-mini {
  width: 44px;
  height: 44px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .play-mini {
  opacity: 1;
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #111827;
  background: #facc15;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.card-body {
  padding: 16px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card-meta a {
  color: #ea580c;
}

.card-body h2 {
  min-height: 52px;
  margin: 10px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.card-body h2 a:hover {
  color: #ea580c;
}

.card-body p {
  min-height: 66px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.pill-grid,
.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.category-pill,
.category-overview-card {
  display: block;
  min-height: 140px;
  padding: 20px;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.category-pill strong,
.category-title {
  display: block;
  margin-bottom: 10px;
  color: #9a3412;
  font-size: 22px;
  font-weight: 900;
}

.category-pill span,
.category-overview-card p {
  color: var(--muted);
  line-height: 1.7;
}

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

.category-samples a {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
}

.page-hero {
  padding: 58px 36px;
  border-radius: 28px;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(250, 204, 21, 0.42), transparent 32%), linear-gradient(135deg, #111827, #7c2d12 48%, #f59e0b);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  max-width: 850px;
}

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

.filter-bar {
  max-width: 1180px;
  margin: 28px auto 0;
  padding: 0 20px;
  grid-template-columns: minmax(0, 1fr) 180px 200px;
}

.search-filter {
  grid-template-columns: minmax(0, 1fr) 180px 200px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(18px);
  transform: scale(1.08);
  opacity: 0.42;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.76));
}

.detail-layout {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 20px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #fde68a;
  font-weight: 800;
}

.detail-meta {
  margin: 18px 0;
  color: #fef3c7;
}

.detail-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.large-tags span {
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.14);
}

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

.video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

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

.play-icon-large {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(90deg, #facc15, #fb923c);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

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

.detail-content article,
.side-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.detail-content h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.detail-content p {
  color: #374151;
  font-size: 16px;
  line-height: 1.9;
}

.side-panel dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  margin: 0;
}

.side-panel dt {
  color: var(--muted);
  font-weight: 900;
}

.side-panel dd {
  margin: 0;
}

.side-links {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.side-links a {
  padding: 10px 14px;
  border-radius: 14px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 900;
}

.site-footer {
  margin-top: 60px;
  padding: 42px 20px 26px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #facc15;
}

.site-footer a {
  display: block;
  margin: 8px 0;
}

.site-footer p {
  color: #9ca3af;
  line-height: 1.7;
}

.copyright {
  max-width: 1180px;
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

  .mobile-nav.is-open {
    display: block;
  }

  .hero {
    min-height: auto;
    margin: 18px 14px 0;
  }

  .hero-panel {
    min-height: 650px;
    padding: 46px 26px 72px;
    grid-template-columns: 1fr;
  }

  .hero-poster {
    width: min(260px, 70vw);
    height: 390px;
    margin: 0 auto;
  }

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

  .detail-cover {
    width: min(280px, 72vw);
    margin: 0 auto;
  }

  .filter-bar,
  .search-filter,
  .quick-search form div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    height: 62px;
  }

  .brand {
    font-size: 20px;
  }

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 34px;
  }

  .hero-panel,
  .page-hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .card-body {
    padding: 12px;
  }

  .card-body h2 {
    min-height: auto;
    font-size: 16px;
  }

  .card-body p {
    min-height: auto;
    font-size: 13px;
  }
}
