:root {
  --rose: #f43f5e;
  --orange: #fb923c;
  --rose-soft: #fff1f2;
  --orange-soft: #fff7ed;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --dark: #111827;
  --shadow: 0 18px 45px rgba(244, 63, 94, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 38%, #ffffff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 241, 242, 0.94), rgba(255, 247, 237, 0.94));
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.08);
  backdrop-filter: blur(14px);
}

.site-header-inner,
.container,
.hero-inner,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, #fb7185, #fb923c);
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.28);
}

.brand-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #f43f5e, #fb923c);
  -webkit-background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 9px 13px;
  border-radius: 999px;
  color: #374151;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.top-search {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid #fecdd3;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  outline: none;
}

.top-search input {
  width: 180px;
}

.top-search button,
.btn,
.play-button,
.filter-bar button {
  border: 0;
  color: #ffffff;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--rose), var(--orange));
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button:hover,
.btn:hover,
.play-button:hover,
.filter-bar button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(244, 63, 94, 0.32);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--rose);
  background: #ffffff;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 12% 24%, rgba(251, 146, 60, 0.30), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(244, 63, 94, 0.28), transparent 28%),
    linear-gradient(135deg, #fff1f2 0%, #fff7ed 45%, #ffffff 100%);
}

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

.hero::before {
  width: 280px;
  height: 280px;
  right: -90px;
  bottom: 60px;
  background: rgba(251, 146, 60, 0.22);
}

.hero::after {
  width: 210px;
  height: 210px;
  left: -70px;
  top: 120px;
  background: rgba(244, 63, 94, 0.18);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 46px;
  align-items: center;
  padding: 56px 0;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 8px 13px;
  color: var(--rose);
  background: #ffffff;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.12);
}

.hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.gradient-text {
  background: linear-gradient(90deg, #e11d48, #f97316);
  -webkit-background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 660px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.9;
}

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

.btn.secondary {
  color: var(--rose);
  background: #ffffff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 560px;
}

.hero-stat {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: var(--shadow);
}

.hero-stat strong {
  display: block;
  color: var(--rose);
  font-size: 24px;
}

.hero-visual {
  position: relative;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(22px) scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.hero-card {
  overflow: hidden;
  height: 100%;
  border-radius: 34px;
  background: #ffffff;
  box-shadow: 0 30px 70px rgba(244, 63, 94, 0.22);
  border: 1px solid rgba(244, 63, 94, 0.12);
}

.hero-card img {
  height: 340px;
  object-fit: cover;
}

.hero-card-body {
  padding: 26px;
}

.hero-card-body h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.hero-card-body p {
  min-height: 60px;
  font-size: 15px;
  line-height: 1.7;
}

.hero-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 16px 0 20px;
}

.hero-card-meta span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--rose);
  background: var(--rose-soft);
  font-size: 12px;
  font-weight: 700;
}

.hero-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: #fecdd3;
  cursor: pointer;
}

.hero-dot.active {
  width: 30px;
  background: linear-gradient(90deg, var(--rose), var(--orange));
}

main {
  padding-bottom: 48px;
}

.section {
  padding: 54px 0 0;
}

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

.section-title h2,
.page-title h1 {
  margin: 12px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.section-title p,
.page-title p {
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(244, 63, 94, 0.10);
  box-shadow: 0 18px 38px rgba(31, 41, 55, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(244, 63, 94, 0.28);
  box-shadow: 0 26px 54px rgba(244, 63, 94, 0.16);
}

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

.movie-card img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(8px);
}

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

.movie-title {
  display: block;
  min-height: 50px;
  color: #111827;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
}

.movie-meta,
.movie-desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.movie-desc {
  min-height: 44px;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

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

.category-card {
  padding: 24px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card strong {
  display: block;
  font-size: 20px;
  margin-bottom: 10px;
}

.category-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 26px;
}

.chip {
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 999px;
  color: #4b5563;
  background: #ffffff;
  border: 1px solid rgba(244, 63, 94, 0.12);
  font-weight: 700;
}

.chip.active,
.chip:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--orange));
}

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

.rank-item {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(244, 63, 94, 0.10);
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.08);
}

.rank-poster {
  border-radius: 18px;
}

.rank-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.rank-no {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.rank-title {
  display: inline-block;
  margin: 6px 0 8px;
  font-size: 20px;
  font-weight: 900;
}

.rank-info p {
  color: var(--muted);
  line-height: 1.7;
  margin: 6px 0;
}

.rank-score {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.rank-score span {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--rose);
  background: var(--rose-soft);
  font-size: 13px;
  font-weight: 800;
}

.page-hero {
  padding: 58px 0 16px;
}

.page-title {
  padding: 38px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 10% 20%, rgba(251, 146, 60, 0.20), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 241, 242, 0.88));
  box-shadow: var(--shadow);
  border: 1px solid rgba(244, 63, 94, 0.10);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 170px 170px auto;
  gap: 10px;
  margin: 24px 0;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(244, 63, 94, 0.12);
}

.detail-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.detail-poster {
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-main {
  padding: 34px;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid rgba(244, 63, 94, 0.10);
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

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

.detail-main h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #4b5563;
  background: #f9fafb;
  border: 1px solid var(--line);
  font-weight: 700;
}

.detail-section {
  margin-top: 26px;
}

.detail-section h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.detail-section p {
  color: #4b5563;
  line-height: 2;
}

.player-panel {
  margin-top: 30px;
  border-radius: 30px;
  overflow: hidden;
  background: #111827;
  box-shadow: 0 28px 62px rgba(17, 24, 39, 0.25);
}

.player-panel video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-stage {
  position: relative;
}

.watch-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(244, 63, 94, 0.20), transparent 45%),
    rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.watch-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.play-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 18px;
}

.player-caption {
  padding: 16px 20px;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.22), rgba(251, 146, 60, 0.18));
}

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

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 30px;
  padding: 44px 0 28px;
}

.footer-brand p {
  max-width: 560px;
  color: #d1d5db;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: end;
  align-content: start;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #f9fafb;
  background: rgba(255, 255, 255, 0.08);
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 26px;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.hidden-by-filter {
  display: none !important;
}

@media (max-width: 980px) {
  .site-header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav,
  .top-search {
    display: none;
    width: 100%;
  }

  .main-nav.open,
  .top-search.open {
    display: flex;
  }

  .main-nav {
    flex-direction: column;
    align-items: stretch;
  }

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

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

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

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

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

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

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

  .hero {
    min-height: auto;
  }

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

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

  .hero-card img {
    height: 260px;
  }

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

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

  .rank-item {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .detail-main,
  .page-title {
    padding: 24px;
  }
}
