:root {
  --bg: #fff7fb;
  --bg-soft: #fff1f3;
  --card: #ffffff;
  --text: #2d1f28;
  --muted: #7c6570;
  --line: rgba(244, 114, 182, 0.22);
  --brand: #ec4899;
  --brand-dark: #db2777;
  --warm: #f97316;
  --gold: #f59e0b;
  --shadow: 0 24px 80px rgba(190, 24, 93, 0.16);
  --soft-shadow: 0 16px 45px rgba(190, 24, 93, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(244, 114, 182, 0.18), transparent 28rem),
    radial-gradient(circle at 92% 6%, rgba(249, 115, 22, 0.16), transparent 30rem),
    linear-gradient(180deg, #fff7fb 0%, #fffaf4 46%, #ffffff 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

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

.container.narrow {
  width: min(860px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 900;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--warm));
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.28);
}

.brand-text {
  font-size: 22px;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--brand-dark), var(--warm));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
}

.desktop-nav a {
  color: #5b4550;
  font-weight: 700;
  font-size: 14px;
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--brand-dark);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 35px rgba(190, 24, 93, 0.08);
}

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

.header-search button,
.big-search button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--warm));
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.26);
}

.mobile-toggle {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff0f6;
  color: var(--brand-dark);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.mobile-nav.open {
  display: grid;
  gap: 10px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 14px;
  color: #5b4550;
  font-weight: 700;
}

.mobile-nav a:hover {
  background: #fff1f3;
  color: var(--brand-dark);
}

.mobile-nav form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.mobile-nav input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
}

.mobile-nav button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  background: var(--brand);
  font-weight: 800;
}

.hero-section {
  padding: 38px 0 26px;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(236, 72, 153, 0.96), rgba(249, 115, 22, 0.88)),
    radial-gradient(circle at 78% 16%, rgba(255, 255, 255, 0.42), transparent 20rem);
  box-shadow: var(--shadow);
}

.hero-shell::before,
.hero-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-shell::before {
  width: 420px;
  height: 420px;
  top: -180px;
  right: -80px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-shell::after {
  width: 260px;
  height: 260px;
  bottom: -120px;
  left: 38%;
  background: rgba(255, 236, 179, 0.2);
}

.hero-slide {
  position: relative;
  z-index: 1;
  display: none;
  min-height: 540px;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: 38px;
  padding: 56px;
}

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

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

.hero-copy {
  color: #ffffff;
}

.hero-tags,
.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.tag-row span {
  color: var(--brand-dark);
  background: #fff1f3;
}

.tag-row.large {
  margin: 18px 0 0;
}

.hero-copy h1 {
  margin: 20px 0 18px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.hero-copy p {
  width: min(620px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.86;
}

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

.primary-button,
.ghost-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: var(--brand-dark);
  background: #ffffff;
  box-shadow: 0 16px 35px rgba(97, 23, 55, 0.22);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
}

.detail-actions .primary-button,
.page-hero .primary-button,
.category-hero .primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--warm));
}

.detail-actions .ghost-button,
.page-hero .ghost-button,
.category-hero .ghost-button {
  color: var(--brand-dark);
  border-color: var(--line);
  background: #ffffff;
}

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

.hero-poster {
  position: relative;
  display: block;
  width: min(390px, 100%);
  justify-self: center;
  border-radius: 34px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 80px rgba(97, 23, 55, 0.35);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 26px;
  background: linear-gradient(135deg, #fbcfe8, #fed7aa);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 56px;
  bottom: 38px;
  display: flex;
  gap: 10px;
}

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

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

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

.soft-panel {
  background: linear-gradient(180deg, rgba(255, 241, 243, 0.7), rgba(255, 255, 255, 0.5));
}

.section-heading,
.overview-header,
.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading h2,
.panel-heading h2,
.overview-header h2,
.content-card h2,
.compact-panel h2 {
  margin: 0;
  color: #2d1f28;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: -0.04em;
}

.section-link {
  color: var(--brand-dark);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(190, 24, 93, 0.08);
}

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

.category-card,
.overview-category,
.content-card,
.compact-panel,
.ranking-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.category-card {
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--warm));
  font-size: 20px;
  font-weight: 900;
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.category-card p,
.overview-header p,
.page-hero p,
.category-hero p,
.footer-grid p {
  color: var(--muted);
  line-height: 1.8;
}

.mini-link-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.mini-link-row a {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-dark);
  background: #ffffff;
  padding: 10px 16px;
  font-weight: 900;
  cursor: pointer;
}

.filter-button.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--warm));
}

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

.compact-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(190, 24, 93, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link,
.poster-frame {
  display: block;
}

.poster-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fbcfe8, #fed7aa);
}

.poster-frame img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.25s ease;
}

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

.score-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 44px;
  padding: 7px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(45, 31, 40, 0.78);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  backdrop-filter: blur(8px);
}

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

.movie-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.movie-card h2 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.movie-card h2 a:hover {
  color: var(--brand-dark);
}

.movie-card p {
  display: -webkit-box;
  min-height: 4.6em;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

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

.ranking-panel {
  padding: 22px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: #fff7fb;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  background: #ffe4ef;
  transform: translateX(3px);
}

.rank-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--warm));
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.page-hero,
.category-hero,
.detail-hero {
  padding: 56px 0 34px;
}

.page-hero .narrow,
.search-hero .narrow {
  text-align: center;
}

.page-hero h1,
.category-hero h1,
.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 7vw, 66px);
  line-height: 1;
  letter-spacing: -0.07em;
}

.breadcrumb {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--brand-dark);
}

.overview-grid {
  display: grid;
  gap: 22px;
}

.overview-category {
  padding: 24px;
}

.compact-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.compact-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #fff7fb;
}

.compact-item img {
  width: 62px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbcfe8, #fed7aa);
}

.compact-item strong,
.compact-item em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-item strong {
  margin-bottom: 5px;
  font-size: 15px;
}

.compact-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.category-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 30px;
  align-items: center;
}

.compact-panel {
  padding: 22px;
}

.compact-panel .compact-list {
  grid-template-columns: 1fr;
  margin-top: 18px;
}

.category-movie-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.detail-layout {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  padding: 12px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 26px;
  background: linear-gradient(135deg, #fbcfe8, #fed7aa);
}

.detail-copy .hero-tags span {
  color: var(--brand-dark);
  background: #ffffff;
  border: 1px solid var(--line);
}

.lead-text {
  max-width: 780px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.85;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: #140e12;
  box-shadow: var(--shadow);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #140e12;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(219, 39, 119, 0.74), rgba(249, 115, 22, 0.62));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-icon {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--brand-dark);
  background: #ffffff;
  font-size: 34px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.26);
}

.play-cover strong {
  max-width: min(640px, 90%);
  font-size: clamp(24px, 5vw, 42px);
  letter-spacing: -0.05em;
  text-align: center;
}

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

.content-card {
  padding: 26px;
}

.content-card p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.related-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.ranking-page-grid {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.sticky-panel {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 124px);
  overflow: auto;
}

.big-search {
  display: flex;
  gap: 10px;
  max-width: 640px;
  margin: 26px auto 0;
  padding: 8px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.big-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 14px 18px;
  border-radius: 999px;
}

.site-footer {
  padding: 48px 0 22px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

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

.footer-brand {
  margin-bottom: 12px;
}

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

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

.footer-links.stacked {
  flex-direction: column;
}

.footer-links a {
  color: var(--muted);
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--brand-dark);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

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

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

  .header-search {
    display: none;
  }

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

  .split-layout,
  .ranking-page-grid,
  .category-hero-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sticky-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 820px) {
  .hero-slide {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 36px 24px 76px;
  }

  .hero-poster {
    width: min(300px, 100%);
  }

  .hero-dots {
    left: 24px;
    bottom: 28px;
  }

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

  .detail-poster {
    width: min(320px, 100%);
    margin: 0 auto;
  }

  .rank-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .rank-meta {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .container,
  .mobile-nav,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

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

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

  .hero-section {
    padding-top: 20px;
  }

  .hero-shell,
  .player-card {
    border-radius: 24px;
  }

  .hero-copy h1,
  .page-hero h1,
  .category-hero h1,
  .detail-copy h1 {
    font-size: 40px;
  }

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

  .section-heading,
  .overview-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .big-search {
    flex-direction: column;
    border-radius: 24px;
  }

  .big-search input,
  .big-search button {
    width: 100%;
  }
}
