:root {
  --bg: #fff7f7;
  --paper: #ffffff;
  --paper-soft: #fff1f2;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #f1d5d9;
  --rose: #e11d48;
  --rose-dark: #be123c;
  --rose-deep: #881337;
  --amber: #f59e0b;
  --shadow: 0 18px 45px rgba(136, 19, 55, 0.12);
  --shadow-soft: 0 10px 28px rgba(31, 41, 55, 0.08);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 42%, #fff7ed 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 6px 22px rgba(136, 19, 55, 0.08);
}

.header-inner {
  max-width: 1180px;
  min-height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.3);
}

.logo:hover {
  color: var(--rose);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 700;
  color: #4b5563;
}

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

.nav-desktop a:hover,
.mobile-panel a:hover {
  color: var(--rose);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff1f2;
  color: var(--rose);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 22px 18px;
  background: #ffffff;
}

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

.mobile-panel a {
  display: block;
  padding: 12px 0;
  color: #4b5563;
  font-weight: 700;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: linear-gradient(120deg, #881337, #92400e);
}

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

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

.hero-media {
  position: absolute;
  inset: 0;
}

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.54) 45%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(650px, 94%);
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 14px;
  color: #ffffff;
  background: rgba(225, 29, 72, 0.92);
  box-shadow: 0 14px 28px rgba(225, 29, 72, 0.35);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero p {
  margin: 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
}

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

.button-primary,
.button-ghost,
.button-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button-primary {
  color: #ffffff;
  background: var(--rose);
  box-shadow: 0 16px 30px rgba(225, 29, 72, 0.34);
}

.button-primary:hover {
  background: var(--rose-dark);
  transform: translateY(-2px);
}

.button-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.button-soft {
  color: var(--rose);
  background: #ffe4e6;
}

.button-soft:hover {
  color: #ffffff;
  background: var(--rose);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.04);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.main-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 68px 22px;
}

.main-section.compact {
  padding-top: 42px;
}

.band-section {
  padding: 68px 0;
  background: linear-gradient(90deg, #fffbeb 0%, #fff1f2 100%);
}

.band-section .main-section {
  padding-top: 0;
  padding-bottom: 0;
}

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

.section-title-wrap {
  min-width: 0;
}

.kicker {
  margin: 0 0 9px;
  color: var(--rose);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.section-head h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.section-head p,
.page-hero p,
.detail-title p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

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

.movie-strip {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x mandatory;
}

.movie-strip .movie-card {
  width: 280px;
  flex: 0 0 280px;
  scroll-snap-align: start;
}

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  height: 252px;
  overflow: hidden;
  background: #f3f4f6;
}

.poster-link.compact {
  height: 205px;
}

.poster-link.large {
  height: 310px;
}

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 35%, rgba(0, 0, 0, 0.62) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-link::after {
  opacity: 1;
}

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

.badge {
  top: 12px;
  right: 12px;
  min-height: 27px;
  padding: 0 11px;
  color: #ffffff;
  background: var(--rose);
}

.score-badge {
  left: 12px;
  bottom: 12px;
  min-height: 29px;
  padding: 0 12px;
  color: #fff7ed;
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(10px);
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  box-shadow: 0 12px 20px rgba(225, 29, 72, 0.34);
}

.card-body {
  padding: 18px;
}

.card-title {
  margin: 0 0 10px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card:hover .card-title {
  color: var(--rose);
}

.card-desc {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 11px;
  border-top: 1px solid #f3e3e6;
  color: #6b7280;
  font-size: 13px;
}

.meta-line strong {
  color: var(--rose);
}

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

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #9f1239;
  background: #fff1f2;
  font-size: 12px;
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: 24px;
  padding: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, #be123c, #f59e0b);
  box-shadow: var(--shadow);
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.35), transparent 34%);
}

.category-tile h2,
.category-tile h3 {
  position: relative;
  margin: 0 0 12px;
  font-size: 25px;
}

.category-tile p {
  position: relative;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.category-tile span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

.filter-panel {
  margin: 0 0 30px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 14px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #f2c4cc;
  border-radius: 13px;
  padding: 0 14px;
  color: #374151;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

.page-hero {
  padding: 64px 22px 34px;
  background: linear-gradient(135deg, #fff1f2 0%, #fffbeb 100%);
}

.page-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #9f1239;
  font-size: 14px;
  font-weight: 800;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-card,
.side-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.player-box video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-box video {
  object-fit: contain;
  background: #000000;
  z-index: 1;
}

.player-cover {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.46);
}

.play-button {
  position: absolute;
  z-index: 3;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(225, 29, 72, 0.94);
  box-shadow: 0 20px 42px rgba(225, 29, 72, 0.42);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.play-button:hover {
  transform: scale(1.06);
  background: var(--rose-dark);
}

.player-caption {
  padding: 22px;
}

.player-caption h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.player-caption p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.detail-card {
  padding: 28px;
  margin-top: 28px;
}

.detail-card h2 {
  margin: 0 0 14px;
  font-size: 25px;
}

.detail-card p {
  color: #374151;
  line-height: 1.92;
  margin: 0 0 18px;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.fact {
  border: 1px solid #f5d3d9;
  border-radius: 16px;
  padding: 13px 14px;
  background: #fff7f7;
}

.fact span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.fact strong {
  color: #111827;
}

.side-card {
  padding: 22px;
}

.side-card h2,
.side-card h3 {
  margin: 0 0 18px;
  font-size: 22px;
}

.related-list {
  display: grid;
  gap: 14px;
}

.related-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 13px;
  align-items: center;
  border-radius: 16px;
  padding: 9px;
  background: #fff7f7;
  transition: transform 0.2s ease, background 0.2s ease;
}

.related-item:hover {
  transform: translateX(4px);
  background: #ffe4e6;
}

.related-item img {
  width: 82px;
  height: 102px;
  object-fit: cover;
  border-radius: 12px;
}

.related-item strong {
  display: block;
  margin-bottom: 6px;
  color: #111827;
  line-height: 1.4;
}

.related-item span {
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  display: none;
  padding: 32px;
  text-align: center;
  color: var(--muted);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.empty-state.is-visible {
  display: block;
}

.site-footer {
  margin-top: 50px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fff7f7, #f9fafb);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 22px 30px;
}

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

.footer-grid h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-grid p,
.footer-grid a {
  color: #6b7280;
  line-height: 1.8;
  font-size: 14px;
}

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

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid #ead2d6;
  color: #6b7280;
  text-align: center;
  font-size: 14px;
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

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

@media (max-width: 640px) {
  .header-inner {
    min-height: 62px;
    padding: 0 16px;
  }

  .logo {
    font-size: 18px;
  }

  .hero {
    height: 640px;
    min-height: 640px;
  }

  .hero-content {
    padding: 0 18px;
  }

  .hero-control {
    display: none;
  }

  .main-section {
    padding: 46px 16px;
  }

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

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

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

  .poster-link.large,
  .poster-link {
    height: 280px;
  }

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