:root {
  --rose: #e11d48;
  --rose-dark: #be123c;
  --pink: #db2777;
  --orange: #f97316;
  --amber-soft: #fffbeb;
  --rose-soft: #fff1f2;
  --pink-soft: #fdf2f8;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--amber-soft), var(--rose-soft) 48%, var(--pink-soft));
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 35px rgba(190, 18, 60, 0.12);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  color: #fff;
  font-size: 16px;
  box-shadow: 0 10px 22px rgba(225, 29, 72, 0.32);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-weight: 700;
  color: #374151;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--rose);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: #374151;
  border-radius: 999px;
}

.hero-slider {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: linear-gradient(120deg, #be123c, #db2777 45%, #f97316);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 1.2s ease;
  pointer-events: none;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 25%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.45), rgba(17, 24, 39, 0.18));
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  top: 50%;
  transform: translateY(-50%);
  max-width: 720px;
  color: #fff;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

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

.hero-content p {
  max-width: 680px;
  margin: 0 0 24px;
  font-size: clamp(18px, 2.2vw, 24px);
  color: rgba(255, 255, 255, 0.9);
}

.hero-tags,
.detail-meta,
.movie-meta,
.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  padding: 6px 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.hero-actions,
.filter-row,
.recommend-columns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn,
.mini-search button,
.hero-search button,
.filter-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.mini-search button:hover,
.hero-search button:hover,
.filter-row button:hover {
  transform: translateY(-2px);
}

.btn-primary,
.hero-search button,
.mini-search button,
.filter-row button {
  background: linear-gradient(90deg, var(--rose), var(--pink));
  color: #fff;
  box-shadow: 0 14px 30px rgba(225, 29, 72, 0.28);
}

.btn-primary,
.btn-ghost {
  padding: 13px 24px;
}

.btn-ghost {
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-search-card {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 92px;
  width: min(380px, calc(100% - 48px));
  z-index: 3;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.hero-search label,
.filter-panel label {
  display: block;
  margin-bottom: 10px;
  font-weight: 900;
}

.hero-search div,
.mini-search {
  display: flex;
  gap: 10px;
}

.hero-search input,
.mini-search input,
.filter-row input {
  min-width: 0;
  flex: 1;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 13px 16px;
  background: #fff;
  color: var(--text);
  outline: 0;
}

.hero-search input:focus,
.mini-search input:focus,
.filter-row input:focus {
  border-color: var(--rose);
}

.hero-search button,
.mini-search button,
.filter-row button {
  padding: 12px 18px;
}

.hero-side-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.hero-side-list a {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

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

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

.home-section,
.page-main,
.detail-main,
.band-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.home-section,
.band-inner {
  padding: 72px 0;
}

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

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.section-more {
  color: var(--rose);
  font-weight: 900;
}

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

.category-tile,
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile {
  min-height: 220px;
  padding: 24px;
}

.category-tile::before,
.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent 58%);
  pointer-events: none;
}

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

.category-icon {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.category-tile strong,
.category-card h2 {
  position: relative;
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}

.category-tile em,
.category-card p {
  position: relative;
  display: block;
  color: var(--muted);
  font-style: normal;
}

.category-samples {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-samples span,
.category-link-list a {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.75);
  color: #374151;
  font-size: 12px;
  font-weight: 700;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 15px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card--compact {
  display: grid;
  grid-template-columns: 116px 1fr;
  min-height: 154px;
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

.movie-card--compact .movie-poster {
  aspect-ratio: auto;
  height: 100%;
}

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

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

.poster-play {
  position: absolute;
  inset: auto 14px 14px auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  backdrop-filter: blur(10px);
}

.movie-info {
  padding: 18px;
}

.movie-meta {
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-info h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.25;
}

.movie-info h3 a:hover,
.ranking-card h2 a:hover,
.category-link-list a:hover {
  color: var(--rose);
}

.movie-info p {
  margin: 0 0 14px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span,
.detail-tags span {
  background: #fff1f2;
  color: #be123c;
}

.band-section {
  background: linear-gradient(90deg, #ffe4e6, #fce7f3, #ffedd5);
}

.recommend-columns > div {
  flex: 1 1 320px;
  display: grid;
  gap: 12px;
}

.rank-mini,
.rank-row {
  display: grid;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-mini {
  grid-template-columns: 78px 1fr;
  padding: 10px;
  font-weight: 800;
}

.rank-mini:hover,
.rank-row:hover {
  transform: translateX(4px);
  background: #fff;
}

.rank-mini img,
.rank-row img {
  width: 78px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
}

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

.rank-row {
  grid-template-columns: 64px 78px 1fr auto;
  padding: 12px;
}

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

.rank-title {
  font-weight: 900;
}

.rank-meta {
  color: var(--muted);
  font-weight: 700;
}

.page-main {
  padding: 42px 0 72px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding: clamp(32px, 6vw, 58px);
  border-radius: 32px;
  background: linear-gradient(135deg, #be123c, #db2777, #f97316);
  color: #fff;
  box-shadow: var(--shadow);
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -80px;
  bottom: -120px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin: 16px 0 10px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
}

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

.page-hero--category {
  background: linear-gradient(135deg, var(--accent), #db2777, #f97316);
}

.filter-panel {
  margin-bottom: 28px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.filter-row input {
  border-color: var(--line);
  border-radius: 16px;
}

.filter-row button {
  border-radius: 16px;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.quick-filters button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: #f3f4f6;
  color: #374151;
  cursor: pointer;
  font-weight: 800;
}

.quick-filters button.is-active {
  background: var(--rose);
  color: #fff;
}

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

.category-card {
  padding: 26px;
}

.category-main-link {
  display: block;
  position: relative;
}

.category-main-link span {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.category-link-list {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.empty-state {
  margin: 32px auto;
  padding: 42px;
  text-align: center;
  border-radius: 24px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.ranking-list-page {
  display: grid;
  gap: 16px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 76px 150px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ranking-number {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.ranking-poster img {
  width: 150px;
  height: 96px;
  object-fit: cover;
  border-radius: 18px;
}

.ranking-card h2 {
  margin: 8px 0;
  font-size: 22px;
}

.ranking-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.detail-main {
  padding: 28px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.detail-primary {
  display: grid;
  gap: 22px;
}

.player-card,
.detail-card,
.poster-card,
.side-card {
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.38));
  cursor: pointer;
}

.play-overlay span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 34px;
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.video-shell.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.detail-card {
  padding: clamp(24px, 4vw, 34px);
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
}

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

.detail-meta a {
  color: var(--rose);
  font-weight: 800;
}

.lead-text {
  margin: 0 0 20px;
  font-size: 20px;
  color: #374151;
  font-weight: 700;
}

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

.text-block {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.text-block h2 {
  margin: 0 0 12px;
  font-size: 23px;
}

.text-block p {
  margin: 0 0 12px;
  color: #374151;
}

.review-block {
  padding: 24px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff1f2, #fdf2f8);
}

.detail-sidebar {
  display: grid;
  gap: 20px;
  align-content: start;
  position: sticky;
  top: 92px;
}

.poster-card {
  padding: 16px;
}

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

.poster-card .btn {
  width: 100%;
}

.side-card {
  padding: 20px;
}

.side-card h2 {
  margin: 0 0 16px;
}

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

.site-footer {
  margin-top: 48px;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #d1d5db;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 48px 0;
}

.footer-brand {
  margin-bottom: 12px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

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

.site-footer p {
  margin: 0;
  color: #9ca3af;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  text-align: center;
  color: #9ca3af;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px;
  }

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

  .hero-content {
    left: 24px;
    right: 24px;
    top: 42%;
    max-width: none;
  }

  .hero-search-card {
    left: 24px;
    right: 24px;
    bottom: 72px;
    width: auto;
  }

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

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

  .detail-sidebar {
    position: static;
  }

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

@media (max-width: 640px) {
  .brand {
    font-size: 20px;
  }

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

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-search div,
  .mini-search,
  .filter-row {
    flex-direction: column;
  }

  .section-heading,
  .page-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-grid,
  .movie-grid,
  .movie-grid--wide,
  .category-card-grid {
    grid-template-columns: 1fr;
  }

  .movie-card--compact {
    grid-template-columns: 100px 1fr;
  }

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

  .rank-meta {
    display: none;
  }

  .ranking-card {
    grid-template-columns: 58px 94px 1fr;
    gap: 12px;
  }

  .ranking-poster img {
    width: 94px;
    height: 74px;
  }

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