:root {
  --bg: #030712;
  --panel: #0b1120;
  --panel-soft: #111827;
  --panel-line: #1f2937;
  --text: #f9fafb;
  --muted: #9ca3af;
  --soft: #d1d5db;
  --brand: #dc2626;
  --brand-hot: #f97316;
  --brand-deep: #7f1d1d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(220, 38, 38, 0.22), transparent 32rem),
    radial-gradient(circle at 80% 16%, rgba(249, 115, 22, 0.14), transparent 28rem),
    var(--bg);
}

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

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

button,
input {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
  cursor: pointer;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(3, 7, 18, 0.92);
  border-bottom: 1px solid rgba(31, 41, 55, 0.8);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(3, 7, 18, 0.98);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-hot));
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.35);
}

.brand-copy {
  display: grid;
  line-height: 1.12;
}

.brand-copy strong,
.footer-brand strong {
  font-size: 22px;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #ef4444, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.desktop-nav a,
.mobile-panel a {
  color: #d1d5db;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a {
  padding: 10px 14px;
  font-weight: 650;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: #ffffff;
  background: rgba(220, 38, 38, 0.16);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #111827;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--panel-line);
  background: rgba(3, 7, 18, 0.98);
}

.mobile-panel a {
  display: block;
  padding: 14px 24px;
}

main {
  padding-top: 72px;
}

.hero-shell {
  position: relative;
  min-height: 680px;
  overflow: hidden;
}

.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-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 7, 18, 0.18), #030712 98%),
    radial-gradient(circle at 62% 42%, rgba(248, 113, 113, 0.24), transparent 24rem);
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  align-items: center;
  gap: 54px;
  padding: 52px 0;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fb923c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-header h1 {
  margin: 16px 0;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-copy h1 {
  font-size: clamp(44px, 8vw, 86px);
}

.hero-copy p,
.page-hero p,
.detail-header p,
.intro-panel p {
  color: var(--soft);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.56);
  border: 1px solid rgba(248, 113, 113, 0.28);
  font-size: 13px;
  font-weight: 650;
}

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

.primary-button,
.ghost-button,
.section-more,
.search-clear,
.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  min-height: 48px;
  padding: 0 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-hot));
  box-shadow: 0 16px 40px rgba(220, 38, 38, 0.35);
}

.ghost-button {
  min-height: 48px;
  padding: 0 24px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.search-clear:hover,
.back-to-top:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #111827, #450a0a);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.hero-poster span {
  position: absolute;
  inset: auto 18px 18px 18px;
  display: inline-flex;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.hero-dot.is-active {
  width: 32px;
  background: linear-gradient(90deg, var(--brand), var(--brand-hot));
}

.focus-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  margin-top: -42px;
  border-radius: 24px;
  background: rgba(11, 17, 32, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.focus-strip strong {
  display: block;
  font-size: 20px;
}

.focus-strip span {
  color: var(--muted);
}

.focus-strip nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.focus-strip nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.85);
  color: #e5e7eb;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.focus-strip nav a span {
  color: #fb923c;
  font-weight: 900;
}

.intro-panel,
.page-hero {
  display: grid;
  gap: 24px;
  padding: 62px 0 24px;
}

.intro-panel {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  align-items: end;
}

.intro-panel h2,
.section-heading h2,
.footer-grid h2,
.content-card h2,
.side-card h2 {
  margin: 8px 0 0;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: -0.035em;
}

.search-panel {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.search-input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: #ffffff;
  background: #030712;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  outline: none;
}

.search-input:focus {
  border-color: rgba(248, 113, 113, 0.7);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.16);
}

.search-clear,
.back-to-top {
  padding: 0 16px;
  color: #ffffff;
  background: #1f2937;
}

.category-panel {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  padding: 24px 0;
}

.category-tile {
  min-height: 140px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.95), rgba(69, 10, 10, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(248, 113, 113, 0.5);
}

.category-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.category-tile span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.movie-section {
  padding: 44px 0;
}

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

.section-more {
  min-height: 40px;
  padding: 0 16px;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.92);
}

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

.movie-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(248, 113, 113, 0.55);
  box-shadow: 0 22px 44px rgba(127, 29, 29, 0.26);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 16%, rgba(248, 113, 113, 0.26), transparent 9rem),
    linear-gradient(135deg, #111827, #450a0a);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.82));
  opacity: 0.82;
}

.play-badge,
.type-badge {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.play-badge {
  left: 50%;
  top: 50%;
  padding: 10px 14px;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.92);
  transform: translate(-50%, -42%) scale(0.92);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.type-badge {
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.95);
}

.card-body {
  display: grid;
  gap: 7px;
  padding: 13px;
}

.card-body strong {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-line,
.desc-line {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

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

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 28px;
}

.split-section .movie-section {
  width: 100%;
  padding: 0;
}

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

.rank-panel,
.content-card,
.side-card,
.player-card {
  border-radius: 24px;
  background: rgba(11, 17, 32, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.rank-panel {
  padding: 22px;
  align-self: start;
  position: sticky;
  top: 92px;
}

.small-heading h2 {
  font-size: 26px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 15px;
  background: rgba(17, 24, 39, 0.78);
}

.rank-item span {
  color: #fb923c;
  font-weight: 900;
}

.rank-item strong,
.rank-item em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-item strong {
  font-size: 14px;
}

.rank-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.compact-hero {
  padding-top: 72px;
  padding-bottom: 20px;
}

.page-hero h1 {
  font-size: clamp(36px, 6vw, 62px);
}

.page-list {
  padding-top: 22px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.pagination a,
.pagination strong,
.pagination span {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(31, 41, 55, 0.96);
}

.pagination strong {
  background: linear-gradient(135deg, var(--brand), var(--brand-hot));
}

.rank-page {
  padding: 24px 0 54px;
}

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

.rank-row {
  grid-template-columns: 70px 82px minmax(0, 1fr);
  align-items: center;
  padding: 12px;
}

.rank-row img {
  width: 82px;
  height: 108px;
  border-radius: 12px;
  object-fit: cover;
  background: #111827;
}

.rank-number {
  justify-self: center;
  color: #fb923c;
  font-size: 24px;
  font-weight: 950;
}

.rank-copy {
  display: grid;
  gap: 8px;
}

.rank-copy strong {
  color: #ffffff;
  font-size: 20px;
}

.rank-copy em,
.rank-copy small {
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

.detail-shell {
  padding: 48px 0 64px;
}

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

.detail-main {
  display: grid;
  gap: 24px;
}

.player-card {
  padding: 12px;
}

.video-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #000000;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(220, 38, 38, 0.25), transparent 17rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.78));
}

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

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-hot));
  box-shadow: 0 20px 48px rgba(220, 38, 38, 0.38);
  font-size: 26px;
}

.player-cover strong {
  font-size: 24px;
}

.player-cover small {
  color: var(--soft);
}

.detail-header,
.content-card,
.side-card {
  padding: 24px;
}

.detail-header {
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(69, 10, 10, 0.38));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-header h1 {
  font-size: clamp(34px, 6vw, 58px);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #e5e7eb;
  background: rgba(17, 24, 39, 0.9);
}

.content-card p,
.rich-text p {
  color: var(--soft);
  font-size: 17px;
  line-height: 1.9;
}

.related-section {
  padding: 0;
}

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

.detail-side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 92px;
}

.side-poster {
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #111827, #450a0a);
  box-shadow: var(--shadow);
}

.side-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.side-card {
  display: grid;
  gap: 14px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

.side-card dt {
  color: var(--muted);
}

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

.side-card a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: #e5e7eb;
  background: rgba(17, 24, 39, 0.86);
}

.text-page {
  max-width: 880px;
}

.rich-text {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(11, 17, 32, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer {
  margin-top: 38px;
  padding: 44px 0;
  border-top: 1px solid rgba(31, 41, 55, 0.88);
  background: linear-gradient(180deg, rgba(11, 17, 32, 0.92), #000000);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px;
}

.footer-grid section {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
  line-height: 1.75;
}

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

.back-to-top {
  min-height: 42px;
}

.is-hidden-card {
  display: none;
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .hero-content,
  .detail-layout,
  .split-section,
  .intro-panel {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-side,
  .rank-panel {
    position: static;
  }

  .hero-poster {
    max-width: 320px;
  }

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

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

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

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

  .header-inner {
    height: 64px;
  }

  main {
    padding-top: 64px;
  }

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

  .brand-copy small {
    display: none;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

  .hero-shell,
  .hero-content {
    min-height: 620px;
  }

  .hero-content {
    gap: 28px;
    padding: 34px 0 74px;
  }

  .hero-poster {
    display: none;
  }

  .focus-strip,
  .rank-row {
    grid-template-columns: 1fr;
  }

  .focus-strip nav {
    grid-template-columns: 1fr;
  }

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

  .movie-grid,
  .split-section .movie-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .search-panel {
    flex-direction: column;
  }

  .rank-row img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .detail-shell {
    padding-top: 28px;
  }

  .detail-header,
  .content-card,
  .side-card {
    padding: 18px;
  }

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

@media (max-width: 430px) {
  .movie-grid,
  .split-section .movie-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-copy h1 {
    font-size: 40px;
  }
}
