:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.76);
  --panel-strong: rgba(30, 41, 59, 0.92);
  --border: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --accent: #f59e0b;
  --accent-strong: #d97706;
  --danger: #ef4444;
  --radius: 1rem;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

img.image-missing {
  opacity: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(30, 41, 59, 0.9);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: 1180px;
  height: 4rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand:hover {
  color: #fbbf24;
}

.brand-icon {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.24);
  color: #111827;
  font-size: 0.86rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.desktop-nav a,
.mobile-nav a {
  color: #cbd5e1;
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #fbbf24;
}

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  padding: 0.75rem 1.25rem 1rem;
  background: rgba(15, 23, 42, 0.98);
}

.mobile-nav a {
  display: block;
  padding: 0.65rem 0;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.2s ease;
  pointer-events: none;
}

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

.hero-media {
  position: absolute;
  inset: 0;
}

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.88) 24%, rgba(2, 6, 23, 0.38) 100%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.62) 45%, rgba(2, 6, 23, 0.12) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
  display: flex;
  align-items: flex-end;
}

.hero-copy {
  max-width: 48rem;
}

.eyebrow,
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0.28rem 0.78rem;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(2.35rem, 5vw, 4.9rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.hero p {
  max-width: 44rem;
  margin: 0 0 1.4rem;
  color: #dbe3ef;
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-meta,
.movie-meta-line,
.detail-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.hero-meta span,
.movie-meta-line span,
.detail-meta span,
.tag-row span,
.movie-meta-line a {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 0.55rem;
  background: rgba(30, 41, 59, 0.68);
  color: #cbd5e1;
  font-size: 0.78rem;
  padding: 0.22rem 0.52rem;
}

.movie-meta-line a:hover {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.38);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.primary-button,
.ghost-button,
.text-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 0.8rem;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.primary-button {
  padding: 0.82rem 1.45rem;
  background: var(--accent);
  color: #111827;
  box-shadow: 0 18px 35px rgba(245, 158, 11, 0.25);
}

.primary-button:hover {
  transform: translateY(-2px);
  background: #fbbf24;
}

.ghost-button {
  padding: 0.78rem 1.2rem;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.62);
  color: #fff;
}

.ghost-button:hover,
.section-more:hover,
.text-button:hover {
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  z-index: 4;
  width: min(92vw, 1180px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 2.9rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.85rem;
  background: rgba(2, 6, 23, 0.68);
  color: #fff;
  padding: 0 1rem;
  outline: none;
}

.hero-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(245, 158, 11, 0.62);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.hero-search button {
  border: 0;
  padding: 0 1.25rem;
  border-radius: 0.85rem;
  background: var(--accent);
  color: #111827;
  font-weight: 800;
  cursor: pointer;
}

.hero-dots {
  position: absolute;
  right: max(1.25rem, calc((100vw - 1180px) / 2 + 1.25rem));
  bottom: 6rem;
  z-index: 5;
  display: flex;
  gap: 0.5rem;
}

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

.hero-dot.active {
  width: 2rem;
  background: var(--accent);
}

.main-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.content-section {
  margin-top: 3.6rem;
}

.section-heading,
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.section-heading h2,
.page-heading h1,
.article-block h2,
.detail-copy h1 {
  margin: 0;
  color: #fff;
  line-height: 1.15;
}

.section-heading h2 {
  font-size: clamp(1.45rem, 3vw, 2.25rem);
}

.section-heading p,
.page-heading p,
.article-block p,
.detail-copy p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.section-more,
.text-button {
  min-height: 2.4rem;
  padding: 0 0.85rem;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.65);
  color: #cbd5e1;
  font-size: 0.9rem;
}

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

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

.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(30, 41, 59, 0.72);
}

.poster-link {
  display: block;
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(30, 41, 59, 0.86)),
    #0f172a;
}

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

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

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

.poster-score,
.poster-play {
  position: absolute;
  z-index: 2;
}

.poster-score {
  top: 0.55rem;
  left: 0.55rem;
  padding: 0.18rem 0.48rem;
  border-radius: 0.5rem;
  background: rgba(245, 158, 11, 0.92);
  color: #111827;
  font-weight: 900;
  font-size: 0.78rem;
}

.poster-play {
  right: 0.55rem;
  bottom: 0.55rem;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  color: #fff;
  font-size: 0.76rem;
  backdrop-filter: blur(10px);
}

.movie-card-body {
  padding: 0.85rem;
}

.movie-card h3 {
  margin: 0.55rem 0 0.4rem;
  color: #fff;
  font-size: 1rem;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-info h3 a:hover {
  color: #fbbf24;
}

.movie-card p {
  min-height: 3.15rem;
  margin: 0;
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.55;
}

.tag-row {
  margin-top: 0.7rem;
}

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

.category-card {
  min-height: 11rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.2), transparent 7rem),
    rgba(15, 23, 42, 0.7);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.45);
}

.category-card strong {
  color: #fff;
  font-size: 1.1rem;
}

.category-card p {
  margin: 0.55rem 0 0;
  color: #94a3b8;
  font-size: 0.88rem;
}

.category-card span {
  color: #fbbf24;
  font-weight: 800;
}

.filter-bar {
  position: sticky;
  top: 4.8rem;
  z-index: 20;
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12rem 12rem;
  gap: 0.75rem;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(16px);
}

.result-count {
  margin: 0 0 1rem;
  color: #cbd5e1;
  font-size: 0.92rem;
}

.rank-list {
  display: grid;
  gap: 0.75rem;
}

.rank-row {
  display: grid;
  grid-template-columns: 4rem 5rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.66);
}

.rank-number {
  color: #fbbf24;
  font-size: 1.25rem;
  font-weight: 900;
  text-align: center;
}

.rank-thumb {
  overflow: hidden;
  border-radius: 0.8rem;
  aspect-ratio: 2 / 3;
  background: #111827;
}

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

.rank-info h3 {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
}

.rank-info p {
  margin: 0.2rem 0 0.45rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

.article-block,
.detail-panel,
.player-card {
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.66);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.2);
}

.article-block {
  padding: 1.35rem;
}

.breadcrumb {
  margin-bottom: 1.25rem;
  color: #94a3b8;
  font-size: 0.92rem;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21rem;
  gap: 1.25rem;
  align-items: start;
}

.player-card {
  overflow: hidden;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

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

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  transform: translate(-50%, -50%);
  min-width: 9.5rem;
  min-height: 3.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #111827;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 18px 48px rgba(245, 158, 11, 0.35);
}

.player-shell.is-ready .player-start {
  opacity: 0;
  pointer-events: none;
}

.player-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle, transparent 0%, rgba(0, 0, 0, 0.15) 100%);
  pointer-events: none;
}

.player-shell.is-ready::after {
  opacity: 0;
}

.player-caption {
  padding: 1rem;
  color: #cbd5e1;
  background: rgba(2, 6, 23, 0.62);
}

.detail-panel {
  padding: 1rem;
}

.detail-cover {
  overflow: hidden;
  border-radius: 1rem;
  background: #111827;
}

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

.detail-copy {
  margin-top: 1.25rem;
}

.detail-copy h1 {
  font-size: clamp(1.7rem, 4vw, 3rem);
}

.detail-copy .summary-text,
.detail-copy .review-text {
  margin-top: 1rem;
  color: #d1d5db;
  font-size: 1rem;
}

.detail-copy h2 {
  margin: 1.6rem 0 0.4rem;
  color: #fff;
  font-size: 1.25rem;
}

.sidebar-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.sidebar-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: rgba(2, 6, 23, 0.34);
  color: #cbd5e1;
}

.sidebar-list a:hover {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.36);
}

.site-footer {
  border-top: 1px solid rgba(30, 41, 59, 0.9);
  background: rgba(2, 6, 23, 0.8);
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer-grid p,
.footer-bottom {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-grid h3 {
  margin: 0 0 0.8rem;
  color: #fff;
  font-size: 1rem;
}

.footer-grid a:not(.brand) {
  display: block;
  margin: 0.35rem 0;
  color: #94a3b8;
}

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

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem 1.6rem;
}

.hidden {
  display: none !important;
}

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

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

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

  .detail-panel {
    max-width: 28rem;
  }
}

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

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

  .mobile-nav.open {
    display: block;
  }

  .hero {
    height: 670px;
  }

  .hero-content {
    padding-bottom: 8.8rem;
  }

  .hero-search {
    grid-template-columns: 1fr;
    bottom: 1rem;
  }

  .hero-dots {
    left: 1.25rem;
    right: auto;
    bottom: 7rem;
  }

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

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

  .filter-bar {
    position: static;
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 3rem 4.2rem minmax(0, 1fr);
  }

  .rank-row .text-button {
    grid-column: 2 / 4;
  }

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

@media (max-width: 460px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .main-wrap {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
