:root {
  --peach-50: #fff5f2;
  --peach-100: #ffe5e0;
  --peach-200: #ffd4e5;
  --peach-400: #ffb5a7;
  --peach-500: #ffa07a;
  --pink-400: #ff9eb5;
  --pink-500: #ff8fa3;
  --coral-300: #ffc9b9;
  --text: #2f2a2a;
  --muted: #6f6666;
  --line: rgba(255, 181, 167, 0.28);
  --shadow: 0 20px 40px rgba(255, 159, 122, 0.25);
  --radius-xl: 1rem;
  --radius-2xl: 1.35rem;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 158, 181, 0.22), transparent 32rem),
    radial-gradient(circle at 85% 12%, rgba(255, 181, 167, 0.22), transparent 28rem),
    linear-gradient(135deg, var(--peach-50), #fff 38%, #fff7fb);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    Arial,
    sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.gradient-text {
  background: linear-gradient(135deg, #ff9999, #ff8fa3, #ffb6c1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 181, 167, 0.22);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.card-hover {
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.page-transition {
  animation: fadeIn 0.35s ease-in;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-right: 0;
  border-left: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 76px;
}

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

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--peach-400), var(--pink-400));
  box-shadow: 0 10px 20px rgba(255, 143, 163, 0.25);
}

.logo-text {
  font-size: 1.55rem;
  letter-spacing: 0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #5c5555;
  font-weight: 650;
}

.desktop-nav a,
.mobile-nav a,
.site-footer a {
  transition: color 0.25s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.site-footer a:hover {
  color: var(--pink-500);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.header-search input {
  width: 190px;
  border: 0;
  outline: 0;
  padding: 10px 12px;
  color: var(--text);
  background: transparent;
}

.header-search button,
.btn {
  border: 0;
  cursor: pointer;
}

.header-search button {
  padding: 9px 14px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--peach-500), var(--pink-500));
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--pink-500);
  background: rgba(255, 255, 255, 0.86);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
}

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

.hero-carousel {
  padding: 28px 0 40px;
}

.hero-shell {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  min-height: 570px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 34px;
  background: #1e1313;
  box-shadow: 0 26px 80px rgba(255, 143, 163, 0.34);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  min-height: 570px;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg img,
.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}

.hero-bg::after,
.detail-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 72% 45%, rgba(255, 158, 181, 0.12), transparent 25rem),
    linear-gradient(90deg, rgba(23, 12, 16, 0.88), rgba(23, 12, 16, 0.48) 42%, rgba(23, 12, 16, 0.16));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(620px, calc(100% - 40px));
  margin-left: clamp(24px, 7vw, 96px);
  color: #fff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--pink-500);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #ffe1e7;
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 620px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.8;
}

.hero-actions,
.detail-meta,
.tag-cloud,
.card-meta,
.card-tags,
.filter-bar,
.section-head,
.hero-dots {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.hero-actions {
  gap: 14px;
}

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--peach-500), var(--pink-500));
  box-shadow: 0 14px 26px rgba(255, 143, 163, 0.28);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero-dots {
  position: absolute;
  right: 28px;
  bottom: 26px;
  z-index: 4;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 34px;
  background: #fff;
}

.section-block {
  padding: 46px 0;
}

.section-head {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-head h2,
.page-hero h1,
.detail-copy h1,
.content-card h2 {
  margin: 0;
  color: #2b2525;
  letter-spacing: -0.03em;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.55rem);
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.9);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--peach-100), var(--peach-200));
}

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

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

.play-dot,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 999px;
  background: rgba(255, 143, 163, 0.92);
  box-shadow: 0 10px 22px rgba(255, 143, 163, 0.28);
}

.play-dot {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-weight: 900;
}

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

.card-meta,
.card-tags,
.detail-meta,
.tag-cloud {
  gap: 8px;
}

.card-meta span,
.card-tags span,
.detail-meta span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #8b5c62;
  background: rgba(255, 229, 224, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
}

.movie-card h3 {
  margin: 12px 0 8px;
  font-size: 1.1rem;
  line-height: 1.35;
}

.movie-card p {
  display: -webkit-box;
  min-height: 45px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.category-card,
.category-overview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.88);
}

.category-card {
  padding: 22px;
}

.category-card span,
.category-overview h2 {
  display: block;
  margin-bottom: 10px;
  font-size: 1.16rem;
  font-weight: 900;
}

.category-card p,
.category-overview p,
.rank-copy p,
.page-hero p,
.content-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.rank-panel {
  padding: 60px 0;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
}

.rank-copy,
.rank-list {
  border-radius: 28px;
  padding: 28px;
}

.rank-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.rank-copy .btn {
  margin-top: 24px;
}

.rank-list {
  display: grid;
  gap: 10px;
  background: linear-gradient(135deg, rgba(255, 229, 224, 0.7), rgba(255, 255, 255, 0.78));
}

.rank-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.rank-row strong {
  color: var(--pink-500);
}

.rank-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.rank-row em {
  color: var(--muted);
  font-style: normal;
}

.page-hero {
  padding: 72px 0;
  color: #fff;
  background: linear-gradient(100deg, var(--peach-500), var(--pink-500), var(--coral-300));
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.page-hero p {
  max-width: 720px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.category-overview {
  position: relative;
  min-height: 280px;
}

.category-overview img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.category-overview::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(28, 16, 19, 0.76), rgba(28, 16, 19, 0.18));
}

.category-overview div {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  color: #fff;
}

.category-overview p,
.category-overview .eyebrow {
  color: rgba(255, 255, 255, 0.84);
}

.filter-bar-wrap {
  padding-top: 28px;
}

.filter-bar {
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
}

.filter-bar input,
.filter-bar select,
.big-search input {
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  background: rgba(255, 255, 255, 0.88);
}

.filter-bar input {
  flex: 1;
  min-width: 260px;
  padding: 13px 16px;
}

.filter-bar select {
  padding: 13px 16px;
}

.big-search {
  display: flex;
  gap: 12px;
  max-width: 720px;
  margin-top: 26px;
}

.big-search input {
  flex: 1;
  padding: 15px 18px;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #fff;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 34px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.86);
}

.detail-info-grid {
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

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

.detail-copy h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
}

.detail-copy .lead {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.14rem;
  line-height: 1.85;
}

.detail-meta,
.tag-cloud {
  margin: 18px 0;
}

.detail-meta span,
.tag-cloud span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #0d0809;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(255, 143, 163, 0.16), rgba(0, 0, 0, 0.28));
  cursor: pointer;
}

.player-overlay span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--peach-500), var(--pink-500));
  box-shadow: 0 18px 32px rgba(255, 143, 163, 0.34);
  font-size: 2rem;
}

.player-shell.is-playing .player-overlay {
  display: none;
}

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

.content-card {
  padding: 28px;
  border-radius: 28px;
}

.content-card h2 {
  margin-bottom: 16px;
  font-size: 1.55rem;
}

.site-footer {
  margin-top: 60px;
  padding: 52px 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, var(--peach-100), rgba(255, 255, 255, 0.88));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
}

.site-footer h3 {
  margin: 0 0 14px;
}

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

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

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

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

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

  .hero-shell,
  .hero-slide {
    min-height: 520px;
  }

  .hero-content {
    margin: 0 auto;
  }

  .movie-grid,
  .category-grid,
  .category-overview-grid,
  .rank-layout,
  .content-grid,
  .footer-grid,
  .detail-info-grid {
    grid-template-columns: 1fr;
  }

  .detail-info-grid {
    align-items: start;
  }

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

@media (max-width: 560px) {
  .container,
  .hero-shell {
    width: min(100% - 22px, var(--container));
  }

  .hero-shell,
  .hero-slide {
    min-height: 470px;
    border-radius: 24px;
  }

  .hero-content h1,
  .detail-copy h1,
  .page-hero h1 {
    font-size: 2.2rem;
  }

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

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

  .card-meta,
  .card-tags {
    display: none;
  }

  .big-search,
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar input {
    min-width: 0;
  }
}
