:root {
  --bg: #0c0a09;
  --bg-soft: #1c1917;
  --panel: rgba(28, 25, 23, 0.86);
  --panel-solid: #1c1917;
  --panel-light: #292524;
  --border: rgba(120, 113, 108, 0.35);
  --muted: #a8a29e;
  --text: #f5f5f4;
  --text-soft: #d6d3d1;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --red: #ef4444;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 15% 0%, rgba(245, 158, 11, 0.09), transparent 30%), var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

img.image-missing {
  opacity: 0;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  background: rgba(28, 25, 23, 0.94);
  border-bottom: 1px solid rgba(68, 64, 60, 0.9);
  backdrop-filter: blur(14px);
}

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

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

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.16);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.3);
  font-size: 13px;
}

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

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

.nav-link,
.mobile-link {
  color: var(--text-soft);
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--amber-light);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-solid);
}

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

.page-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 104px 0 64px;
}

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

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #292524, #0c0a09);
  transform: scale(1.04);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(12, 10, 9, 0.78) 34%, rgba(12, 10, 9, 0.3) 65%, rgba(12, 10, 9, 0.05) 100%),
    linear-gradient(to right, rgba(12, 10, 9, 0.86), rgba(12, 10, 9, 0.25) 62%, rgba(12, 10, 9, 0.68));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 72px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: end;
}

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

.hero-kicker,
.section-title span,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 999px;
  color: var(--amber-light);
  background: rgba(245, 158, 11, 0.1);
  font-size: 13px;
  font-weight: 750;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 24px;
  color: var(--text-soft);
  font-size: 18px;
}

.hero-actions,
.card-actions,
.detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 780;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  color: #1c1917;
  background: var(--amber);
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.23);
}

.btn.primary:hover {
  background: var(--amber-light);
}

.btn.ghost {
  color: var(--text);
  background: rgba(41, 37, 36, 0.74);
  border-color: rgba(168, 162, 158, 0.28);
}

.btn.ghost:hover {
  background: rgba(68, 64, 60, 0.86);
}

.hero-side {
  padding: 20px;
  border: 1px solid rgba(168, 162, 158, 0.24);
  border-radius: var(--radius);
  background: rgba(28, 25, 23, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-side h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.hero-mini-list {
  display: grid;
  gap: 12px;
}

.hero-mini-list a {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  color: var(--text-soft);
}

.hero-mini-list img {
  width: 56px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
  background: linear-gradient(135deg, #292524, #0c0a09);
}

.hero-mini-list strong {
  display: block;
  color: var(--text);
  line-height: 1.3;
}

.hero-mini-list small {
  color: var(--muted);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-arrows,
.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: var(--text);
  background: rgba(28, 25, 23, 0.72);
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  font-size: 20px;
}

.hero-dot {
  width: 28px;
  height: 7px;
  padding: 0;
}

.hero-arrow:hover,
.hero-dot.active {
  background: var(--amber);
  color: #1c1917;
}

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

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

.section-title h2 {
  margin: 12px 0 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.section-title p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 680px;
}

.section-more {
  color: var(--amber-light);
  font-weight: 750;
  white-space: nowrap;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(68, 64, 60, 0.78);
  border-radius: var(--radius);
  background: rgba(28, 25, 23, 0.78);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.32);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #292524, #0c0a09);
}

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

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(12, 10, 9, 0.78), transparent);
}

.movie-card-body {
  padding: 14px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--amber-light);
  font-size: 12px;
  font-weight: 700;
}

.movie-card h3 {
  margin: 7px 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-info h3 a:hover,
.text-link:hover {
  color: var(--amber-light);
}

.movie-card p {
  margin: 0;
  min-height: 58px;
  color: var(--muted);
  font-size: 13px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-row span {
  padding: 3px 8px;
  border-radius: 999px;
  color: #d6d3d1;
  background: rgba(68, 64, 60, 0.72);
  font-size: 12px;
}

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

.category-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(68, 64, 60, 0.82);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 42%),
    rgba(28, 25, 23, 0.82);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 14px 0 10px;
  font-size: 22px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 62px 82px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(68, 64, 60, 0.78);
  border-radius: var(--radius);
  background: rgba(28, 25, 23, 0.78);
}

.rank-number {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #1c1917;
  background: var(--amber);
  font-weight: 900;
}

.rank-cover {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(145deg, #292524, #0c0a09);
}

.rank-cover img {
  width: 82px;
  height: 112px;
  object-fit: cover;
}

.rank-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

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

.filter-panel {
  margin: 0 0 28px;
  padding: 20px;
  border: 1px solid rgba(68, 64, 60, 0.78);
  border-radius: var(--radius);
  background: rgba(28, 25, 23, 0.82);
}

.filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.filter-heading h2 {
  margin: 0;
  font-size: 22px;
}

.filter-heading button,
.clear-button {
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  color: var(--amber-light);
  background: rgba(245, 158, 11, 0.08);
  padding: 8px 12px;
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(150px, 0.6fr) minmax(150px, 0.6fr);
  gap: 12px;
}

.filter-controls label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(120, 113, 108, 0.4);
  border-radius: 12px;
  outline: none;
  color: var(--text);
  background: rgba(12, 10, 9, 0.78);
  padding: 0 12px;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: rgba(245, 158, 11, 0.72);
}

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

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

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

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 30px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid rgba(68, 64, 60, 0.82);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 34%),
    rgba(28, 25, 23, 0.82);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(145deg, #292524, #0c0a09);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-copy h1,
.page-title h1 {
  margin: 12px 0 14px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.detail-copy p,
.page-title p {
  color: var(--text-soft);
  font-size: 17px;
}

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

.detail-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(68, 64, 60, 0.7);
  font-weight: 650;
  font-size: 13px;
}

.player-section,
.content-panel {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid rgba(68, 64, 60, 0.82);
  border-radius: 24px;
  background: rgba(28, 25, 23, 0.82);
}

.player-section h2,
.content-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

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

.player-start {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--text);
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.72));
}

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

.play-circle {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1c1917;
  background: var(--amber);
  font-size: 28px;
  box-shadow: 0 18px 44px rgba(245, 158, 11, 0.26);
}

.player-start strong {
  font-size: 22px;
}

.player-message {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  max-width: min(420px, calc(100% - 36px));
  padding: 10px 12px;
  border-radius: 12px;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.82);
  display: none;
}

.player-message.show {
  display: block;
}

.article-text {
  color: var(--text-soft);
  font-size: 17px;
}

.article-text p {
  margin: 0 0 16px;
}

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

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(68, 64, 60, 0.72);
}

.inline-links a:hover {
  color: #1c1917;
  background: var(--amber);
}

.page-title {
  margin: 0 0 28px;
  padding: 30px;
  border: 1px solid rgba(68, 64, 60, 0.82);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.13), transparent 38%),
    rgba(28, 25, 23, 0.82);
}

.simple-content {
  max-width: 820px;
  color: var(--text-soft);
  font-size: 17px;
}

.simple-content h2 {
  color: var(--text);
  margin: 28px 0 10px;
}

.site-footer {
  border-top: 1px solid rgba(68, 64, 60, 0.82);
  background: rgba(12, 10, 9, 0.92);
}

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

.footer-brand {
  color: var(--amber-light);
  font-weight: 850;
}

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

.footer-links {
  display: flex;
  gap: 18px;
  color: var(--text-soft);
}

.footer-links a:hover {
  color: var(--amber-light);
}

@media (max-width: 1080px) {
  .movie-grid,
  .movie-grid.wide,
  .related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-side {
    display: none;
  }
}

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

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    height: 640px;
  }

  .hero-content {
    bottom: 80px;
  }

  .hero p {
    font-size: 16px;
  }

  .section-title,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .filter-controls {
    grid-template-columns: 1fr;
  }

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

  .detail-poster img {
    min-height: auto;
  }

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

  .rank-cover img {
    width: 70px;
    height: 96px;
  }
}

@media (max-width: 520px) {
  .nav-wrap,
  .site-section,
  .page-main,
  .footer-inner,
  .hero-content,
  .hero-controls {
    width: min(100% - 24px, 1180px);
  }

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

  .hero {
    height: 610px;
  }

  .hero h1 {
    font-size: 38px;
  }

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

  .btn {
    width: 100%;
  }

  .movie-grid,
  .movie-grid.wide,
  .related-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .page-title,
  .detail-hero,
  .player-section,
  .content-panel {
    padding: 18px;
  }

  .rank-info p {
    display: none;
  }

  .play-circle {
    width: 58px;
    height: 58px;
    font-size: 22px;
  }

  .player-start strong {
    font-size: 18px;
  }
}
