:root {
  color-scheme: dark;
  --bg: #0c0a09;
  --panel: #1c1917;
  --panel-soft: #292524;
  --line: #44403c;
  --text: #f5f5f4;
  --muted: #a8a29e;
  --soft: #78716c;
  --amber: #d97706;
  --amber-bright: #f59e0b;
  --red: #b91c1c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #78350f, #7f1d1d 52%, #78350f);
  border-bottom: 1px solid rgba(245, 158, 11, 0.28);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.nav-wrap {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 176px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff7ed;
  font-weight: 900;
  background: linear-gradient(135deg, #d97706, #b91c1c);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.04em;
}

.brand-text small {
  color: rgba(254, 215, 170, 0.78);
  font-size: 12px;
}

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

.desktop-nav a,
.mobile-nav a {
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff7ed;
  font-weight: 650;
  transition: background 0.2s ease, color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  background: rgba(146, 64, 14, 0.5);
}

.nav-search input,
.mobile-nav input,
.filter-panel input,
.home-search-panel input {
  width: 100%;
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 12px;
  color: #fff7ed;
  background: rgba(120, 53, 15, 0.32);
  outline: none;
  padding: 10px 14px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input::placeholder,
.mobile-nav input::placeholder,
.filter-panel input::placeholder,
.home-search-panel input::placeholder {
  color: rgba(253, 186, 116, 0.72);
}

.nav-search input:focus,
.mobile-nav input:focus,
.filter-panel input:focus,
.home-search-panel input:focus {
  border-color: var(--amber-bright);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}

.nav-search {
  width: 240px;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  color: #fff7ed;
  background: rgba(120, 53, 15, 0.45);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  background: rgba(69, 26, 3, 0.96);
}

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

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

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

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.72) 48%, rgba(0, 0, 0, 0.12)),
    linear-gradient(0deg, rgba(12, 10, 9, 1), rgba(12, 10, 9, 0.02) 45%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--amber-bright);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber-bright);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.8);
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 640px;
  margin: 0 0 22px;
  color: #d6d3d1;
  font-size: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  color: #d6d3d1;
}

.hero-meta span {
  padding: 6px 10px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.58);
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.primary-btn {
  color: white;
  background: linear-gradient(90deg, var(--amber), var(--red));
  box-shadow: 0 14px 30px rgba(185, 28, 28, 0.35);
}

.ghost-btn {
  border: 1px solid rgba(245, 158, 11, 0.42);
  color: #fed7aa;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: rgba(0, 0, 0, 0.52);
  cursor: pointer;
  font-size: 38px;
  line-height: 0;
  display: grid;
  place-items: center;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.75);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 6;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--amber-bright);
}

.home-search-panel,
.filter-panel {
  margin-top: 32px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(41, 37, 36, 0.92), rgba(28, 25, 23, 0.92));
  box-shadow: var(--shadow);
}

.home-search-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 420px);
  align-items: center;
  gap: 18px;
}

.home-search-panel strong {
  display: block;
  color: var(--amber-bright);
  font-size: 18px;
}

.home-search-panel p {
  margin: 2px 0 0;
  color: var(--muted);
}

.page-stack {
  padding: 54px 0;
  display: grid;
  gap: 64px;
}

.content-section {
  min-width: 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
}

.section-heading i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(217, 119, 6, 0.65), transparent);
}

.section-icon {
  color: var(--amber-bright);
  font-size: 18px;
}

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

.movie-card {
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
  border: 1px solid rgba(68, 64, 60, 0.9);
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(120, 53, 15, 0.28);
  border-color: rgba(245, 158, 11, 0.45);
}

.movie-link {
  display: block;
  height: 100%;
}

.movie-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}

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

.movie-card:hover .movie-cover img {
  transform: scale(1.08);
}

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent 55%);
}

.score,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: white;
  font-weight: 900;
}

.score {
  right: 12px;
  bottom: 12px;
  padding: 4px 9px;
  background: rgba(0, 0, 0, 0.72);
  color: #fde68a;
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 36px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  background: linear-gradient(135deg, var(--amber), var(--red));
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0 0 8px;
  color: #fafaf9;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

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

.movie-info p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta,
.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--soft);
  font-size: 12px;
}

.movie-tags {
  margin-top: 10px;
}

.movie-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #d6d3d1;
  background: #292524;
}

.movie-card.featured {
  border-radius: 22px;
  border-color: rgba(245, 158, 11, 0.28);
}

.movie-card.featured .movie-cover {
  aspect-ratio: 4 / 5;
}

.movie-card.spotlight {
  border: 2px solid rgba(217, 119, 6, 0.35);
}

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

.compact-grid.single {
  grid-template-columns: 1fr;
}

.compact-card a {
  position: relative;
  display: grid;
  grid-template-columns: 122px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  transition: background 0.2s ease, border 0.2s ease, transform 0.2s ease;
}

.compact-card a:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.45);
  background: #211d1b;
}

.compact-card img {
  width: 122px;
  height: 74px;
  object-fit: cover;
  border-radius: 10px;
}

.compact-play {
  position: absolute;
  left: 54px;
  top: 38px;
  z-index: 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 12px;
}

.compact-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

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

.category-strip a,
.category-card {
  display: grid;
  gap: 8px;
  min-height: 148px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 18px;
  padding: 20px;
  background: radial-gradient(circle at top right, rgba(217, 119, 6, 0.22), transparent 45%), var(--panel);
  transition: transform 0.2s ease, border 0.2s ease;
}

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

.category-strip strong,
.category-card span {
  color: #fbbf24;
  font-size: 20px;
  font-weight: 900;
}

.category-strip span,
.category-card p,
.category-card small {
  color: var(--muted);
}

.page-hero {
  padding: 72px 0;
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.45), rgba(127, 29, 29, 0.42), rgba(120, 53, 15, 0.45));
  border-bottom: 1px solid rgba(245, 158, 11, 0.22);
}

.page-hero-strong {
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.2), transparent 42%), linear-gradient(90deg, #78350f, #7f1d1d, #78350f);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.16;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #d6d3d1;
  font-size: 18px;
}

.filter-panel {
  margin-top: 0;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-buttons button {
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 999px;
  color: #d6d3d1;
  background: #292524;
  padding: 8px 14px;
  cursor: pointer;
}

.filter-buttons button.is-active,
.filter-buttons button:hover {
  color: white;
  border-color: rgba(245, 158, 11, 0.6);
  background: linear-gradient(90deg, var(--amber), var(--red));
}

.empty-state {
  display: none;
  padding: 48px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: rgba(28, 25, 23, 0.75);
}

.empty-state.is-visible {
  display: block;
}

.detail-page {
  padding: 32px 0 64px;
}

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

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

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

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card,
.detail-card,
.side-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
  background: #000;
}

.player-frame {
  position: relative;
  background: #000;
  overflow: hidden;
}

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

.player-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--amber), var(--red));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.44);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.player-center span {
  margin-left: 5px;
  font-size: 28px;
}

.player-center:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.player-frame.is-playing .player-center {
  opacity: 0;
  pointer-events: none;
}

.player-status {
  position: absolute;
  left: 18px;
  top: 16px;
  z-index: 3;
  border-radius: 999px;
  padding: 6px 12px;
  color: #fed7aa;
  background: rgba(0, 0, 0, 0.62);
  font-size: 13px;
  transition: opacity 0.2s ease;
}

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

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 18px 14px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.player-frame:hover .player-controls,
.player-controls:focus-within {
  opacity: 1;
}

.player-controls button {
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  padding: 8px 12px;
  cursor: pointer;
}

.player-controls button:hover {
  background: rgba(217, 119, 6, 0.9);
}

.detail-card {
  padding: 26px;
}

.detail-card h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.18;
}

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

.detail-card p {
  color: #d6d3d1;
  margin: 0 0 12px;
  text-align: justify;
}

.lead-text {
  color: #fbbf24 !important;
  font-weight: 700;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #d6d3d1;
  background: #292524;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag-cloud span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #d6d3d1;
  background: #292524;
}

.review-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: rgba(41, 37, 36, 0.72);
}

.detail-side {
  position: sticky;
  top: 88px;
}

.side-card {
  padding: 20px;
}

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

.site-footer {
  border-top: 1px solid rgba(68, 64, 60, 0.8);
  background: linear-gradient(180deg, #1c1917, #0c0a09);
  color: var(--muted);
}

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

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 12px;
  color: #fbbf24;
}

.footer-grid p {
  margin: 0;
  max-width: 460px;
}

.footer-grid a {
  display: block;
  margin: 7px 0;
}

.footer-grid a:hover {
  color: var(--amber-bright);
}

.footer-bottom {
  border-top: 1px solid rgba(68, 64, 60, 0.65);
  padding: 18px;
  text-align: center;
  color: var(--soft);
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--amber), var(--red));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

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

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

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

  .detail-side {
    position: static;
  }
}

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

  .mobile-toggle {
    display: grid;
    place-items: center;
  }

  .hero {
    height: 560px;
  }

  .hero-arrow {
    display: none;
  }

  .home-search-panel,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .category-strip,
  .category-grid,
  .compact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand-text small {
    display: none;
  }

  .hero {
    height: 520px;
  }

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

  .hero-actions a {
    width: 100%;
  }

  .movie-grid {
    gap: 16px;
  }

  .compact-card a {
    grid-template-columns: 104px 1fr;
  }

  .compact-card img {
    width: 104px;
    height: 68px;
  }

  .compact-play {
    left: 45px;
    top: 34px;
  }

  .detail-card,
  .side-card {
    padding: 18px;
  }

  .player-center {
    width: 62px;
    height: 62px;
  }
}
