:root {
  --site-bg: #fff7fb;
  --site-surface: #ffffff;
  --site-ink: #17111a;
  --site-muted: #6f6473;
  --site-soft: #fff0f7;
  --site-border: rgba(233, 64, 136, 0.16);
  --site-pink: #ec4899;
  --site-orange: #f97316;
  --site-gold: #fbbf24;
  --site-shadow: 0 18px 45px rgba(108, 35, 73, 0.13);
  --site-radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--site-ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(236, 72, 153, 0.15), transparent 28rem),
    radial-gradient(circle at 90% 12%, rgba(249, 115, 22, 0.12), transparent 28rem),
    var(--site-bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 74px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-pink), var(--site-orange));
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.3);
}

.logo-text {
  background: linear-gradient(135deg, var(--site-pink), var(--site-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #514759;
  font-weight: 700;
}

.nav-links a,
.mobile-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-nav a:hover {
  color: var(--site-pink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-search {
  display: flex;
  align-items: center;
  min-width: 230px;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.08);
}

.site-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 11px 12px 11px 18px;
  color: var(--site-ink);
  background: transparent;
}

.site-search button {
  border: 0;
  min-width: 44px;
  height: 44px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-pink), var(--site-orange));
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-pink), var(--site-orange));
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 20px 20px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--site-border);
}

.mobile-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
  font-weight: 800;
}

.page-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 20px 70px;
}

.hero-slider {
  max-width: 1240px;
  margin: 28px auto 0;
  padding: 0 20px;
}

.hero-frame {
  position: relative;
  min-height: clamp(520px, 70vh, 760px);
  overflow: hidden;
  border-radius: 34px;
  background: #160b19;
  box-shadow: 0 24px 70px rgba(79, 24, 58, 0.28);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
}

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

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: saturate(1.1) contrast(1.02);
}

.hero-slide.is-active .hero-media {
  animation: slowZoom 8s ease forwards;
}

@keyframes slowZoom {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 7, 21, 0.94), rgba(17, 7, 21, 0.72) 46%, rgba(17, 7, 21, 0.28)),
    linear-gradient(0deg, rgba(17, 7, 21, 0.75), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: clamp(42px, 7vw, 96px);
  color: #ffffff;
}

.hero-eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffe9f4;
  background: rgba(236, 72, 153, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.hero-content h1,
.hero-content h2 {
  margin: 22px 0 16px;
  font-size: clamp(42px, 6.7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-content p {
  margin: 0;
  max-width: 650px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.tag-row a,
.tag-row span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #8f2e5e;
  background: #ffe6f2;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-pink), var(--site-orange));
  box-shadow: 0 14px 35px rgba(236, 72, 153, 0.32);
}

.btn-light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-soft {
  color: #9d255b;
  background: #ffe6f2;
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: clamp(42px, 7vw, 96px);
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-dot {
  width: 42px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 72px;
  background: linear-gradient(135deg, var(--site-pink), var(--site-orange));
}

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-50%);
  cursor: pointer;
}

.hero-arrow.prev {
  right: 86px;
}

.hero-arrow.next {
  right: 28px;
}

.section {
  margin-top: 54px;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-desc {
  margin: 8px 0 0;
  max-width: 780px;
  color: var(--site-muted);
  line-height: 1.8;
}

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

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

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

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: var(--site-surface);
  box-shadow: var(--site-shadow);
}

.category-card {
  min-height: 186px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 240, 247, 0.96)),
    radial-gradient(circle at 20% 10%, rgba(236, 72, 153, 0.14), transparent 16rem);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover,
.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(108, 35, 73, 0.18);
}

.category-card h3 {
  margin: 12px 0 10px;
  font-size: 24px;
}

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

.category-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-pink), var(--site-orange));
}

.movie-card {
  display: block;
  background: #ffffff;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #2a1224, #4e1439);
}

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

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

.movie-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-pink), var(--site-orange));
  font-size: 12px;
  font-weight: 900;
}

.movie-shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.movie-body {
  padding: 16px;
}

.movie-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--site-muted);
  font-size: 13px;
}

.movie-desc {
  margin: 10px 0 0;
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.ribbon-card {
  padding: 20px;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #17111a, #4b1538 58%, #fb7185);
  box-shadow: var(--site-shadow);
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 84px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--site-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 30px rgba(108, 35, 73, 0.08);
}

.rank-num {
  font-size: 24px;
  font-weight: 950;
  color: var(--site-pink);
}

.rank-thumb {
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  object-fit: cover;
  background: #2a1224;
}

.rank-title {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-summary {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.65;
}

.page-hero {
  padding: clamp(30px, 6vw, 64px);
  border-radius: 32px;
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 10%, rgba(251, 191, 36, 0.35), transparent 18rem),
    linear-gradient(135deg, #2a1026, #7c1d55 52%, #fb7185);
  box-shadow: var(--site-shadow);
}

.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.page-hero p {
  margin: 0;
  max-width: 820px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.85;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--site-muted);
  font-weight: 700;
}

.breadcrumb a {
  color: #9d255b;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 190px 190px 150px;
  gap: 12px;
  margin: 28px 0;
  padding: 16px;
  border: 1px solid var(--site-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--site-shadow);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  padding: 0 16px;
  outline: 0;
  background: #ffffff;
}

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

.player-card,
.detail-card,
.sidebar-card {
  border: 1px solid var(--site-border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--site-shadow);
  overflow: hidden;
}

.player-card {
  background: #100911;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #080509;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #080509;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  color: #ffffff;
  background: #100911;
  cursor: pointer;
}

.player-cover[hidden] {
  display: none;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(1.1);
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--site-pink), var(--site-orange));
  box-shadow: 0 18px 45px rgba(236, 72, 153, 0.34);
  transform: translate(-50%, -50%);
}

.play-button::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 7px;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 26px solid #ffffff;
}

.play-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 32px;
  text-align: center;
  font-weight: 900;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.player-info {
  padding: 22px;
  color: #ffffff;
}

.player-info h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.16;
}

.player-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.detail-card {
  padding: 26px;
}

.detail-card h2,
.sidebar-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-card p {
  margin: 0 0 18px;
  color: #4d4352;
  line-height: 1.9;
}

.detail-cover {
  border-radius: 24px;
  aspect-ratio: 2 / 3;
  width: 100%;
  object-fit: cover;
  background: #2a1224;
}

.sidebar-card {
  padding: 18px;
}

.sidebar-meta {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.sidebar-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--site-border);
  color: var(--site-muted);
}

.sidebar-meta strong {
  color: var(--site-ink);
}

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

.site-footer {
  margin-top: 40px;
  color: #d9c9d9;
  background: linear-gradient(135deg, #130914, #221021 58%, #431333);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 20px;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 28px;
}

.footer-logo {
  margin-bottom: 14px;
}

.footer-title {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.footer-text,
.footer-list {
  margin: 0;
  color: #c8b9ca;
  line-height: 1.8;
}

.footer-list {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.footer-list a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 20px;
  text-align: center;
  color: #bcaec0;
}

.empty-state {
  display: none;
  padding: 34px;
  border-radius: 24px;
  text-align: center;
  color: var(--site-muted);
  background: rgba(255, 255, 255, 0.82);
}

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

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

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

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

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .hero-frame {
    min-height: 650px;
  }

  .hero-content {
    padding: 42px 28px 120px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-controls {
    left: 28px;
    bottom: 28px;
  }

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

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

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

  .rank-item {
    grid-template-columns: 48px 70px 1fr;
  }

  .rank-item .btn {
    grid-column: 2 / -1;
    width: max-content;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 66px;
    padding: 0 14px;
  }

  .logo {
    font-size: 20px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .page-shell,
  .hero-slider {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-frame,
  .page-hero {
    border-radius: 24px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 42px;
  }

  .movie-grid,
  .related-grid,
  .category-grid,
  .ribbon-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 42px 62px 1fr;
    gap: 10px;
  }
}
