:root {
  --bg: #fff7fb;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.82);
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f4d6e5;
  --pink: #ec4899;
  --rose: #f43f5e;
  --rose-dark: #be123c;
  --shadow: 0 18px 45px rgba(190, 18, 60, 0.12);
  --shadow-soft: 0 10px 30px rgba(31, 41, 55, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.16), transparent 36rem),
    radial-gradient(circle at top right, rgba(244, 63, 94, 0.12), transparent 28rem),
    linear-gradient(180deg, #fff7fb 0%, #ffffff 42%, #fff9fc 100%);
}

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.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(252, 231, 243, 0.9);
}

.header-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 0 0 6px rgba(236, 72, 153, 0.12);
}

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

.desktop-nav a,
.mobile-panel a {
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

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

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

.header-search input,
.mobile-panel input,
.filter-bar input,
.filter-bar select {
  border: 1px solid #f3c7db;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  outline: none;
  border-radius: 999px;
  padding: 10px 14px;
  min-width: 210px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

.header-search button,
.mobile-panel button,
.primary-button,
.secondary-button,
.player-button,
.filter-reset {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.24);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-panel button:hover,
.primary-button:hover,
.player-button:hover,
.filter-reset:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(236, 72, 153, 0.32);
}

.secondary-button {
  color: var(--rose-dark);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: none;
  border: 1px solid rgba(251, 207, 232, 0.92);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 14px;
  background: #fdf2f8;
  padding: 10px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--rose-dark);
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  padding: 0 20px 18px;
  border-top: 1px solid rgba(252, 231, 243, 0.9);
}

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

.mobile-panel form {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
}

.main-shell {
  max-width: 1220px;
  margin: 0 auto;
  padding: 34px 20px 64px;
}

.hero {
  min-height: 70vh;
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.92), rgba(244, 63, 94, 0.86));
  box-shadow: var(--shadow);
}

.hero-slider {
  position: relative;
  min-height: 70vh;
}

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

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: saturate(1.08);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.88) 0%, rgba(17, 24, 39, 0.64) 42%, rgba(17, 24, 39, 0.12) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.52), transparent 48%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 70vh;
  width: min(720px, 92%);
  padding: 84px 64px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.section-kicker,
.detail-kicker {
  color: var(--rose-dark);
  background: #fdf2f8;
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
  font-size: 13px;
  font-weight: 800;
}

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

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

.hero-dots button {
  width: 32px;
  height: 8px;
  border: none;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dots button.active {
  background: #fff;
}

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

.section-head h2,
.page-title h1,
.detail-title h1 {
  margin: 10px 0 8px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.04em;
  color: #111827;
}

.section-head p,
.page-title p,
.detail-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.text-link {
  color: var(--pink);
  font-weight: 900;
}

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

.category-card {
  min-height: 168px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff, #fff1f7);
  border: 1px solid rgba(251, 207, 232, 0.9);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 950;
  color: #111827;
}

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

.category-card em {
  color: var(--pink);
  font-style: normal;
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid rgba(251, 207, 232, 0.9);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster-link {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #fff1f2);
}

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

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

.poster-mask {
  position: absolute;
  inset: auto 14px 14px;
  text-align: center;
  border-radius: 999px;
  padding: 9px 12px;
  color: #fff;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-mask {
  opacity: 1;
  transform: translateY(0);
}

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

.meta-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  color: #111827;
  font-weight: 950;
}

.movie-card p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

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

.tag-row span,
.detail-tags span {
  background: #fdf2f8;
  color: #be185d;
}

.rank-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rank-item {
  display: grid;
  grid-template-columns: 48px 72px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(251, 207, 232, 0.9);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: var(--pink);
}

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

.rank-item img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-text b,
.rank-text em {
  display: block;
}

.rank-text b {
  margin-bottom: 7px;
  color: #111827;
  font-weight: 950;
}

.rank-text em,
.rank-item i {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.rank-item i {
  color: var(--rose-dark);
  font-weight: 900;
}

.page-title,
.detail-title {
  margin: 34px 0 28px;
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(253, 242, 248, 0.92));
  border: 1px solid rgba(251, 207, 232, 0.95);
  box-shadow: var(--shadow-soft);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

.breadcrumbs a {
  color: var(--pink);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(251, 207, 232, 0.92);
}

.filter-bar input {
  min-width: 280px;
  flex: 1;
}

.filter-reset {
  padding: 10px 16px;
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 26px;
  align-items: start;
}

.player-shell {
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: var(--shadow);
  border: 1px solid rgba(251, 207, 232, 0.9);
}

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

.player-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.16), rgba(0, 0, 0, 0.42));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.player-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 18px;
}

.player-button span {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #fff;
}

.detail-card,
.side-card {
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(251, 207, 232, 0.95);
  box-shadow: var(--shadow-soft);
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 24px;
  font-weight: 950;
}

.detail-card p {
  margin: 0 0 16px;
  color: #374151;
  line-height: 1.95;
  font-size: 16px;
}

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

.detail-meta div {
  padding: 12px;
  border-radius: 16px;
  background: #fdf2f8;
  color: #6b7280;
  font-weight: 700;
}

.detail-meta b {
  display: block;
  margin-bottom: 3px;
  color: #111827;
}

.side-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 18px;
}

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

.related-list a {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #fff7fb;
  border: 1px solid rgba(251, 207, 232, 0.85);
}

.related-list img {
  width: 62px;
  height: 82px;
  object-fit: cover;
  border-radius: 12px;
  margin: 0;
}

.related-list b {
  display: block;
  margin-bottom: 5px;
  color: #111827;
  font-weight: 900;
}

.related-list span {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  margin-top: 70px;
  padding: 44px 20px 28px;
  background: linear-gradient(180deg, #fff, #fdf2f8);
  border-top: 1px solid rgba(251, 207, 232, 0.9);
}

.footer-grid {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 32px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: #111827;
  font-weight: 950;
}

.site-footer p,
.site-footer a {
  display: block;
  margin: 0 0 10px;
  color: #6b7280;
  line-height: 1.75;
}

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

.footer-bottom {
  max-width: 1220px;
  margin: 26px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(251, 207, 232, 0.9);
  color: #9ca3af;
}

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

  .menu-button {
    display: block;
    margin-left: auto;
  }

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

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

@media (max-width: 760px) {
  .main-shell {
    padding: 18px 14px 46px;
  }

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

  .hero-content {
    padding: 48px 24px 86px;
  }

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

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

  .section-head {
    display: block;
  }

  .category-grid,
  .movie-grid,
  .rank-panel {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 40px 62px 1fr;
  }

  .rank-item i {
    grid-column: 3;
  }

  .page-title,
  .detail-title {
    padding: 24px;
  }

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

  .filter-bar input {
    min-width: 0;
    width: 100%;
  }

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

  .mobile-panel form {
    display: grid;
  }
}
