:root {
  --bg: #1c1917;
  --bg-soft: #292524;
  --panel: rgba(41, 37, 36, 0.82);
  --panel-solid: #292524;
  --line: rgba(245, 158, 11, 0.18);
  --text: #fafaf9;
  --muted: #d6d3d1;
  --soft: #a8a29e;
  --amber: #f59e0b;
  --amber-strong: #d97706;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --radius: 24px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.22), transparent 32rem),
    radial-gradient(circle at 80% 8%, rgba(146, 64, 14, 0.26), transparent 36rem),
    linear-gradient(180deg, #1c1917 0%, #0c0a09 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(245, 158, 11, 0.16);
  background: rgba(28, 25, 23, 0.82);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #1c1917;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.35);
}

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

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

.site-nav a,
.mobile-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.mobile-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(330px, 30vw);
  padding: 7px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.header-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.header-search input::placeholder,
.filter-panel input::placeholder {
  color: var(--soft);
}

.header-search button,
.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.header-search button,
.primary-btn {
  color: #1c1917;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  box-shadow: 0 16px 32px rgba(217, 119, 6, 0.24);
}

.ghost-btn,
.section-more {
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.1);
}

.ghost-btn.dark {
  color: #fff7ed;
  background: rgba(28, 25, 23, 0.72);
}

.primary-btn.wide {
  width: 100%;
  margin-top: 18px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fef3c7;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(245, 158, 11, 0.14);
}

.mobile-links {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-track,
.hero-slide,
.hero-backdrop {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  align-items: center;
  gap: 60px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-backdrop {
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, rgba(28, 25, 23, 0.94) 0%, rgba(28, 25, 23, 0.7) 45%, rgba(28, 25, 23, 0.36) 100%),
    linear-gradient(180deg, rgba(28, 25, 23, 0.15), rgba(12, 10, 9, 0.94)),
    var(--hero-image) center / cover no-repeat;
  filter: saturate(1.08);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-top: 70px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-content p,
.page-hero p,
.detail-one-line {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(245, 158, 11, 0.23);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.1);
  font-size: 12px;
  font-weight: 700;
}

.tag-row.large span {
  min-height: 34px;
  padding: 0 13px;
}

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

.hero-actions.centered {
  justify-content: center;
}

.hero-poster {
  position: relative;
  z-index: 2;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 34px;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
}

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

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

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 58px;
  background: #fbbf24;
}

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

.section-wrap {
  padding: 58px 0;
}

.quick-entry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 34px;
  padding-bottom: 20px;
}

.quick-entry a {
  min-height: 110px;
  padding: 24px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(255, 255, 255, 0.05));
  box-shadow: var(--shadow);
}

.quick-entry strong,
.category-tile strong {
  display: block;
  font-size: 22px;
}

.quick-entry span,
.category-tile span,
.section-head p,
.overview-body p {
  display: block;
  margin-top: 8px;
  color: var(--soft);
  line-height: 1.7;
}

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

.section-head h2,
.story-card h2,
.ranking-head h2,
.overview-body h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.compact-head {
  margin-bottom: 18px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 22px;
  background: rgba(41, 37, 36, 0.78);
  box-shadow: 0 16px 40px 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.42);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.32);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0c0a09;
}

.poster-link img {
  width: 100%;
  height: 100%;
  transition: transform 0.32s ease, opacity 0.32s ease;
}

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

.poster-play,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.poster-play {
  right: 10px;
  bottom: 10px;
  min-height: 32px;
  padding: 0 12px;
  color: #1c1917;
  background: #fbbf24;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  top: 10px;
  left: 10px;
  min-width: 38px;
  height: 30px;
  color: #fff7ed;
  background: rgba(220, 38, 38, 0.9);
}

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

.movie-card h3 {
  min-height: 50px;
  margin: 9px 0 8px;
  font-size: 16px;
  line-height: 1.45;
}

.movie-card p {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.65;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #d6d3d1;
  font-size: 12px;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 6px;
  color: rgba(214, 211, 209, 0.45);
}

.movie-card.compact .movie-card-body {
  padding: 13px;
}

.movie-card.compact h3 {
  min-height: auto;
}

.movie-card.compact p {
  display: none;
}

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

.category-tile {
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: var(--radius);
  background: rgba(41, 37, 36, 0.78);
  box-shadow: var(--shadow);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.category-thumbs img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
}

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

.ranking-panel {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 22px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: var(--radius);
  background: rgba(41, 37, 36, 0.82);
  box-shadow: var(--shadow);
}

.ranking-head span {
  color: #fbbf24;
  font-weight: 900;
}

.ranking-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 34px 50px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.ranking-item img {
  width: 50px;
  height: 70px;
  border-radius: 10px;
}

.ranking-num {
  color: #fbbf24;
  font-weight: 900;
}

.ranking-title {
  display: block;
  font-weight: 800;
}

.ranking-item small {
  grid-column: 3 / 4;
  color: var(--soft);
}

.page-main {
  padding-bottom: 40px;
}

.page-hero.small {
  max-width: 930px;
  padding: 72px 0 28px;
  text-align: left;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 28px 0 8px;
  color: var(--soft);
  font-size: 14px;
}

.breadcrumb a {
  color: #fde68a;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(230px, 360px) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 38px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 34px;
  background:
    radial-gradient(circle at 10% 0%, rgba(245, 158, 11, 0.20), transparent 26rem),
    rgba(41, 37, 36, 0.82);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.detail-facts li {
  padding: 14px;
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.detail-facts span {
  display: block;
  color: var(--soft);
  font-size: 12px;
}

.detail-facts strong {
  display: block;
  margin-top: 6px;
  color: #fff7ed;
}

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

.player-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  color: #fff7ed;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.68));
}

.player-overlay.is-hidden {
  display: none;
}

.play-circle {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  padding-left: 5px;
  border-radius: 50%;
  color: #1c1917;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  box-shadow: 0 20px 52px rgba(245, 158, 11, 0.34);
  font-size: 30px;
}

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

.story-card {
  padding: 28px;
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: var(--radius);
  background: rgba(41, 37, 36, 0.72);
}

.story-card p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.9;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin-bottom: 26px;
  padding: 14px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 22px;
  background: rgba(41, 37, 36, 0.74);
}

.filter-search {
  display: grid;
  gap: 8px;
  color: var(--soft);
}

.filter-search input,
.filter-panel select {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
}

.filter-panel select option {
  color: #1c1917;
}

.filter-selects {
  display: flex;
  align-items: end;
  gap: 10px;
}

.empty-state {
  padding: 30px;
  border: 1px dashed rgba(245, 158, 11, 0.3);
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
}

.overview-list {
  display: grid;
  gap: 20px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 26px;
  padding: 20px;
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: var(--radius);
  background: rgba(41, 37, 36, 0.78);
}

.overview-cover {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.overview-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
}

.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.overview-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.1);
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid rgba(245, 158, 11, 0.14);
  background: rgba(12, 10, 9, 0.64);
}

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

.footer-brand {
  color: #fff7ed;
  font-size: 20px;
}

.footer-inner p {
  max-width: 560px;
  margin: 0;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: #fde68a;
}

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

  .site-nav {
    margin-left: auto;
  }

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

  .split-layout,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

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

  .nav-toggle {
    display: block;
  }

  .site-header.is-open .mobile-panel {
    display: block;
  }

  .hero-carousel {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    align-content: center;
  }

  .hero-content {
    padding-top: 28px;
  }

  .hero-poster {
    width: min(270px, 72vw);
    margin: 0 auto 42px;
  }

  .quick-entry,
  .category-grid,
  .detail-hero,
  .category-overview-card,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .filter-selects {
    align-items: stretch;
    flex-direction: column;
  }

  .overview-cover {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

@media (max-width: 620px) {
  .header-inner,
  .section-wrap,
  .page-main,
  .footer-inner,
  .mobile-links {
    width: min(100% - 24px, 1180px);
  }

  .hero-carousel {
    min-height: 720px;
  }

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

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

  .detail-hero {
    padding: 20px;
    border-radius: 24px;
  }

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

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

  .movie-card h3 {
    font-size: 14px;
  }
}
