:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --text-main: #111827;
  --text-muted: #64748b;
  --orange: #f97316;
  --pink: #ec4899;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --emerald: #10b981;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.14);
  --shadow-card: 0 12px 28px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #fff7ed 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.container.narrow {
  width: min(860px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 48%, #0f172a 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.28);
}

.nav-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding-left: 2px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.35);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

.brand-text {
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #fb923c, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #fb923c;
}

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

.nav-search input,
.mobile-search input,
.search-panel input,
.filter-bar input,
.filter-bar select,
.search-panel select {
  border: 1px solid rgba(148, 163, 184, 0.28);
  outline: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  padding: 11px 16px;
  min-width: 220px;
}

.nav-search input::placeholder,
.mobile-search input::placeholder,
.search-panel input::placeholder,
.filter-bar input::placeholder {
  color: rgba(226, 232, 240, 0.72);
}

.nav-search button,
.mobile-search button,
.search-panel button {
  border: 0;
  cursor: pointer;
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.search-panel button:hover,
.btn:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  background: #1e293b;
  padding: 16px;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel nav {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.mobile-search {
  display: flex;
  gap: 8px;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 32%, rgba(236, 72, 153, 0.28), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.76) 46%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  max-width: 1180px;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(226, 232, 240, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-pill-row,
.hero-tags,
.detail-meta,
.detail-tags,
.card-meta,
.card-topline,
.rank-meta,
.hero-actions,
.detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pill,
.hero-score,
.tag,
.detail-meta span,
.hero-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-pill {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
}

.hero-score {
  color: #fde68a;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-tags {
  margin-bottom: 28px;
}

.hero-tags span,
.tag,
.detail-meta span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.btn-outline {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
}

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

.hero-dot {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 56px;
  background: var(--orange);
}

.section-pad {
  padding: 72px 0;
}

.bg-warm {
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

.bg-light {
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
}

.bg-blue {
  background: linear-gradient(135deg, #eff6ff, #f0fdfa);
}

.bg-dark {
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

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

.section-head h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

.bg-dark .section-head p {
  color: rgba(226, 232, 240, 0.78);
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange);
  font-weight: 800;
}

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

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

.category-card {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  background: #0f172a;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.movie-card:hover,
.wide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  opacity: 0.76;
  transition: transform 0.3s ease;
}

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

.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.86));
}

.category-content {
  position: absolute;
  inset: auto 18px 18px 18px;
  color: #fff;
}

.category-content strong {
  display: block;
  font-size: 1.3rem;
  line-height: 1.15;
}

.category-content em {
  display: block;
  margin-top: 7px;
  color: rgba(226, 232, 240, 0.82);
  font-style: normal;
  font-size: 0.92rem;
}

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

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

.movie-card {
  min-width: 0;
}

.card-link,
.wide-link,
.rank-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-wrap,
.wide-poster,
.rank-cover {
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.poster-wrap {
  aspect-ratio: 16 / 10;
}

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

.card-link:hover img,
.wide-link:hover img,
.rank-link:hover img {
  transform: scale(1.08);
}

.poster-play,
.play-badge {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%) scale(0.9);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding-left: 3px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.card-link:hover .poster-play,
.rank-link:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: #fff;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 16px;
}

.card-topline {
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 800;
}

.card-body h3,
.wide-body h3,
.rank-content h3 {
  margin: 0;
  color: #0f172a;
  line-height: 1.28;
  font-size: 1.08rem;
}

.card-body p,
.wide-body p,
.rank-content p {
  margin: 8px 0 12px;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.card-meta,
.rank-meta {
  gap: 8px;
  color: #64748b;
  font-size: 0.82rem;
}

.card-meta span,
.rank-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

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

.wide-link {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 138px;
}

.wide-poster {
  min-height: 138px;
}

.wide-body {
  padding: 18px;
}

.card-kicker {
  margin-bottom: 6px;
  color: var(--orange);
  font-weight: 800;
  font-size: 0.82rem;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 14px;
}

.rank-row.large {
  grid-template-columns: 72px 1fr;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.22);
}

.rank-row.large .rank-number {
  width: 64px;
  height: 64px;
}

.rank-link {
  display: grid;
  grid-template-columns: 150px 1fr;
}

.rank-cover {
  min-height: 96px;
}

.rank-content {
  padding: 16px;
}

.page-hero {
  color: #fff;
  padding: 96px 0;
  text-align: center;
  background:
    radial-gradient(circle at 22% 18%, rgba(249, 115, 22, 0.28), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(236, 72, 153, 0.25), transparent 30%),
    linear-gradient(135deg, #0f172a, #1e293b);
}

.page-hero h1 {
  margin: 10px 0 16px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(226, 232, 240, 0.86);
  font-size: 1.1rem;
}

.eyebrow {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 14px;
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  font-weight: 800;
}

.category-strip {
  margin-top: 56px;
}

.filter-bar,
.search-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: var(--shadow-card);
}

.filter-bar input,
.filter-bar select,
.search-panel input,
.search-panel select {
  min-width: 180px;
  flex: 1;
}

.movie-card.is-hidden,
.rank-row.is-hidden {
  display: none;
}

.search-recommend {
  margin-top: 56px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #020617;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: blur(4px);
  transform: scale(1.04);
}

.detail-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 25%, rgba(236, 72, 153, 0.25), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.72));
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
  aspect-ratio: 3 / 4;
  background: #0f172a;
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(226, 232, 240, 0.8);
  font-weight: 700;
}

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

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.detail-one-line {
  margin: 0 0 22px;
  max-width: 760px;
  color: rgba(226, 232, 240, 0.9);
  font-size: 1.2rem;
}

.detail-meta,
.detail-tags {
  margin-bottom: 18px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
}

.detail-article,
.detail-side,
.player-card {
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

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

.detail-article h2,
.detail-side h2,
.player-card h2 {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: 1.65rem;
  line-height: 1.2;
}

.detail-article p {
  margin: 0 0 28px;
  color: #334155;
  font-size: 1.05rem;
}

.info-table {
  display: grid;
  gap: 12px;
}

.info-table div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
}

.info-table strong {
  color: #0f172a;
}

.info-table span {
  color: #475569;
}

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

.side-list .wide-link {
  grid-template-columns: 120px 1fr;
}

.side-list .wide-poster {
  min-height: 104px;
}

.side-list .wide-body {
  padding: 12px;
}

.player-card {
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.98));
}

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.4);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.72));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-start {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  padding: 16px 28px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 18px 34px rgba(249, 115, 22, 0.38);
  transition: transform 0.2s ease;
}

.player-start:hover {
  transform: scale(1.05);
}

.player-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding-left: 3px;
  border-radius: 50%;
  color: var(--orange);
  background: #fff;
}

.site-footer {
  color: rgba(226, 232, 240, 0.82);
  background: #020617;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner strong {
  color: #fff;
}

.footer-inner p {
  margin: 6px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 700;
}

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

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

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

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

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

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

@media (max-width: 720px) {
  .brand-text {
    font-size: 1.25rem;
  }

  .hero-carousel,
  .detail-hero {
    min-height: 720px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 96px;
  }

  .hero-actions,
  .detail-actions,
  .section-head,
  .footer-inner,
  .wide-link,
  .rank-link,
  .rank-row,
  .rank-row.large {
    display: grid;
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .movie-grid.small,
  .movie-grid.compact,
  .wide-grid,
  .category-grid,
  .category-grid.large {
    grid-template-columns: 1fr;
  }

  .rank-number {
    width: 48px;
    height: 48px;
  }

  .page-hero {
    padding: 72px 0;
  }

  .section-pad {
    padding: 52px 0;
  }

  .filter-bar,
  .search-panel,
  .mobile-search {
    display: grid;
  }

  .filter-bar input,
  .filter-bar select,
  .search-panel input,
  .search-panel select,
  .mobile-search input {
    min-width: 0;
    width: 100%;
  }
}
