:root {
  --bg: #fff7fb;
  --bg-soft: #fff0f5;
  --card: #ffffff;
  --ink: #1f2937;
  --muted: #64748b;
  --line: #f9c5d5;
  --pink: #ec4899;
  --rose: #f43f5e;
  --orange: #fb923c;
  --purple: #a855f7;
  --shadow: 0 22px 60px rgba(236, 72, 153, 0.16);
  --soft-shadow: 0 14px 38px rgba(244, 63, 94, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #fff7fb 36%, #ffffff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 241, 242, 0.96), rgba(255, 247, 237, 0.96));
  border-bottom: 1px solid rgba(249, 168, 212, 0.55);
  box-shadow: 0 10px 28px rgba(244, 63, 94, 0.08);
  backdrop-filter: blur(18px);
}

.header-shell {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--rose), var(--orange));
  box-shadow: 0 12px 22px rgba(236, 72, 153, 0.28);
}

.brand-text {
  font-size: 21px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #475569;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose);
  background: rgba(252, 231, 243, 0.9);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(252, 231, 243, 0.9);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--rose);
}

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

.mobile-nav.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-link {
  padding: 11px 12px;
  border-radius: 14px;
  color: #475569;
  background: #fff7fb;
  font-weight: 700;
}

.focus-stage {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  padding: 42px 0 60px;
  background:
    radial-gradient(circle at 18% 18%, rgba(244, 114, 182, 0.24), transparent 30%),
    radial-gradient(circle at 82% 8%, rgba(251, 146, 60, 0.22), transparent 28%),
    linear-gradient(135deg, #fff1f2 0%, #fff7ed 42%, #ffffff 100%);
}

.focus-backdrop {
  position: absolute;
  inset: auto -8% -18% -8%;
  height: 320px;
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.18), rgba(251, 146, 60, 0.16));
  filter: blur(70px);
}

.focus-shell,
.content-section,
.detail-shell,
.page-banner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.focus-shell {
  position: relative;
  z-index: 1;
}

.focus-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-links a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #be123c;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(251, 207, 232, 0.75);
  font-size: 14px;
  font-weight: 700;
}

.focus-search,
.listing-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.focus-search {
  width: min(420px, 100%);
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(236, 72, 153, 0.12);
}

.focus-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 12px 16px;
  color: var(--ink);
  background: transparent;
}

.focus-search button,
.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.focus-search button,
.primary-button {
  padding: 12px 20px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--rose), var(--orange));
  box-shadow: 0 14px 28px rgba(244, 63, 94, 0.22);
}

.ghost-button,
.section-more {
  padding: 12px 18px;
  color: var(--rose);
  background: #fff1f2;
  border: 1px solid rgba(244, 114, 182, 0.28);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.focus-search button:hover {
  transform: translateY(-2px);
}

.focus-slides {
  position: relative;
  min-height: 470px;
}

.focus-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
  gap: 44px;
  align-items: center;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.focus-copy {
  padding: 42px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(251, 207, 232, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.focus-label,
.kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--rose);
  background: rgba(255, 228, 230, 0.9);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.focus-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.focus-copy p {
  margin: 0;
  color: #475569;
  font-size: 18px;
  line-height: 1.85;
}

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

.focus-tags {
  margin-top: 22px;
}

.focus-tags span,
.tag-row span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #be123c;
  background: #fff1f2;
  font-size: 13px;
  font-weight: 700;
}

.focus-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.focus-poster {
  position: relative;
  height: 470px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(190, 24, 93, 0.28);
  background: linear-gradient(135deg, #ffe4e6, #ffedd5);
}

.focus-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(15, 23, 42, 0.42));
}

.slider-dots {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f9a8d4;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.slider-dot.active {
  width: 34px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
}

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

.content-section.soft-panel {
  width: 100%;
  padding: 64px max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(135deg, #fff1f2, #ffffff 48%, #fff7ed);
}

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

.section-heading h2,
.page-banner h1,
.detail-card h1 {
  margin: 12px 0 10px;
  color: #111827;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-heading p,
.page-banner p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  min-width: 0;
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.18;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4e6, #ffedd5);
}

.poster-link img,
.rank-thumb img,
.side-poster img {
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-link img,
.rank-item:hover .rank-thumb img,
.side-poster:hover img {
  transform: scale(1.055);
}

.poster-glow {
  position: absolute;
  inset: 18% 10% auto;
  height: 38%;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.26);
  filter: blur(28px);
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.68);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.card-content {
  padding: 18px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.card-meta span,
.detail-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f8fafc;
}

.movie-card h2,
.rank-copy h2,
.side-info h2 {
  margin: 12px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.movie-card h2 a:hover,
.rank-copy h2 a:hover,
.category-mini a:hover {
  color: var(--rose);
}

.movie-card p,
.rank-copy p,
.category-card p,
.side-info dd,
.detail-card p {
  color: var(--muted);
  line-height: 1.72;
}

.movie-card p,
.rank-copy p,
.category-card p {
  margin: 0 0 14px;
  font-size: 14px;
}

.movie-card.compact .card-content {
  padding: 15px;
}

.movie-card.compact h2 {
  font-size: 17px;
}

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

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

.category-tile,
.category-card {
  display: block;
  min-height: 152px;
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(251, 207, 232, 0.75);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile span,
.category-title {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--rose);
  font-size: 20px;
  font-weight: 900;
}

.category-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-mini a {
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff1f2;
  color: #9f1239;
  font-size: 13px;
  font-weight: 700;
}

.page-banner {
  margin-top: 36px;
  padding: 58px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.22), transparent 32%),
    linear-gradient(135deg, #fff1f2, #ffffff 48%, #fff7ed);
  border: 1px solid rgba(251, 207, 232, 0.75);
  box-shadow: var(--soft-shadow);
}

.channel-banner {
  background:
    radial-gradient(circle at top right, rgba(168, 85, 247, 0.16), transparent 34%),
    linear-gradient(135deg, #fff1f2, #ffffff 50%, #faf5ff);
}

.ranking-banner {
  background:
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.23), transparent 34%),
    linear-gradient(135deg, #fff1f2, #ffffff 44%, #fff7ed);
}

.listing-tools {
  margin-bottom: 26px;
  justify-content: space-between;
  padding: 14px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.search-box,
.select-box {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.search-box {
  flex: 1;
}

.search-box input,
.select-box select {
  width: 100%;
  border: 1px solid #fbcfe8;
  outline: 0;
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--ink);
  background: #fff7fb;
}

.select-box select {
  min-width: 170px;
}

.empty-state {
  display: none;
  margin-top: 28px;
  padding: 26px;
  border-radius: 24px;
  color: #9f1239;
  background: #fff1f2;
  text-align: center;
  font-weight: 800;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 70px 118px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.rank-number {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  font-size: 18px;
  font-weight: 900;
}

.rank-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffe4e6, #ffedd5);
}

.detail-shell {
  padding: 34px 0 0;
}

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

.breadcrumb a {
  color: var(--rose);
  font-weight: 800;
}

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  aspect-ratio: 16 / 9;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
  cursor: pointer;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.62));
  cursor: pointer;
  z-index: 2;
}

.play-cover.hidden {
  display: none;
}

.play-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--rose), var(--orange));
  box-shadow: 0 18px 42px rgba(244, 63, 94, 0.38);
  font-size: 26px;
}

.detail-card,
.side-info,
.side-poster {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

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

.detail-card h2 {
  margin: 28px 0 10px;
  font-size: 24px;
}

.detail-meta {
  margin-bottom: 18px;
}

.lead-text {
  font-size: 18px;
  color: #475569;
}

.side-panel {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 18px;
}

.side-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4.18;
  background: linear-gradient(135deg, #ffe4e6, #ffedd5);
}

.side-info {
  padding: 22px;
}

.side-info dl {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

.side-info dt {
  color: #9f1239;
  font-weight: 900;
}

.side-info dd {
  margin: 0;
}

@media (max-width: 1060px) {
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .focus-slide {
    grid-template-columns: 1fr;
  }

  .focus-slides {
    min-height: 820px;
  }

  .focus-poster {
    height: 360px;
  }

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

  .side-panel {
    position: static;
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

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

  .menu-button {
    display: block;
  }

  .focus-stage {
    min-height: auto;
    padding-top: 26px;
  }

  .focus-topline,
  .section-heading,
  .listing-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .focus-search {
    width: 100%;
  }

  .focus-slides {
    min-height: 760px;
  }

  .focus-copy {
    padding: 28px;
  }

  .focus-poster {
    height: 320px;
  }

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

  .page-banner {
    padding: 34px 24px;
  }

  .rank-item {
    grid-template-columns: 46px 86px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .rank-number {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 14px;
  }

  .detail-card {
    padding: 22px;
  }

  .side-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .header-shell,
  .focus-shell,
  .content-section,
  .detail-shell,
  .page-banner {
    width: min(100% - 20px, 1180px);
  }

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

  .mobile-nav.open {
    grid-template-columns: 1fr;
  }

  .focus-copy h1 {
    font-size: 34px;
  }

  .focus-copy p,
  .lead-text {
    font-size: 16px;
  }

  .focus-slides {
    min-height: 720px;
  }

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

  .content-section,
  .content-section.soft-panel {
    padding-top: 42px;
    padding-bottom: 42px;
  }
}
