:root {
  --rose: #f43f5e;
  --rose-dark: #be123c;
  --rose-soft: #fff1f2;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --panel: #ffffff;
  --bg: #f8fafc;
  --dark: #0f172a;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e, #fb7185);
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.25);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #374151;
  font-weight: 650;
  font-size: 15px;
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease, background 0.2s ease;
}

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

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  font-size: 22px;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

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

.mobile-nav a {
  padding: 10px 12px;
  background: var(--rose-soft);
  border-radius: 12px;
  color: #881337;
  font-weight: 700;
}

.main-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px 68px;
}

.hero {
  position: relative;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  overflow: hidden;
  gap: 28px;
  padding: 54px;
  border-radius: 34px;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(251, 113, 133, 0.68), transparent 32%), linear-gradient(135deg, #0f172a 0%, #881337 52%, #111827 100%);
  box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.8;
}

.hero::before {
  width: 260px;
  height: 260px;
  right: 12%;
  top: -80px;
  background: rgba(244, 63, 94, 0.42);
}

.hero::after {
  width: 200px;
  height: 200px;
  left: -60px;
  bottom: -70px;
  background: rgba(255, 255, 255, 0.14);
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: #ffe4e6;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

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

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

.hero-actions,
.section-head,
.detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e, #fb7185);
  box-shadow: 0 14px 30px rgba(244, 63, 94, 0.25);
}

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

.btn-plain {
  color: var(--rose-dark);
  background: var(--rose-soft);
}

.search-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 540px;
  margin-top: 22px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(18px);
}

.search-strip input,
.search-page-form input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: #ffffff;
  border-radius: 999px;
}

.search-strip input {
  min-height: 46px;
  padding: 0 18px;
}

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

.hero-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 -120px 90px rgba(15, 23, 42, 0.78);
  transition: transform 0.22s ease;
}

.hero-card:first-child {
  grid-column: span 2;
  min-height: 280px;
}

.hero-card:hover {
  transform: translateY(-4px) scale(1.01);
}

.hero-card strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.hero-card span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.category-pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 20px 2px 4px;
}

.category-pills a {
  flex: 0 0 auto;
  padding: 10px 16px;
  color: #9f1239;
  background: #ffe4e6;
  border-radius: 999px;
  font-weight: 800;
}

.section {
  margin-top: 48px;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title h2,
.page-title h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.04em;
}

.section-title .dot {
  width: 13px;
  height: 30px;
  background: var(--rose);
  border-radius: 999px;
}

.section-lead,
.page-title p {
  color: var(--muted);
  margin: 8px 0 0;
}

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

.movie-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.13);
}

.movie-cover {
  display: block;
}

.poster {
  aspect-ratio: 2 / 3;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 16px;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 -120px 85px rgba(15, 23, 42, 0.82);
}

.poster span {
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

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

.movie-meta,
.detail-meta,
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.movie-meta span,
.detail-meta span {
  padding: 4px 9px;
  background: #f3f4f6;
  border-radius: 999px;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.24;
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag-row span {
  padding: 4px 8px;
  color: #9f1239;
  background: #fff1f2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

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

.category-card {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #be123c);
  box-shadow: var(--shadow);
}

.category-card strong {
  font-size: 24px;
}

.category-card span {
  color: rgba(255, 255, 255, 0.78);
}

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

.rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.rank-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #f3f4f6;
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-num {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--rose);
  border-radius: 12px;
  font-weight: 900;
}

.rank-item a {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-item > span:last-child {
  color: var(--muted);
  text-align: right;
}

.page-title {
  margin-bottom: 28px;
  padding: 34px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.breadcrumb {
  margin-bottom: 18px;
}

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

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

.detail-main,
.detail-side,
.text-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.detail-main {
  overflow: hidden;
}

.player-box {
  position: relative;
  background: #030712;
}

.player-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #030712;
}

.player-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px;
  color: #ffffff;
  background: #111827;
}

.player-status {
  color: #fecdd3;
  font-size: 14px;
}

.detail-body {
  padding: 28px;
}

.detail-body h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-body .one-line {
  margin: 16px 0 0;
  color: #374151;
  font-size: 18px;
  font-weight: 700;
}

.text-panel {
  margin-top: 22px;
  padding: 26px;
}

.text-panel h2,
.detail-side h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.text-panel p {
  margin: 0;
  color: #374151;
}

.text-panel p + p {
  margin-top: 14px;
}

.detail-side {
  padding: 20px;
}

.side-poster {
  overflow: hidden;
  border-radius: 22px;
  margin-bottom: 18px;
}

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

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.info-list span:first-child {
  color: var(--muted);
}

.info-list span:last-child {
  text-align: right;
  font-weight: 800;
}

.search-page-form {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.search-page-form input {
  min-height: 52px;
  padding: 0 18px;
}

.result-note {
  color: var(--muted);
  margin: 18px 0;
  font-weight: 700;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
  margin-top: 70px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}

.footer-logo {
  color: #ffffff;
  font-size: 22px;
}

.site-footer p {
  max-width: 520px;
  color: #94a3b8;
}

.site-footer h3 {
  color: #ffffff;
  margin: 0 0 12px;
}

.site-footer a:not(.footer-logo) {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
}

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

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

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

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .hero {
    padding: 34px;
  }

  .detail-side {
    order: -1;
  }
}

@media (max-width: 640px) {
  .main-shell {
    padding: 22px 14px 48px;
  }

  .nav-wrap {
    padding: 12px 14px;
  }

  .hero {
    min-height: auto;
    border-radius: 24px;
    padding: 26px;
  }

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

  .hero-card:first-child {
    grid-column: auto;
  }

  .search-strip,
  .search-page-form {
    border-radius: 22px;
    flex-direction: column;
  }

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