* {
  box-sizing: border-box;
}

:root {
  --purple-950: #2e1065;
  --purple-900: #4c1d95;
  --purple-700: #7e22ce;
  --purple-600: #9333ea;
  --pink-500: #ec4899;
  --rose-400: #fb7185;
  --amber-300: #fcd34d;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 24px 60px rgba(76, 29, 149, 0.18);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate-900);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.16), transparent 32rem),
    linear-gradient(180deg, #faf5ff 0%, #ffffff 48%, #f8fafc 100%);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--purple-700), var(--pink-500), var(--rose-400));
  box-shadow: 0 18px 40px rgba(126, 34, 206, 0.28);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 auto;
  justify-content: center;
}

.nav-link {
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--white);
  transform: translateY(-1px);
}

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

.header-search input,
.mobile-search input {
  width: 190px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 10px 86px 10px 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  outline: none;
  transition: width 0.25s ease, box-shadow 0.25s ease;
}

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

.header-search input:focus {
  width: 250px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.24);
}

.header-search button,
.mobile-search button,
.page-search button {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--purple-900);
  background: var(--white);
  cursor: pointer;
  font-weight: 800;
}

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

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

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

.mobile-nav-inner {
  display: grid;
  gap: 12px;
  padding: 14px 0 20px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 20%, rgba(252, 211, 77, 0.25), transparent 24rem),
    radial-gradient(circle at 80% 10%, rgba(236, 72, 153, 0.42), transparent 28rem),
    linear-gradient(135deg, #2e1065 0%, #7e22ce 44%, #ec4899 100%);
}

.hero-glow {
  position: absolute;
  inset: auto -10% -35% 20%;
  height: 340px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  filter: blur(80px);
}

.hero-shell {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
  padding: 70px 0;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.62fr);
  gap: 48px;
  align-items: center;
}

.hero-slide.is-active {
  display: grid;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 7px 14px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--purple-700);
  border-color: rgba(126, 34, 206, 0.16);
  background: rgba(126, 34, 206, 0.08);
}

.hero h1,
.hero h2 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

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

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

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

.primary-button {
  color: var(--purple-950);
  background: var(--white);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

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

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  box-shadow: 0 40px 90px rgba(15, 23, 42, 0.38);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.78));
}

.hero-poster span {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  font-size: 24px;
  font-weight: 900;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

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

.section-block {
  margin-top: 48px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.quick-links a {
  border-radius: 999px;
  padding: 13px 20px;
  color: var(--purple-900);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  font-weight: 800;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
}

.section-heading a {
  color: var(--purple-700);
  font-weight: 850;
}

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

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border-radius: var(--radius);
  padding: 22px;
  background:
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.24), transparent 12rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(250, 245, 255, 0.94));
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 70px rgba(126, 34, 206, 0.22);
}

.category-tile > span {
  color: var(--pink-500);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-tile h2 {
  margin: 12px 0 8px;
  font-size: 24px;
}

.category-tile p {
  margin: 0;
  color: var(--slate-500);
  line-height: 1.75;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(126, 34, 206, 0.18);
}

.movie-poster {
  display: block;
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, rgba(126, 34, 206, 0.24), rgba(236, 72, 153, 0.18));
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 700;
}

.movie-meta-line span {
  display: inline-flex;
  align-items: center;
}

.movie-meta-line span + span::before {
  content: "·";
  margin-right: 8px;
  color: rgba(100, 116, 139, 0.58);
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 21px;
  line-height: 1.32;
}

.movie-card p {
  margin: 0;
  color: var(--slate-500);
  line-height: 1.72;
}

.movie-card.is-compact {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
}

.movie-card.is-compact .movie-poster {
  height: 100%;
  min-height: 188px;
}

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

.tag-row span {
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--purple-700);
  background: rgba(147, 51, 234, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border-radius: 22px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.ranking-thumb {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(236, 72, 153, 0.18), rgba(126, 34, 206, 0.2));
}

.ranking-index {
  display: inline-flex;
  color: var(--pink-500);
  font-size: 24px;
  font-weight: 950;
}

.ranking-copy h3 {
  margin: 4px 0 6px;
  font-size: 22px;
}

.ranking-copy p {
  margin: 0 0 10px;
  color: var(--slate-500);
  line-height: 1.65;
}

.page-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 12% 10%, rgba(252, 211, 77, 0.2), transparent 22rem),
    linear-gradient(120deg, var(--purple-900), var(--purple-700), var(--pink-500));
}

.compact-hero .container {
  padding: 74px 0;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.04em;
}

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

.page-search {
  max-width: 720px;
  margin-top: 24px;
}

.page-search input {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 16px 118px 16px 20px;
  outline: none;
  color: var(--slate-900);
  background: var(--white);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
}

.page-search button {
  position: absolute;
  right: 7px;
  top: 7px;
  color: var(--white);
  background: linear-gradient(90deg, var(--purple-700), var(--pink-500));
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-buttons button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--purple-900);
  background: rgba(147, 51, 234, 0.1);
  cursor: pointer;
  font-weight: 800;
}

.filter-buttons button.is-active {
  color: var(--white);
  background: linear-gradient(90deg, var(--purple-700), var(--pink-500));
}

.filter-panel input {
  width: min(360px, 100%);
  border: 1px solid rgba(126, 34, 206, 0.18);
  border-radius: 999px;
  padding: 11px 15px;
  outline: none;
}

.detail-page {
  padding-top: 34px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--slate-500);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--purple-700);
}

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

.detail-main h1 {
  margin: 26px 0 12px;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.lead-text {
  color: var(--slate-700);
  font-size: 18px;
  line-height: 1.9;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: var(--slate-950);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.3);
  aspect-ratio: 16 / 9;
}

.player-card video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.58));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  padding-left: 6px;
  background: linear-gradient(135deg, var(--purple-700), var(--pink-500));
  box-shadow: 0 24px 60px rgba(236, 72, 153, 0.36);
  font-size: 34px;
}

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

.content-card,
.aside-card {
  margin-top: 22px;
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.content-card h2,
.aside-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: var(--slate-700);
  line-height: 2;
}

.poster-card {
  overflow: hidden;
  padding: 0;
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, rgba(236, 72, 153, 0.18), rgba(126, 34, 206, 0.2));
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(100, 116, 139, 0.12);
  padding-bottom: 12px;
}

.info-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-list span {
  color: var(--slate-500);
}

.info-list strong {
  text-align: right;
}

.wide-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--purple-900);
  background: rgba(147, 51, 234, 0.1);
  font-weight: 850;
}

.site-footer {
  margin-top: 70px;
  color: var(--white);
  background: linear-gradient(180deg, var(--purple-900), var(--slate-950));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1.2fr 1fr;
  gap: 32px;
  padding: 48px 0;
}

.footer-logo {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 900;
}

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

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.site-footer a {
  display: block;
  margin: 7px 0;
}

.footer-links {
  columns: 2;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
}

.is-hidden-card {
  display: none !important;
}

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

  .menu-button {
    display: inline-flex;
  }

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

  .hero-poster {
    max-width: 420px;
  }

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

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

  .poster-card {
    grid-row: span 2;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero-shell {
    min-height: auto;
    padding: 46px 0 70px;
  }

  .hero-slide {
    gap: 28px;
  }

  .hero p,
  .page-hero p,
  .lead-text {
    font-size: 16px;
  }

  .hero-dots {
    bottom: 24px;
  }

  .section-heading,
  .filter-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .category-grid,
  .category-directory,
  .movie-grid,
  .wide-grid,
  .category-movie-grid,
  .ranking-grid,
  .footer-grid,
  .detail-aside {
    grid-template-columns: 1fr;
  }

  .movie-card.is-compact,
  .ranking-item {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .movie-card.is-compact .movie-poster {
    min-height: 160px;
  }

  .ranking-copy p {
    display: none;
  }

  .footer-links {
    columns: 1;
  }
}
