:root {
  --pink: #ffb6c1;
  --blue: #87ceeb;
  --mint: #98d8c8;
  --cream: #fff8dc;
  --peach: #ffdab9;
  --ink: #1f2937;
  --muted: #667085;
  --line: #eef0f4;
  --soft: 0 2px 15px rgba(0, 0, 0, .08);
  --soft-lg: 0 4px 25px rgba(0, 0, 0, .1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
}

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

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

img.image-missing {
  opacity: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid rgba(243, 244, 246, .88);
  backdrop-filter: blur(8px);
  box-shadow: var(--soft);
}

.nav-bar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  color: #fff;
  box-shadow: var(--soft);
}

.brand-name {
  font-size: 22px;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  -webkit-background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  color: #4b5563;
}

.desktop-nav a {
  transition: color .25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover {
  color: #e86c82;
}

.nav-search,
.mobile-search,
.search-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-search input,
.mobile-search input,
.search-toolbar input,
.search-toolbar select {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  background: #fff;
  color: var(--ink);
  transition: border-color .25s ease, box-shadow .25s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.search-toolbar input:focus,
.search-toolbar select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 182, 193, .22);
}

.nav-search button,
.mobile-search button,
.btn,
.text-link {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 700;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.nav-search button,
.mobile-search button,
.btn.primary {
  background: var(--pink);
  color: #fff;
  box-shadow: var(--soft);
}

.btn.ghost {
  background: rgba(255, 255, 255, .9);
  color: #374151;
  box-shadow: var(--soft);
}

.nav-search button:hover,
.mobile-search button:hover,
.btn:hover,
.text-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--soft-lg);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--soft);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #4b5563;
}

.mobile-panel {
  border-top: 1px solid var(--line);
  padding: 16px;
  background: #fff;
}

.mobile-panel a {
  display: block;
  padding: 12px 0;
  color: #4b5563;
}

.hero-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 182, 193, .18), rgba(255, 248, 220, .3), rgba(135, 206, 235, .18));
}

.hero-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .36;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 182, 193, .28) 0 8%, transparent 8% 100%), radial-gradient(circle at 80% 10%, rgba(135, 206, 235, .26) 0 9%, transparent 9% 100%), radial-gradient(circle at 50% 80%, rgba(152, 216, 200, .24) 0 10%, transparent 10% 100%);
  pointer-events: none;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center right;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .8s ease, transform .8s ease;
}

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

.hero-copy {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  max-width: 720px;
  padding: 100px 0 150px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #6b7280;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--soft);
  backdrop-filter: blur(6px);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 20px 0 14px;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1.08;
  background: linear-gradient(90deg, var(--pink), var(--blue), var(--mint));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.2vw, 42px);
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 720px;
  margin: 0 0 24px;
  font-size: 18px;
  color: #4b5563;
}

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

.hero-tags span,
.tag-row span,
.tag-row a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 182, 193, .14);
  color: #e86c82;
  font-size: 12px;
  font-weight: 700;
}

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

.hero-dots {
  position: relative;
  z-index: 4;
  display: flex;
  gap: 10px;
  margin-top: -104px;
}

.hero-dot {
  width: 38px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 41, 55, .18);
  cursor: pointer;
}

.hero-dot.active {
  background: linear-gradient(90deg, var(--pink), var(--blue));
}

.hero-stats {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 44px 0 72px;
}

.hero-stat {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--soft);
  backdrop-filter: blur(8px);
  transition: transform .25s ease, box-shadow .25s ease;
}

.hero-stat:hover,
.category-tile:hover,
.movie-card:hover,
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--soft-lg);
}

.hero-stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.hero-stat span {
  color: var(--muted);
  font-size: 14px;
}

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

.soft-band {
  background: linear-gradient(90deg, rgba(255, 182, 193, .06), rgba(135, 206, 235, .08));
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-heading a,
.text-link {
  color: #e86c82;
  font-weight: 800;
}

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

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

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

.movie-card,
.category-card,
.side-card,
.content-card {
  overflow: hidden;
  border: 1px solid rgba(238, 240, 244, .86);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--soft);
  transition: transform .25s ease, box-shadow .25s ease;
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.poster img {
  transition: transform .5s ease, opacity .25s ease;
}

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .48), transparent 56%);
  opacity: .9;
}

.poster-meta,
.rank-no {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .68);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.rank-no {
  left: 12px;
  right: auto;
  top: 12px;
  bottom: auto;
  background: linear-gradient(135deg, var(--pink), var(--blue));
}

.card-body {
  padding: 18px;
}

.card-title {
  display: -webkit-box;
  min-height: 52px;
  overflow: hidden;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color .25s ease;
}

.card-title:hover {
  color: #e86c82;
}

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

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  color: #6b7280;
  font-size: 13px;
}

.card-horizontal {
  display: grid;
  grid-template-columns: 42% 1fr;
}

.card-horizontal .poster {
  height: 100%;
  aspect-ratio: auto;
}

.card-horizontal .card-title {
  min-height: auto;
}

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

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

.category-tile {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--soft);
  transition: transform .25s ease, box-shadow .25s ease;
}

.category-tile span {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.category-tile em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 40px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--soft);
  transition: transform .25s ease, box-shadow .25s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: var(--soft-lg);
}

.rank-item span {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  font-weight: 900;
}

.rank-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-item em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 182, 193, .16), rgba(255, 248, 220, .28), rgba(135, 206, 235, .16));
}

.small-hero {
  padding: 74px 0;
}

.small-hero h1 {
  margin-bottom: 16px;
}

.toolbar {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--soft);
}

.toolbar input {
  min-width: min(420px, 100%);
  flex: 1;
}

.toolbar select {
  min-width: 180px;
}

.category-list {
  display: grid;
  gap: 24px;
}

.category-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px;
}

.category-cover {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  min-height: 150px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 182, 193, .22), rgba(135, 206, 235, .22));
}

.category-cover span {
  background-size: cover;
  background-position: center;
}

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

.category-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.detail-hero {
  background-size: cover;
  background-position: center right;
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 42px;
  align-items: center;
  padding: 72px 0;
}

.detail-poster {
  min-height: 500px;
  border-radius: 28px;
  box-shadow: var(--soft-lg);
}

.detail-poster::after {
  display: none;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumbs a::after {
  content: "/";
  margin-left: 10px;
  color: #c4c8d0;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
}

.detail-main,
.detail-side {
  display: grid;
  align-content: start;
  gap: 24px;
}

.player-section,
.content-card,
.side-card {
  padding: 24px;
}

.player-section {
  border-radius: 24px;
  background: #111827;
  color: #fff;
  box-shadow: var(--soft-lg);
}

.player-section h2 {
  margin: 0 0 18px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #05070a;
  aspect-ratio: 16 / 9;
}

.player-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity .25s ease, visibility .25s ease;
}

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

.play-icon {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #e86c82;
  font-size: 34px;
  box-shadow: var(--soft-lg);
  padding-left: 6px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
}

.content-card p {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
}

.side-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.side-card div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
}

.side-card dt {
  color: #6b7280;
}

.side-card dd {
  margin: 0;
  font-weight: 700;
}

.side-card .text-link {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding: 11px 14px;
  background: rgba(255, 182, 193, .12);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 182, 193, .06), rgba(135, 206, 235, .08));
}

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

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

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: #6b7280;
  font-size: 14px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li + li {
  margin-top: 8px;
}

.footer-grid a:hover {
  color: #e86c82;
}

.footer-bottom {
  padding: 18px 0;
  text-align: center;
  border-top: 1px solid rgba(229, 231, 235, .8);
}

.no-results {
  grid-column: 1 / -1;
  padding: 38px;
  border-radius: 22px;
  background: #fff;
  color: #6b7280;
  text-align: center;
  box-shadow: var(--soft);
}

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

  .menu-toggle {
    display: inline-block;
  }

  .card-grid,
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .two-column,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero-inner {
    grid-template-columns: 300px 1fr;
  }
}

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

  .brand-name {
    font-size: 19px;
  }

  .hero-carousel {
    min-height: 560px;
  }

  .hero-copy {
    padding: 64px 0 140px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-grid,
  .featured-grid,
  .related-grid,
  .category-grid,
  .category-grid.compact {
    grid-template-columns: 1fr;
  }

  .card-horizontal,
  .category-card,
  .detail-hero-inner {
    grid-template-columns: 1fr;
  }

  .card-horizontal .poster {
    aspect-ratio: 16 / 9;
  }

  .detail-poster {
    min-height: 420px;
  }

  .rank-item {
    grid-template-columns: 42px 1fr;
  }

  .rank-item em {
    grid-column: 2;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar input,
  .toolbar select {
    width: 100%;
  }
}
