:root {
  --bg: #fff7f8;
  --surface: #ffffff;
  --ink: #15141a;
  --muted: #686274;
  --soft: #f9e8ec;
  --brand: #e11d48;
  --brand-dark: #9f1239;
  --gold: #f59e0b;
  --shadow: 0 24px 60px rgba(63, 20, 34, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #fff1f4 0%, #ffffff 42%, #fff7ed 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(225, 29, 72, 0.12);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 76px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), #fb7185 48%, var(--gold));
  box-shadow: 0 16px 28px rgba(225, 29, 72, 0.24);
}

.logo-text {
  background: linear-gradient(135deg, #171717, var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #4b4654;
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand);
  background: rgba(225, 29, 72, 0.08);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--soft);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--brand);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 24px 18px;
  flex-direction: column;
  gap: 8px;
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #12070d;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 24%, rgba(244, 63, 94, 0.38), transparent 36%),
    linear-gradient(90deg, rgba(10, 5, 10, 0.88), rgba(10, 5, 10, 0.44) 52%, rgba(10, 5, 10, 0.72)),
    linear-gradient(0deg, rgba(10, 5, 10, 0.86), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 116px 24px 96px;
  color: #ffffff;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 760px;
  margin: 18px 0 18px;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(225, 29, 72, 0.14);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.primary-btn,
.ghost-btn,
.section-link,
.home-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn,
.home-search button {
  min-height: 48px;
  padding: 0 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), #fb7185);
  box-shadow: 0 18px 34px rgba(225, 29, 72, 0.28);
}

.ghost-btn {
  min-height: 48px;
  padding: 0 24px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.home-search button:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.hero-prev {
  left: 28px;
}

.hero-next {
  right: 28px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 4;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.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: 34px;
  background: #ffffff;
}

.quick-search-panel,
.section-block,
.category-band,
.category-chip-section,
.category-preview,
.page-hero,
.detail-main,
.page-main {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.quick-search-panel {
  margin-top: -44px;
  position: relative;
  z-index: 5;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 24px;
  align-items: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search-panel h2,
.section-heading h2,
.page-hero h1,
.category-preview h2 {
  margin: 8px 0 0;
  color: #17121a;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.quick-search-panel p,
.page-hero p,
.category-preview p {
  color: var(--muted);
  line-height: 1.8;
}

.home-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.home-search input,
.search-box input,
.select-box select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(225, 29, 72, 0.18);
  border-radius: 999px;
  outline: none;
}

.home-search input:focus,
.search-box input:focus,
.select-box select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.10);
}

.section-block,
.category-band,
.category-preview,
.category-chip-section,
.page-hero {
  padding: 72px 24px 0;
}

.tight-section {
  padding-top: 34px;
}

.section-heading,
.category-preview-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading.light h2,
.section-heading.light .section-kicker {
  color: #ffffff;
}

.section-link {
  min-height: 42px;
  padding: 0 18px;
  color: var(--brand);
  background: rgba(225, 29, 72, 0.08);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(225, 29, 72, 0.10);
  box-shadow: 0 18px 36px rgba(63, 20, 34, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(63, 20, 34, 0.18);
}

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.72));
}

.play-chip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  color: #ffffff;
  background: rgba(225, 29, 72, 0.92);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--gold), var(--brand));
  border-radius: 12px;
  font-weight: 900;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.22);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 9px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--brand);
}

.movie-card p {
  margin: 0 0 12px;
  min-height: 48px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.tag-row span {
  background: #fff1f2;
}

.category-band {
  max-width: none;
  margin-top: 72px;
  padding-bottom: 72px;
  background:
    radial-gradient(circle at 10% 20%, rgba(251, 191, 36, 0.24), transparent 25%),
    linear-gradient(135deg, #9f1239, #e11d48 48%, #f97316);
}

.category-band > * {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

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

.category-chip {
  display: block;
  min-height: 116px;
  padding: 20px;
  border-radius: 22px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.category-chip:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.22);
}

.category-chip span {
  display: block;
  margin-bottom: 8px;
  font-size: 21px;
  font-weight: 900;
}

.category-chip small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 220px);
  gap: 18px;
  overflow-x: auto;
  padding: 6px 2px 22px;
  scroll-snap-type: x proximity;
}

.scroll-row .movie-card {
  scroll-snap-align: start;
}

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

.page-main,
.detail-main {
  padding-bottom: 80px;
}

.page-hero {
  padding-top: 70px;
}

.page-hero > div {
  padding: 42px;
  border-radius: 30px;
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 22%, rgba(251, 191, 36, 0.32), transparent 24%),
    linear-gradient(135deg, #210914, #9f1239 58%, #f97316);
  box-shadow: var(--shadow);
}

.page-hero .section-kicker,
.page-hero p {
  color: rgba(255, 255, 255, 0.86);
}

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

.filter-bar {
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(160px, 220px) minmax(160px, 220px);
  gap: 14px;
}

.search-box,
.select-box {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.category-preview {
  padding-top: 58px;
}

.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: var(--brand);
}

.detail-hero {
  max-width: 1280px;
  margin: 26px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 26px;
  align-items: stretch;
}

.player-card,
.detail-info,
.detail-text-card {
  border: 1px solid rgba(225, 29, 72, 0.10);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.player-card {
  padding: 14px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: #0f080d;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  border: 0;
  background: radial-gradient(circle at 50% 45%, rgba(225, 29, 72, 0.42), rgba(0, 0, 0, 0.64));
  cursor: pointer;
}

.player-overlay[hidden] {
  display: none;
}

.play-round {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  color: var(--brand);
  background: #ffffff;
  border-radius: 999px;
  font-size: 34px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
}

.detail-info {
  padding: 30px;
}

.detail-info h1 {
  margin: 14px 0 14px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.detail-one-line {
  color: var(--muted);
  line-height: 1.8;
}

.detail-tags span {
  background: #fff1f2;
}

.full-btn {
  width: 100%;
  margin-top: 28px;
}

.detail-text-card {
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 34px;
}

.detail-text-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.detail-text-card p {
  margin: 0;
  color: #37313e;
  font-size: 17px;
  line-height: 2;
}

.related-section {
  padding-top: 42px;
}

.site-footer {
  margin-top: 72px;
  color: rgba(255, 255, 255, 0.78);
  background: #12070d;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 0.6fr;
  gap: 32px;
}

.footer-logo {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

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

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

.site-footer a:hover {
  color: #fb7185;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 14px;
}

.movie-card.is-hidden {
  display: none;
}

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

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

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

  .menu-toggle {
    display: block;
  }

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

  .hero {
    min-height: 76vh;
  }

  .hero-content {
    padding-top: 92px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-search-panel,
  .detail-hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .section-heading,
  .category-preview-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .detail-info {
    order: -1;
  }
}

@media (max-width: 520px) {
  .header-inner {
    padding: 0 16px;
  }

  .logo-text {
    font-size: 19px;
  }

  .hero-content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .quick-search-panel,
  .section-block,
  .category-preview,
  .category-chip-section,
  .page-hero,
  .detail-hero,
  .breadcrumb,
  .filter-bar {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .movie-card p {
    display: none;
  }

  .page-hero > div,
  .detail-info,
  .detail-text-card {
    padding: 24px;
    border-radius: 24px;
  }

  .scroll-row {
    grid-auto-columns: minmax(160px, 78vw);
  }
}
