:root {
  --bg: #0c0a09;
  --bg-soft: #1c1917;
  --panel: #292524;
  --panel-light: #44403c;
  --line: #78350f;
  --text: #fafaf9;
  --muted: #d6d3d1;
  --subtle: #a8a29e;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --amber-dark: #b45309;
  --orange: #f97316;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(41, 37, 36, 0.96), rgba(120, 53, 15, 0.96), rgba(41, 37, 36, 0.96));
  border-bottom: 2px solid rgba(245, 158, 11, 0.56);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.nav-bar {
  width: min(1280px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff7ed;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-light), var(--amber-dark));
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.28);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-title {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fde68a, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-subtitle {
  color: #fcd34d;
  font-size: 12px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #fde68a;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(245, 158, 11, 0.74);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(180, 83, 9, 0.82);
}

.page {
  min-height: calc(100vh - 72px);
}

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

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #1c1917, #78350f 52%, #292524);
}

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

.hero-slide:first-child {
  opacity: 1;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  transform: scale(1.03);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.16)),
    linear-gradient(0deg, rgba(12, 10, 9, 0.96), transparent 45%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 48px;
  padding: 70px 0 54px;
}

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

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(251, 191, 36, 0.42);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(120, 53, 15, 0.42);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 18px 0 20px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0;
  color: #e7e5e4;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--amber-dark), var(--amber));
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(180, 83, 9, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 38px rgba(245, 158, 11, 0.34);
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.btn-ghost {
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(12, 10, 9, 0.38);
  box-shadow: none;
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(245, 158, 11, 0.2);
}

.hero-card {
  position: relative;
  min-height: 430px;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 30px;
  overflow: hidden;
  background: rgba(41, 37, 36, 0.72);
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 10, 9, 0.94), transparent 58%);
}

.hero-card-info {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
}

.hero-card-title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 900;
}

.hero-card-meta {
  color: #fcd34d;
  font-size: 14px;
  font-weight: 700;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(245, 245, 244, 0.42);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
  padding: 64px 0;
}

.section-alt {
  background: rgba(41, 37, 36, 0.45);
  border-top: 1px solid rgba(251, 191, 36, 0.12);
  border-bottom: 1px solid rgba(251, 191, 36, 0.12);
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 950;
}

.section-desc {
  margin: 10px 0 0;
  max-width: 740px;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  min-width: 0;
  border: 1px solid rgba(251, 191, 36, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(41, 37, 36, 0.84);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(251, 191, 36, 0.58);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
}

.card-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #44403c, #1c1917);
}

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

.movie-card:hover .card-poster img {
  transform: scale(1.08);
  opacity: 0.92;
}

.card-badge,
.card-type {
  position: absolute;
  top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(180, 83, 9, 0.9);
  backdrop-filter: blur(10px);
}

.card-badge {
  left: 10px;
}

.card-type {
  right: 10px;
  background: rgba(12, 10, 9, 0.72);
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
  color: #fff7ed;
}

.card-summary {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #d6d3d1;
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  color: #fcd34d;
  font-size: 13px;
  font-weight: 800;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag {
  padding: 5px 8px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(120, 53, 15, 0.42);
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid rgba(251, 191, 36, 0.16);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.22), transparent 45%),
    linear-gradient(135deg, rgba(68, 64, 60, 0.88), rgba(28, 25, 23, 0.88));
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 191, 36, 0.55);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 950;
}

.category-card p {
  margin: 0;
  color: #d6d3d1;
  line-height: 1.72;
}

.search-panel,
.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: 22px;
  background: rgba(41, 37, 36, 0.72);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

.search-panel {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 26px;
}

.search-input,
.filter-select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 14px;
  color: #fff7ed;
  background: rgba(12, 10, 9, 0.58);
  padding: 0 16px;
  outline: none;
}

.search-input:focus,
.filter-select:focus {
  border-color: rgba(251, 191, 36, 0.75);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.13);
}

.search-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.search-result {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(251, 191, 36, 0.14);
  border-radius: 18px;
  background: rgba(28, 25, 23, 0.78);
}

.search-result img {
  width: 82px;
  height: 116px;
  object-fit: cover;
  border-radius: 12px;
}

.search-result h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.search-result p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #d6d3d1;
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.empty-state {
  padding: 24px;
  border: 1px solid rgba(251, 191, 36, 0.16);
  border-radius: 18px;
  color: #d6d3d1;
  background: rgba(28, 25, 23, 0.68);
}

.page-hero {
  padding: 58px 0 42px;
  border-bottom: 1px solid rgba(251, 191, 36, 0.14);
  background:
    radial-gradient(circle at 15% 0%, rgba(245, 158, 11, 0.2), transparent 28rem),
    linear-gradient(135deg, rgba(41, 37, 36, 0.82), rgba(12, 10, 9, 0.92));
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(251, 191, 36, 0.14);
  border-radius: 22px;
  background: rgba(41, 37, 36, 0.78);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(251, 191, 36, 0.5);
}

.rank-num {
  color: #fbbf24;
  font-size: 28px;
  font-weight: 950;
  text-align: center;
}

.rank-cover {
  width: 92px;
  height: 126px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-info h2,
.rank-info h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 950;
}

.rank-info p {
  margin: 0;
  color: #d6d3d1;
  line-height: 1.65;
}

.rank-meta {
  color: #fcd34d;
  font-weight: 900;
  white-space: nowrap;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(251, 191, 36, 0.14);
  background: linear-gradient(135deg, #1c1917, #78350f 56%, #0c0a09);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.24;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px);
  transform: scale(1.06);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 10, 9, 0.96), rgba(12, 10, 9, 0.6));
}

.detail-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  padding: 56px 0;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.22);
  box-shadow: var(--shadow);
  background: #1c1917;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #fde68a;
  font-size: 14px;
  font-weight: 800;
}

.detail-title {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
  font-weight: 950;
}

.detail-lead {
  margin: 0;
  max-width: 860px;
  color: #e7e5e4;
  font-size: 20px;
  line-height: 1.78;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.meta-pill {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(120, 53, 15, 0.48);
  font-size: 14px;
  font-weight: 900;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  padding: 56px 0;
}

.panel {
  border: 1px solid rgba(251, 191, 36, 0.16);
  border-radius: 26px;
  background: rgba(41, 37, 36, 0.78);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.panel-body {
  padding: 26px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.16)),
    rgba(12, 10, 9, 0.36);
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-ring {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  font-size: 34px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.34);
}

.player-label {
  font-size: 20px;
  font-weight: 950;
}

.article h2,
.sidebar h2 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 950;
}

.article p {
  margin: 0 0 22px;
  color: #e7e5e4;
  font-size: 17px;
  line-height: 1.92;
}

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

.info-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  color: #e7e5e4;
  line-height: 1.6;
}

.info-row span:first-child {
  color: #fcd34d;
  font-weight: 900;
}

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

.site-footer {
  border-top: 1px solid rgba(251, 191, 36, 0.14);
  background: #0c0a09;
  padding: 44px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-title {
  margin: 0 0 8px;
  color: #fde68a;
  font-size: 22px;
  font-weight: 950;
}

.footer-desc {
  margin: 0;
  color: #a8a29e;
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #fcd34d;
  font-weight: 800;
}

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

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

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

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

@media (max-width: 900px) {
  .mobile-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 22px 28px;
    background: rgba(28, 25, 23, 0.98);
    border-bottom: 1px solid rgba(251, 191, 36, 0.18);
  }

  .nav-links.is-open {
    display: flex;
  }

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

  .hero-card {
    display: none;
  }

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

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

  .rank-meta {
    grid-column: 3;
    white-space: normal;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand-subtitle {
    display: none;
  }

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

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

  .section {
    padding: 44px 0;
  }

  .section-head {
    display: block;
  }

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

  .card-body {
    padding: 13px;
  }

  .search-result {
    grid-template-columns: 1fr;
  }

  .search-result img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
  }

  .rank-cover {
    width: 72px;
    height: 102px;
  }

  .rank-info h2,
  .rank-info h3 {
    font-size: 18px;
  }
}
