:root {
  --color-bg: #fff7fb;
  --color-surface: #ffffff;
  --color-soft: #fff1f7;
  --color-pink: #ec4899;
  --color-rose: #fb7185;
  --color-deep: #be185d;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --shadow-soft: 0 24px 60px rgba(190, 24, 93, 0.14);
  --shadow-card: 0 14px 34px rgba(190, 24, 93, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(251, 113, 133, 0.18), transparent 34rem),
    linear-gradient(180deg, #fff1f7 0%, #ffffff 34%, #fff7fb 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #f472b6 0%, #f9a8d4 48%, #fb7185 100%);
  box-shadow: 0 16px 40px rgba(190, 24, 93, 0.24);
  backdrop-filter: blur(16px);
}

.nav-bar {
  min-height: 68px;
  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.06em;
}

.brand {
  color: #ffffff;
  font-size: 1.4rem;
  white-space: nowrap;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--color-pink);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(190, 24, 93, 0.22);
  font-size: 0.85rem;
}

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

.desktop-nav a {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 700;
  transition: transform 0.2s ease, color 0.2s ease;
}

.desktop-nav a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.header-search input {
  width: 190px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 8px 10px;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.84);
}

.header-search button,
.primary-button,
.ghost-button,
.section-more {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-pink), var(--color-rose));
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.32);
}

.header-search button {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.26);
}

.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
}

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

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.section-more {
  color: var(--color-deep);
  background: #ffe4f0;
}

.mobile-toggle {
  display: none;
  color: #ffffff;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
}

.mobile-nav {
  display: none;
  padding: 0 16px 14px;
  text-align: center;
}

.mobile-nav a {
  display: inline-flex;
  color: #ffffff;
  padding: 8px 12px;
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  height: 610px;
  overflow: hidden;
  margin-bottom: 46px;
  background: #111827;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img,
.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #fdf2f8, #fecdd3);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.86) 0%, rgba(17, 24, 39, 0.52) 48%, rgba(17, 24, 39, 0.2) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.86), transparent 46%);
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100vw - 1180px) / 2));
  bottom: 82px;
  width: min(680px, calc(100% - 64px));
  color: #ffffff;
}

.hero-kicker,
.detail-kicker,
.page-hero p,
.section-heading p,
.filter-panel p {
  margin: 0 0 10px;
  color: var(--color-deep);
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #fce7f3;
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-shadow: 0 16px 44px rgba(0, 0, 0, 0.42);
}

.hero-content p {
  max-width: 640px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
  line-height: 1.85;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 2rem;
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 32px;
  background: #ffffff;
}

.intro-strip,
.page-hero,
.filter-panel,
.article-panel,
.ranking-table,
.player-section {
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.intro-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  margin-bottom: 46px;
}

.intro-strip p {
  margin: 0 0 8px;
  color: var(--color-pink);
  font-weight: 900;
}

.intro-strip h2,
.page-hero h1,
.section-heading h2,
.filter-panel h1,
.ranking-table h2,
.article-panel h2 {
  margin: 0;
  color: #111827;
  line-height: 1.18;
}

.intro-strip h2 {
  font-size: clamp(1.45rem, 4vw, 2.4rem);
}

.content-section,
.category-overview,
.split-section,
.ranking-table,
.player-section,
.article-panel,
.related-section {
  margin: 44px 0;
}

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

.section-heading h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.section-heading.compact {
  margin-bottom: 16px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(236, 72, 153, 0.1);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 50px rgba(190, 24, 93, 0.2);
}

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

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

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

.poster-play,
.rank-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
}

.poster-play {
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--color-pink), var(--color-rose));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.34);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: rgba(17, 24, 39, 0.78);
  font-weight: 900;
}

.card-body {
  padding: 18px;
}

.card-meta,
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--color-muted);
  font-size: 0.84rem;
}

.card-meta a {
  color: var(--color-deep);
  font-weight: 800;
}

.card-body h2 {
  min-height: 3.15em;
  margin: 10px 0 10px;
  color: #111827;
  font-size: 1.08rem;
  line-height: 1.45;
}

.card-body h2 a:hover {
  color: var(--color-pink);
}

.card-body p {
  min-height: 4.7em;
  margin: 0 0 14px;
  color: #4b5563;
  line-height: 1.65;
  font-size: 0.94rem;
}

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--color-deep);
  background: #ffe4f0;
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-tags span,
.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px);
}

.card-foot {
  align-items: flex-start;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #fce7f3;
}

.card-foot span:last-child {
  text-align: right;
}

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

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

.category-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.category-visual {
  position: relative;
  display: block;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: linear-gradient(135deg, #f472b6, #fb7185);
}

.category-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}

.category-visual span {
  position: absolute;
  right: 16px;
  bottom: 14px;
  color: #ffffff;
  font-weight: 900;
}

.category-card > div {
  padding: 18px;
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 1.22rem;
}

.category-card p {
  margin: 0 0 14px;
  color: var(--color-muted);
  line-height: 1.7;
}

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

.category-samples span {
  max-width: 100%;
  overflow: hidden;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--color-deep);
  background: #fff1f7;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}

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

.split-section .content-section {
  margin: 0;
}

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.ranking-list {
  display: grid;
  gap: 12px;
}

.ranking-list a,
.rank-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #fff7fb;
}

.ranking-list span,
.rank-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-pink), var(--color-rose));
  font-weight: 900;
}

.ranking-list strong,
.rank-row strong {
  overflow: hidden;
  color: #111827;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-list em,
.rank-row em,
.rank-row small {
  grid-column: 2;
  overflow: hidden;
  color: var(--color-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
  font-style: normal;
}

.page-main {
  padding: 42px 0 20px;
}

.page-hero {
  padding: clamp(28px, 5vw, 54px);
  margin-bottom: 34px;
  background:
    radial-gradient(circle at top right, rgba(251, 113, 133, 0.2), transparent 22rem),
    rgba(255, 255, 255, 0.9);
}

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.04em;
}

.page-hero span {
  display: block;
  max-width: 760px;
  margin-top: 16px;
  color: var(--color-muted);
  font-size: 1.06rem;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: 230px minmax(220px, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
  margin-bottom: 32px;
}

.filter-panel h1 {
  font-size: 1.35rem;
}

.filter-search input {
  width: 100%;
  min-height: 50px;
  border: 1px solid #fbcfe8;
  border-radius: 999px;
  outline: none;
  padding: 0 18px;
  color: #111827;
  background: #ffffff;
}

.filter-buttons {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-buttons button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--color-deep);
  background: #ffe4f0;
  cursor: pointer;
  font-weight: 800;
}

.filter-buttons button.is-active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-pink), var(--color-rose));
}

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

.ranking-grid .movie-card:nth-child(-n + 3) {
  transform: translateY(-4px);
}

.ranking-table {
  padding: 26px;
}

.ranking-table > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.detail-main {
  background: linear-gradient(180deg, #111827 0, #fff7fb 620px, #fff7fb 100%);
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.42;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.64), rgba(17, 24, 39, 0.88)),
    linear-gradient(0deg, #111827, transparent 45%);
}

.detail-head {
  position: relative;
  z-index: 2;
  padding: 36px 0 80px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.94rem;
}

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

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

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-lg);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
  background: linear-gradient(135deg, #fdf2f8, #fecdd3);
}

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

.detail-kicker {
  color: #fce7f3;
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.detail-line {
  max-width: 760px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.14rem;
  line-height: 1.85;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 24px 0;
}

.detail-meta-grid span {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.86);
}

.detail-meta-grid strong {
  display: block;
  margin-bottom: 4px;
  color: #ffffff;
}

.detail-content {
  position: relative;
  z-index: 3;
  padding-bottom: 26px;
}

.player-section {
  padding: 24px;
  margin-top: -80px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #111827;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.36);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.24), rgba(17, 24, 39, 0.54));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-pink), var(--color-rose));
  box-shadow: 0 24px 44px rgba(236, 72, 153, 0.36);
  font-size: 2rem;
}

.play-overlay strong {
  font-size: 1.12rem;
}

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

.article-panel {
  padding: clamp(22px, 4vw, 34px);
}

.article-panel h2 {
  margin-bottom: 16px;
  font-size: 1.6rem;
}

.article-panel p {
  margin: 0 0 16px;
  color: #374151;
  line-height: 2;
  font-size: 1.02rem;
}

.prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0;
}

.prev-next a {
  overflow: hidden;
  padding: 16px 18px;
  border-radius: 18px;
  color: var(--color-deep);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.site-footer {
  margin-top: 56px;
  background: linear-gradient(180deg, #fff7fb, #ffe4f0);
  border-top: 1px solid rgba(236, 72, 153, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 32px;
  padding: 42px 0;
}

.footer-brand {
  margin-bottom: 14px;
  font-size: 1.25rem;
}

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

.footer-grid p,
.footer-grid a {
  display: block;
  margin: 0 0 8px;
  color: #6b7280;
  line-height: 1.7;
}

.footer-grid a:hover {
  color: var(--color-pink);
}

.footer-bottom {
  padding: 18px;
  text-align: center;
  color: #6b7280;
  border-top: 1px solid rgba(236, 72, 153, 0.12);
}

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

  .split-section {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

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

  .mobile-toggle {
    display: inline-flex;
  }

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

  .hero-carousel {
    height: 560px;
  }

  .hero-content {
    left: 24px;
    bottom: 72px;
    width: calc(100% - 48px);
  }

  .movie-grid,
  .category-grid,
  .category-grid.wide,
  .ranking-table > div,
  .detail-grid,
  .footer-grid,
  .filter-panel,
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .intro-strip,
  .section-heading,
  .prev-next {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .detail-grid {
    gap: 24px;
  }

  .detail-poster {
    width: min(280px, 100%);
  }

  .player-section {
    margin-top: -36px;
    padding: 16px;
  }
}

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

  .brand {
    font-size: 1.08rem;
  }

  .hero-carousel {
    height: 520px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-content p {
    font-size: 0.98rem;
  }

  .card-body h2 {
    min-height: auto;
  }

  .card-body p {
    min-height: auto;
  }
}
