* {
  box-sizing: border-box;
}

:root {
  --bg: #fff7f9;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fdf2f8;
  --line: #f3d4df;
  --rose: #f43f5e;
  --rose-dark: #be123c;
  --pink: #db2777;
  --shadow: 0 24px 70px rgba(190, 18, 60, 0.12);
  --radius: 24px;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7f9 0%, #ffffff 38%, #fff7f9 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.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.88);
  border-bottom: 1px solid rgba(244, 63, 94, 0.16);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: transparent;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  font-size: 14px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 12px 26px rgba(244, 63, 94, 0.28);
}

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

.desktop-nav a,
.mobile-panel a {
  color: #374151;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
  color: var(--rose);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-panel input,
.filter-toolbar input,
.filter-toolbar select,
.big-search input {
  border: 1px solid rgba(244, 63, 94, 0.22);
  border-radius: 999px;
  background: #fff;
  outline: 0;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 210px;
  padding: 10px 15px;
}

.header-search input:focus,
.mobile-panel input:focus,
.filter-toolbar input:focus,
.filter-toolbar select:focus,
.big-search input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.header-search button,
.big-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 12px 26px rgba(244, 63, 94, 0.22);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 14px;
  color: var(--ink);
  background: #fff0f4;
  padding: 9px 12px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.mobile-panel nav {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.mobile-panel form {
  display: grid;
  gap: 10px;
}

.mobile-panel input {
  padding: 12px 16px;
}

.mobile-panel button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
}

.hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.56fr);
  align-items: center;
  gap: 48px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

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

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.hero-content {
  max-width: 720px;
  color: #fff;
  padding-top: 50px;
}

.hero-kicker,
.kicker {
  margin: 0 0 12px;
  color: var(--rose);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-content h2 {
  margin: 0 0 18px;
  color: #ffe4ec;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.1;
}

.hero-content p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--rose-dark);
  background: #ffe4ec;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 800;
}

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

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

.primary-button {
  color: #fff;
  padding: 13px 24px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 18px 34px rgba(244, 63, 94, 0.35);
}

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

.ghost-button {
  color: #fff;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.45);
  transform: rotate(1.5deg);
}

.hero-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: #fff;
  background: rgba(244, 63, 94, 0.88);
  box-shadow: 0 20px 40px rgba(244, 63, 94, 0.35);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
  z-index: 4;
}

.hero-controls > button,
.hero-dot {
  border: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 24px;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  padding: 0;
}

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

.quick-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: -44px;
  position: relative;
  z-index: 5;
}

.category-chip,
.category-card-large {
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.16);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.category-chip {
  display: grid;
  gap: 6px;
  min-height: 96px;
  border-radius: 22px;
  padding: 20px;
}

.category-chip span {
  font-size: 18px;
  font-weight: 900;
}

.category-chip small {
  color: var(--muted);
}

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

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

.section-heading h2,
.ranking-panel h2,
.page-hero h1,
.detail-side h1,
.detail-copy h2 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.section-heading h2,
.ranking-panel h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.section-heading p:not(.kicker),
.page-hero p,
.detail-side p,
.detail-copy p {
  margin: 10px 0 0;
  color: var(--muted);
}

.section-link {
  flex: 0 0 auto;
  color: var(--rose-dark);
  background: #ffe4ec;
  padding: 11px 18px;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(190, 18, 60, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(190, 18, 60, 0.16);
}

.card-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #831843, #111827);
}

.card-media img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.quality-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(244, 63, 94, 0.92);
}

.quality-badge {
  left: 12px;
  top: 12px;
  padding: 5px 10px;
}

.rank-badge {
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 900;
}

.card-body h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.28;
}

.card-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.movie-card.compact .card-body h3 {
  font-size: 16px;
}

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

.soft-panel {
  background: linear-gradient(135deg, #fff1f2, #fdf2f8);
}

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

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
  border-radius: 28px;
  background: #111827;
  color: #fff;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.18);
}

.ranking-panel .kicker {
  color: #fb7185;
}

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

.rank-item,
.table-rank-row {
  display: grid;
  gap: 3px;
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item {
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.rank-item:hover,
.table-rank-row:hover {
  transform: translateX(4px);
}

.rank-item span {
  grid-row: span 2;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  font-weight: 900;
}

.rank-item strong,
.table-rank-row strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-item em,
.table-rank-row em,
.table-rank-row small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-style: normal;
}

.primary-button.wide {
  width: 100%;
}

.page-hero {
  padding: 68px 0 34px;
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(34px, 5vw, 56px);
}

.page-hero p {
  max-width: 820px;
  font-size: 18px;
}

.category-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 28px 0 72px;
}

.category-card-large {
  border-radius: 28px;
  padding: 26px;
}

.category-card-large h2 {
  margin: 4px 0 10px;
  font-size: 26px;
}

.category-card-large p:not(.kicker) {
  color: var(--muted);
}

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

.category-samples a {
  border-radius: 999px;
  color: var(--rose-dark);
  background: #ffe4ec;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.filter-toolbar,
.big-search {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-toolbar input,
.filter-toolbar select,
.big-search input {
  min-width: 190px;
  padding: 12px 16px;
}

.big-search {
  margin-top: 24px;
}

.big-search input {
  width: min(560px, 100%);
}

.table-rank-list {
  display: grid;
  gap: 10px;
  border-radius: 28px;
  padding: 18px;
  background: #111827;
}

.table-rank-row {
  grid-template-columns: 54px minmax(0, 1.2fr) minmax(120px, 0.7fr) minmax(160px, 1fr);
  align-items: center;
  color: #fff;
  padding: 14px;
  background: rgba(255, 255, 255, 0.07);
}

.table-rank-row span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  font-weight: 900;
}

.detail-hero {
  padding: 34px 0 18px;
}

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

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

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

.player-card,
.detail-side,
.detail-copy article {
  border: 1px solid rgba(244, 63, 94, 0.14);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
  padding: 14px;
  background: #111827;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
}

.video-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.26), rgba(17, 24, 39, 0.82));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 18px 40px rgba(244, 63, 94, 0.35);
}

.player-overlay strong {
  font-size: 18px;
}

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

.player-overlay.is-loading span {
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

.detail-side {
  overflow: hidden;
}

.detail-side img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-side > div {
  padding: 22px;
}

.detail-side h1 {
  font-size: clamp(28px, 3vw, 40px);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.detail-meta span {
  border-radius: 999px;
  color: var(--rose-dark);
  background: #ffe4ec;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 900;
}

.detail-tags {
  margin-top: 16px;
}

.detail-copy {
  padding: 24px 0 20px;
}

.detail-copy article {
  padding: clamp(22px, 3vw, 38px);
}

.detail-copy h2 {
  font-size: 28px;
  margin-top: 22px;
}

.detail-copy h2:first-child {
  margin-top: 0;
}

.site-footer {
  margin-top: 70px;
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(160px, 0.6fr));
  gap: 28px;
  padding: 52px 0 34px;
}

.site-logo.light {
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-brand p {
  max-width: 420px;
  color: #9ca3af;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 16px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li,
.site-footer a {
  color: #9ca3af;
  margin: 8px 0;
}

.site-footer a:hover {
  color: #fb7185;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0 26px;
  color: #9ca3af;
  text-align: center;
}

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

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

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

  .hero {
    min-height: 820px;
  }

  .hero-poster {
    max-width: 320px;
    margin-bottom: 74px;
  }

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

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

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .header-inner {
    min-height: 64px;
  }

  .site-logo {
    font-size: 21px;
  }

  .hero {
    min-height: 800px;
  }

  .hero-slide {
    gap: 22px;
    align-content: center;
  }

  .hero-content {
    padding-top: 28px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-actions {
    gap: 10px;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .quick-categories,
  .movie-grid,
  .featured-grid,
  .compact-grid,
  .ranking-grid,
  .category-overview,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
  }

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

  .table-rank-row em,
  .table-rank-row small {
    grid-column: 2;
  }

  .detail-side {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .detail-side img {
    height: 100%;
  }

  .detail-side h1 {
    font-size: 24px;
  }
}
