* {
  box-sizing: border-box;
}

:root {
  --rose: #f43f5e;
  --pink: #ec4899;
  --dark: #15111f;
  --ink: #272133;
  --muted: #6b6475;
  --line: #ece7f1;
  --soft: #fff5f8;
  --paper: #ffffff;
  --shadow: 0 20px 50px rgba(28, 16, 35, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fff;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f7eef3;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(236, 231, 241, 0.9);
  box-shadow: 0 10px 30px rgba(30, 15, 38, 0.06);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 12px 26px rgba(244, 63, 94, 0.28);
}

.brand-text strong,
.footer-brand strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  color: transparent;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-text small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-link {
  font-weight: 700;
  color: #50485c;
  transition: color 0.2s ease;
}

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-panel input,
.filter-bar input,
.filter-bar select {
  height: 42px;
  border-radius: 999px;
  border: 1px solid #ded5e7;
  padding: 0 16px;
  outline: none;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-panel input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.header-search button,
.mobile-panel button {
  height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  cursor: pointer;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--pink), var(--rose));
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: var(--ink);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.mobile-panel nav {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.mobile-panel form {
  display: flex;
  gap: 10px;
}

.mobile-panel input {
  flex: 1;
}

.hero-section {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 24px;
  min-height: 620px;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #1d1225, #f43f5e);
}

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

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

.hero-slide img {
  position: absolute;
  inset: 0;
  opacity: 0.72;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(90deg, rgba(15, 10, 22, 0.92), rgba(15, 10, 22, 0.54), rgba(244, 63, 94, 0.25)),
    linear-gradient(0deg, rgba(15, 10, 22, 0.88), transparent 60%);
}

.hero-copy {
  position: absolute;
  z-index: 2;
  left: clamp(28px, 6vw, 70px);
  bottom: clamp(36px, 8vw, 82px);
  max-width: 720px;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 12px;
  background: linear-gradient(90deg, var(--pink), var(--rose));
}

.hero-copy h1,
.page-hero h1,
.detail-intro h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.75;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span,
.chip-row a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

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

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

.primary-button {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  box-shadow: 0 16px 32px rgba(244, 63, 94, 0.32);
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.ghost-button.dark {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

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

.hero-controls {
  position: absolute;
  left: clamp(28px, 6vw, 70px);
  bottom: 28px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-controls button {
  width: 32px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.4);
}

.hero-controls button.is-active {
  background: #fff;
}

.hero-panel {
  border-radius: 34px;
  padding: 28px;
  background: linear-gradient(180deg, #fff, #fff6fa);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.panel-title span,
.section-heading span {
  color: var(--rose);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.panel-title h2,
.section-heading h2 {
  margin: 6px 0 0;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.hero-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.mini-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.section-block {
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto;
}

.soft-bg {
  border-radius: 34px;
  padding: 32px;
  background: linear-gradient(180deg, #fff5f8, #ffffff);
}

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

.section-heading a {
  color: var(--rose);
  font-weight: 900;
}

.category-strip {
  padding: 32px;
  border-radius: 32px;
  background: #1b1423;
  color: #fff;
  box-shadow: var(--shadow);
}

.category-strip .section-heading h2 {
  color: #fff;
}

.chip-row a {
  min-height: 42px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(30, 15, 38, 0.08);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 56px rgba(30, 15, 38, 0.16);
}

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

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

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

.card-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 12px 22px rgba(244, 63, 94, 0.3);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #111827, var(--rose));
  box-shadow: 0 12px 22px rgba(17, 24, 39, 0.28);
}

.card-body {
  padding: 16px;
}

.card-meta,
.score-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
}

.card-body h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--rose);
}

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

.tag-row span {
  color: var(--rose);
  background: #fff0f4;
}

.score-line {
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.score-line strong {
  color: var(--rose);
  font-size: 16px;
}

.compact-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  border-radius: 20px;
}

.compact-card .poster-link {
  aspect-ratio: auto;
  min-height: 130px;
}

.compact-card .card-body p,
.compact-card .tag-row,
.compact-card .score-line {
  display: none;
}

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

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  border-radius: 34px;
  padding: clamp(34px, 6vw, 70px);
  background:
    radial-gradient(circle at 85% 12%, rgba(244, 63, 94, 0.22), transparent 28%),
    linear-gradient(135deg, #1a1223, #321d3d 55%, #f43f5e);
  color: #fff;
  box-shadow: var(--shadow);
}

.small-hero h1 {
  max-width: 880px;
  font-size: clamp(36px, 5vw, 58px);
}

.small-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 18px;
}

.breadcrumb a:hover {
  color: #fff;
}

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

.category-card {
  border-radius: 28px;
  padding: 28px;
  background: linear-gradient(180deg, #fff, #fff6fa);
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(30, 15, 38, 0.08);
}

.category-card span {
  color: var(--rose);
  font-weight: 900;
}

.category-card h2 {
  margin: 12px 0;
  font-size: 30px;
}

.category-card p {
  color: var(--muted);
  line-height: 1.8;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.category-samples a {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--rose);
  background: #fff0f4;
  font-size: 13px;
  font-weight: 700;
}

.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.filter-bar input {
  flex: 1;
}

.filter-bar select {
  min-width: 150px;
}

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 34px;
  padding: 34px;
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.18), transparent 25%),
    linear-gradient(135deg, #19111f, #2e1b39 55%, #f43f5e);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

.detail-intro .breadcrumb {
  margin: 0 0 26px;
}

.detail-intro .lead {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.85;
  font-size: 19px;
}

.detail-tags span {
  background: rgba(255, 255, 255, 0.14);
}

.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto;
}

.player-section h2,
.detail-content h2 {
  font-size: 30px;
  margin: 0 0 18px;
}

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

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #09070d;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgba(9, 7, 13, 0.54), rgba(9, 7, 13, 0.18));
}

.player-overlay span {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 20px 42px rgba(244, 63, 94, 0.38);
}

.player-overlay.is-hidden {
  display: none;
}

.detail-content {
  border-radius: 30px;
  padding: 34px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 42px rgba(30, 15, 38, 0.08);
}

.detail-content p {
  color: #50485c;
  line-height: 1.95;
  font-size: 17px;
}

.info-table {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.info-table div {
  border-radius: 18px;
  padding: 16px;
  background: #fff5f8;
}

.info-table span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.info-table strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
}

.site-footer {
  margin-top: 56px;
  padding: 48px 0;
  color: #d8cfdf;
  background: #17111f;
}

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

.footer-brand p {
  margin: 8px 0 0;
  color: #a79bb0;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 26px 0;
  margin: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links a {
  color: #d8cfdf;
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  margin: 0;
  color: #a79bb0;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .header-search {
    display: none;
  }

  .hero-section {
    grid-template-columns: 1fr;
  }

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

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

  .menu-button {
    display: block;
    margin-left: auto;
  }

  .header-inner {
    height: 70px;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .hero-carousel,
  .hero-section {
    min-height: 560px;
  }

  .hero-copy p {
    font-size: 17px;
  }

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

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

  .detail-poster {
    max-width: 360px;
  }

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

@media (max-width: 560px) {
  .hero-section,
  .section-block,
  .player-section,
  .detail-hero,
  .page-hero {
    width: min(100% - 22px, 1180px);
  }

  .hero-carousel,
  .hero-section {
    min-height: 520px;
  }

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

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

  .hero-controls {
    left: 22px;
  }

  .soft-bg,
  .category-strip,
  .detail-content,
  .detail-hero,
  .page-hero {
    padding: 22px;
    border-radius: 24px;
  }

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

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

  .filter-bar,
  .mobile-panel form {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar select,
  .filter-bar input {
    width: 100%;
  }

  .info-table {
    grid-template-columns: 1fr;
  }
}
