:root {
  --bg: #120f0d;
  --panel: #1e1915;
  --panel-soft: #2b221b;
  --paper: #fffaf0;
  --muted: #a8a29e;
  --text: #f8f4ec;
  --dark-text: #2b2118;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --amber-dark: #92400e;
  --line: rgba(251, 191, 36, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(180, 83, 9, 0.34), transparent 28rem),
    radial-gradient(circle at 90% 5%, rgba(245, 158, 11, 0.16), transparent 26rem),
    linear-gradient(135deg, #0f0b08 0%, #24160d 48%, #0f0b08 100%);
  min-height: 100vh;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(19, 15, 12, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark,
.footer-brand span {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #92400e);
  border-radius: 13px;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.32);
}

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

.brand-text strong {
  font-size: 21px;
  line-height: 1;
  background: linear-gradient(90deg, #fde68a, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.02em;
}

.brand-text small {
  color: #fcd34d;
  font-size: 12px;
}

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

.desktop-nav a,
.mobile-panel a {
  padding: 10px 14px;
  border-radius: 12px;
  color: #ffedd5;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
  color: #fff;
  background: rgba(217, 119, 6, 0.82);
  transform: translateY(-1px);
}

.top-search,
.mobile-search,
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
  min-width: 0;
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
}

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

.top-search button,
.mobile-search button,
.btn,
.section-more,
.player-overlay strong,
.load-more-button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  padding: 11px 18px;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(245, 158, 11, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.btn:hover,
.section-more:hover,
.load-more-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(245, 158, 11, 0.3);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

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

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 14px 18px 20px;
  background: rgba(19, 15, 12, 0.96);
}

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

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

main {
  min-height: 60vh;
}

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

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(1.05) contrast(1.05);
}

.hero-bg::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.18)),
    linear-gradient(0deg, rgba(18, 15, 13, 0.92), transparent 45%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 48px;
  align-items: center;
  padding: 72px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fbbf24;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero h2 {
  margin: 22px 0 8px;
  color: #fde68a;
  font-size: clamp(24px, 3.6vw, 42px);
  font-weight: 800;
}

.hero p {
  max-width: 720px;
  color: #e7e5e4;
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-meta,
.movie-meta-line,
.detail-meta,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.hero-meta span,
.movie-meta-line span,
.detail-meta span,
.breadcrumb a,
.breadcrumb span {
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}

.hero-panel {
  display: grid;
  gap: 16px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-panel h2 {
  margin: 0;
  font-size: 20px;
}

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

.spotlight-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 13px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, background 0.25s ease;
}

.spotlight-item:hover {
  transform: translateX(4px);
  background: rgba(245, 158, 11, 0.14);
}

.spotlight-item img {
  width: 92px;
  height: 60px;
  object-fit: cover;
  border-radius: 13px;
}

.spotlight-item strong {
  display: block;
  color: #fff7ed;
  margin-bottom: 4px;
}

.spotlight-item span {
  color: #d6d3d1;
  font-size: 13px;
}

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

.content-section.alt {
  width: 100%;
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(254, 243, 199, 0.92));
  color: var(--dark-text);
}

.content-section.alt > .inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.section-heading p {
  max-width: 680px;
  color: inherit;
  opacity: 0.76;
  line-height: 1.8;
  margin: 10px 0 0;
}

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

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

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

.movie-card {
  min-width: 0;
  background: rgba(255, 255, 255, 0.97);
  color: var(--dark-text);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.22);
}

.poster-frame {
  position: relative;
  height: 235px;
  overflow: hidden;
  background: #211915;
}

.card-compact .poster-frame {
  height: 180px;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 14px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 58%);
}

.watch-chip,
.rank-badge {
  color: #fff7ed;
  background: rgba(180, 83, 9, 0.86);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-style: normal;
}

.rank-badge {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  font-weight: 800;
}

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

.movie-meta-line {
  gap: 6px;
  margin-bottom: 9px;
}

.movie-meta-line span {
  color: #7c2d12;
  background: #fffbeb;
  border-color: #fed7aa;
  padding: 4px 8px;
  font-size: 12px;
}

.movie-card h3 {
  margin: 0 0 9px;
  color: #1c1917;
  font-size: 19px;
  line-height: 1.35;
}

.movie-card p {
  margin: 0;
  color: #57534e;
  line-height: 1.7;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.tag-row span {
  color: #92400e;
  background: #fef3c7;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
}

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

.category-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--dark-text);
  box-shadow: var(--shadow);
}

.category-cover {
  position: relative;
  min-height: 210px;
  background: #201915;
}

.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}

.category-cover span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  color: #fff;
  background: rgba(146, 64, 14, 0.82);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
}

.category-card-body {
  padding: 22px;
}

.category-card-body h2 {
  margin: 0 0 9px;
  font-size: 24px;
}

.category-card-body p {
  color: #57534e;
  line-height: 1.75;
  margin: 0 0 14px;
}

.category-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-mini-links a {
  color: #78350f;
  background: #fef3c7;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}

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

.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  color: #e7e5e4;
  line-height: 1.8;
  font-size: 18px;
}

.filter-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.filter-bar {
  flex-wrap: wrap;
}

.filter-bar input {
  flex: 1 1 260px;
}

.filter-bar select {
  min-width: 148px;
}

.empty-state {
  display: none;
  margin: 34px 0 0;
  padding: 24px;
  color: #fef3c7;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

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

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

.ranking-row {
  display: grid;
  grid-template-columns: 80px 140px 1fr auto;
  gap: 18px;
  align-items: center;
  color: var(--dark-text);
  background: rgba(255, 255, 255, 0.97);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.ranking-no {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #92400e);
  border-radius: 18px;
}

.ranking-row img {
  width: 140px;
  height: 86px;
  object-fit: cover;
  border-radius: 16px;
}

.ranking-row h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.ranking-row p {
  margin: 0;
  color: #57534e;
  line-height: 1.65;
}

.detail-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.breadcrumb {
  margin: 28px 0;
}

.detail-hero {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 34px;
  align-items: stretch;
  margin-bottom: 44px;
}

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

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

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-info p {
  color: #e7e5e4;
  font-size: 18px;
  line-height: 1.9;
}

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

.player-section,
.article-panel {
  margin: 34px 0;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.player-section h2,
.article-panel h2,
.related-section h2 {
  margin: 0 0 18px;
  font-size: 30px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #000;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 16px;
  color: #fff;
  border: 0;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.18));
}

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

.play-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  border-radius: 50%;
  box-shadow: 0 20px 52px rgba(245, 158, 11, 0.42);
  font-size: 34px;
}

.player-overlay strong {
  display: inline-block;
}

.article-panel p {
  color: #e7e5e4;
  line-height: 1.95;
  font-size: 17px;
}

.related-section {
  margin-top: 42px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(11, 8, 6, 0.9);
  padding: 44px 0 24px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: #fbbf24;
  font-size: 20px;
}

.site-footer p,
.site-footer a {
  color: #d6d3d1;
}

.site-footer p {
  line-height: 1.8;
  margin: 0;
}

.site-footer h2 {
  color: #fef3c7;
  font-size: 18px;
  margin: 0 0 14px;
}

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

.footer-links a {
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: 999px;
  padding: 7px 11px;
  transition: background 0.25s ease, color 0.25s ease;
}

.footer-links a:hover {
  color: #fff;
  background: rgba(217, 119, 6, 0.52);
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(251, 191, 36, 0.12);
  color: #a8a29e;
  font-size: 13px;
  text-align: center;
}

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

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

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

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

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
  }

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

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

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

  .ranking-row {
    grid-template-columns: 52px 96px 1fr;
  }

  .ranking-row .btn {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .ranking-row img {
    width: 96px;
    height: 68px;
  }

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

@media (max-width: 620px) {
  .nav-wrap {
    width: min(100% - 22px, 1180px);
    height: 64px;
    gap: 12px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

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

  .brand-text small {
    display: none;
  }

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

  .hero p,
  .detail-info p,
  .page-hero p {
    font-size: 16px;
  }

  .content-section,
  .page-hero,
  .detail-wrap,
  .filter-panel {
    width: min(100% - 22px, 1180px);
  }

  .content-section {
    padding: 48px 0;
  }

  .content-section.alt > .inner {
    width: min(100% - 22px, 1180px);
  }

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

  .movie-grid,
  .movie-grid.featured,
  .movie-grid.search-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .poster-frame {
    height: 260px;
  }

  .category-card {
    grid-template-columns: 1fr;
  }

  .category-cover {
    min-height: 190px;
  }

  .detail-info,
  .player-section,
  .article-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .play-icon {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }

  .ranking-row {
    grid-template-columns: 44px 1fr;
  }

  .ranking-row img {
    grid-column: 1 / -1;
    width: 100%;
    height: 170px;
  }

  .ranking-row .btn {
    grid-column: 1 / -1;
  }
}
