:root {
  --bg: #fff7ed;
  --bg-soft: #fff1f2;
  --card: rgba(255, 255, 255, 0.88);
  --card-strong: #ffffff;
  --text: #2f241f;
  --muted: #7c6f64;
  --line: rgba(180, 83, 9, 0.16);
  --amber: #d97706;
  --amber-deep: #92400e;
  --rose: #e11d48;
  --rose-soft: #fb7185;
  --shadow: 0 18px 55px rgba(120, 53, 15, 0.13);
  --shadow-strong: 0 26px 80px rgba(120, 53, 15, 0.2);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.28), transparent 34rem),
    radial-gradient(circle at top right, rgba(244, 63, 94, 0.20), transparent 30rem),
    linear-gradient(135deg, #fff7ed 0%, #fff1f2 50%, #fffbeb 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
}

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

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: white;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #fb7185, #fbbf24);
  box-shadow: 0 14px 28px rgba(225, 29, 72, 0.2);
}

.brand-text,
.hero-title,
.footer-logo {
  background: linear-gradient(90deg, var(--amber), var(--rose), #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--amber-deep);
  font-weight: 700;
  font-size: 14px;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(251, 191, 36, 0.22);
  color: var(--rose);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 13px;
  color: var(--amber-deep);
  background: rgba(251, 191, 36, 0.18);
  font-size: 22px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 42px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 24px 0 auto 0;
  height: 380px;
  background: linear-gradient(125deg, rgba(245, 158, 11, 0.20), rgba(225, 29, 72, 0.15), rgba(255, 255, 255, 0.12));
  filter: blur(12px);
  pointer-events: none;
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 34px;
  align-items: center;
}

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

.section-kicker,
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 10px 26px rgba(225, 29, 72, 0.1);
  font-weight: 800;
  font-size: 13px;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.hero-subtitle {
  max-width: 720px;
  margin: 0 0 26px;
  color: #5f5248;
  font-size: clamp(18px, 2.2vw, 25px);
}

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

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

.btn-primary {
  color: white;
  background: linear-gradient(135deg, #f59e0b, #e11d48);
  box-shadow: 0 16px 36px rgba(225, 29, 72, 0.22);
}

.btn-secondary,
.btn-ghost {
  color: var(--amber-deep);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

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

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

.hero-stat {
  min-width: 126px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(120, 53, 15, 0.1);
}

.hero-stat strong {
  display: block;
  color: var(--rose);
  font-size: 20px;
}

.hero-slider {
  position: relative;
  z-index: 2;
  min-height: 570px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border-radius: 34px;
  background: #1f160f;
  box-shadow: var(--shadow-strong);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: 0.55s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 385px;
  object-fit: cover;
  filter: saturate(1.1);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(31, 22, 15, 0.86));
}

.hero-slide-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 32px;
  color: white;
}

.hero-slide-text h2 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.15;
}

.hero-slide-text p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
}

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

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

.hero-dot.is-active {
  width: 28px;
  background: white;
}

.section {
  padding: 36px 0;
}

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

.section-head h2,
.filter-panel h1,
.detail-title,
.categories-title {
  margin: 0;
  color: #2b201c;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-head p,
.filter-panel p,
.category-card p,
.detail-intro p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 12px 35px rgba(120, 53, 15, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(225, 29, 72, 0.24));
}

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

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

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

.poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(32, 20, 14, 0.74));
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.play-chip {
  left: 16px;
  bottom: 16px;
  padding: 8px 13px;
  color: white;
  background: rgba(225, 29, 72, 0.88);
}

.rank-badge {
  top: 14px;
  left: 14px;
  padding: 7px 12px;
  color: #7c2d12;
  background: rgba(255, 255, 255, 0.88);
}

.movie-body {
  padding: 18px;
}

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--amber-deep);
  font-size: 13px;
  font-weight: 800;
}

.movie-meta span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.18);
  padding: 4px 9px;
}

.movie-body h3 {
  margin: 12px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.movie-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
  color: #9f1239;
  font-size: 12px;
  font-weight: 800;
}

.tag-row span {
  background: rgba(244, 63, 94, 0.12);
}

.filter-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 480px);
  gap: 22px;
  align-items: end;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.filter-controls {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
}

.filter-controls label {
  display: grid;
  gap: 6px;
  color: var(--amber-deep);
  font-size: 13px;
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
}

.categories-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.23), rgba(225, 29, 72, 0.16));
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.category-card strong {
  display: block;
  margin: 18px 0;
  color: var(--rose);
  font-size: 24px;
}

.detail-hero {
  padding: 38px 0 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 30px;
  align-items: start;
}

.player-card,
.detail-info,
.content-card {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #1f160f;
}

.player-shell video,
.player-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-shell video {
  display: none;
  background: #000000;
}

.player-shell.is-playing video {
  display: block;
}

.player-shell.is-playing .player-poster,
.player-shell.is-playing .play-overlay {
  display: none;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.52));
}

.play-button {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #f59e0b, #e11d48);
  box-shadow: 0 18px 38px rgba(225, 29, 72, 0.35);
  font-size: 32px;
  cursor: pointer;
}

.player-message {
  padding: 12px 18px 18px;
  color: var(--muted);
  font-size: 14px;
}

.detail-info {
  padding: 26px;
}

.detail-title {
  margin: 14px 0 16px;
}

.detail-cover {
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: 24px;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(225, 29, 72, 0.2));
}

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

.content-card {
  margin-top: 24px;
  padding: 30px;
}

.content-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.content-card p {
  margin: 0 0 16px;
  color: #4b4038;
  font-size: 17px;
}

.breadcrumb {
  margin-bottom: 16px;
  color: var(--amber-deep);
  font-size: 14px;
  font-weight: 800;
}

.site-footer {
  margin-top: 56px;
  padding: 44px 0;
  color: #fff7ed;
  background: linear-gradient(135deg, #92400e, #9f1239, #78350f);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 26px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 26px;
  font-weight: 950;
  filter: brightness(1.35);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: rgba(255, 247, 237, 0.82);
}

.footer-links a:hover {
  color: white;
}

.no-results {
  display: none;
  grid-column: 1 / -1;
  padding: 24px;
  border-radius: 20px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.sitemap-list {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto;
  columns: 4 220px;
  column-gap: 28px;
}

.sitemap-list a {
  display: block;
  break-inside: avoid;
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--amber-deep);
  background: rgba(255, 255, 255, 0.7);
}

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

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

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

  .categories-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .site-nav {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 247, 237, 0.96);
    box-shadow: var(--shadow);
  }

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

  .hero {
    padding-top: 44px;
  }

  .hero-slider {
    min-height: 430px;
  }

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

  .movie-grid,
  .categories-grid,
  .footer-grid,
  .filter-controls {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 520px) {
  .container,
  .filter-panel,
  .categories-grid,
  .sitemap-list {
    width: min(100% - 22px, 1180px);
  }

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

  .movie-grid {
    gap: 16px;
  }

  .filter-panel,
  .content-card,
  .detail-info {
    padding: 20px;
    border-radius: 22px;
  }
}
