:root {
  --pink: #FFB6C1;
  --blue: #87CEEB;
  --mint: #98D8C8;
  --cream: #FFF8DC;
  --peach: #FFDAB9;
  --lavender: #E6E6FA;
  --ink: #1f2937;
  --muted: #64748b;
  --line: #e5e7eb;
  --card: rgba(255, 255, 255, 0.9);
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 25px rgba(0, 0, 0, 0.1);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(255, 248, 220, 0.68), #ffffff 42%, rgba(255, 182, 193, 0.12));
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.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.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  box-shadow: 0 10px 25px rgba(255, 182, 193, 0.35);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(4deg);
}

.brand-text,
.footer-brand {
  font-size: 24px;
  background: linear-gradient(90deg, #f472b6, #38bdf8, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  font-size: 15px;
  color: #4b5563;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #f472b6;
}

.nav-search,
.mobile-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
}

.nav-search input,
.mobile-search input {
  width: 190px;
  border: 0;
  outline: none;
  padding: 10px 14px;
  color: var(--ink);
}

.nav-search button,
.mobile-search button {
  border: 0;
  padding: 10px 16px;
  color: #ffffff;
  background: var(--pink);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 182, 193, 0.16);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #475569;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid rgba(229, 231, 235, 0.75);
}

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

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

.mobile-search {
  margin: 14px 0 8px;
}

.mobile-search input {
  width: 100%;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 54px;
  background: radial-gradient(circle at top left, rgba(255, 182, 193, 0.3), transparent 36%), linear-gradient(135deg, rgba(255, 182, 193, 0.22), rgba(255, 248, 220, 0.35), rgba(135, 206, 235, 0.22));
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(circle, rgba(255, 182, 193, 0.32) 0 2px, transparent 2px), radial-gradient(circle, rgba(135, 206, 235, 0.22) 0 2px, transparent 2px);
  background-position: 0 0, 28px 28px;
  background-size: 56px 56px;
}

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

.hero-slide {
  display: none;
  align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: 46px;
}

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

.hero-copy {
  max-width: 760px;
}

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

.hero-copy h1 {
  margin: 20px 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, #f472b6, #38bdf8, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #475569;
  font-size: 18px;
}

.hero-tags,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags span,
.detail-meta span,
.card-meta span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  color: #475569;
  font-size: 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

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

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

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

.btn.secondary {
  color: #475569;
  background: #ffffff;
}

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

.hero-poster {
  position: relative;
  min-height: 450px;
  overflow: hidden;
  border: 12px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.42), rgba(135, 206, 235, 0.35));
  box-shadow: 0 28px 65px rgba(15, 23, 42, 0.18);
}

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

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

.hero-poster span {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 14px 18px;
  color: #ffffff;
  font-weight: 800;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(10px);
}

.hero-control {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-control button {
  width: 40px;
  height: 40px;
  border: 0;
  color: #475569;
  font-size: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

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

.hero-dot {
  width: 11px !important;
  height: 11px !important;
  padding: 0;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.3) !important;
}

.hero-dot.is-active {
  width: 28px !important;
  background: var(--pink) !important;
}

.intro-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: -28px;
  position: relative;
  z-index: 4;
}

.intro-card,
.category-card,
.category-overview-card {
  display: block;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.intro-card span,
.category-card span,
.category-main-link span {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--blue));
}

.intro-card strong,
.category-card strong,
.category-main-link strong {
  display: block;
  margin-top: 16px;
  font-size: 20px;
}

.intro-card em,
.category-card em,
.category-main-link em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-style: normal;
}

.intro-card.blue span {
  background: linear-gradient(135deg, var(--blue), var(--mint));
}

.intro-card.mint span {
  background: linear-gradient(135deg, var(--mint), var(--peach));
}

.section-block,
.home-category-block {
  padding: 64px 0;
}

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

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

.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.section-more {
  color: #f472b6;
  font-weight: 800;
}

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

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

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

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

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

.poster-link,
.compact-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.32), rgba(135, 206, 235, 0.28));
}

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

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

.poster-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
}

.rank-badge {
  left: 12px;
  right: auto;
  background: var(--pink);
}

.card-body,
.compact-body {
  padding: 18px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

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

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  padding: 4px 9px;
  color: #f472b6;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(255, 182, 193, 0.16);
}

.tag-row.large span {
  font-size: 13px;
  padding: 6px 12px;
}

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

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

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

.compact-poster {
  height: 100%;
  min-height: 140px;
  aspect-ratio: auto;
}

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

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

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-samples a {
  padding: 6px 10px;
  color: #475569;
  font-size: 13px;
  border-radius: 999px;
  background: rgba(135, 206, 235, 0.14);
}

.page-hero,
.detail-hero {
  padding: 54px 0;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.18), rgba(255, 248, 220, 0.36), rgba(135, 206, 235, 0.14));
}

.page-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #f472b6;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 22px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.filter-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  padding: 13px 18px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

.filter-groups {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.filter-group span {
  color: #475569;
  font-weight: 800;
}

.filter-group button {
  border: 0;
  padding: 7px 12px;
  color: #475569;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
}

.filter-group button.is-active,
.filter-group button:hover {
  color: #ffffff;
  background: var(--pink);
}

.empty-state {
  display: none;
  margin: 18px 0 0;
  color: var(--muted);
}

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

.movie-card.is-hidden {
  display: none;
}

.detail-shell {
  position: relative;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 32px;
  align-items: center;
}

.player-card,
.detail-info,
.content-card,
.cta-panel {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-lg);
}

.player-card {
  padding: 12px;
}

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

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.34));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  font-size: 34px;
  border-radius: 999px;
  background: rgba(255, 182, 193, 0.92);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-info {
  padding: 30px;
}

.detail-info h1 {
  margin: 14px 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.detail-one-line {
  color: #475569;
  font-size: 17px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 54px 0 0;
}

.content-card {
  padding: 28px;
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

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

.cta-panel {
  margin-bottom: 64px;
  padding: 42px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.16), rgba(135, 206, 235, 0.16));
}

.cta-panel h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

.cta-panel p {
  margin: 0 auto 22px;
  max-width: 680px;
  color: var(--muted);
}

.site-footer {
  margin-top: 42px;
  padding: 46px 0 20px;
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.12), rgba(135, 206, 235, 0.12));
  border-top: 1px solid rgba(229, 231, 235, 0.75);
}

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

.footer-grid p {
  max-width: 430px;
  color: var(--muted);
}

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

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

.footer-links a {
  color: #64748b;
  font-size: 14px;
}

.footer-links a:hover {
  color: #f472b6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 18px;
  color: #94a3b8;
  font-size: 14px;
  border-top: 1px solid rgba(203, 213, 225, 0.7);
}

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

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

  .menu-toggle {
    display: block;
  }

  .hero-slide,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    min-height: auto;
  }

  .hero-control {
    position: static;
    margin-top: 24px;
  }

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

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

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

  .nav-shell {
    height: 66px;
  }

  .brand-text {
    font-size: 20px;
  }

  .hero {
    padding: 42px 0 34px;
  }

  .hero-poster {
    min-height: 300px;
  }

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

  .intro-cards,
  .movie-grid,
  .featured-grid,
  .small-grid,
  .rank-grid,
  .rank-list,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .compact-poster {
    min-height: 126px;
  }

  .section-head {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 10px;
  }

  .detail-info,
  .content-card,
  .cta-panel {
    padding: 22px;
  }

  .play-overlay span {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
