:root {
  --color-orange: #f97316;
  --color-orange-dark: #ea580c;
  --color-slate: #1e293b;
  --color-slate-deep: #0f172a;
  --color-muted: #64748b;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.10);
  --radius-xl: 22px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #1f2937;
  background: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.3);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 10px 13px;
  color: #475569;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #ea580c);
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 96px 0 72px;
  background: radial-gradient(circle at 18% 20%, rgba(249, 115, 22, 0.42), transparent 30%),
    radial-gradient(circle at 80% 18%, rgba(59, 130, 246, 0.36), transparent 32%),
    linear-gradient(135deg, #1e293b 0%, #334155 48%, #7c2d12 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(52px);
  opacity: 0.22;
  pointer-events: none;
}

.hero::before {
  left: 8%;
  top: 12%;
  width: 300px;
  height: 300px;
  background: #f97316;
}

.hero::after {
  right: 6%;
  bottom: 8%;
  width: 360px;
  height: 360px;
  background: #3b82f6;
}

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

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

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

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button:hover {
  transform: translateY(-2px) scale(1.02);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  box-shadow: 0 18px 34px rgba(249, 115, 22, 0.32);
}

.button-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.hero-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 660px;
}

.hero-stat {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-stat strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.42);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
  opacity: 0.78;
}

.hero-slide-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.18), transparent);
}

.hero-slide-content h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.18;
}

.hero-slide-content p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-dots {
  position: absolute;
  left: 28px;
  bottom: 20px;
  display: flex;
  gap: 8px;
  z-index: 6;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

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

.section {
  padding: 72px 0;
}

.section-white {
  background: #fff;
}

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

.section-soft {
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
}

.section-title {
  margin: 0 0 10px;
  color: #111827;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-dark .section-title {
  color: #fff;
}

.section-lead {
  margin: 0 0 34px;
  color: #64748b;
  font-size: 17px;
}

.section-dark .section-lead {
  color: rgba(255, 255, 255, 0.72);
}

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

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

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

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

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

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  color: #fff;
  border-radius: 999px;
  background: #f97316;
  font-size: 12px;
  font-weight: 900;
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.movie-card:hover .play-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.28);
}

.play-circle {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff;
  background: rgba(249, 115, 22, 0.92);
  box-shadow: 0 12px 34px rgba(249, 115, 22, 0.42);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.card-body h3 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.card-body p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  color: #64748b;
  font-size: 13px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 800;
}

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

.stat-card {
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(135deg, #fb923c, #ea580c);
}

.stat-card strong {
  display: block;
  color: #111827;
  font-size: 28px;
  line-height: 1.15;
}

.stat-card span {
  color: #64748b;
}

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

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

.rank-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.16);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  font-size: 20px;
  font-weight: 900;
}

.rank-cover {
  width: 96px;
  height: 72px;
  overflow: hidden;
  border-radius: 12px;
  background: #334155;
}

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

.rank-title {
  margin: 0 0 4px;
  color: #fff;
  font-size: 17px;
}

.rank-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.rank-heat {
  color: #fdba74;
  font-weight: 900;
}

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 24px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #1e293b, #9a3412);
  box-shadow: var(--shadow-soft);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: 26px;
}

.category-card p,
.category-card span {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1.8fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr);
  gap: 14px;
  padding: 22px;
  margin-bottom: 32px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.input,
.select {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  outline: none;
  color: #1f2937;
  background: #fff;
  font: inherit;
}

.input:focus,
.select:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.22);
}

.page-hero {
  padding: 68px 0;
  color: #fff;
  background: radial-gradient(circle at 18% 30%, rgba(249, 115, 22, 0.35), transparent 34%),
    linear-gradient(135deg, #1e293b, #0f172a 70%);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
}

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

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

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

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: #e2e8f0;
  box-shadow: var(--shadow-card);
}

.detail-poster img {
  width: 100%;
  height: auto;
}

.detail-panel {
  padding: 30px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.detail-panel h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 32px;
  line-height: 1.2;
}

.info-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 24px;
}

.info-cell {
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
}

.info-cell b {
  display: block;
  color: #64748b;
  font-size: 12px;
}

.info-cell span {
  color: #111827;
  font-weight: 900;
}

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

.player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  color: #fff;
  background: #0f172a;
}

.video-wrap {
  position: relative;
  background: #000;
}

.video-wrap video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-starter {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: #fff;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.3), rgba(2, 6, 23, 0.82));
  cursor: pointer;
}

.play-starter span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.36);
}

.article-block {
  padding: 28px;
  margin-top: 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.article-block h2 {
  margin: 0 0 16px;
  color: #111827;
}

.article-block p {
  margin: 0 0 14px;
  color: #475569;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-weight: 900;
}

.pagination .current {
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #ea580c);
}

.site-footer {
  padding: 36px 0;
  color: rgba(255, 255, 255, 0.72);
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
}

.footer-grid h3,
.footer-grid h4 {
  margin-top: 0;
  color: #fff;
}

.footer-grid a {
  display: inline-block;
  margin: 0 12px 8px 0;
  color: rgba(255, 255, 255, 0.72);
}

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

@media (max-width: 980px) {
  .hero-grid,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-slide img {
    min-height: 420px;
  }

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

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

@media (max-width: 640px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .hero {
    padding: 64px 0 52px;
  }

  .hero-stat-row,
  .grid-4,
  .grid-3,
  .grid-2,
  .stats-grid,
  .filter-panel,
  .info-table {
    grid-template-columns: 1fr;
  }

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

  .rank-item {
    grid-template-columns: 42px 72px 1fr;
  }

  .rank-heat {
    grid-column: 3;
  }
}
