:root {
  --pink-50: #fff1f6;
  --pink-100: #ffe4ef;
  --pink-200: #ffc7dc;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --violet-600: #7c3aed;
  --text: #23212a;
  --muted: #6b6472;
  --line: rgba(236, 72, 153, 0.18);
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 24px 80px rgba(167, 38, 103, 0.18);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 4%, rgba(244, 63, 94, 0.16), transparent 26rem),
    radial-gradient(circle at 88% 12%, rgba(124, 58, 237, 0.12), transparent 24rem),
    linear-gradient(180deg, #fff7fb 0%, #ffffff 48%, #fff1f6 100%);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--pink-600), var(--rose-500), var(--violet-600));
  box-shadow: 0 18px 50px rgba(219, 39, 119, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--pink-600);
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.35);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  flex: 1;
}

.main-nav a {
  padding: 8px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: #fff;
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 310px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  backdrop-filter: blur(14px);
}

.header-search input {
  min-width: 0;
  flex: 1;
  color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 8px 10px;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.header-search button,
.big-search button {
  border: 0;
  color: var(--pink-600);
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  gap: 10px;
  flex-wrap: wrap;
}

.mobile-panel a {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
}

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

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

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 6, 23, 0.92) 0%, rgba(54, 13, 47, 0.72) 38%, rgba(244, 63, 94, 0.16) 100%),
    linear-gradient(0deg, rgba(19, 8, 21, 0.92), rgba(19, 8, 21, 0.08) 58%, rgba(19, 8, 21, 0.45));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 138px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--pink-500);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-shadow: 0 16px 54px rgba(0, 0, 0, 0.45);
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  color: #8f194d;
  background: rgba(255, 228, 239, 0.96);
  border: 1px solid rgba(236, 72, 153, 0.22);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

.hero-content .tag-row span {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

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

.btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

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

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

.btn.soft,
.section-link {
  color: var(--pink-600);
  background: var(--pink-100);
}

.hero-bottom {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 680px;
  padding-bottom: 36px;
  pointer-events: none;
}

.hero-dots,
.hero-mini {
  display: flex;
  gap: 12px;
  pointer-events: auto;
}

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

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

.hero-mini {
  max-width: 620px;
}

.hero-mini-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 12px;
  width: 145px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 8px;
  backdrop-filter: blur(12px);
}

.hero-mini-card img {
  width: 82px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-mini-card span {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}

.content-section {
  padding: 72px 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-title-row h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

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

.movie-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(167, 38, 103, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink-100), #fff);
}

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

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.play-chip {
  right: 12px;
  bottom: 12px;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  padding: 7px 12px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: rgba(17, 17, 17, 0.72);
  backdrop-filter: blur(8px);
}

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

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

.movie-card h2 a:hover {
  color: var(--pink-600);
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #8a506a;
  font-size: 12px;
  font-weight: 800;
}

.movie-meta span {
  background: var(--pink-50);
  border-radius: 999px;
  padding: 5px 8px;
}

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

.category-card {
  display: block;
  overflow: hidden;
  background: linear-gradient(180deg, #fff, #fff6fa);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 16px;
  box-shadow: 0 18px 56px rgba(167, 38, 103, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-cover {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 8px;
  height: 170px;
  margin-bottom: 16px;
}

.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.category-cover img:first-child {
  grid-row: span 2;
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.category-card p {
  min-height: 52px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

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

.page-hero {
  padding: 90px 0 52px;
  background:
    radial-gradient(circle at 80% 0%, rgba(124, 58, 237, 0.16), transparent 30rem),
    linear-gradient(135deg, #fff, var(--pink-50));
  border-bottom: 1px solid var(--line);
}

.page-hero.compact p:not(.eyebrow) {
  max-width: 820px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-note {
  font-size: 15px !important;
  color: #9b5b75 !important;
}

.big-search {
  display: flex;
  width: min(720px, 100%);
  margin-top: 28px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 16px 48px rgba(167, 38, 103, 0.12);
}

.big-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 12px 18px;
}

.big-search button {
  color: #fff;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
}

.inline-search {
  width: min(320px, 100%);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  padding: 13px 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(167, 38, 103, 0.08);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -8px 0 28px;
}

.filter-bar button {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #8f194d;
  background: #fff;
  padding: 9px 16px;
  cursor: pointer;
  font-weight: 800;
}

.filter-bar button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
  border-color: transparent;
}

.detail-layout {
  padding: 42px 0 80px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
  color: #8d4968;
  font-size: 14px;
  font-weight: 800;
}

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

.watch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.watch-main,
.detail-side > * {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 18px 52px rgba(167, 38, 103, 0.1);
}

.watch-main {
  overflow: hidden;
}

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

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #050306;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(5, 3, 6, 0.2), rgba(5, 3, 6, 0.72));
  cursor: pointer;
}

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

.play-large {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  color: var(--pink-600);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  font-size: 32px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding: 28px 28px 0;
}

.detail-copy {
  padding: 0 28px 32px;
}

.detail-copy h2 {
  margin: 28px 0 10px;
  font-size: 22px;
}

.detail-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 2;
}

.watch-main > .tag-row {
  padding: 0 28px;
}

.detail-side {
  display: grid;
  gap: 20px;
}

.poster-panel {
  overflow: hidden;
}

.poster-panel img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.poster-panel div {
  padding: 18px;
}

.poster-panel h2,
.side-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.poster-panel p {
  margin: 0;
  color: var(--muted);
}

.side-card {
  padding: 18px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.related-item:hover {
  background: var(--pink-50);
}

.related-item img {
  grid-row: span 2;
  width: 86px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.related-item span {
  font-weight: 900;
  line-height: 1.4;
}

.related-item small {
  color: var(--muted);
}

.site-footer {
  padding: 56px 0 0;
  background: linear-gradient(180deg, #fff, var(--pink-100));
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 1fr;
  gap: 32px;
}

.footer-brand {
  color: var(--text);
  margin-bottom: 14px;
}

.footer-brand .brand-mark {
  color: #fff;
  background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  line-height: 1.8;
}

.site-footer a:hover {
  color: var(--pink-600);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.copyright {
  margin-top: 44px;
  padding: 18px;
  text-align: center;
  color: #915b73;
  border-top: 1px solid rgba(236, 72, 153, 0.14);
}

[data-card].is-hidden {
  display: none;
}

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

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

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

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

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

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

  .detail-side {
    grid-template-columns: 280px 1fr;
  }
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 64px;
  }

  .brand {
    font-size: 20px;
  }

  .header-search {
    display: none;
  }

  .hero-carousel,
  .hero-bottom {
    min-height: 620px;
  }

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

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

  .hero-bottom {
    display: block;
    padding-top: 510px;
  }

  .hero-mini {
    display: none;
  }

  .content-section {
    padding: 52px 0;
  }

  .section-heading {
    display: grid;
  }

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

@media (max-width: 560px) {
  .container,
  .mobile-panel,
  .hero-content {
    width: min(100% - 22px, 1180px);
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .hero-carousel,
  .hero-bottom {
    min-height: 580px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-actions {
    display: grid;
  }

  .movie-grid,
  .category-grid,
  .footer-grid,
  .detail-side {
    grid-template-columns: 1fr;
  }

  .category-cover {
    height: 150px;
  }

  .page-hero {
    padding: 64px 0 38px;
  }

  .big-search {
    border-radius: 24px;
    display: grid;
  }

  .detail-layout {
    padding-top: 26px;
  }

  .detail-title-row {
    display: grid;
    padding: 20px 18px 0;
  }

  .detail-copy,
  .watch-main > .tag-row {
    padding-left: 18px;
    padding-right: 18px;
  }
}
