
:root {
  color-scheme: dark;
  --bg: #030712;
  --bg-soft: #0b1120;
  --panel: rgba(17, 24, 39, 0.78);
  --panel-strong: rgba(31, 41, 55, 0.92);
  --line: rgba(75, 85, 99, 0.45);
  --text: #f9fafb;
  --muted: #9ca3af;
  --muted-strong: #d1d5db;
  --accent: #f59e0b;
  --accent-bright: #fbbf24;
  --accent-soft: rgba(245, 158, 11, 0.16);
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 5%, rgba(245, 158, 11, 0.18), transparent 26rem),
    radial-gradient(circle at 88% 12%, rgba(217, 70, 239, 0.14), transparent 24rem),
    linear-gradient(180deg, #030712 0%, #111827 48%, #030712 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(3, 7, 18, 0.86);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #f97316);
  color: #111827;
  box-shadow: 0 14px 32px rgba(245, 158, 11, 0.24);
}

.brand-text {
  display: grid;
}

.brand-name {
  font-size: 1.15rem;
  color: #fff;
}

.brand-subtitle {
  margin-top: -3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 12px;
  color: var(--muted-strong);
  font-size: 0.95rem;
  font-weight: 650;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  background: var(--accent-soft);
  color: var(--accent-bright);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(31, 41, 55, 0.84);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--text);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  border-top: 1px solid rgba(75, 85, 99, 0.36);
}

.hero {
  position: relative;
  min-height: 680px;
  margin-bottom: 64px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.08);
}

.hero-slide::before,
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-slide::before {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.93) 0%, rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-slide::after {
  background: linear-gradient(0deg, #030712 0%, transparent 42%, rgba(0, 0, 0, 0.25) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 680px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
  padding-top: 64px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent-bright);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-title {
  display: block;
  margin-top: 14px;
  color: var(--accent-bright);
  font-size: clamp(1.8rem, 5vw, 4.8rem);
}

.hero p,
.page-hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted-strong);
  font-size: 1.08rem;
}

.hero-meta,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-meta span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: var(--muted-strong);
  font-size: 0.9rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--accent);
  color: #111827;
  font-weight: 850;
  transition: 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--accent-bright);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
}

.btn.ghost:hover {
  border-color: rgba(245, 158, 11, 0.52);
  color: var(--accent-bright);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 36px;
  z-index: 4;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
}

.hero-buttons button,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-buttons button {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.82);
  color: #fff;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

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

.hero-dot.active {
  width: 46px;
  background: var(--accent-bright);
}

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

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

.section-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.15;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  flex: 0 0 auto;
  color: var(--accent-bright);
  font-weight: 750;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(75, 85, 99, 0.36);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(31, 41, 55, 0.72), rgba(17, 24, 39, 0.9));
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.54);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgba(17, 24, 39, 0.65);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.76));
}

.corner-badge,
.heat-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.corner-badge {
  top: 12px;
  left: 12px;
  background: rgba(245, 158, 11, 0.92);
  color: #111827;
}

.heat-badge {
  right: 12px;
  bottom: 12px;
  background: rgba(3, 7, 18, 0.78);
  color: var(--accent-bright);
}

.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
  color: #111827;
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: 0.22s ease;
}

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

.movie-card-content {
  padding: 15px;
}

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

.movie-card h3 a:hover {
  color: var(--accent-bright);
}

.movie-card p {
  min-height: 44px;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #d1d5db;
  font-size: 0.78rem;
}

.movie-meta span {
  padding: 3px 7px;
  border-radius: 8px;
  background: rgba(75, 85, 99, 0.38);
}

.page-hero {
  position: relative;
  padding: 90px 0 54px;
}

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

.page-hero::before {
  content: "";
  position: absolute;
  left: 10%;
  top: 34px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  filter: blur(50px);
  pointer-events: none;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.category-card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(75, 85, 99, 0.4);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 42%),
    rgba(17, 24, 39, 0.82);
  transition: 0.22s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.25rem;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.category-card a {
  color: var(--accent-bright);
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 170px 170px;
  gap: 12px;
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid rgba(75, 85, 99, 0.38);
  border-radius: var(--radius);
  background: rgba(17, 24, 39, 0.72);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(75, 85, 99, 0.56);
  border-radius: 12px;
  background: rgba(3, 7, 18, 0.74);
  color: #fff;
  padding: 0 13px;
  outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(245, 158, 11, 0.72);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 72px 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(75, 85, 99, 0.36);
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.76);
}

.rank-number {
  color: var(--accent-bright);
  font-size: 1.55rem;
  font-weight: 900;
  text-align: center;
}

.rank-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(31, 41, 55, 0.8);
}

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

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

.rank-info p {
  margin: 6px 0 0;
  color: var(--muted);
}

.rank-score {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-weight: 900;
}

.detail-hero {
  padding: 54px 0 34px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a:hover {
  color: var(--accent-bright);
}

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

.player-panel,
.detail-panel,
.text-panel {
  overflow: hidden;
  border: 1px solid rgba(75, 85, 99, 0.38);
  border-radius: var(--radius);
  background: rgba(17, 24, 39, 0.78);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.play-button {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22), rgba(0, 0, 0, 0.64));
  color: #111827;
  cursor: pointer;
  transition: opacity 0.22s ease;
}

.play-button span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-bright);
  box-shadow: 0 20px 48px rgba(245, 158, 11, 0.28);
  font-size: 1.8rem;
}

.player-panel.is-playing .play-button {
  opacity: 0;
  pointer-events: none;
}

.player-caption {
  padding: 16px 18px;
  color: var(--muted);
}

.detail-panel {
  padding: 22px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  background: rgba(31, 41, 55, 0.82);
}

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

.detail-panel h1 {
  margin: 18px 0 10px;
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.15;
}

.detail-line {
  color: var(--muted-strong);
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.stat-box {
  padding: 12px;
  border-radius: 14px;
  background: rgba(31, 41, 55, 0.66);
}

.stat-box span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.stat-box strong {
  display: block;
  margin-top: 3px;
  color: #fff;
}

.text-panel {
  padding: 26px;
  margin-top: 24px;
}

.text-panel h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1.45rem;
}

.text-panel p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 1.02rem;
}

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

.pagination a,
.pagination span {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(75, 85, 99, 0.42);
  background: rgba(17, 24, 39, 0.8);
  color: var(--muted-strong);
  font-weight: 750;
}

.pagination .current,
.pagination a:hover {
  border-color: rgba(245, 158, 11, 0.58);
  color: var(--accent-bright);
}

.site-footer {
  margin-top: 76px;
  border-top: 1px solid rgba(75, 85, 99, 0.32);
  background: rgba(3, 7, 18, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  padding: 44px 0;
}

.site-footer p {
  max-width: 460px;
  margin: 14px 0 0;
  color: var(--muted);
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1rem;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--accent-bright);
}

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(75, 85, 99, 0.25);
  color: var(--muted);
  text-align: center;
}

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

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

  .mobile-menu-button {
    display: block;
  }

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

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

  .hero-controls {
    bottom: 22px;
  }

  .filter-panel,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 46px 72px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 3;
    width: fit-content;
  }
}

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

  .brand-subtitle {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: 560px;
  }

  .hero-copy {
    padding-top: 42px;
  }

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

  .movie-card-content {
    padding: 12px;
  }

  .movie-card p {
    min-height: auto;
  }

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

  .hero-buttons {
    display: none;
  }

  .rank-info p {
    display: none;
  }
}
