:root {
  --bg: #fff8ed;
  --surface: #ffffff;
  --surface-soft: #fff2dc;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f3c27a;
  --amber: #f59e0b;
  --orange: #f97316;
  --red: #ef4444;
  --shadow: 0 22px 60px rgba(180, 83, 9, 0.18);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 197, 92, 0.38), transparent 34rem),
    linear-gradient(180deg, #fffaf1 0%, #fff8ed 44%, #ffffff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(245, 158, 11, 0.28);
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.94), rgba(255, 237, 213, 0.94), rgba(255, 251, 235, 0.94));
  box-shadow: 0 12px 28px rgba(180, 83, 9, 0.12);
  backdrop-filter: blur(18px);
}

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

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

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

.brand strong,
.footer-brand {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
  background: linear-gradient(90deg, #d97706, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

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

.nav-link,
.mobile-link,
.mobile-chip,
.filter-row a,
.filter-row button {
  border: 0;
  border-radius: 14px;
  padding: 10px 16px;
  color: #4b5563;
  background: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.nav-link:hover,
.mobile-link:hover,
.mobile-chip:hover,
.filter-row a:hover,
.filter-row button:hover,
.nav-link.active,
.mobile-link.active,
.filter-row button.active {
  color: #fff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  box-shadow: 0 12px 22px rgba(249, 115, 22, 0.23);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff4df;
  color: #92400e;
}

.mobile-menu {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px 18px;
}

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

.mobile-link {
  display: block;
  margin: 8px 0;
}

.mobile-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(245, 158, 11, 0.24);
}

.mobile-chip {
  display: block;
  text-align: center;
  background: #fff7ed;
}

.hero-shell {
  max-width: 1280px;
  margin: 28px auto 36px;
  padding: 0 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.75fr);
  gap: 24px;
}

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

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(245, 158, 11, 0.42), transparent 30%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.45), rgba(17, 24, 39, 0.78));
}

.hero-copy {
  position: absolute;
  left: clamp(24px, 6vw, 72px);
  right: clamp(24px, 9vw, 120px);
  bottom: clamp(34px, 8vw, 88px);
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #ea580c;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.detail-info .eyebrow {
  color: #fed7aa;
}

.hero-copy h2,
.hero-panel h1,
.page-title h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-copy p,
.hero-panel p,
.page-title p,
.lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.8vw, 1.26rem);
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.detail-meta,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin: 24px 0;
}

.hero-tags span,
.tag-row span,
.detail-meta span,
.tag-cloud a {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

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

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

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

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

.hero-panel {
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 34px;
  padding: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 237, 213, 0.9)),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.24), transparent 14rem);
  box-shadow: var(--shadow);
}

.hero-panel h1 {
  font-size: clamp(2rem, 3.4vw, 3.9rem);
  color: #111827;
}

.hero-panel p,
.page-title p,
.lead {
  color: var(--muted);
}

.hero-search,
.local-search {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.hero-search input,
.local-search input,
.local-search select {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 18px;
  padding: 0 16px;
  color: #111827;
  background: #fff;
  outline: none;
}

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

.hero-search button {
  min-width: 88px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  cursor: pointer;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.category-pills a,
.filter-row a,
.filter-row button {
  background: #fff7ed;
  color: #92400e;
  font-weight: 750;
}

.section-wrap,
.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px;
}

.section-wrap {
  margin-bottom: 38px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
}

.hot-zone {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
  box-shadow: 0 18px 45px rgba(245, 158, 11, 0.15);
}

.featured-zone {
  background: linear-gradient(135deg, #ecfeff, #f0fdf4);
}

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

.section-head h2,
.detail-content h2,
.player-section h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-head a {
  color: #ea580c;
  font-weight: 850;
}

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

.catalog-grid,
.rank-catalog {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 42px rgba(180, 83, 9, 0.18);
}

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

.movie-card-small .poster-link {
  aspect-ratio: 16 / 9;
}

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

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

.duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 850;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(8px);
}

.duration {
  right: 10px;
  bottom: 10px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #d97706;
  font-size: 0.8rem;
  font-weight: 800;
}

.card-body h2 {
  margin: 9px 0 8px;
  color: #111827;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.35;
}

.card-body p {
  min-height: 3.4em;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.tag-row span {
  color: #92400e;
  background: #fff7ed;
}

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

.compact-card {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.06);
}

.compact-card img {
  width: 92px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
}

.compact-rank {
  position: absolute;
  left: 16px;
  top: 16px;
  color: #fff;
}

.compact-rank strong {
  display: grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  font-size: 0.82rem;
}

.compact-card b,
.compact-card em {
  display: block;
}

.compact-card b {
  color: #111827;
  font-size: 1rem;
}

.compact-card em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.page-title {
  margin: 18px 0 28px;
  border-radius: 32px;
  padding: 42px;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.22), transparent 24rem),
    linear-gradient(135deg, #fff7ed, #fff);
  box-shadow: var(--shadow);
}

.page-title h1 {
  color: #111827;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

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

.category-card a {
  display: block;
  overflow: hidden;
  border-radius: 28px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.09);
  transition: transform 0.24s ease;
}

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

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

.category-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
}

.category-card h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 1.45rem;
  font-weight: 950;
}

.category-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.category-card span {
  color: #ea580c;
  font-weight: 850;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.local-search select {
  max-width: 180px;
}

.empty-state {
  border-radius: 22px;
  padding: 32px;
  text-align: center;
  color: var(--muted);
  background: #fff;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 16px 0;
  color: #92400e;
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 30px;
  align-items: stretch;
  overflow: hidden;
  border-radius: 34px;
  padding: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 18%, rgba(245, 158, 11, 0.42), transparent 22rem),
    linear-gradient(135deg, #111827, #3b230b 52%, #111827);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  min-height: 450px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.36);
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-info h1 {
  font-size: clamp(2.2rem, 5vw, 5rem);
}

.detail-meta {
  margin: 22px 0;
}

.detail-meta span {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.detail-tags span {
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.1);
}

.detail-info .primary-btn {
  width: max-content;
  margin-top: 26px;
}

.player-section {
  margin: 28px 0;
  border-radius: 32px;
  padding: 22px;
  background: #111827;
  box-shadow: var(--shadow);
}

.player-section h2 {
  margin-bottom: 16px;
  color: #fff;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  color: #fff;
  background: #000;
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

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

.play-ring {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.play-ring span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 2rem;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.38);
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 310px;
  gap: 20px;
  margin: 28px 0;
}

.detail-content article,
.detail-content aside {
  border-radius: 26px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.08);
}

.detail-content p {
  color: var(--muted);
  line-height: 1.95;
}

.tag-cloud a {
  display: inline-flex;
  margin: 0 8px 8px 0;
  color: #92400e;
  background: #fff7ed;
}

.related-wrap {
  padding-left: 0;
  padding-right: 0;
}

.site-footer {
  margin-top: 42px;
  padding: 42px 22px 24px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

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

.site-footer h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.1rem;
}

.site-footer a {
  display: inline-block;
  margin: 0 12px 8px 0;
  color: #fbbf24;
}

.copyright {
  max-width: 1280px;
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
}

[hidden] {
  display: none !important;
}

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

  .hero-carousel {
    min-height: 540px;
  }

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

  .detail-poster img {
    max-height: 620px;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero-shell,
  .section-wrap,
  .page-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-shell {
    margin-top: 18px;
  }

  .hero-carousel {
    min-height: 500px;
  }

  .hero-panel,
  .page-title,
  .detail-hero {
    padding: 24px;
    border-radius: 26px;
  }

  .movie-grid,
  .catalog-grid,
  .rank-catalog,
  .category-grid,
  .rank-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-search,
  .local-search {
    flex-direction: column;
  }

  .local-search select {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .nav-wrap {
    padding: 0 14px;
  }

  .brand strong {
    font-size: 1.15rem;
  }

  .brand small {
    font-size: 0.68rem;
  }

  .hero-carousel {
    min-height: 460px;
    border-radius: 24px;
  }

  .hero-copy {
    left: 22px;
    right: 22px;
    bottom: 54px;
  }

  .hero-copy h2,
  .hero-panel h1,
  .page-title h1,
  .detail-info h1 {
    font-size: 2.1rem;
  }

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

  .movie-grid,
  .catalog-grid,
  .rank-catalog,
  .category-grid,
  .rank-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .compact-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .detail-poster img {
    min-height: auto;
  }

  .play-ring span {
    width: 68px;
    height: 68px;
  }
}
