:root {
  color-scheme: dark;
  --bg: #0c0a09;
  --bg-soft: #1c1917;
  --panel: rgba(28, 25, 23, 0.88);
  --panel-strong: #292524;
  --line: rgba(245, 158, 11, 0.18);
  --text: #f5f5f4;
  --muted: #a8a29e;
  --muted-2: #78716c;
  --amber: #f59e0b;
  --amber-2: #d97706;
  --amber-soft: rgba(245, 158, 11, 0.16);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(180, 83, 9, 0.34), transparent 34rem),
    radial-gradient(circle at 90% 10%, rgba(120, 53, 15, 0.28), transparent 30rem),
    linear-gradient(180deg, #1c1917 0%, var(--bg) 42%, #0a0908 100%);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 10, 9, 0.84);
  border-bottom: 1px solid rgba(245, 158, 11, 0.12);
  backdrop-filter: blur(18px);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fffbeb;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff7ed;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.32);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link,
.mobile-link {
  color: #fef3c7;
  font-weight: 650;
  border-radius: 999px;
  transition: 0.22s ease;
}

.nav-link {
  padding: 10px 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover {
  color: #fff;
  background: rgba(245, 158, 11, 0.15);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: #fde68a;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(28, 25, 23, 0.95);
}

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

.mobile-link {
  padding: 12px 14px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #0c0a09;
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.06);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 10, 9, 0.94) 0%, rgba(12, 10, 9, 0.70) 42%, rgba(12, 10, 9, 0.26) 100%),
    linear-gradient(0deg, #0c0a09 0%, rgba(12, 10, 9, 0.16) 44%, rgba(12, 10, 9, 0.40) 100%);
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100vw - 1180px) / 2));
  bottom: 82px;
  width: min(690px, calc(100% - 64px));
}

.hero-chip-row,
.movie-meta,
.tag-row,
.chip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-chip-row span,
.tag-row span,
.movie-meta span,
.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  background: rgba(245, 158, 11, 0.11);
  color: #fde68a;
  line-height: 1;
}

.hero-chip-row span,
.chip {
  padding: 9px 13px;
  font-size: 14px;
  font-weight: 700;
}

.movie-meta span,
.tag-row span {
  padding: 6px 9px;
  font-size: 12px;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  color: #fff7ed;
  text-shadow: 0 12px 35px rgba(0, 0, 0, 0.62);
}

.hero p {
  max-width: 620px;
  margin: 0 0 28px;
  color: #e7e5e4;
  font-size: clamp(17px, 2.3vw, 22px);
  line-height: 1.78;
}

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

.primary-button,
.ghost-button,
.text-button,
.search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 13px;
  font-weight: 800;
  transition: transform 0.22s ease, background 0.22s ease, border 0.22s ease;
}

.primary-button,
.search-form button {
  padding: 0 24px;
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 14px 34px rgba(217, 119, 6, 0.30);
}

.ghost-button {
  padding: 0 20px;
  color: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.36);
  background: rgba(12, 10, 9, 0.42);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.search-form button:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: 0.22s ease;
}

.hero-dot.is-active {
  width: 30px;
  background: #f59e0b;
}

.search-band {
  margin-top: -34px;
  position: relative;
  z-index: 6;
}

.search-band-inner,
.filter-panel,
.detail-card,
.side-card,
.category-panel,
.ranking-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-band-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px;
}

.search-band strong {
  display: block;
  color: #fffbeb;
  font-size: 22px;
  margin-bottom: 7px;
}

.search-band span,
.section-heading p,
.page-title-block p,
.movie-card p,
.detail-card p,
.category-panel p,
.ranking-info p,
.site-footer p {
  color: var(--muted);
}

.search-form {
  width: min(520px, 100%);
  display: flex;
  gap: 10px;
}

.search-form input,
.filter-panel input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 14px;
  outline: 0;
  color: var(--text);
  background: rgba(12, 10, 9, 0.74);
  padding: 0 16px;
}

.search-form input:focus,
.filter-panel input:focus {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.10);
}

.page-section {
  padding: 56px 0 0;
}

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

.section-kicker,
.page-title-block span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading h2,
.page-title-block h1 {
  margin: 0;
  color: #fffbeb;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-heading p,
.page-title-block p {
  max-width: 760px;
  margin: 10px 0 0;
  line-height: 1.8;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 260px);
  gap: 18px;
  overflow-x: auto;
  padding: 0 2px 18px;
  scroll-snap-type: x mandatory;
}

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.13);
  border-radius: 20px;
  background: rgba(28, 25, 23, 0.78);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
  transition: transform 0.22s ease, border 0.22s ease, box-shadow 0.22s ease;
  scroll-snap-align: start;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.36);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.42);
}

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

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

.movie-card:hover .poster-img,
.category-card:hover img,
.category-panel:hover img,
.ranking-row:hover img {
  transform: scale(1.055);
}

.poster-play,
.rank-badge {
  position: absolute;
  display: inline-grid;
  place-items: center;
  color: #fff;
}

.poster-play {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.88);
  opacity: 0;
  transform: translateY(8px);
  transition: 0.24s ease;
}

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

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 38px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  font-weight: 900;
}

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

.movie-card h3 {
  margin: 12px 0 9px;
  color: #fffbeb;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.ranking-info h2 a:hover,
.category-panel h2 a:hover,
.category-samples a:hover,
.breadcrumb a:hover,
.side-card a:hover {
  color: #fbbf24;
}

.movie-card p {
  min-height: 48px;
  margin: 0 0 12px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
  line-height: 1.65;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 22px;
  background: #1c1917;
  box-shadow: var(--shadow);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 10, 9, 0.95) 0%, rgba(12, 10, 9, 0.45) 58%, rgba(12, 10, 9, 0.08) 100%);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.category-card span,
.category-card p {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
}

.category-card span {
  bottom: 72px;
  color: #fffbeb;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  bottom: 18px;
  margin: 0;
  color: #d6d3d1;
  font-size: 13px;
  line-height: 1.5;
}

.rank-section {
  padding-bottom: 36px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 54px 1fr auto;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: 18px;
  background: rgba(28, 25, 23, 0.76);
  transition: 0.22s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.34);
}

.rank-number {
  color: #fbbf24;
  font-size: 24px;
  font-weight: 900;
}

.rank-item img {
  width: 54px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
  background: #292524;
}

.rank-title {
  overflow: hidden;
  color: #fffbeb;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info {
  color: var(--muted);
  font-size: 13px;
}

.center-actions {
  justify-content: center;
  margin-top: 26px;
}

.page-main {
  padding-top: 42px;
  padding-bottom: 48px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb strong {
  color: #fef3c7;
}

.page-title-block {
  margin-bottom: 28px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.20), transparent 30rem),
    rgba(28, 25, 23, 0.82);
  box-shadow: var(--shadow);
}

.page-title-block h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
  padding: 18px;
}

.chip-row {
  gap: 10px;
}

.chip:hover,
.chip.is-active {
  color: #fff;
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(217, 119, 6, 0.36);
}

.category-panels {
  display: grid;
  gap: 20px;
}

.category-panel {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  padding: 18px;
}

.category-panel-cover {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 10;
  background: #292524;
}

.category-panel-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.category-panel h2 {
  margin: 4px 0 10px;
  color: #fffbeb;
  font-size: 28px;
}

.category-panel p {
  margin: 0 0 16px;
  line-height: 1.75;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
}

.category-samples a {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.11);
  color: #fef3c7;
  font-size: 13px;
}

.text-button {
  min-height: auto;
  color: #fbbf24;
  font-weight: 850;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 96px 70px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.ranking-cover {
  overflow: hidden;
  border-radius: 15px;
  aspect-ratio: 2 / 3;
  background: #292524;
}

.ranking-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.24s ease;
}

.ranking-index {
  color: #fbbf24;
  font-size: 30px;
  font-weight: 950;
}

.ranking-info h2 {
  margin: 0 0 9px;
  color: #fffbeb;
  font-size: 24px;
}

.ranking-info p {
  margin: 0 0 11px;
  line-height: 1.65;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 26px;
  background: #000;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 16px;
  border: 0;
  color: #fff;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.20)),
    rgba(12, 10, 9, 0.28);
  cursor: pointer;
}

.player-shell.is-playing .player-overlay {
  display: none;
}

.play-circle {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 20px 44px rgba(217, 119, 6, 0.36);
  font-size: 32px;
}

.play-title {
  padding: 0 22px;
  color: #fff7ed;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.detail-card {
  margin-top: 22px;
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 14px;
  color: #fffbeb;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-card h2,
.side-card h2 {
  margin: 28px 0 12px;
  color: #fef3c7;
  font-size: 22px;
}

.detail-card p {
  margin: 0;
  color: #d6d3d1;
  line-height: 1.9;
}

.one-line {
  margin-top: 18px !important;
  padding: 18px;
  border-left: 4px solid var(--amber);
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.10);
  color: #fffbeb !important;
  font-size: 18px;
}

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

.detail-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.detail-poster {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #292524;
  box-shadow: var(--shadow);
}

.side-card {
  padding: 22px;
}

.side-card h2 {
  margin-top: 0;
}

.side-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
}

.side-card dt {
  color: var(--muted-2);
}

.side-card dd {
  margin: 0;
  color: #fef3c7;
}

.related-section {
  padding-top: 38px;
}

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

.site-footer {
  margin-top: 44px;
  border-top: 1px solid rgba(245, 158, 11, 0.14);
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.86), #0c0a09);
}

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

.footer-inner strong {
  color: #fef3c7;
  font-size: 22px;
}

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

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

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

.footer-copy {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 28px;
  color: var(--muted-2);
  font-size: 14px;
}

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

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

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

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

  .detail-side {
    position: static;
    grid-template-columns: 240px 1fr;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero {
    height: 72vh;
    min-height: 560px;
  }

  .hero-content {
    left: 20px;
    bottom: 74px;
    width: calc(100% - 40px);
  }

  .hero-arrow {
    display: none;
  }

  .search-band {
    margin-top: 0;
  }

  .search-band-inner,
  .search-form,
  .footer-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .search-band-inner {
    display: grid;
  }

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

  .category-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }

  .category-panel,
  .ranking-row,
  .detail-side {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    align-items: start;
  }

  .ranking-cover {
    width: 130px;
  }

  .detail-poster {
    max-width: 260px;
  }
}

@media (max-width: 520px) {
  .container,
  .header-inner,
  .mobile-nav,
  .footer-inner,
  .footer-copy {
    width: min(100% - 24px, 1180px);
  }

  .site-logo {
    font-size: 18px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

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

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

  .page-title-block,
  .detail-card {
    padding: 22px;
  }

  .movie-grid {
    gap: 12px;
  }

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

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

  .movie-card p {
    font-size: 12px;
  }

  .rank-item {
    grid-template-columns: 40px 48px 1fr;
  }

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