:root {
  --bg: #f7f7fb;
  --paper: #ffffff;
  --paper-soft: #fff7fb;
  --text: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --rose: #e11d48;
  --rose-dark: #be123c;
  --pink: #db2777;
  --orange: #f97316;
  --shadow: 0 22px 70px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  backdrop-filter: blur(18px);
}

.top-strip {
  background: linear-gradient(90deg, #111827, #3f0f1f);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.top-strip-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.top-strip nav {
  display: flex;
  gap: 16px;
  white-space: nowrap;
}

.top-strip a:hover {
  color: #fff;
}

.nav-wrap {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.28);
}

.main-nav,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.nav-search,
.mobile-link {
  padding: 9px 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.is-active,
.nav-search:hover,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--rose);
  background: #fff1f2;
}

.nav-search {
  border: 1px solid #fecdd3;
  color: var(--rose);
  background: #fff7f9;
}

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

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

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

.mobile-nav.is-open {
  display: grid;
  gap: 6px;
}

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

.hero-bg,
.hero-bg-item,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg-item {
  opacity: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: opacity 0.9s ease, transform 3.8s ease;
}

.hero-bg-item.is-active {
  opacity: 0.42;
  transform: scale(1);
}

.hero-shade {
  background:
    radial-gradient(circle at 80% 10%, rgba(244, 63, 94, 0.42), transparent 34%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.72) 48%, rgba(17, 24, 39, 0.34) 100%),
    linear-gradient(180deg, transparent 72%, var(--bg));
}

.hero-inner {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: center;
  padding: 72px 0;
}

.hero-content {
  position: relative;
  min-height: 450px;
}

.hero-slide {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffe4e6;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section-kicker {
  background: #fff1f2;
  color: var(--rose);
}

.hero h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero h2 {
  margin: 0 0 18px;
  color: #fb7185;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
}

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

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

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
}

.tag-row span,
.detail-meta span {
  background: #fff1f2;
  color: var(--rose);
}

.tag-row-large span {
  background: #f8fafc;
  color: #475569;
}

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

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 16px 34px rgba(225, 29, 72, 0.26);
}

.btn-soft {
  color: var(--rose);
  background: #fff1f2;
  border-color: #fecdd3;
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

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

.hero-panel {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.hero-panel-head,
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.hero-panel-head {
  margin-bottom: 16px;
  color: #fff;
  font-weight: 900;
}

.hero-panel-head a,
.section-link {
  color: var(--rose);
  font-weight: 900;
}

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

.hero-mini-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-mini-card:hover {
  transform: translateX(4px);
  background: #fff;
}

.hero-mini-card img {
  width: 72px;
  height: 92px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, #fecdd3, #f8fafc);
}

.hero-mini-card strong,
.hero-mini-card small {
  display: block;
}

.hero-mini-card strong {
  color: #111827;
  line-height: 1.35;
}

.hero-mini-card small {
  margin-top: 4px;
  color: #64748b;
}

.hero-search {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.hero-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 12px 14px;
  outline: none;
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: #fff;
  background: var(--rose);
  font-weight: 900;
}

.section-block {
  padding: 72px 0;
}

.section-muted {
  background: #fff;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2,
.page-hero h1,
.ranking-copy h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-head p,
.page-hero p,
.ranking-copy p {
  margin: 10px 0 0;
  color: var(--muted);
}

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

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

.category-tile {
  min-height: 164px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  box-shadow: var(--soft-shadow);
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -52px;
  top: -48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.category-tile:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow);
}

.category-tile span {
  position: relative;
  z-index: 1;
  font-size: 24px;
  font-weight: 900;
}

.category-tile strong {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

.tile-rose { background: linear-gradient(135deg, #e11d48, #f43f5e); }
.tile-pink { background: linear-gradient(135deg, #db2777, #ec4899); }
.tile-orange { background: linear-gradient(135deg, #ea580c, #fb923c); }
.tile-red { background: linear-gradient(135deg, #dc2626, #f97316); }
.tile-amber { background: linear-gradient(135deg, #d97706, #f59e0b); }
.tile-violet { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.tile-sky { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.tile-indigo { background: linear-gradient(135deg, #4f46e5, #818cf8); }
.tile-emerald { background: linear-gradient(135deg, #059669, #34d399); }
.tile-cyan { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.tile-fuchsia { background: linear-gradient(135deg, #c026d3, #e879f9); }
.tile-slate { background: linear-gradient(135deg, #334155, #64748b); }

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

.movie-card {
  position: relative;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.07);
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #fecdd3;
  box-shadow: 0 24px 58px rgba(225, 29, 72, 0.16);
}

.movie-poster {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fecdd3, #f8fafc);
}

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

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.74));
}

.play-chip,
.rank-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  height: 32px;
  padding: 0 12px;
  background: rgba(225, 29, 72, 0.9);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #f97316, #e11d48);
  font-style: normal;
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  min-height: 52px;
  margin: 0;
  font-size: 18px;
  line-height: 1.42;
}

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

.movie-card p {
  min-height: 68px;
  margin: 9px 0 12px;
  color: #64748b;
  font-size: 14px;
}

.movie-card-compact h3 {
  min-height: 48px;
  font-size: 16px;
}

.movie-card-compact p {
  min-height: 58px;
}

.ranking-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 36px;
  align-items: start;
}

.ranking-copy {
  position: sticky;
  top: 118px;
  padding: 28px;
  border-radius: 26px;
  background: linear-gradient(135deg, #fff1f2, #fff);
  box-shadow: var(--soft-shadow);
}

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

.rank-list-wide {
  grid-template-columns: repeat(2, 1fr);
}

.rank-row {
  display: grid;
  grid-template-columns: 48px 58px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: #fecdd3;
  box-shadow: var(--soft-shadow);
}

.rank-index {
  color: var(--rose);
  font-size: 20px;
  font-weight: 900;
}

.rank-row img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #fecdd3, #f8fafc);
}

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

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

.rank-link {
  color: var(--rose);
  font-weight: 900;
}

.page-hero {
  padding: 74px 0 48px;
  background:
    radial-gradient(circle at 80% 0%, rgba(244, 63, 94, 0.15), transparent 35%),
    linear-gradient(180deg, #fff, #fff7fb);
  border-bottom: 1px solid #ffe4e6;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(130px, 160px));
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid #ffe4e6;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.filter-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.filter-search span {
  color: var(--rose);
  font-weight: 900;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  height: 44px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 0 13px;
  background: #fff;
  color: #111827;
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #fb7185;
  box-shadow: 0 0 0 4px #ffe4e6;
}

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

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

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

.detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 38px;
  align-items: center;
  padding: 38px;
  margin-top: 22px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 90% 0%, rgba(225, 29, 72, 0.15), transparent 35%),
    #fff;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 26px;
  background: linear-gradient(135deg, #fecdd3, #f8fafc);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-one-line {
  margin: 0 0 18px;
  color: #475569;
  font-size: 19px;
}

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

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

.section-head-compact {
  margin-bottom: 18px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.28);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.72));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 18px 38px rgba(225, 29, 72, 0.38);
  font-size: 34px;
  text-indent: 4px;
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  min-height: 0;
  color: #fecdd3;
  text-align: center;
  font-weight: 800;
  pointer-events: none;
}

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

.content-card {
  padding: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

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

.content-card p {
  margin: 0;
  color: #475569;
  font-size: 16px;
}

.related-section {
  padding-top: 58px;
}

.site-footer {
  background: #111827;
  color: rgba(255, 255, 255, 0.74);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.2fr;
  gap: 36px;
  padding: 52px 0 34px;
}

.footer-brand {
  color: #fff;
  margin-bottom: 14px;
}

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

.site-footer p {
  margin: 0;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-cats {
  grid-template-columns: repeat(2, 1fr);
}

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

.footer-bottom {
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 980px) {
  .top-strip nav,
  .main-nav,
  .nav-search {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero,
  .hero-inner {
    min-height: 680px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .hero-content {
    min-height: 500px;
  }

  .hero-panel {
    display: none;
  }

  .category-grid,
  .category-grid-large,
  .movie-grid,
  .ranking-layout,
  .detail-hero,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ranking-copy {
    position: static;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .top-strip {
    display: none;
  }

  .nav-wrap {
    height: 62px;
  }

  .brand,
  .footer-brand {
    font-size: 19px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .hero,
  .hero-inner {
    min-height: 640px;
  }

  .hero-inner {
    padding: 48px 0;
  }

  .hero-content {
    min-height: 520px;
  }

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

  .hero-actions,
  .detail-actions {
    gap: 8px;
  }

  .btn {
    width: 100%;
  }

  .category-grid,
  .category-grid-large,
  .movie-grid,
  .ranking-layout,
  .detail-hero,
  .detail-content,
  .footer-grid,
  .rank-list-wide,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .section-block {
    padding: 48px 0;
  }

  .section-head,
  .hero-panel-head {
    align-items: start;
    flex-direction: column;
  }

  .movie-grid-home .movie-card:nth-child(n + 17) {
    display: none;
  }

  .rank-row {
    grid-template-columns: 40px 52px 1fr;
  }

  .rank-link {
    display: none;
  }

  .detail-hero {
    padding: 20px;
  }

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

  .play-circle {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
