:root {
  --bg: #0b1020;
  --panel: #111827;
  --panel-soft: #172033;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.12);
  --brand: #f97316;
  --brand-strong: #ea580c;
  --gold: #facc15;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.14), transparent 35%), var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 32, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), #ef4444);
  box-shadow: 0 12px 36px rgba(249, 115, 22, 0.34);
}

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

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #cbd5e1;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(249, 115, 22, 0.16);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
  border-radius: 999px;
}

.hero {
  padding: 28px 0 0;
}

.hero-stage {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: #111827;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: clamp(32px, 7vw, 84px);
  background-image: linear-gradient(90deg, rgba(11, 16, 32, 0.94), rgba(11, 16, 32, 0.72), rgba(11, 16, 32, 0.28)), var(--poster), linear-gradient(135deg, #1f2937, #111827 60%, #f97316);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.75s ease, transform 1.2s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: auto -20% -45% 45%;
  height: 380px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.38), transparent 68%);
  filter: blur(14px);
}

.hero-copy {
  position: relative;
  max-width: 650px;
}

.hero-kicker,
.section-eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-summary {
  margin: 22px 0;
  color: #e2e8f0;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.hero-actions,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-actions {
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.button.primary {
  background: linear-gradient(135deg, var(--brand), #ef4444);
  color: #fff;
  box-shadow: 0 16px 38px rgba(249, 115, 22, 0.28);
}

.button.ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero-dots {
  position: absolute;
  left: clamp(32px, 7vw, 84px);
  bottom: 32px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 28px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

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

.feature-band {
  padding: 30px 0 0;
}

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

.stat-card,
.category-tile,
.category-index-card,
.mini-feature,
.rank-cover {
  background-image: linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.52)), var(--poster), linear-gradient(135deg, #1f2937, #f97316);
  background-size: cover;
  background-position: center;
}

.stat-card {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover,
.category-tile:hover,
.category-index-card:hover,
.mini-feature:hover,
.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.5);
}

.stat-card span,
.category-index-card span,
.mini-feature span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.stat-card strong,
.category-index-card strong,
.mini-feature strong {
  margin-top: 6px;
  font-size: 20px;
}

.stat-card small,
.category-index-card small {
  margin-top: 8px;
  color: #cbd5e1;
  line-height: 1.5;
}

.section {
  padding: 74px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.035);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.section-heading h2,
.panel-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-heading p:not(.section-eyebrow) {
  max-width: 720px;
  margin-top: 10px;
  color: var(--muted);
}

.section-more {
  flex: 0 0 auto;
  color: var(--brand);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.poster-art {
  position: relative;
  aspect-ratio: 2 / 2.8;
  overflow: hidden;
  background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.9)), var(--poster), linear-gradient(135deg, #334155, #111827 60%, #ea580c);
  background-size: cover;
  background-position: center;
}

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

.poster-play {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.92);
  color: #fff;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.34);
}

.card-content {
  padding: 18px;
}

.card-content h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}

.card-meta {
  margin: 8px 0;
  color: var(--gold);
  font-size: 13px;
}

.card-desc {
  min-height: 48px;
  margin: 0 0 14px;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag,
.tag-cloud .tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.11);
  color: #fed7aa;
  font-size: 12px;
  font-weight: 700;
}

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}

.category-grid,
.category-index-grid,
.mini-feature-grid {
  display: grid;
  gap: 16px;
}

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

.category-tile {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile span {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.category-tile strong {
  margin-top: 6px;
  color: #fed7aa;
  font-size: 13px;
}

.ranking-panel,
.detail-main-card,
.detail-side-card,
.search-panel,
.global-search-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.rank-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.rank-list li {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.rank-list li:last-child {
  border-bottom: 0;
}

.rank-num {
  color: var(--gold);
  font-size: 20px;
  font-weight: 900;
}

.rank-list a {
  font-weight: 800;
}

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

.page-main {
  min-height: 70vh;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0;
  background: radial-gradient(circle at 75% 30%, rgba(249, 115, 22, 0.22), transparent 30%), linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(11, 16, 32, 0.98));
  border-bottom: 1px solid var(--line);
}

.compact-hero h1,
.category-hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.compact-hero p:not(.section-eyebrow),
.category-hero p:not(.section-eyebrow) {
  max-width: 760px;
  margin-top: 16px;
  color: #cbd5e1;
  font-size: 18px;
}

.category-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 36px;
  align-items: center;
}

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

.mini-feature {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.search-panel {
  margin-bottom: 26px;
  padding: 18px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
}

.search-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.pagination a.is-current,
.pagination a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

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

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

.category-index-card {
  min-height: 156px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.82);
}

.rank-cover {
  position: relative;
  min-height: 166px;
  border-radius: 18px;
}

.rank-cover span {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--brand);
  font-weight: 900;
}

.rank-card h2 {
  margin: 4px 0 8px;
  font-size: 22px;
}

.rank-card p {
  margin: 0 0 14px;
  color: #cbd5e1;
  line-height: 1.7;
}

.search-results {
  display: grid;
  gap: 14px;
}

.search-result-item {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.82);
}

.search-result-item h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.search-result-item p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.7;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: end;
  background-image: linear-gradient(90deg, rgba(11, 16, 32, 0.96), rgba(11, 16, 32, 0.78), rgba(11, 16, 32, 0.28)), var(--poster), linear-gradient(135deg, #111827, #f97316);
  background-size: cover;
  background-position: center;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg), transparent 58%);
}

.detail-hero-inner {
  position: relative;
  padding: 88px 0;
}

.detail-copy {
  max-width: 780px;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.detail-one-line {
  margin: 22px 0;
  color: #e2e8f0;
  font-size: 21px;
  line-height: 1.7;
}

.player-section {
  padding-top: 36px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.34), rgba(0, 0, 0, 0.76));
  color: #fff;
  text-align: center;
}

.player-play span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #ef4444);
  font-size: 30px;
  box-shadow: 0 18px 50px rgba(249, 115, 22, 0.4);
}

.player-play strong {
  font-size: 20px;
}

.player-shell.is-ready .player-play {
  display: none;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 14px;
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
}

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

.detail-main-card,
.detail-side-card {
  padding: 28px;
}

.detail-main-card h2,
.detail-side-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.detail-main-card p {
  margin: 0 0 28px;
  color: #dbeafe;
  font-size: 17px;
  line-height: 1.9;
}

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

.detail-meta-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.detail-meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.detail-meta-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
}

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

.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

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

.footer-brand p {
  max-width: 520px;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links,
.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.footer-links a,
.footer-tags a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #cbd5e1;
}

@media (max-width: 1024px) {
  .feature-grid,
  .movie-grid,
  .category-grid,
  .category-index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .two-column-layout,
  .category-hero-inner,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(11, 16, 32, 0.96);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-link {
    width: 100%;
  }

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

  .hero-slide {
    padding: 32px 24px 78px;
    align-items: end;
  }

  .hero-dots {
    left: 24px;
    bottom: 26px;
  }

  .section {
    padding: 52px 0;
  }

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

  .feature-grid,
  .movie-grid,
  .category-grid,
  .category-index-grid,
  .category-index-grid.compact,
  .rank-grid,
  .detail-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .feature-grid,
  .movie-grid,
  .category-grid,
  .category-index-grid,
  .category-index-grid.compact,
  .mini-feature-grid,
  .rank-grid,
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

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

  .page-hero,
  .detail-hero-inner {
    padding: 58px 0;
  }
}
