:root {
  --ink: #111827;
  --muted: #667085;
  --soft: #fff7ed;
  --line: rgba(17, 24, 39, 0.08);
  --frosting: #ec4899;
  --frosting-dark: #be185d;
  --dawn: #f97316;
  --cream: #fff7ed;
  --card: rgba(255, 255, 255, 0.9);
  --shadow: 0 24px 70px rgba(190, 24, 93, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 28%, #fdf2f8 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, 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: 40;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(236, 72, 153, 0.12);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1220px, calc(100% - 32px));
  height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--frosting), var(--dawn));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--frosting-dark), var(--dawn));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  position: relative;
  padding: 10px 14px;
  color: #374151;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--frosting-dark);
  background: rgba(236, 72, 153, 0.1);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(236, 72, 153, 0.1);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: var(--frosting-dark);
  border-radius: 8px;
}

.mobile-nav {
  display: none;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.mobile-nav .nav-link {
  display: block;
  margin: 4px 0;
}

.mobile-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.mobile-category-row a,
.hero-cats a,
.category-chip-row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  color: var(--frosting-dark);
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.16);
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at top left, rgba(236, 72, 153, 0.22), transparent 34%), radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.24), transparent 32%), linear-gradient(135deg, #fff7ed 0%, #ffffff 48%, #fdf2f8 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.42;
  pointer-events: none;
}

.hero::before {
  left: -120px;
  top: 110px;
  background: rgba(236, 72, 153, 0.22);
}

.hero::after {
  right: -90px;
  bottom: 30px;
  background: rgba(249, 115, 22, 0.24);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 42px;
  align-items: center;
}

.hero-copy .eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--frosting-dark);
  background: rgba(236, 72, 153, 0.11);
  border: 1px solid rgba(236, 72, 153, 0.14);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.gradient-text {
  background: linear-gradient(90deg, var(--frosting-dark), var(--dawn));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 28px;
  color: #475467;
  font-size: 18px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid rgba(236, 72, 153, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--frosting), var(--dawn));
  box-shadow: 0 18px 30px rgba(236, 72, 153, 0.25);
}

.btn-light {
  color: var(--frosting-dark);
  background: rgba(255, 255, 255, 0.82);
}

.hero-cats,
.category-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-slider {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(135deg, #fce7f3, #ffedd5);
  box-shadow: 0 30px 80px rgba(190, 24, 93, 0.22);
  opacity: 0;
  transform: scale(0.98) translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.hero-slide img.image-missing,
.movie-card img.image-missing,
.detail-poster img.image-missing,
.mini-poster img.image-missing,
.search-poster img.image-missing {
  opacity: 0;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(17, 24, 39, 0.82));
}

.hero-slide-content {
  position: relative;
  z-index: 1;
  padding: 28px;
  color: #ffffff;
}

.hero-slide-content h2 {
  margin: 10px 0;
  font-size: 32px;
  line-height: 1.18;
}

.hero-slide-content p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.86);
}

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

.hero-tag-row span,
.card-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tag-row span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 28px;
  bottom: 24px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

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

.section,
.page-hero,
.detail-wrap {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 56px 0;
}

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

.section-head h2,
.page-hero h1 {
  margin: 10px 0 8px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-head p,
.page-hero p {
  margin: 0;
  max-width: 760px;
  color: #667085;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(190, 24, 93, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5.3;
  overflow: hidden;
  background: radial-gradient(circle at 30% 10%, rgba(236, 72, 153, 0.25), transparent 30%), linear-gradient(135deg, #fce7f3, #ffedd5);
}

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

.movie-card:hover .poster-wrap img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(17, 24, 39, 0.76));
}

.play-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--frosting), var(--dawn));
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.2);
}

.card-body {
  padding: 16px;
}

.card-tags span,
.detail-tags span {
  color: var(--frosting-dark);
  background: rgba(236, 72, 153, 0.1);
}

.card-body h2 {
  margin: 11px 0 8px;
  font-size: 18px;
  line-height: 1.26;
}

.card-body h2 a:hover {
  color: var(--frosting-dark);
}

.card-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #667085;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #98a2b3;
  font-size: 13px;
}

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

.category-card {
  min-height: 190px;
  padding: 22px;
  border-radius: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--frosting), var(--dawn));
  box-shadow: 0 24px 54px rgba(236, 72, 153, 0.18);
}

.category-card:nth-child(even) {
  background: linear-gradient(135deg, #be185d, #fb923c);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
}

.category-card span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

.rank-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(236, 72, 153, 0.12);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.08);
}

.rank-item a {
  display: grid;
  grid-template-columns: 46px 1fr;
  grid-template-areas: "num title" "num meta";
  gap: 2px 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.rank-item:last-child a {
  border-bottom: 0;
}

.rank-item strong {
  grid-area: num;
  align-self: center;
  color: var(--frosting-dark);
  font-size: 20px;
}

.rank-title {
  grid-area: title;
  font-weight: 900;
}

.rank-meta {
  grid-area: meta;
  color: #98a2b3;
  font-size: 13px;
}

.page-hero {
  padding: 62px 0 28px;
}

.filter-panel {
  position: sticky;
  top: 88px;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  margin: 22px 0 28px;
  padding: 12px;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.08);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(236, 72, 153, 0.16);
  border-radius: 16px;
  padding: 0 14px;
  color: var(--ink);
  outline: 0;
  background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--frosting);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 46px 0 38px;
  background: radial-gradient(circle at top left, rgba(236, 72, 153, 0.2), transparent 34%), linear-gradient(135deg, #fff7ed, #fdf2f8);
}

.detail-wrap {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  aspect-ratio: 4 / 5.3;
  background: linear-gradient(135deg, #fce7f3, #ffedd5);
  box-shadow: 0 30px 80px rgba(190, 24, 93, 0.18);
}

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

.detail-info h1 {
  margin: 16px 0 12px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-info p {
  margin: 0 0 18px;
  color: #475467;
  font-size: 17px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #475467;
  font-weight: 800;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(236, 72, 153, 0.12);
}

.content-grid {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.panel {
  padding: 24px;
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.08);
}

.panel + .panel {
  margin-top: 22px;
}

.panel h2,
.panel h3 {
  margin: 0 0 14px;
  font-size: 24px;
}

.panel p {
  margin: 0;
  color: #475467;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.24);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.12), transparent 46%), rgba(17, 24, 39, 0.38);
}

.play-trigger {
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--frosting), var(--dawn));
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.25);
}

.player-box.is-playing .player-cover {
  display: none;
}

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

.side-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
}

.mini-poster,
.search-poster {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4 / 5.3;
  background: linear-gradient(135deg, #fce7f3, #ffedd5);
}

.mini-poster img,
.search-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.32;
}

.side-card p {
  margin: 0;
  color: #98a2b3;
  font-size: 13px;
}

.search-list {
  display: grid;
  gap: 12px;
}

.search-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(236, 72, 153, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
}

.search-row h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.search-row p {
  margin: 0;
  color: #667085;
  font-size: 14px;
}

.search-row .btn {
  min-height: 40px;
  padding: 8px 13px;
}

.site-footer {
  margin-top: 46px;
  border-top: 1px solid rgba(236, 72, 153, 0.12);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.6), rgba(253, 242, 248, 0.88));
}

.footer-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}

.footer-brand p {
  max-width: 480px;
  color: #667085;
}

.footer-links {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-links h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

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

.footer-links a:hover {
  color: var(--frosting-dark);
}

@media (max-width: 1024px) {
  .hero-inner,
  .detail-wrap,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 460px;
  }

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

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

  .rank-panel,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

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

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

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 44px 0;
  }

  .hero-slider {
    min-height: 410px;
  }

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

  .section-head {
    display: block;
  }

  .filter-panel {
    grid-template-columns: 1fr;
    position: static;
  }

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

  .search-row {
    grid-template-columns: 58px 1fr;
  }

  .search-row .btn {
    grid-column: 1 / -1;
  }
}
