:root {
  color-scheme: light;
  --pink: #ec4899;
  --rose: #f43f5e;
  --rose-dark: #be123c;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fdf2f8;
  --line: #f3d5e6;
  --card: #ffffff;
  --bg: #fff7fb;
  --shadow: 0 18px 55px rgba(190, 18, 60, 0.12);
  --shadow-strong: 0 24px 80px rgba(17, 24, 39, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 8% 4%, rgba(236, 72, 153, 0.15), transparent 28%), #fff;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 8px 26px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

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

.brand__mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.35);
  transition: transform 0.25s ease;
}

.brand:hover .brand__mark {
  transform: scale(1.08) rotate(-4deg);
}

.brand__text {
  font-size: 22px;
  line-height: 1;
  background: linear-gradient(90deg, #db2777, #e11d48);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.nav-link:hover,
.nav-link--active {
  color: #be123c;
  background: #fff1f2;
  transform: translateY(-1px);
}

.menu-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff1f2;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--rose);
}

.mobile-nav {
  display: none;
  padding: 10px 18px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
  animation: slideDown 0.22s ease;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.28), transparent 30%), linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.62), rgba(17, 24, 39, 0.2));
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

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

.hero-slide__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1);
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  min-height: 680px;
  margin: 0 auto;
  padding: 96px 20px 84px;
  display: grid;
  align-content: center;
}

.hero-kicker {
  width: max-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  color: #ffe4ef;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero h1,
.hero h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
}

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

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  color: #be123c;
  background: #ffe4ef;
  font-size: 13px;
  font-weight: 800;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 900;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.22);
}

.btn--primary {
  border: 0;
  background: linear-gradient(135deg, var(--pink), var(--rose));
}

.btn--light {
  color: #be123c;
  background: #fff;
  border-color: #fff;
}

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

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
  padding: 66px 0;
}

.section--soft {
  background: linear-gradient(180deg, #fff7fb, #fff);
}

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

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

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

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

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

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

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

.movie-card__poster {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5.2;
  overflow: hidden;
  background: linear-gradient(135deg, #fdf2f8, #ffe4e6);
}

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

.movie-card:hover .movie-card__poster img {
  transform: scale(1.08);
}

.movie-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(17, 24, 39, 0.78));
  opacity: 0.82;
}

.movie-card__play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.36);
}

.movie-card__body {
  padding: 16px;
}

.movie-card__title {
  display: block;
  color: #111827;
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-card__title {
  color: var(--rose);
}

.movie-card__desc {
  min-height: 46px;
  margin: 9px 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #9f1239;
  font-size: 12px;
  font-weight: 800;
}

.movie-card__meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff1f2;
}

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

.category-card {
  min-height: 180px;
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #db2777, #f43f5e);
  box-shadow: 0 18px 40px rgba(244, 63, 94, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:nth-child(even) {
  background: linear-gradient(135deg, #be123c, #ec4899);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(244, 63, 94, 0.32);
}

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

.category-card span {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 26px;
  align-items: start;
}

.rank-panel,
.content-panel {
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 22px;
}

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

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

.rank-item:hover {
  transform: translateX(4px);
  background: #fff1f2;
}

.rank-item img {
  width: 64px;
  height: 82px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-item strong,
.rank-item small {
  display: block;
}

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

.rank-item small {
  margin-top: 5px;
  color: var(--muted);
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) 220px 220px auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.filter-bar label,
.filter-bar__search {
  display: grid;
  gap: 7px;
  color: #9f1239;
  font-size: 13px;
  font-weight: 900;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: #111827;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  background: #fff7fb;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.filter-bar button {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  font-weight: 900;
  cursor: pointer;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 16px;
  color: #9f1239;
  font-size: 14px;
  font-weight: 800;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 32px;
  align-items: end;
  padding: 34px;
  border-radius: 32px;
  color: #fff;
  background: radial-gradient(circle at 12% 12%, rgba(236, 72, 153, 0.34), transparent 32%), linear-gradient(135deg, #111827, #3f0d21 52%, #be123c);
  box-shadow: var(--shadow-strong);
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

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

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-info p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
  line-height: 1.85;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffe4ef;
  font-weight: 800;
}

.player-section {
  padding-top: 34px;
}

.player-card {
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: var(--shadow-strong);
}

.player-shell {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: radial-gradient(circle, rgba(17, 24, 39, 0.2), rgba(17, 24, 39, 0.72));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-layer span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 18px 48px rgba(244, 63, 94, 0.42);
  font-size: 34px;
}

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

.article-body {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.article-block {
  padding: 26px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.article-block h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.article-block p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pagination-note {
  margin-top: 22px;
  color: var(--muted);
  text-align: center;
}

.no-result {
  display: none;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.no-result.is-visible {
  display: block;
}

.site-footer {
  margin-top: 70px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.site-footer__grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 50px 20px 34px;
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1fr;
  gap: 30px;
}

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

.site-footer p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.8;
}

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

.footer-links a {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
  background: rgba(244, 63, 94, 0.55);
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  text-align: center;
  color: #9ca3af;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

  .detail-poster {
    max-width: 360px;
  }
}

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

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

  .site-header__inner {
    height: 62px;
    padding: 0 14px;
  }

  .brand__text {
    font-size: 19px;
  }

  .hero,
  .hero-slide__content {
    min-height: 620px;
  }

  .hero-slide__content {
    padding: 74px 18px 92px;
  }

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

  .section {
    padding: 44px 0;
  }

  .section-head {
    display: block;
  }

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

  .movie-card__body {
    padding: 13px;
  }

  .movie-card__desc {
    display: none;
  }

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

  .rank-panel,
  .content-panel,
  .article-block {
    padding: 18px;
  }

  .detail-hero {
    padding: 20px;
    border-radius: 24px;
  }

  .detail-poster {
    max-width: 260px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

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

  .hero-controls {
    width: calc(100% - 28px);
    justify-content: center;
  }

  .rank-item {
    grid-template-columns: auto 56px minmax(0, 1fr);
  }

  .rank-item img {
    width: 56px;
    height: 74px;
  }
}
