:root {
  color-scheme: dark;
  --bg: #030712;
  --bg-soft: #0b1120;
  --panel: rgba(31, 41, 55, 0.58);
  --panel-strong: rgba(31, 41, 55, 0.9);
  --line: rgba(75, 85, 99, 0.7);
  --text: #f9fafb;
  --muted: #9ca3af;
  --soft: #d1d5db;
  --orange: #f97316;
  --orange-light: #fb923c;
  --red: #dc2626;
  --yellow: #eab308;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 10% 0%, rgba(249, 115, 22, 0.14), transparent 34%), var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(31, 41, 55, 0.95);
  background: rgba(17, 24, 39, 0.94);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #fff;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.3);
  transition: transform 0.2s ease;
}

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

.brand-text {
  font-size: 21px;
  background: linear-gradient(90deg, var(--orange-light), #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav,
.mobile-nav {
  font-size: 14px;
  font-weight: 650;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

.desktop-nav a,
.mobile-nav a,
.search-link {
  color: #d1d5db;
  border-radius: 12px;
  padding: 10px 13px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.search-link:hover {
  color: #fff;
  background: rgba(55, 65, 81, 0.9);
}

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

.search-link {
  display: inline-flex;
  background: rgba(31, 41, 55, 0.88);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: #fff;
  border: 0;
  border-radius: 12px;
  background: rgba(31, 41, 55, 0.88);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  border-top: 1px solid rgba(55, 65, 81, 0.7);
}

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

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

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #111827, #431407 56%, #7f1d1d);
}

.hero-image.is-missing {
  opacity: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18)),
    linear-gradient(0deg, #000 0%, transparent 42%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1180px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 16px;
  padding: 8px 14px;
  border: 1px solid rgba(249, 115, 22, 0.75);
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.18);
  color: var(--orange-light);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 16px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: #d1d5db;
}

.hero-meta span,
.hero-meta a,
.detail-meta span,
.detail-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.78);
}

.hero-meta span:first-child,
.detail-meta span:first-child {
  color: #fff;
  background: rgba(234, 88, 12, 0.96);
}

.hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 0 0 32px;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.75;
}

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

.primary-btn,
.ghost-btn,
.action-row button,
.action-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 16px;
  border: 0;
  color: #fff;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 16px 40px rgba(249, 115, 22, 0.34);
}

.primary-btn:hover,
.ghost-btn:hover,
.action-row button:hover,
.action-row a:hover {
  transform: translateY(-2px) scale(1.02);
}

.primary-btn:hover {
  box-shadow: 0 18px 45px rgba(249, 115, 22, 0.46);
}

.ghost-btn,
.action-row button,
.action-row a {
  background: rgba(31, 41, 55, 0.82);
  backdrop-filter: blur(12px);
}

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

.hero-dot {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--orange), var(--red));
}

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

.dark-rise {
  position: relative;
}

.dark-rise::before {
  content: "";
  position: absolute;
  inset: 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  background: linear-gradient(180deg, #000, #111827 48%, #020617);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin: 0 0 30px;
}

.section-head h2,
.page-hero h1,
.detail-main h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.03em;
}

.section-more {
  color: var(--orange-light);
  font-weight: 750;
}

.search-panel {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 14px;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid rgba(75, 85, 99, 0.65);
  border-radius: 22px;
  background: rgba(17, 24, 39, 0.76);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.search-panel label {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: #fff;
  border: 1px solid rgba(75, 85, 99, 0.7);
  border-radius: 14px;
  outline: 0;
  background: rgba(31, 41, 55, 0.92);
}

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

.empty-state {
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid rgba(249, 115, 22, 0.38);
  border-radius: 18px;
  color: #fed7aa;
  background: rgba(124, 45, 18, 0.28);
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 18px;
  overflow-x: auto;
  padding: 2px 2px 18px;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

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

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

.movie-card {
  position: relative;
  display: block;
  min-width: 0;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(31, 41, 55, 0.56);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

.poster-shell {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #111827, #431407, #7f1d1d);
  overflow: hidden;
}

.poster-shell img,
.wide-poster img,
.editor-card img,
.category-thumbs img,
.poster-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

img.is-missing {
  visibility: hidden;
}

.poster-shade,
.editor-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), transparent 56%);
}

.rating-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  opacity: 0;
  background: rgba(0, 0, 0, 0.42);
  transition: opacity 0.2s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
}

.card-copy {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 5px;
  padding: 14px;
}

.card-copy strong {
  font-size: 16px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-copy span,
.card-copy em,
.wide-copy span,
.wide-copy em,
.editor-copy small,
.editor-copy em {
  color: var(--soft);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

.card-copy em {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-tile {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(75, 85, 99, 0.58);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(31, 41, 55, 0.72), rgba(15, 23, 42, 0.86));
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.64);
  background: linear-gradient(145deg, rgba(124, 45, 18, 0.72), rgba(31, 41, 55, 0.86));
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  height: 118px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #111827, #431407);
}

.category-thumbs img {
  border-radius: 12px;
  min-height: 0;
  background: rgba(31, 41, 55, 0.7);
}

.category-tile strong {
  display: block;
  margin: 0 0 6px;
  font-size: 19px;
}

.category-tile em {
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
  line-height: 1.65;
}

.overview-grid .category-tile {
  min-height: 280px;
}

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

.editor-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(31, 41, 55, 0.6);
  transition: transform 0.24s ease;
}

.editor-card:hover {
  transform: scale(1.025);
}

.editor-main {
  grid-column: span 2;
  grid-row: span 2;
}

.editor-copy {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 8px;
  padding: 22px;
}

.editor-copy strong {
  font-size: 25px;
  line-height: 1.25;
}

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

.wide-card {
  display: grid;
  grid-template-columns: auto 96px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(31, 41, 55, 0.55);
  transition: transform 0.2s ease, background 0.2s ease;
}

.wide-card:hover {
  transform: translateX(6px);
  background: rgba(31, 41, 55, 0.9);
}

.rank-num {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 900;
}

.wide-poster {
  width: 96px;
  height: 132px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #111827, #431407);
}

.wide-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.wide-copy strong {
  font-size: 22px;
}

.wide-copy em {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-main {
  background: radial-gradient(circle at 100% 0%, rgba(249, 115, 22, 0.12), transparent 30%);
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0 20px;
}

.small-hero,
.category-hero {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.75;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

.category-pills a,
.tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.82);
  color: #d1d5db;
  font-size: 13px;
}

.player-section {
  background: #000;
  padding: 34px 0;
}

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

.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 26px;
  background: #050505;
  box-shadow: var(--shadow);
}

.video-player {
  width: 100%;
  height: 100%;
  background: #000;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.28), rgba(0, 0, 0, 0.64));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-overlay span {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-size: 36px;
  box-shadow: 0 18px 60px rgba(249, 115, 22, 0.42);
}

.video-overlay strong {
  font-size: 20px;
}

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

.video-loader {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(0, 0, 0, 0.68);
  font-size: 13px;
}

.video-loader.is-hidden {
  display: none;
}

.detail-section {
  padding-top: 38px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--orange-light);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.84fr);
  gap: 32px;
}

.detail-main h1 {
  margin-bottom: 18px;
}

.action-row {
  margin: 0 0 28px;
}

.text-card,
.side-card {
  margin: 0 0 24px;
  padding: 24px;
  border: 1px solid rgba(75, 85, 99, 0.46);
  border-radius: 24px;
  background: rgba(31, 41, 55, 0.55);
}

.text-card h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.text-card p {
  margin: 0;
  color: #d1d5db;
  line-height: 1.9;
}

.text-card p + p {
  margin-top: 12px;
}

.lead-line {
  color: var(--orange-light) !important;
  font-style: italic;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-side {
  min-width: 0;
}

.poster-side {
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #431407);
}

.poster-side img {
  aspect-ratio: 2 / 3;
}

.info-card div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(75, 85, 99, 0.45);
}

.info-card div:last-child {
  border-bottom: 0;
}

.info-card span {
  color: var(--muted);
}

.info-card strong {
  text-align: right;
}

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

.compact-card .card-copy em {
  display: none;
}

.site-footer {
  border-top: 1px solid rgba(55, 65, 81, 0.78);
  background: #0b1120;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.7fr 1fr;
  gap: 34px;
}

.footer-brand {
  margin-bottom: 16px;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 17px;
}

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 30px;
  color: #6b7280;
  border-top: 1px solid rgba(55, 65, 81, 0.55);
  font-size: 13px;
}

@media (max-width: 1180px) {
  .desktop-nav a:nth-last-child(-n + 3) {
    display: none;
  }

  .poster-grid,
  .dense-grid,
  .related-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    height: 72vh;
    min-height: 540px;
  }

  .hero-content {
    padding-top: 22px;
  }

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

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

  .editor-grid,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .editor-main {
    grid-column: auto;
    grid-row: auto;
  }

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

@media (max-width: 640px) {
  .nav-wrap {
    width: min(100% - 24px, 1180px);
  }

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

  .search-link {
    display: none;
  }

  .hero {
    min-height: 560px;
  }

  .hero-meta {
    gap: 8px;
  }

  .hero-actions a,
  .action-row button,
  .action-row a {
    width: 100%;
  }

  .section,
  .page-hero,
  .player-wrap {
    width: min(100% - 24px, 1180px);
  }

  .section {
    padding: 52px 0;
  }

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

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

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

  .wide-card {
    grid-template-columns: auto 78px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .wide-poster {
    width: 78px;
    height: 110px;
  }

  .wide-copy strong {
    font-size: 18px;
  }

  .wide-copy em {
    display: none;
  }

  .rank-num {
    width: 34px;
    height: 34px;
  }

  .video-box {
    border-radius: 18px;
  }

  .footer-inner {
    padding: 42px 0;
  }
}
