:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  background: linear-gradient(180deg, #fff7f8 0%, #ffffff 36%, #f8fafc 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(244, 63, 94, 0.16);
  box-shadow: 0 8px 28px rgba(225, 29, 72, 0.08);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  width: min(100% - 32px, var(--max));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-600));
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.34);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 21px;
  background: linear-gradient(90deg, var(--rose-600), var(--pink-600));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 3px;
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 500;
}

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

.nav-link,
.mobile-link {
  color: var(--slate-700);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--rose-600);
}

.nav-search,
.mobile-search {
  display: flex;
  align-items: center;
  border: 1px solid rgba(244, 63, 94, 0.18);
  background: var(--white);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.08);
}

.nav-search input,
.mobile-search input {
  width: 210px;
  border: 0;
  outline: 0;
  padding: 11px 14px 11px 18px;
  font-size: 14px;
  background: transparent;
}

.nav-search button,
.mobile-search button,
.primary-button,
.secondary-button,
.player-overlay button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.mobile-search button {
  margin-right: 5px;
  padding: 8px 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-600));
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--rose-50);
  border-radius: 12px;
  padding: 10px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--rose-600);
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-menu nav {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mobile-link {
  padding: 12px 14px;
  background: var(--rose-50);
  border-radius: 14px;
}

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

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

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.18));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--max));
  min-height: 70vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
  color: var(--white);
}

.hero-copy {
  max-width: 680px;
  padding: 96px 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-600));
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.32);
}

.hero h1,
.page-hero h1,
.detail-title h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.08;
  letter-spacing: -1.5px;
}

.hero p {
  max-width: 620px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-600));
  box-shadow: 0 14px 32px rgba(244, 63, 94, 0.32);
}

.secondary-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.secondary-button:hover,
.player-overlay button:hover {
  transform: translateY(-2px) scale(1.02);
}

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

.hero-dots button {
  width: 18px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 38px;
  background: var(--white);
}

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

.main-sections {
  padding: 56px 0 72px;
}

.section {
  margin-bottom: 70px;
}

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

.section-head h2,
.detail-section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}

.section-head p,
.detail-section-head p {
  margin: 0;
  color: var(--slate-500);
}

.section-link {
  color: var(--rose-600);
  font-weight: 800;
}

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

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

.movie-card,
.wide-card,
.category-tile,
.info-panel,
.index-card {
  background: var(--white);
  border: 1px solid rgba(244, 63, 94, 0.09);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover,
.wide-card:hover,
.category-tile:hover,
.index-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.poster-link,
.wide-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--slate-100);
}

.poster-link {
  aspect-ratio: 16 / 10;
}

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

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

.card-type,
.card-score,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.card-type {
  left: 12px;
  top: 12px;
  color: var(--white);
  padding: 5px 10px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.card-score {
  right: 12px;
  top: 12px;
  color: var(--rose-600);
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.9);
}

.rank-badge {
  left: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-600));
  box-shadow: 0 10px 25px rgba(225, 29, 72, 0.35);
}

.rank-wide {
  width: 44px;
  height: 44px;
  font-size: 15px;
}

.card-body {
  padding: 18px;
}

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

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

.card-body p,
.wide-body p {
  margin: 0 0 14px;
  color: var(--slate-500);
  font-size: 14px;
}

.card-meta,
.wide-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate-500);
  font-size: 13px;
}

.card-meta span,
.wide-meta span,
.detail-meta span {
  padding: 4px 8px;
  background: var(--slate-100);
  border-radius: 999px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag-row span {
  color: var(--rose-600);
  background: var(--rose-50);
  border: 1px solid var(--rose-100);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
}

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

.category-tile {
  position: relative;
  min-height: 180px;
  padding: 28px;
  color: var(--white);
  overflow: hidden;
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -34px;
  width: 130px;
  height: 130px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.category-tile h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: 26px;
}

.category-tile p,
.category-tile strong {
  position: relative;
  z-index: 1;
}

.category-tile p {
  min-height: 46px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
}

.grad-rose { background: linear-gradient(135deg, #f43f5e, #db2777); }
.grad-indigo { background: linear-gradient(135deg, #6366f1, #a855f7); }
.grad-pink { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.grad-orange { background: linear-gradient(135deg, #f97316, #ef4444); }
.grad-slate { background: linear-gradient(135deg, #334155, #0f172a); }
.grad-fuchsia { background: linear-gradient(135deg, #d946ef, #ec4899); }
.grad-cyan { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.grad-red { background: linear-gradient(135deg, #ef4444, #991b1b); }
.grad-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.grad-emerald { background: linear-gradient(135deg, #10b981, #047857); }
.grad-yellow { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.grad-violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

.feature-band {
  padding: 34px;
  background: linear-gradient(135deg, var(--rose-50), #fdf2f8);
  border-radius: 32px;
  box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.1);
}

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

.wide-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
}

.wide-poster {
  min-height: 230px;
}

.wide-body {
  padding: 22px;
}

.wide-kicker {
  color: var(--rose-600);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
}

.cta-panel {
  margin: 66px 0;
  padding: 46px 28px;
  color: var(--white);
  text-align: center;
  border-radius: 34px;
  background: radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.24), transparent 28%), linear-gradient(135deg, var(--rose-600), var(--pink-600));
  box-shadow: 0 25px 60px rgba(225, 29, 72, 0.24);
}

.cta-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
}

.cta-panel p {
  max-width: 680px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.page-hero {
  padding: 70px 0 56px;
  color: var(--white);
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 28%), linear-gradient(135deg, var(--rose-600), var(--pink-600));
}

.page-hero .container {
  display: grid;
  gap: 12px;
}

.page-hero h1 {
  margin: 0;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 18px;
  color: var(--slate-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--rose-600);
  font-weight: 700;
}

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

.player-card,
.detail-copy,
.side-card {
  background: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(244, 63, 94, 0.09);
  overflow: hidden;
}

.stream-player {
  position: relative;
  background: #020617;
}

.stream-player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.72));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-overlay button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-600));
  box-shadow: 0 18px 38px rgba(244, 63, 94, 0.32);
  font-size: 17px;
}

.play-dot {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--rose-600);
  background: var(--white);
  border-radius: 50%;
}

.player-caption {
  padding: 20px 24px;
}

.player-caption h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.player-caption p {
  margin: 0;
  color: var(--slate-500);
}

.detail-title {
  margin-bottom: 24px;
}

.detail-title h1 {
  color: var(--slate-900);
  font-size: clamp(34px, 6vw, 58px);
}

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

.detail-copy h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.detail-copy p {
  margin: 0 0 18px;
  color: var(--slate-700);
}

.side-card {
  padding: 22px;
  margin-bottom: 22px;
}

.side-poster {
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 18px;
}

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

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

.related-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

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

.related-item strong {
  display: block;
  margin-bottom: 4px;
  line-height: 1.3;
}

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

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

.index-card {
  padding: 16px;
}

.index-card strong {
  display: block;
  margin-bottom: 6px;
}

.index-card span {
  color: var(--slate-500);
  font-size: 13px;
}

.search-panel {
  padding: 26px;
  margin-bottom: 28px;
  background: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.search-large {
  display: flex;
  gap: 12px;
}

.search-large input {
  flex: 1;
  min-height: 52px;
  border: 1px solid var(--rose-100);
  border-radius: 999px;
  padding: 0 20px;
  font-size: 16px;
  outline: 0;
}

.search-large button {
  min-width: 110px;
  border: 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-600));
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.empty-state {
  padding: 70px 20px;
  text-align: center;
  color: var(--slate-500);
}

.site-footer {
  margin-top: 40px;
  padding: 46px 0;
  background: #111827;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  color: var(--white);
  font-size: 22px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

.site-footer p {
  max-width: 420px;
  margin: 12px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  padding: 7px 11px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.footer-links a:hover {
  color: var(--white);
  background: rgba(244, 63, 94, 0.55);
}

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

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

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

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

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

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

@media (max-width: 760px) {
  .nav-wrap {
    height: 68px;
  }

  .brand-text small {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: 78vh;
  }

  .hero-copy {
    padding: 76px 0 92px;
  }

  .hero-slide::after {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.92));
  }

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

  .movie-grid,
  .movie-grid.compact-grid,
  .category-grid,
  .wide-grid,
  .index-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .wide-card,
  .related-item {
    grid-template-columns: 1fr;
  }

  .wide-poster {
    min-height: auto;
    aspect-ratio: 16 / 10;
  }

  .feature-band {
    padding: 22px;
  }

  .search-large {
    flex-direction: column;
  }

  .search-large button {
    min-height: 48px;
  }
}
