:root {
  --orange: #f97316;
  --pink: #ec4899;
  --purple: #8b5cf6;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: #fee2e2;
  --card: #ffffff;
  --shadow: 0 20px 50px rgba(249, 115, 22, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 900;
  color: var(--orange);
  white-space: nowrap;
}

.logo span:last-child {
  background: linear-gradient(90deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  font-size: 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}

.nav-links a {
  color: #374151;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--orange);
  transform: translateY(-1px);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff;
}

.nav-search input {
  width: 210px;
  border: 0;
  outline: 0;
  padding: 9px 10px;
  background: transparent;
  color: #374151;
}

.nav-search button,
.primary-btn,
.secondary-btn {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button,
.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.25);
}

.nav-search button {
  padding: 9px 16px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
}

.secondary-btn {
  color: var(--orange);
  background: rgba(255, 255, 255, 0.88);
}

.primary-btn:hover,
.secondary-btn:hover,
.nav-search button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.26);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 26px;
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 68% 28%, rgba(236, 72, 153, 0.28), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.14));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 72vh;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
  padding: 70px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.96);
  font-weight: 800;
  font-size: 14px;
}

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

.hero p {
  margin: 0 0 28px;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2.2vw, 23px);
  line-height: 1.7;
}

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

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

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: #fff;
}

.section {
  padding: 70px 0;
}

.section-tight {
  padding: 42px 0;
}

.section-title {
  margin-bottom: 30px;
  text-align: center;
}

.section-title h1,
.section-title h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title p {
  max-width: 780px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

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

.category-tile {
  min-height: 136px;
  padding: 22px;
  overflow: hidden;
  position: relative;
  color: #fff;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(236, 72, 153, 0.26);
}

.category-tile strong {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}

.category-tile span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.from-blue-400-to-purple-500 { background: linear-gradient(135deg, #60a5fa, #8b5cf6); }
.from-yellow-400-to-orange-500 { background: linear-gradient(135deg, #facc15, #f97316); }
.from-pink-400-to-rose-500 { background: linear-gradient(135deg, #f472b6, #f43f5e); }
.from-orange-500-to-red-500 { background: linear-gradient(135deg, #f97316, #ef4444); }
.from-slate-500-to-slate-800 { background: linear-gradient(135deg, #64748b, #1e293b); }
.from-purple-400-to-fuchsia-500 { background: linear-gradient(135deg, #a78bfa, #d946ef); }
.from-zinc-600-to-zinc-900 { background: linear-gradient(135deg, #52525b, #18181b); }
.from-cyan-400-to-blue-600 { background: linear-gradient(135deg, #22d3ee, #2563eb); }
.from-red-500-to-stone-900 { background: linear-gradient(135deg, #ef4444, #1c1917); }
.from-indigo-400-to-sky-500 { background: linear-gradient(135deg, #818cf8, #0ea5e9); }
.from-emerald-400-to-teal-500 { background: linear-gradient(135deg, #34d399, #14b8a6); }
.from-amber-500-to-orange-700 { background: linear-gradient(135deg, #f59e0b, #c2410c); }
.from-lime-400-to-green-600 { background: linear-gradient(135deg, #a3e635, #16a34a); }
.from-violet-400-to-pink-500 { background: linear-gradient(135deg, #a78bfa, #ec4899); }

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

.movie-card {
  overflow: hidden;
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 70px rgba(236, 72, 153, 0.22);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.year-badge {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  background: rgba(249, 115, 22, 0.95);
}

.rank-badge {
  left: 12px;
  top: 12px;
  padding: 7px 11px;
  background: rgba(236, 72, 153, 0.95);
}

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

.movie-title {
  display: -webkit-box;
  min-height: 52px;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: var(--orange);
}

.movie-meta {
  margin: 8px 0 10px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
}

.movie-line {
  display: -webkit-box;
  min-height: 60px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.feature-panel,
.search-panel,
.detail-card,
.player-card {
  border: 1px solid rgba(254, 215, 170, 0.8);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.feature-panel {
  padding: 34px;
}

.feature-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
}

.feature-panel p {
  color: var(--muted);
  line-height: 1.8;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.rank-num {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.rank-name strong {
  display: block;
  margin-bottom: 4px;
}

.rank-name span {
  color: var(--muted);
  font-size: 13px;
}

.rank-score {
  color: var(--orange);
  font-weight: 900;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  margin-bottom: 26px;
}

.search-panel input {
  min-height: 48px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 0 18px;
  outline: 0;
  color: #374151;
  background: #fff;
}

.search-panel input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.page-hero {
  padding: 74px 0 36px;
}

.page-hero-box {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 46px;
  border-radius: 34px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink), var(--purple));
  box-shadow: var(--shadow);
}

.page-hero-box::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.page-hero-box h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.page-hero-box p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

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

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

.detail-hero {
  padding: 46px 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.56)),
    var(--poster) center / cover no-repeat;
}

.detail-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

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

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.08;
}

.detail-info p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.85;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

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

.player-card {
  padding: 18px;
  margin-bottom: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
}

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

.start-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.26), rgba(0, 0, 0, 0.45));
  cursor: pointer;
}

.start-play span {
  display: inline-grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 24px 60px rgba(236, 72, 153, 0.42);
  font-size: 34px;
}

.start-play.is-hidden {
  display: none;
}

.player-status {
  min-height: 24px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.detail-card {
  padding: 28px;
  margin-bottom: 24px;
}

.detail-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

.side-card {
  position: sticky;
  top: 96px;
}

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

.compact-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.1);
}

.compact-item img {
  width: 70px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
}

.compact-item strong {
  display: block;
  color: #111827;
  line-height: 1.4;
}

.compact-item span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.no-result {
  display: none;
  padding: 24px;
  border-radius: 24px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  box-shadow: var(--shadow);
}

.no-result.is-visible {
  display: block;
}

.site-footer {
  margin-top: 60px;
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
  border-top: 1px solid rgba(254, 215, 170, 0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding: 44px 0;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.site-footer p,
.site-footer li {
  color: var(--muted);
  line-height: 1.8;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: var(--orange);
}

.copyright {
  padding: 18px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(254, 215, 170, 0.8);
}

@media (max-width: 1100px) {
  .nav {
    grid-template-columns: auto auto;
  }

  .nav-links,
  .nav-search {
    grid-column: 1 / -1;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0;
    border-top: 1px solid #fed7aa;
  }

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

  .nav-search {
    justify-self: stretch;
  }

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

  .menu-toggle {
    display: block;
    justify-self: end;
  }

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

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

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

  .side-card {
    position: static;
  }
}

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

  .hero,
  .hero-content {
    min-height: 620px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .category-grid,
  .movie-grid,
  .feature-row,
  .detail-layout,
  .footer-grid,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    align-items: start;
  }

  .detail-poster {
    max-width: 240px;
  }

  .page-hero-box {
    padding: 32px 24px;
  }
}

@media (max-width: 520px) {
  .movie-grid {
    gap: 16px;
  }

  .section {
    padding: 48px 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }
}
