:root {
  --bg: #ffffff;
  --soft-bg: #fff7fb;
  --tint-bg: #fff1f6;
  --text: #111827;
  --muted: #6b7280;
  --line: #f1d9e5;
  --brand: #f43f5e;
  --brand-dark: #e11d48;
  --brand-soft: #ffe4ec;
  --accent: #ec4899;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(244, 63, 94, 0.12);
  --shadow-strong: 0 26px 70px rgba(17, 24, 39, 0.18);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: 1240px;
  height: 74px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 14px 28px rgba(244, 63, 94, 0.26);
}

.brand-text {
  font-size: 21px;
  white-space: nowrap;
}

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

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

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.site-search-form {
  display: flex;
  align-items: center;
  overflow: hidden;
  min-width: 280px;
  border: 1px solid rgba(244, 63, 94, 0.16);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(244, 63, 94, 0.08);
}

.site-search-form input {
  width: 100%;
  min-width: 0;
  padding: 11px 14px 11px 18px;
  border: 0;
  outline: 0;
  background: transparent;
}

.site-search-form button,
.search-page-form button {
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 11px 18px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  cursor: pointer;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.mobile-panel {
  display: none;
  padding: 0 22px 22px;
  border-top: 1px solid rgba(244, 63, 94, 0.12);
}

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

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

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

.hero-slider {
  position: relative;
  height: 660px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.65s ease;
}

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

.hero-content {
  width: min(680px, calc(100% - 44px));
  margin-left: max(22px, calc((100vw - 1240px) / 2 + 22px));
  padding-top: 122px;
  color: #fff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  margin-bottom: 18px;
  color: #ffe4ec;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.18);
  backdrop-filter: blur(8px);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.08em;
}

.hero p {
  max-width: 620px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.movie-meta-line span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  color: #9f1239;
  border-radius: 999px;
  background: var(--brand-soft);
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span,
.tag-row.bright span,
.detail-meta span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

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

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 16px 34px rgba(244, 63, 94, 0.28);
}

.btn.secondary,
.btn.ghost {
  color: #374151;
  background: #fff;
  border: 1px solid rgba(244, 63, 94, 0.18);
}

.btn.small {
  min-height: 38px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.hero-dots {
  position: absolute;
  left: max(22px, calc((100vw - 1240px) / 2 + 22px));
  bottom: 46px;
  display: flex;
  gap: 10px;
}

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

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

.hero-mini-panel {
  position: absolute;
  right: max(22px, calc((100vw - 1240px) / 2 + 22px));
  bottom: 52px;
  width: min(460px, calc(100vw - 44px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.hero-mini-panel a {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.hero-mini-panel img {
  width: 100%;
  aspect-ratio: 1 / 1.2;
  object-fit: cover;
}

.hero-mini-panel span {
  display: block;
  padding: 9px;
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
}

.section,
.page-main .section {
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
  padding: 70px 0;
}

.tinted {
  width: 100%;
  padding-left: max(22px, calc((100vw - 1240px) / 2 + 22px));
  padding-right: max(22px, calc((100vw - 1240px) / 2 + 22px));
  background: linear-gradient(180deg, var(--soft-bg), #fff);
}

.intro-section {
  margin-top: -80px;
  position: relative;
  z-index: 3;
}

.intro-card {
  padding: 42px;
  color: #111827;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-strong);
}

.intro-card h1,
.page-hero h1,
.section-head h2 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.intro-card h1 {
  max-width: 860px;
  font-size: clamp(30px, 4vw, 50px);
}

.intro-card p {
  max-width: 920px;
  color: var(--muted);
  font-size: 18px;
}

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

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-head p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section-link,
.tool-link {
  color: var(--brand-dark);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.11);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 12px 35px rgba(17, 24, 39, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(244, 63, 94, 0.3);
  box-shadow: var(--shadow);
}

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

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.78), transparent);
}

.play-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.22);
}

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

.movie-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 8px 0 6px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-info h2 a:hover {
  color: var(--brand-dark);
}

.movie-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  gap: 6px;
}

.tag-row span {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 12px;
}

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

.category-card,
.category-overview {
  min-height: 160px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(244, 63, 94, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card span,
.category-overview span {
  display: block;
  margin-bottom: 10px;
  color: var(--brand-dark);
  font-size: 24px;
  font-weight: 900;
}

.category-card p,
.category-overview p {
  margin: 0;
  color: var(--muted);
}

.category-sample {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.category-sample img {
  width: 100%;
  aspect-ratio: 1 / 1.2;
  border-radius: 12px;
  object-fit: cover;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 54px 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(244, 63, 94, 0.11);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
}

.rank-card strong {
  color: var(--brand-dark);
  font-size: 24px;
}

.rank-card img {
  width: 72px;
  height: 88px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-card span {
  display: block;
  font-weight: 900;
  line-height: 1.35;
}

.rank-card em {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.page-main {
  background: linear-gradient(180deg, #fff7fb, #fff 360px);
}

.page-hero {
  min-height: 320px;
  display: grid;
  place-items: end start;
  padding: 70px max(22px, calc((100vw - 1240px) / 2 + 22px));
  color: #fff;
  background: radial-gradient(circle at top right, rgba(244, 63, 94, 0.72), transparent 35%), linear-gradient(135deg, #111827, #31203a 58%, #9f1239);
}

.page-hero.small {
  min-height: 260px;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 62px);
}

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

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.crumb.light {
  color: rgba(255, 255, 255, 0.76);
}

.crumb a:hover {
  color: var(--brand-dark);
}

.crumb.light a:hover {
  color: #fff;
}

.list-tools {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.05);
}

.list-tools label {
  display: grid;
  gap: 8px;
  width: min(560px, 100%);
  color: var(--muted);
  font-weight: 800;
}

.list-tools input,
.search-page-form input {
  width: 100%;
  border: 1px solid rgba(244, 63, 94, 0.2);
  border-radius: 999px;
  padding: 13px 18px;
  outline: none;
  background: #fff;
}

.search-page-form {
  display: flex;
  width: min(680px, 100%);
  margin-top: 26px;
  overflow: hidden;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2);
}

.search-page-form input {
  border: 0;
  border-radius: 0;
}

.search-empty {
  grid-column: 1 / -1;
  padding: 42px;
  text-align: center;
  color: var(--muted);
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 26px;
  background: #fff;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 70px 88px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(244, 63, 94, 0.11);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
}

.rank-number {
  color: var(--brand-dark);
  font-size: 28px;
  font-weight: 900;
}

.rank-poster img {
  width: 88px;
  height: 112px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-info p {
  margin: 0 0 10px;
  color: var(--muted);
}

.detail-main {
  background: #fff;
}

.detail-hero {
  min-height: 650px;
  padding: 58px max(22px, calc((100vw - 1240px) / 2 + 22px));
  background-size: cover;
  background-position: center;
  color: #fff;
}

.detail-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: end;
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  box-shadow: var(--shadow-strong);
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.08em;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.detail-meta {
  margin-bottom: 14px;
}

.player-section {
  padding-top: 46px;
  padding-bottom: 46px;
}

.player-module {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #050505;
  box-shadow: var(--shadow-strong);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 16px;
  color: #fff;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.45), rgba(0, 0, 0, 0.7));
}

.play-overlay span {
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 24px 50px rgba(244, 63, 94, 0.34);
  font-size: 36px;
}

.play-overlay strong {
  font-size: 20px;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.content-card {
  padding: 28px;
  border: 1px solid rgba(244, 63, 94, 0.11);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}

.content-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.content-card p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
  padding: 54px max(22px, calc((100vw - 1240px) / 2 + 22px)) 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.5fr;
  gap: 34px;
  max-width: 1240px;
  margin: 0 auto;
}

.footer-brand {
  color: #fff;
  font-size: 22px;
}

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

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

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

.footer-links a {
  color: #d1d5db;
}

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

.footer-bottom {
  max-width: 1240px;
  margin: 34px auto 0;
  padding-top: 22px;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

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

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

  .hero-mini-panel {
    display: none;
  }

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

@media (max-width: 760px) {
  .nav-shell {
    height: 66px;
  }

  .brand-text {
    font-size: 18px;
  }

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

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

  .hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .section,
  .page-main .section {
    width: min(100% - 28px, 1240px);
    padding: 44px 0;
  }

  .tinted {
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .intro-card {
    padding: 26px;
  }

  .section-head,
  .list-tools {
    display: grid;
    align-items: start;
  }

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

  .category-grid,
  .category-overview-grid,
  .rank-grid,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 44px 66px 1fr;
  }

  .rank-card img {
    width: 66px;
    height: 82px;
  }

  .rank-row {
    grid-template-columns: 46px 70px 1fr;
  }

  .rank-row .btn {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .rank-poster img {
    width: 70px;
    height: 92px;
  }

  .rank-info h2 {
    font-size: 18px;
  }

  .detail-hero {
    min-height: auto;
    padding: 38px 14px;
  }

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

  .detail-cover {
    width: min(260px, 78vw);
  }

  .page-hero {
    min-height: 250px;
    padding: 44px 14px;
  }

  .play-overlay span {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}
