* {
  box-sizing: border-box;
}

:root {
  --rose: #e11d48;
  --rose-dark: #be123c;
  --amber: #d97706;
  --emerald: #059669;
  --ink: #111827;
  --muted: #6b7280;
  --line: #ffe4e6;
  --soft: #fff1f2;
  --panel: #ffffff;
  --shadow: 0 22px 55px rgba(17, 24, 39, 0.13);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(244, 63, 94, 0.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 34rem),
    linear-gradient(180deg, #fff7f8 0%, #ffffff 45%, #fffaf0 100%);
}

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

img {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #fff1f2, #fef3c7, #ecfdf5);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(190, 18, 60, 0.08);
}

.header-inner {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 16px;
  background: linear-gradient(135deg, var(--rose), var(--amber), var(--emerald));
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.25);
}

.brand-text {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--rose), var(--amber), var(--emerald));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  color: #374151;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose-dark);
  background: #fff1f2;
}

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

.header-search input,
.mobile-search input,
.page-filter input {
  border: 1px solid #fecdd3;
  outline: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  min-width: 220px;
  background: #ffffff;
  transition: all 0.2s ease;
}

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

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

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  border: 0;
  border-radius: 14px;
  background: #fff1f2;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 4px;
  background: #991b1b;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 14px 24px 20px;
}

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

.mobile-links {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff1f2;
  font-weight: 800;
  color: #9f1239;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  display: none;
  min-height: 680px;
  position: relative;
}

.hero-slide.active {
  display: block;
}

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

.hero-bg img {
  height: 100%;
  object-fit: cover;
  filter: blur(4px) saturate(1.12);
  transform: scale(1.04);
  opacity: 0.72;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.68), rgba(17, 24, 39, 0.34)),
    radial-gradient(circle at 18% 20%, rgba(225, 29, 72, 0.45), transparent 26rem),
    radial-gradient(circle at 82% 18%, rgba(217, 119, 6, 0.38), transparent 24rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 680px;
  margin: 0 auto;
  padding: 92px 24px 120px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 390px;
  align-items: center;
  gap: 48px;
}

.hero-kicker,
.kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #be123c;
  background: #fff1f2;
}

.hero-kicker {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero h1 {
  max-width: 820px;
  margin: 24px 0 18px;
  color: #ffffff;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.hero p {
  max-width: 760px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.9;
}

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

.hero-tags span,
.tag-row span {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #9f1239;
  background: #fff1f2;
}

.hero .hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: all 0.22s ease;
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--amber));
  box-shadow: 0 16px 34px rgba(225, 29, 72, 0.28);
}

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

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

.hero-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.45);
}

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

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 74px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.hero-category-strip {
  position: absolute;
  left: 50%;
  bottom: 76px;
  z-index: 4;
  max-width: 1180px;
  width: calc(100% - 48px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.hero-category-strip span,
.hero-category-strip a {
  flex: 0 0 auto;
  color: #ffffff;
  font-weight: 900;
}

.hero-category-strip a {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.content-section,
.plain-main,
.detail-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.wide-section {
  padding-top: 64px;
}

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

.section-head h2,
.page-hero h1,
.detail-info h1 {
  margin: 10px 0 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, var(--rose), var(--amber), var(--emerald));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.section-link {
  min-width: max-content;
  padding: 10px 14px;
  border-radius: 999px;
  color: #be123c;
  background: #fff1f2;
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 26px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.09);
  transition: all 0.24s ease;
}

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

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

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

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

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.82);
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  opacity: 0;
  transition: all 0.24s ease;
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.24s ease;
}

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

.movie-card:hover .play-dot {
  transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  min-width: 36px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.card-body {
  padding: 18px;
}

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

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

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
}

.card-meta span {
  padding: 6px 8px;
  border-radius: 999px;
  background: #f9fafb;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 28px;
  color: #ffffff;
  background: #111827;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.16);
}

.category-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  transition: transform 0.45s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.86));
}

.category-card span,
.category-card p,
.category-card small {
  position: relative;
  z-index: 2;
}

.category-card span {
  font-size: 24px;
  font-weight: 900;
}

.category-card p,
.category-card small {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.category-card.tall {
  min-height: 310px;
}

.page-hero {
  margin-top: 42px;
  padding: 56px;
  border-radius: 36px;
  background:
    radial-gradient(circle at top left, rgba(225, 29, 72, 0.15), transparent 24rem),
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.14), transparent 24rem),
    #ffffff;
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.08);
}

.page-filter {
  margin-top: 24px;
}

.page-filter input {
  width: min(100%, 620px);
  font-size: 16px;
}

.empty-state {
  display: none;
  margin: 36px 0;
  padding: 28px;
  border-radius: 24px;
  text-align: center;
  color: #9f1239;
  background: #fff1f2;
  font-weight: 900;
}

.empty-state.show {
  display: block;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 34px 0 20px;
  color: var(--muted);
  font-weight: 800;
}

.breadcrumb a {
  color: #be123c;
}

.detail-hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border-radius: 36px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  box-shadow: 0 22px 48px rgba(17, 24, 39, 0.14);
}

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

.detail-one-line {
  margin: 18px 0;
  color: #374151;
  font-size: 18px;
  line-height: 1.8;
}

.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.detail-facts span {
  padding: 10px 12px;
  border-radius: 14px;
  color: #374151;
  background: #f9fafb;
  font-weight: 800;
}

.player-section {
  margin-top: 34px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #111827;
  box-shadow: 0 26px 68px rgba(17, 24, 39, 0.22);
}

.video-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.42);
  cursor: pointer;
}

.play-layer.hidden {
  display: none;
}

.play-layer span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--amber));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
  font-size: 30px;
}

.detail-content {
  margin-top: 34px;
  padding: 38px;
  border-radius: 32px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.08);
}

.detail-content h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.detail-content p {
  margin: 0 0 26px;
  color: #374151;
  font-size: 17px;
  line-height: 2;
}

.related-section {
  padding-left: 0;
  padding-right: 0;
  margin-top: 48px;
}

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

.mini-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
}

.mini-card a {
  display: block;
}

.mini-card img {
  height: 160px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.mini-card span {
  display: block;
  padding: 14px;
  font-weight: 900;
  line-height: 1.4;
}

.site-footer {
  margin-top: 78px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #1f2937 52%, #111827);
}

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

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
}

.site-footer h2 {
  font-size: 28px;
  background: linear-gradient(90deg, #fb7185, #fbbf24, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-footer p,
.site-footer a {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

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

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

  .menu-toggle {
    display: block;
  }

  .header-search {
    margin-left: auto;
  }

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

  .hero-poster {
    display: none;
  }

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

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

  .detail-hero {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: auto;
    min-height: 64px;
    padding: 12px 16px;
  }

  .brand-text {
    font-size: 20px;
  }

  .header-search {
    display: none;
  }

  .mobile-search input {
    min-width: 0;
    width: 100%;
  }

  .hero,
  .hero-slide,
  .hero-content {
    min-height: 620px;
  }

  .hero-content {
    padding: 72px 18px 132px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-category-strip {
    bottom: 74px;
    width: calc(100% - 24px);
  }

  .content-section,
  .plain-main,
  .detail-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-head {
    display: block;
  }

  .section-link {
    display: inline-flex;
    margin-top: 16px;
  }

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

  .page-hero {
    padding: 30px 20px;
    border-radius: 28px;
  }

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

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

  .detail-content {
    padding: 24px;
  }

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