:root {
  --pink: #ffb6c1;
  --pink-dark: #f47f96;
  --blue: #87ceeb;
  --mint: #98d8c8;
  --peach: #ffdab9;
  --cream: #fff7ed;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: 0 2px 15px rgba(0, 0, 0, 0.08);
  --soft-lg: 0 4px 25px rgba(0, 0, 0, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  backdrop-filter: blur(10px);
}

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

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  box-shadow: var(--soft);
}

.brand-text {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.desktop-nav {
  display: flex;
  gap: 8px;
  margin-right: auto;
}

.nav-link {
  padding: 9px 13px;
  color: #4b5563;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--pink-dark);
  background: rgba(255, 182, 193, 0.15);
}

.header-search {
  position: relative;
  display: flex;
  width: 292px;
  padding: 4px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 8px 10px 8px 14px;
  background: transparent;
}

.header-search button,
.mobile-search button {
  border: 0;
  padding: 8px 14px;
  color: #ffffff;
  border-radius: 999px;
  cursor: pointer;
  background: var(--pink);
}

.mobile-menu-button {
  display: none;
  border: 0;
  color: var(--pink-dark);
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 182, 193, 0.18);
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

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

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile-search {
  display: flex;
  gap: 8px;
  padding-top: 14px;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 10px 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 56px;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 182, 193, 0.48), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(135, 206, 235, 0.42), transparent 30%),
    radial-gradient(circle at 62% 80%, rgba(152, 216, 200, 0.36), transparent 32%),
    linear-gradient(135deg, #fff7ed 0%, #ffffff 48%, #effaf8 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image:
    radial-gradient(circle, rgba(255, 182, 193, 0.20) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(135, 206, 235, 0.18) 0 2px, transparent 3px);
  background-size: 44px 44px, 68px 68px;
  background-position: 0 0, 24px 26px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 44px;
}

.hero-badge,
.section-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft);
  backdrop-filter: blur(8px);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: transparent;
  background: linear-gradient(90deg, var(--pink-dark), #58b5de, #51b79f);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero p {
  max-width: 650px;
  margin: 0 0 28px;
  color: #4b5563;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.8;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(244, 127, 150, 0.22);
}

.button-primary {
  color: #ffffff;
  background: var(--pink);
}

.button-light {
  color: #374151;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft);
}

.hero-search {
  display: flex;
  max-width: 560px;
  padding: 7px;
  border: 1px solid rgba(255, 182, 193, 0.38);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--soft-lg);
  backdrop-filter: blur(10px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 14px 16px;
  background: transparent;
  font-size: 16px;
}

.hero-search button {
  border: 0;
  padding: 0 22px;
  color: #ffffff;
  border-radius: 18px;
  cursor: pointer;
  font-weight: 800;
  background: var(--pink);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.hero-stat {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--soft);
  backdrop-filter: blur(8px);
}

.hero-stat strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 16px;
}

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

.hero-carousel {
  position: relative;
  min-height: 536px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 28px 80px rgba(31, 41, 55, 0.14);
  backdrop-filter: blur(16px);
}

.hero-slide {
  display: none;
}

.hero-slide.is-active {
  display: block;
  animation: fadeUp 0.5s ease both;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.30), rgba(135, 206, 235, 0.30));
  aspect-ratio: 16 / 10;
}

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

.hero-slide:hover .hero-poster img {
  transform: scale(1.04);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 54%);
}

.hero-poster strong {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
  color: #ffffff;
  font-size: 26px;
  line-height: 1.2;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}

.hero-slide-copy {
  padding: 18px 4px 8px;
}

.hero-slide-copy p {
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.7;
}

.hero-slide-copy span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pink-dark);
  font-weight: 800;
}

.hero-dots {
  display: flex;
  gap: 8px;
  padding: 0 4px 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: #d1d5db;
}

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

.section {
  padding: 64px 0;
}

.section-soft {
  background: linear-gradient(135deg, rgba(255, 218, 185, 0.24), rgba(152, 216, 200, 0.16));
}

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

.section-head h2,
.page-title h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.18;
}

.section-head p,
.page-title p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.section-more {
  color: var(--pink-dark);
  font-weight: 800;
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-card a,
.movie-card-body {
  display: block;
}

.cover-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.22), rgba(135, 206, 235, 0.22));
  aspect-ratio: 16 / 10;
}

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

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

.cover-meta {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  color: #ffffff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.58);
}

.play-dot {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(255, 182, 193, 0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

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

.movie-card-body strong {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-card-body strong {
  color: var(--pink-dark);
}

.movie-card-body span {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  margin: 9px 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-body em {
  display: block;
  color: #9ca3af;
  font-size: 12px;
  font-style: normal;
}

.movie-card-featured .cover-wrap {
  aspect-ratio: 16 / 9;
}

.movie-card-featured .movie-card-body strong {
  min-height: auto;
  font-size: 21px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  padding: 24px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.33), rgba(135, 206, 235, 0.28));
}

.category-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.category-card span {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--muted);
  line-height: 1.65;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 24px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 46px 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-num {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--pink-dark);
  border-radius: 14px;
  font-weight: 900;
  background: rgba(255, 182, 193, 0.18);
}

.rank-item img {
  width: 96px;
  height: 62px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.22), rgba(135, 206, 235, 0.22));
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.compact-card strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-copy em,
.compact-card em {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-score {
  color: #ffffff;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 900;
  background: var(--pink);
}

.page-hero {
  padding: 54px 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 182, 193, 0.36), transparent 28%),
    radial-gradient(circle at 90% 15%, rgba(135, 206, 235, 0.30), transparent 30%),
    linear-gradient(135deg, #fff7ed, #ffffff);
}

.page-title h1 {
  margin-top: 16px;
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 12px;
  padding: 16px;
  margin-bottom: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft);
}

.catalog-tools input,
.catalog-tools select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  padding: 12px 14px;
  outline: 0;
  background: #ffffff;
}

.catalog-tools input:focus,
.catalog-tools select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 182, 193, 0.18);
}

.empty-state {
  display: none;
  padding: 48px;
  color: var(--muted);
  text-align: center;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--soft);
}

.empty-state.is-visible {
  display: block;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--pink-dark);
  font-weight: 700;
}

.player-card,
.detail-card,
.side-card {
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--soft-lg);
}

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

.player-stage video {
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.08)),
    rgba(0, 0, 0, 0.16);
}

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

.player-start span {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  font-size: 30px;
  background: rgba(255, 182, 193, 0.94);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

.detail-content {
  padding: 28px;
}

.detail-content h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span,
.tag-list a {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  color: var(--pink-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 182, 193, 0.14);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

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

.detail-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.detail-card p {
  margin: 0 0 18px;
  color: #374151;
  line-height: 1.9;
}

.side-card {
  position: sticky;
  top: 96px;
  padding: 20px;
}

.compact-stack {
  display: grid;
  gap: 14px;
}

.compact-card {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.compact-card img {
  width: 102px;
  height: 66px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.22), rgba(135, 206, 235, 0.22));
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer {
  margin-top: 32px;
  padding: 54px 0 0;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 0.6fr;
  gap: 36px;
}

.footer-grid p {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.8;
}

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

.footer-grid a:not(.brand) {
  display: block;
  margin: 9px 0;
  color: var(--muted);
}

.footer-grid a:hover {
  color: var(--pink-dark);
}

.footer-bottom {
  margin-top: 34px;
  padding: 18px 16px;
  color: #9ca3af;
  text-align: center;
  border-top: 1px solid var(--line);
}

@media (max-width: 1040px) {
  .hero-grid,
  .rank-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .side-card {
    position: static;
  }

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

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

  .mobile-menu-button {
    display: inline-flex;
    margin-left: auto;
  }

  .header-inner {
    min-height: 64px;
  }

  .hero {
    padding: 48px 0 36px;
  }

  .hero-stats,
  .movie-grid,
  .movie-grid.featured-grid,
  .category-grid,
  .related-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .catalog-tools {
    grid-template-columns: 1fr;
  }
}

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

  .hero-stats,
  .movie-grid,
  .movie-grid.featured-grid,
  .category-grid,
  .related-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-search {
    display: grid;
  }

  .hero-search button {
    min-height: 44px;
  }

  .rank-item {
    grid-template-columns: 38px 76px minmax(0, 1fr);
  }

  .rank-item img {
    width: 76px;
    height: 54px;
  }

  .rank-score {
    display: none;
  }

  .compact-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .compact-card img {
    width: 86px;
    height: 58px;
  }
}
