:root {
  --page-bg: #fff7ed;
  --text-main: #1f2937;
  --text-soft: #6b7280;
  --line: rgba(148, 163, 184, 0.24);
  --card: rgba(255, 255, 255, 0.92);
  --orange: #f97316;
  --red: #ef4444;
  --pink: #ec4899;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-main);
  background:
    radial-gradient(circle at 8% 0%, rgba(251, 146, 60, 0.22), transparent 30%),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 36%, #f8fafc 100%);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 20px;
  align-items: center;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red), var(--pink));
  box-shadow: 0 14px 34px rgba(249, 115, 22, 0.32);
}

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

.nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
}

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

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
}

.nav-search,
.mobile-search,
.big-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.nav-search input,
.mobile-search input,
.big-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 12px 14px;
  background: transparent;
}

.nav-search button,
.mobile-search button,
.big-search button {
  border: 0;
  padding: 12px 18px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
  cursor: pointer;
}

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

.mobile-panel {
  display: none;
  padding: 0 22px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

main {
  width: 100%;
}

.hero {
  max-width: 1240px;
  min-height: 630px;
  margin: 28px auto 0;
  padding: 0 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

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

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

.hero-slide img.is-hidden,
.detail-cover img.is-hidden,
.poster-frame img.is-hidden,
.movie-video.is-hidden {
  display: none;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.70) 45%, rgba(15, 23, 42, 0.25) 100%),
    radial-gradient(circle at 35% 30%, rgba(249, 115, 22, 0.48), transparent 36%);
}

.hero-copy {
  position: absolute;
  left: clamp(26px, 6vw, 74px);
  bottom: clamp(34px, 8vw, 84px);
  max-width: 650px;
  color: #ffffff;
}

.hero-eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: #fb923c;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-text,
.page-hero p,
.detail-one-line {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.detail-meta,
.tag-row,
.card-meta,
.highlight-links,
.related-categories div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-meta span,
.tag-row span,
.highlight-links a,
.related-categories a {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 7px 11px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-actions,
.detail-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.panel-link,
.text-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 900;
  transition: 0.25s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red), var(--pink));
  box-shadow: 0 16px 36px rgba(249, 115, 22, 0.34);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.14);
}

.primary-btn:hover,
.ghost-btn:hover,
.panel-link:hover,
.text-link:hover,
.section-more:hover {
  transform: translateY(-2px);
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: #fb923c;
}

.hero-panel,
.ranking-card,
.category-overview-card,
.movie-card,
.toolbar,
.related-categories,
.detail-article,
.detail-side {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(16px);
}

.hero-panel {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-panel p,
.hero-panel h2 {
  margin-top: 0;
}

.hero-panel h2,
.ranking-card h2,
.section-heading h2,
.detail-article h2,
.detail-side h2,
.related-categories h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

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

.mini-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 247, 237, 0.92);
  transition: 0.25s ease;
}

.mini-row:hover {
  transform: translateX(4px);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.mini-rank {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

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

.mini-meta {
  color: var(--text-soft);
  font-size: 13px;
}

.panel-link,
.text-link,
.section-more {
  color: #ea580c;
  background: #fff7ed;
}

.content-section,
.category-section,
.category-overview-grid,
.toolbar,
.related-categories,
.detail-layout,
.watch-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 22px 0;
}

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

.compact-heading {
  align-items: start;
  margin-bottom: 12px;
}

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

.movie-card {
  overflow: hidden;
  transition: 0.3s ease;
}

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

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgba(251, 146, 60, 0.55), transparent 34%),
    linear-gradient(135deg, #111827, #7f1d1d 45%, #fb923c);
}

.poster-frame img {
  position: absolute;
  inset: 0;
  transition: 0.35s ease;
}

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(15, 23, 42, 0.80) 100%);
}

.poster-year,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(10px);
}

.poster-year {
  left: 12px;
}

.rank-badge {
  right: 12px;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.card-body {
  padding: 18px;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #ea580c;
  font-size: 13px;
  font-weight: 900;
}

.card-body h3 {
  margin: 8px 0;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.card-body h3 a:hover,
.category-samples a:hover,
.footer-links a:hover,
.breadcrumb a:hover,
.detail-navigation a:hover {
  color: #ea580c;
}

.card-body p {
  display: -webkit-box;
  min-height: 54px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--text-soft);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  margin-bottom: 12px;
  color: var(--text-soft);
  font-size: 13px;
}

.card-meta span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-row span {
  color: #9a3412;
  background: #ffedd5;
  border-color: #fed7aa;
  font-size: 12px;
  backdrop-filter: none;
}

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

.category-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  min-height: 190px;
  color: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.category-card strong,
.category-title strong {
  display: block;
  font-size: 23px;
  letter-spacing: -0.04em;
}

.category-card em,
.category-overview-card p {
  display: block;
  margin-top: 10px;
  font-style: normal;
  opacity: 0.88;
}

.category-icon,
.category-title span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 18px;
  color: #ffffff;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.18);
}

.category-samples {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  font-size: 13px;
}

.category-samples a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.from-red,
.category-hero.from-red {
  background: linear-gradient(135deg, #ef4444, #7f1d1d);
}

.from-orange,
.category-hero.from-orange {
  background: linear-gradient(135deg, #f97316, #c2410c);
}

.from-pink,
.category-hero.from-pink {
  background: linear-gradient(135deg, #ec4899, #be123c);
}

.from-rose,
.category-hero.from-rose {
  background: linear-gradient(135deg, #fb7185, #be185d);
}

.from-blue,
.category-hero.from-blue {
  background: linear-gradient(135deg, #3b82f6, #1e3a8a);
}

.from-violet,
.category-hero.from-violet {
  background: linear-gradient(135deg, #8b5cf6, #4c1d95);
}

.from-yellow,
.category-hero.from-yellow {
  color: #422006;
  background: linear-gradient(135deg, #facc15, #f97316);
}

.from-green,
.category-hero.from-green {
  background: linear-gradient(135deg, #22c55e, #14532d);
}

.from-cyan,
.category-hero.from-cyan {
  background: linear-gradient(135deg, #06b6d4, #155e75);
}

.from-indigo,
.category-hero.from-indigo {
  background: linear-gradient(135deg, #6366f1, #312e81);
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.two-columns > * {
  min-width: 0;
}

.ranking-card,
.highlight-card {
  padding: 28px;
}

.highlight-card {
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(135deg, var(--orange), var(--red), var(--pink));
}

.highlight-card .section-kicker,
.highlight-card p {
  color: rgba(255, 255, 255, 0.88);
}

.highlight-links {
  margin-top: 24px;
}

.page-hero,
.detail-hero {
  max-width: 1240px;
  margin: 28px auto 0;
  padding: 72px 22px;
  border-radius: 36px;
}

.compact-hero,
.rank-hero,
.search-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.24), transparent 32%),
    linear-gradient(135deg, #111827, #7f1d1d 52%, #f97316);
  box-shadow: var(--shadow);
}

.category-hero {
  color: #ffffff;
  box-shadow: var(--shadow);
}

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

.category-overview-card {
  color: #ffffff;
}

.category-overview-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.category-overview-card li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.category-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.category-title span {
  margin-bottom: 0;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-buttons button,
.toolbar select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: #4b5563;
  background: #ffffff;
  cursor: pointer;
}

.filter-buttons button.is-active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.toolbar label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-weight: 800;
}

.related-categories {
  padding: 28px;
}

.related-categories div {
  margin-top: 18px;
}

.related-categories a {
  color: #9a3412;
  background: #ffedd5;
  border-color: #fed7aa;
}

.detail-hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 44px;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 18%, rgba(249, 115, 22, 0.35), transparent 28%),
    linear-gradient(135deg, #111827, #7f1d1d 58%, #f97316);
  box-shadow: var(--shadow);
}

.detail-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 15%, rgba(251, 146, 60, 0.55), transparent 34%),
    linear-gradient(135deg, #111827, #7f1d1d 45%, #fb923c);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.76);
}

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

.large-tags span {
  font-size: 14px;
}

.watch-section {
  padding-top: 34px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #020617;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  text-align: center;
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 40%, rgba(249, 115, 22, 0.35), transparent 30%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.86));
  transition: 0.25s ease;
}

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

.play-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 20px 50px rgba(249, 115, 22, 0.38);
}

.play-icon::before {
  content: "";
  display: block;
  margin-left: 6px;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid #ffffff;
}

.player-overlay strong {
  max-width: 80%;
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.15;
}

.player-overlay em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.78);
}

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

.detail-article,
.detail-side {
  padding: 30px;
}

.detail-article p {
  color: #374151;
  font-size: 17px;
}

.detail-navigation {
  margin-top: 30px;
}

.detail-navigation a {
  flex: 1;
  min-width: 220px;
  padding: 16px;
  border-radius: 18px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 800;
}

.related-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.movie-card.is-compact {
  display: grid;
  grid-template-columns: 96px 1fr;
}

.movie-card.is-compact .poster-frame {
  aspect-ratio: 2 / 3;
}

.movie-card.is-compact .card-body {
  padding: 12px;
}

.movie-card.is-compact .card-body h3 {
  font-size: 16px;
}

.movie-card.is-compact .card-body p,
.movie-card.is-compact .tag-row,
.movie-card.is-compact .card-meta span:nth-child(3) {
  display: none;
}

.big-search {
  max-width: 620px;
  margin-top: 28px;
}

.big-search input {
  flex: 1;
  padding: 16px 18px;
}

.big-search button {
  padding: 16px 24px;
}

.site-footer {
  margin-top: 90px;
  padding: 42px 22px;
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
}

.footer-brand {
  color: #ffffff;
  font-size: 24px;
}

.footer-inner p {
  max-width: 560px;
  color: #9ca3af;
}

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

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

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
  }

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

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

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

  .detail-cover {
    max-width: 340px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .nav-links,
  .nav-search {
    display: none;
  }

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

  .mobile-panel.is-open {
    display: grid;
    gap: 10px;
  }

  .hero,
  .content-section,
  .category-section,
  .category-overview-grid,
  .toolbar,
  .related-categories,
  .detail-layout,
  .watch-section,
  .page-hero,
  .detail-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .movie-grid,
  .category-overview-grid,
  .two-columns,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

  .footer-links {
    justify-content: flex-start;
  }
}

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

  .hero {
    min-height: auto;
    margin-top: 14px;
  }

  .hero-stage {
    min-height: 520px;
    border-radius: 24px;
  }

  .hero-copy {
    left: 22px;
    right: 22px;
    bottom: 54px;
  }

  .hero-tags span:nth-child(3) {
    display: none;
  }

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

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

  .page-hero,
  .detail-hero {
    margin-top: 16px;
    border-radius: 24px;
    padding-top: 40px;
    padding-bottom: 40px;
  }

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