:root {
  --peach-50: #fff7f3;
  --peach-100: #ffe5e0;
  --peach-200: #ffd4e5;
  --peach-300: #ffc9b9;
  --peach-400: #ffb5a7;
  --peach-500: #ff9f7a;
  --pink-300: #ffb6c1;
  --pink-400: #ff9eb5;
  --pink-500: #ff8fa3;
  --coral-300: #ffb0a8;
  --text-900: #1f2937;
  --text-700: #374151;
  --text-600: #4b5563;
  --text-500: #6b7280;
  --white: #ffffff;
  --shadow-soft: 0 20px 40px rgba(255, 159, 122, 0.24);
  --shadow-card: 0 14px 32px rgba(99, 76, 71, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-900);
  background: linear-gradient(135deg, var(--peach-50), #fff0f6 48%, #ffffff);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.gradient-text {
  background: linear-gradient(135deg, #ff9999, var(--pink-500), var(--pink-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid rgba(255, 181, 167, 0.2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

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

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

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

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--peach-400), var(--pink-400));
  box-shadow: 0 10px 24px rgba(255, 159, 122, 0.28);
  font-size: 15px;
  padding-left: 2px;
}

.brand-name {
  font-size: 26px;
  line-height: 1;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav-link {
  color: var(--text-700);
  font-weight: 650;
  padding: 9px 4px;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--peach-500);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 250px;
}

.nav-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid rgba(255, 181, 167, 0.42);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  padding: 11px 15px;
  color: var(--text-700);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--peach-400);
  box-shadow: 0 0 0 4px rgba(255, 181, 167, 0.22);
}

.nav-search button,
.btn-peach,
.btn-soft,
.filter-bar button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.nav-search button,
.btn-peach,
.filter-bar button {
  color: var(--white);
  background: linear-gradient(135deg, var(--peach-400), var(--pink-400));
  box-shadow: 0 8px 22px rgba(255, 159, 122, 0.28);
}

.nav-search button {
  padding: 10px 18px;
}

.btn-peach,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
}

.btn-peach:hover,
.nav-search button:hover,
.filter-bar button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 159, 122, 0.36);
}

.btn-soft {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-700);
  box-shadow: 0 8px 22px rgba(99, 76, 71, 0.12);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--text-700);
  background: rgba(255, 255, 255, 0.8);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
}

.mobile-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text-700);
  font-weight: 700;
}

.mobile-panel a:hover {
  background: var(--peach-100);
  color: var(--peach-500);
}

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

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--peach-300), var(--pink-300) 48%, var(--coral-300));
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  filter: blur(48px);
}

.hero::before {
  width: 360px;
  height: 360px;
  top: 42px;
  left: 6%;
}

.hero::after {
  width: 480px;
  height: 480px;
  right: 7%;
  bottom: 40px;
}

.hero-inner {
  position: relative;
  min-height: 640px;
  z-index: 2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(280px, 0.74fr);
  gap: 48px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-badge,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  margin-bottom: 20px;
  border-radius: 999px;
  color: var(--text-700);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 26px rgba(99, 76, 71, 0.12);
  font-weight: 700;
  font-size: 14px;
}

.hero h1,
.hero h2 {
  margin: 0 0 20px;
  color: var(--white);
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 32px rgba(99, 76, 71, 0.18);
}

.hero h2 {
  font-size: clamp(34px, 5vw, 62px);
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-meta span {
  padding: 8px 13px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  min-height: 390px;
  background: rgba(255, 255, 255, 0.32);
  box-shadow: 0 24px 70px rgba(99, 76, 71, 0.24);
  transform: rotate(2deg);
}

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

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

.hero-poster span {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 14px 18px;
  border-radius: 18px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.46);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  left: 0;
  bottom: 44px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-dot {
  width: 34px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 58px;
  background: var(--white);
}

.featured-overlap {
  position: relative;
  z-index: 5;
  margin-top: -72px;
}

.page-hero {
  background: linear-gradient(135deg, var(--peach-400), var(--pink-400) 52%, var(--coral-300));
  color: var(--white);
  padding: 72px 0 78px;
  overflow: hidden;
}

.page-hero-inner {
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
}

.page-hero p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.92);
}

.content-section {
  padding: 58px 0 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.heading-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--peach-400), var(--pink-400));
  box-shadow: 0 12px 28px rgba(255, 159, 122, 0.28);
}

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

.section-heading p {
  margin: 4px 0 0;
  color: var(--text-500);
}

.grid-3,
.grid-4,
.movie-grid,
.category-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 181, 167, 0.18);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--peach-100), var(--pink-300));
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.04));
  transition: opacity 0.3s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  color: var(--peach-500);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rank-no {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--peach-500), var(--pink-500));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.movie-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.movie-info strong {
  color: var(--text-900);
  font-size: 18px;
  line-height: 1.35;
}

.movie-info em {
  min-height: 45px;
  color: var(--text-600);
  font-style: normal;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-meta span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.movie-meta span {
  color: var(--text-500);
}

.tag-row span,
.detail-tags span {
  padding: 6px 10px;
  color: #b85f55;
  background: linear-gradient(135deg, var(--peach-100), #fff3f7);
}

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

.movie-card-wide .poster-wrap {
  aspect-ratio: auto;
  height: 100%;
}

.category-card {
  position: relative;
  min-height: 170px;
  padding: 28px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 181, 167, 0.18);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 229, 224, 0.74), rgba(255, 182, 193, 0.68));
  opacity: 0;
  transition: opacity 0.28s ease;
}

.category-card:hover::before {
  opacity: 1;
}

.category-card > * {
  position: relative;
  z-index: 1;
}

.category-icon {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 16px;
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  color: var(--text-900);
}

.category-card p {
  margin: 0;
  color: var(--text-600);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 170px 140px;
  gap: 14px;
  padding: 18px;
  margin-bottom: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.filter-bar button {
  padding: 11px 18px;
}

.empty-state {
  display: none;
  padding: 34px;
  border-radius: var(--radius-xl);
  background: var(--white);
  color: var(--text-600);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.empty-state.show {
  display: block;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-500);
  font-size: 14px;
  margin: 28px 0 18px;
}

.breadcrumb a {
  color: var(--peach-500);
  font-weight: 700;
}

.watch-panel,
.detail-card,
.side-card {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 181, 167, 0.16);
}

.watch-panel {
  overflow: hidden;
}

.video-shell {
  position: relative;
  background: #111827;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #111827;
}

.play-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.54));
  cursor: pointer;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.play-overlay span {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  color: var(--peach-500);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  font-size: 32px;
}

.video-shell.is-playing .play-overlay,
.video-shell.is-ready .play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
}

.detail-card h2,
.side-card h2 {
  margin: 26px 0 12px;
  font-size: 24px;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-700);
  background: var(--peach-100);
  font-weight: 700;
  font-size: 13px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.side-card {
  padding: 22px;
}

.side-card h2 {
  margin-top: 0;
}

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

.side-mini {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-mini img {
  width: 86px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
}

.side-mini strong {
  display: block;
  color: var(--text-900);
  line-height: 1.35;
}

.side-mini span {
  color: var(--text-500);
  font-size: 13px;
}

.prose-block p {
  margin: 0 0 16px;
  color: var(--text-700);
  font-size: 17px;
}

.site-footer {
  margin-top: 76px;
  padding: 46px 0 0;
  background: linear-gradient(135deg, var(--peach-100), #fff1f6);
  border-top: 1px solid rgba(255, 181, 167, 0.28);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.8fr 1fr;
  gap: 32px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--text-900);
}

.site-footer p,
.site-footer a,
.footer-bottom {
  color: var(--text-600);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a:hover {
  color: var(--peach-500);
}

.footer-bottom {
  margin-top: 34px;
  padding: 18px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 181, 167, 0.24);
  font-size: 14px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-transition {
  animation: fadeIn 0.32s ease both;
}

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 70px 0 92px;
    align-content: center;
  }

  .hero,
  .hero-inner {
    min-height: 760px;
  }

  .hero-poster {
    min-height: 280px;
    transform: none;
  }

  .hero-poster img {
    min-height: 280px;
  }

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

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

  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .nav-wrap {
    min-height: 66px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

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

  .hero,
  .hero-inner {
    min-height: 720px;
  }

  .hero h1,
  .hero h2 {
    font-size: 38px;
  }

  .hero-controls {
    bottom: 30px;
  }

  .featured-overlap {
    margin-top: -44px;
  }

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

  .movie-card-wide {
    grid-template-columns: 1fr;
  }

  .movie-card-wide .poster-wrap {
    aspect-ratio: 16 / 10;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

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

  .detail-card,
  .side-card {
    padding: 20px;
  }
}
