:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --rose: #f43f5e;
  --pink: #ec4899;
  --amber: #f59e0b;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --slate: #0f172a;
  --slate-soft: #1e293b;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #fee2e2;
  --bg: #fff7ed;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #fff7ed 0%, #fff 44%, #fdf2f8 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--rose), var(--pink));
  box-shadow: 0 10px 32px rgba(234, 88, 12, 0.24);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

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

.brand-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.mobile-link {
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
}

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

.mobile-nav {
  display: none;
  padding: 0 16px 14px;
}

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

.mobile-link {
  display: block;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-link.muted {
  opacity: 0.9;
}

.hero {
  position: relative;
  min-height: 500px;
  height: 70vh;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s 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: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
}

.hero-copy {
  max-width: 720px;
  color: #fff;
}

.hero-badges,
.meta-row,
.tag-row,
.filter-row,
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges span,
.detail-badges span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-badges span:nth-child(odd),
.detail-badges span:nth-child(odd) {
  background: var(--orange);
}

.hero-badges span:nth-child(even),
.detail-badges span:nth-child(even) {
  background: var(--rose);
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.btn-primary,
.btn-secondary,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--rose));
  box-shadow: 0 16px 28px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
  color: var(--orange);
  background: #fff;
}

.btn-soft {
  color: var(--orange-dark);
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-soft:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
}

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

.hero-dots button {
  width: 44px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 64px;
  background: var(--orange);
}

.section {
  padding: 56px 0;
}

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

.section-cool {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.section-title h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}

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

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

.category-tile {
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.18);
}

.category-tile > a {
  display: block;
  min-height: 180px;
  padding: 22px;
}

.category-tile h3 {
  margin: 12px 0 8px;
  font-size: 22px;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.category-icon {
  font-size: 34px;
}

.category-samples {
  display: grid;
  gap: 6px;
  padding: 0 22px 20px;
}

.category-samples a {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.category-orange { background: linear-gradient(135deg, #f97316, #fb923c); }
.category-rose { background: linear-gradient(135deg, #f43f5e, #ec4899); }
.category-pink { background: linear-gradient(135deg, #ec4899, #f472b6); }
.category-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.category-slate { background: linear-gradient(135deg, #334155, #0f172a); }
.category-red { background: linear-gradient(135deg, #ef4444, #dc2626); }
.category-green { background: linear-gradient(135deg, #22c55e, #16a34a); }
.category-blue { background: linear-gradient(135deg, #3b82f6, #4f46e5); }
.category-cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.category-purple { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.category-indigo { background: linear-gradient(135deg, #6366f1, #4338ca); }
.category-yellow { background: linear-gradient(135deg, #eab308, #f97316); }

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

.movie-card-compact .card-poster {
  aspect-ratio: 16 / 10;
}

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

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

.card-poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 52%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.duration-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.72);
}

.duration-badge {
  right: 12px;
}

.rank-badge {
  left: 12px;
  min-width: 36px;
  text-align: center;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.play-mark {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #fff;
  background: var(--orange);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #1f2937;
  font-size: 17px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-line {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  margin: 0 0 10px;
  color: #9ca3af;
  font-size: 13px;
}

.tag-row span {
  color: #ea580c;
  background: #ffedd5;
  font-size: 12px;
}

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

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

.ranking-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

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

.ranking-item strong,
.ranking-item em {
  display: block;
}

.ranking-item strong {
  color: #1f2937;
  font-size: 16px;
}

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

.page-hero {
  padding: 70px 0;
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.12;
}

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

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.filter-row input,
.filter-row select {
  min-height: 44px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 0 16px;
  color: #1f2937;
  background: #fff7ed;
  outline: none;
}

.filter-row input {
  min-width: min(100%, 360px);
  flex: 1;
}

.empty-state {
  display: none;
  padding: 42px;
  border-radius: 22px;
  text-align: center;
  color: var(--muted);
  background: #fff;
}

.empty-state.is-visible {
  display: block;
}

.detail-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  color: #fff;
  background-position: center;
  background-size: cover;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.12));
}

.detail-hero .container {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fff;
}

.detail-hero h1 {
  max-width: 850px;
  margin: 18px 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
}

.detail-hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 30px;
  padding: 48px 0;
}

.player-card,
.content-card,
.side-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.player-card h2,
.content-card h2,
.side-card h2 {
  margin: 0;
  padding: 20px 22px 0;
  color: #1f2937;
  font-size: 24px;
}

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

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.58));
  cursor: pointer;
}

.video-shell.is-playing .play-overlay {
  display: none;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  font-size: 34px;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.content-card {
  margin-top: 24px;
  padding-bottom: 26px;
}

.content-card p {
  margin: 14px 22px 0;
  color: #4b5563;
  font-size: 16px;
}

.side-card {
  padding: 0 0 18px;
}

.side-card dl {
  display: grid;
  gap: 12px;
  margin: 18px 22px 0;
}

.side-card div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
}

.side-card dt {
  color: #9ca3af;
}

.side-card dd {
  margin: 0;
  color: #374151;
}

.related-list {
  display: grid;
  gap: 12px;
  margin: 18px 22px 0;
}

.related-list a {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  background: #fff7ed;
}

.related-list img {
  width: 74px;
  height: 92px;
  border-radius: 10px;
  object-fit: cover;
}

.related-list strong,
.related-list em {
  display: block;
}

.related-list strong {
  color: #1f2937;
}

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

.cta-band {
  color: #fff;
  text-align: center;
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 46px);
}

.cta-band p {
  max-width: 720px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.site-footer {
  color: #e5e7eb;
  background: linear-gradient(90deg, #1e293b, #0f172a);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding: 48px 0;
}

.footer-brand {
  color: #fff;
  font-size: 20px;
}

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

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

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

.site-footer a {
  color: #d1d5db;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 16px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 1024px) {
  .category-grid,
  .movie-grid,
  .movie-grid.large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .menu-toggle {
    display: block;
  }

  .hero {
    height: auto;
    min-height: 620px;
  }

  .hero-content {
    padding: 72px 0 92px;
  }

  .hero-actions,
  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .ranking-item {
    grid-template-columns: 36px 62px 1fr;
  }

  .ranking-item img {
    width: 62px;
    height: 80px;
  }
}

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

  .category-grid,
  .movie-grid,
  .movie-grid.large,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .filter-row input,
  .filter-row select {
    width: 100%;
  }

  .side-card div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
