:root {
  --page-bg: #0c0a09;
  --panel-bg: #1c1917;
  --panel-soft: #292524;
  --line: #44403c;
  --text: #f5f5f4;
  --muted: #a8a29e;
  --amber: #f59e0b;
  --amber-soft: #fcd34d;
  --amber-dark: #92400e;
  --danger: #ef4444;
}

* {
  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(146, 64, 14, 0.32), transparent 32rem), var(--page-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  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, #92400e, #78350f);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #78350f;
  background: #fde68a;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

.brand-text {
  font-size: clamp(20px, 3vw, 26px);
}

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

.nav-link {
  color: #fffbeb;
  font-weight: 700;
  opacity: 0.88;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: white;
  opacity: 1;
}

.menu-toggle {
  display: none;
  border: 0;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 8px 12px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(253, 230, 138, 0.25);
}

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

.hero {
  position: relative;
  height: min(72vh, 720px);
  min-height: 520px;
  overflow: hidden;
  background: #0c0a09;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transform: scale(1.02);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0c0a09 0%, rgba(12, 10, 9, 0.72) 42%, rgba(12, 10, 9, 0.16) 100%);
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 64px 0 72px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-soft);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero h1,
.hero h2 {
  max-width: 780px;
  margin: 12px 0;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  font-weight: 900;
}

.hero p {
  max-width: 680px;
  color: #d6d3d1;
  font-size: clamp(16px, 2vw, 20px);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  padding: 12px 22px;
  border-radius: 14px;
  color: white;
  background: #d97706;
  font-weight: 800;
  box-shadow: 0 16px 32px rgba(217, 119, 6, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: #f59e0b;
}

.btn.secondary {
  background: rgba(28, 25, 23, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.38);
  box-shadow: none;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--amber);
}

.search-box {
  position: relative;
  width: min(560px, 100%);
}

.search-box input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: white;
  background: rgba(28, 25, 23, 0.88);
  border-radius: 14px;
  padding: 13px 16px;
  outline: none;
}

.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  display: none;
  max-height: 360px;
  overflow: auto;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 16px;
  background: rgba(28, 25, 23, 0.98);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.search-results.is-open {
  display: block;
}

.search-result-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.search-result-item img {
  width: 48px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}

.section {
  padding: 58px 0;
}

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

.section-title {
  margin: 0;
  color: #fcd34d;
  font-size: clamp(28px, 4vw, 40px);
}

.section-desc {
  margin: 6px 0 0;
  color: var(--muted);
}

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

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

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

.video-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(28, 25, 23, 0.88);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

.video-card:hover .poster-wrap img {
  transform: scale(1.08);
}

.poster-mask {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  opacity: 0;
  color: white;
  background: rgba(0, 0, 0, 0.62);
  border-radius: 12px;
  padding: 9px 10px;
  text-align: center;
  transition: opacity 0.2s ease;
}

.video-card:hover .poster-mask {
  opacity: 1;
}

.score-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  color: white;
  background: #d97706;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 14px;
}

.card-title {
  display: block;
  overflow: hidden;
  color: #fafaf9;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card-title:hover,
.media-row-title:hover {
  color: #fcd34d;
}

.card-meta,
.media-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 13px;
  margin: 7px 0;
}

.card-body p {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-list span {
  padding: 4px 8px;
  color: #fcd34d;
  background: rgba(120, 53, 15, 0.38);
  border-radius: 999px;
  font-size: 12px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 26px;
}

.panel {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  background: rgba(28, 25, 23, 0.82);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.22);
}

.panel-pad {
  padding: 24px;
}

.rank-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-item a {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(41, 37, 36, 0.72);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item a:hover {
  background: rgba(120, 53, 15, 0.42);
  transform: translateX(3px);
}

.rank-num {
  color: #fcd34d;
  font-weight: 900;
}

.rank-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-score {
  color: #fbbf24;
  font-size: 13px;
}

.category-card {
  display: flex;
  min-height: 172px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(146, 64, 14, 0.35), rgba(28, 25, 23, 0.9));
}

.category-card h2,
.category-card h3 {
  margin: 0 0 8px;
  color: #fcd34d;
}

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

.category-card .count {
  color: #fbbf24;
  font-weight: 800;
}

.page-hero {
  padding: 58px 0 28px;
}

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

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

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 190px 160px;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 18px;
  background: rgba(28, 25, 23, 0.76);
}

.filter-panel label span {
  display: block;
  margin-bottom: 6px;
  color: #fcd34d;
  font-size: 13px;
  font-weight: 800;
}

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

.media-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(28, 25, 23, 0.82);
}

.media-row-poster img {
  width: 96px;
  height: 128px;
  border-radius: 12px;
  object-fit: cover;
}

.media-row-title {
  color: #fafaf9;
  font-size: 18px;
  font-weight: 900;
}

.media-row p {
  margin: 0 0 10px;
  color: #d6d3d1;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #0c0a09;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  filter: blur(4px);
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0c0a09, rgba(12, 10, 9, 0.76));
}

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

.detail-title {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: #d6d3d1;
  font-size: 14px;
}

.detail-breadcrumb a:hover {
  color: #fcd34d;
}

.detail-poster img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.48);
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: black;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.player-shell video {
  width: 100%;
  height: 100%;
  background: black;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.22));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-shell.is-playing .play-layer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-status {
  margin-top: 12px;
  color: #d6d3d1;
  font-size: 14px;
  text-align: center;
}

.content-block {
  margin-top: 24px;
}

.content-block h2 {
  color: #fcd34d;
}

.content-block p {
  color: #d6d3d1;
  font-size: 17px;
}

.pagination-note {
  margin-top: 22px;
  color: var(--muted);
  text-align: center;
}

.empty-state {
  display: none;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

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

.site-footer {
  margin-top: 58px;
  padding: 42px 0 24px;
  color: #d6d3d1;
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.4), #0c0a09);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

.footer-links a:hover {
  color: #fcd34d;
}

.footer-bottom {
  margin-top: 28px;
  color: #78716c;
  font-size: 14px;
}

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

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

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

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding-bottom: 80px;
  }

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

  .filter-panel,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero {
    min-height: 560px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .grid,
  .grid.four,
  .grid.three {
    gap: 12px;
  }

  .card-body {
    padding: 10px;
  }

  .media-row {
    grid-template-columns: 76px 1fr;
  }

  .media-row-poster img {
    width: 76px;
    height: 104px;
  }
}
