:root {
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fdf2f8;
  --soft-2: #faf5ff;
  --brand: #ec4899;
  --brand-2: #a855f7;
  --brand-3: #3b82f6;
  --dark: #0f172a;
  --radius: 24px;
  --shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  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(168, 85, 247, 0.14), transparent 34rem),
    #ffffff;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

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

.nav-shell {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.28);
}

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

.nav-menu {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.nav-search,
.page-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

.nav-search input,
.page-search input {
  width: 190px;
  border: 0;
  outline: none;
  padding: 9px 10px;
  background: transparent;
}

.nav-search button,
.page-search button {
  border: 0;
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.12);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #111827;
}

main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}

.hero-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: stretch;
  margin-top: 10px;
}

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 34px;
  background: #111827;
  box-shadow: var(--shadow);
}

.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-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.64), rgba(236, 72, 153, 0.18)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.72), transparent 52%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 72px;
  color: #fff;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

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

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

.hero-tags {
  margin-top: 26px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 6px 10px;
  color: #8b5cf6;
  background: #faf5ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: all 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 18px 36px rgba(236, 72, 153, 0.28);
}

.ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover {
  transform: translateY(-4px);
}

.hero-controls {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  display: flex;
  gap: 10px;
}

.hero-controls button {
  width: 42px;
  height: 42px;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  position: absolute;
  left: 72px;
  bottom: 40px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 28px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

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

.hero-side {
  display: grid;
  gap: 14px;
}

.side-title,
.section-head,
.footer-inner,
.detail-meta,
.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.side-title {
  padding: 0 4px;
  font-weight: 800;
}

.side-title a,
.section-head a {
  color: var(--brand);
  font-weight: 800;
}

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

.quick-panel a {
  padding: 18px;
  text-align: center;
  color: #fff;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 30px rgba(168, 85, 247, 0.18);
  font-weight: 800;
}

.section-block {
  margin: 44px 0;
  padding: 28px;
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
}

.soft-bg {
  background: linear-gradient(135deg, #fff, var(--soft), var(--soft-2));
}

.section-head {
  gap: 16px;
  margin-bottom: 24px;
}

.section-head h2,
.page-hero h1,
.prose-block h2 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.compact-head h2 {
  font-size: 28px;
}

.movie-grid,
.mini-grid,
.category-grid,
.category-card-grid {
  display: grid;
  gap: 18px;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  transition: all 0.2s ease;
}

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

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

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

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

.watch-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: #fff;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.92);
  font-weight: 800;
}

.watch-pill {
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  font-size: 12px;
}

.rank-badge {
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  background: linear-gradient(135deg, #eab308, #f97316);
}

.card-body {
  padding: 16px;
}

.meta-row {
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.movie-card p {
  min-height: 48px;
  margin: 0 0 12px;
  color: #4b5563;
  line-height: 1.6;
  font-size: 14px;
}

.two-col {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 24px;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 44px 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(229, 231, 235, 0.88);
  background: #fff;
  border-radius: 18px;
  transition: all 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: rgba(236, 72, 153, 0.38);
}

.rank-num {
  color: var(--brand);
  font-weight: 900;
  font-size: 20px;
  text-align: center;
}

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

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.category-tile,
.category-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: #fff;
  border-radius: 24px;
  background: #111827;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.14);
}

.category-tile img,
.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.category-tile::after,
.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.08));
}

.category-tile span,
.category-tile em,
.category-card span,
.category-card p {
  position: relative;
  z-index: 1;
}

.category-tile span,
.category-card span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile em,
.category-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  line-height: 1.55;
}

.page-hero {
  margin: 12px 0 28px;
  padding: 48px;
  border-radius: 32px;
  background: linear-gradient(135deg, #fff, #fdf2f8, #faf5ff);
  box-shadow: var(--shadow);
}

.small-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.page-hero p {
  max-width: 720px;
  margin: 12px 0 0;
  color: #4b5563;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 20px;
  color: #6b7280;
  font-weight: 700;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 32px;
  padding: 32px;
  border-radius: 32px;
  background: linear-gradient(135deg, #fff, #fdf2f8, #faf5ff);
  box-shadow: var(--shadow);
}

.detail-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 24px 45px rgba(17, 24, 39, 0.18);
}

.detail-info {
  align-self: center;
}

.detail-info h1 {
  margin: 12px 0;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.lead-text {
  margin: 0;
  color: #374151;
  font-size: 18px;
  line-height: 1.85;
}

.detail-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.detail-meta span {
  padding: 8px 12px;
  color: #374151;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
}

.detail-tags {
  margin-bottom: 26px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  background: #000;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.28);
}

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

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

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

.play-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.38);
  font-size: 28px;
}

.player-overlay span:last-child {
  font-size: 18px;
  font-weight: 900;
}

.prose-block {
  color: #374151;
  line-height: 1.9;
  font-size: 17px;
}

.prose-block h2 {
  font-size: 30px;
}

.prose-block p {
  margin: 14px 0 24px;
}

.empty-state {
  display: none;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 20px;
}

.empty-state.show {
  display: block;
}

.site-footer {
  margin-top: 60px;
  padding: 36px 24px;
  background: #111827;
  color: #fff;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  gap: 24px;
}

.footer-inner p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.footer-links {
  display: flex;
  gap: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

@media (max-width: 1120px) {
  .hero-wrap,
  .two-col,
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

  .side-title {
    grid-column: 1 / -1;
  }

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

@media (max-width: 860px) {
  .nav-shell {
    flex-wrap: wrap;
    min-height: auto;
    padding: 14px 18px;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-menu {
    order: 3;
    width: 100%;
    display: none;
    flex-direction: column;
    margin: 0;
    padding-top: 12px;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-search {
    order: 4;
    width: 100%;
  }

  .nav-search input {
    width: 100%;
  }

  main {
    padding: 16px;
  }

  .hero-slider {
    min-height: 560px;
  }

  .hero-content {
    padding: 44px 28px;
  }

  .hero-dots {
    left: 28px;
  }

  .hero-side,
  .movie-grid,
  .mini-grid,
  .category-grid,
  .category-card-grid,
  .quick-panel,
  .wide-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .small-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 30px;
  }

  .page-search {
    width: 100%;
  }

  .page-search input {
    width: 100%;
  }

  .section-block {
    padding: 18px;
    border-radius: 24px;
  }
}

@media (max-width: 560px) {
  .hero-side,
  .movie-grid,
  .mini-grid,
  .category-grid,
  .category-card-grid,
  .quick-panel,
  .wide-list {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 620px;
    border-radius: 24px;
  }

  .hero-content h1,
  .detail-info h1 {
    font-size: 42px;
  }

  .hero-actions,
  .footer-inner,
  .footer-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-hero {
    padding: 18px;
  }
}
