html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #f5f5f4;
  background: #0c0a09;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 25, 23, 0.96);
  border-bottom: 1px solid #292524;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.navbar {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand {
  font-size: 20px;
}

.brand:hover,
.nav-link:hover,
.nav-link.active,
.footer-grid a:hover {
  color: #fbbf24;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #fff7ed;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.32);
  font-size: 15px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  color: #d6d3d1;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-toggle {
  display: none;
  border: 0;
  color: #d6d3d1;
  background: transparent;
  font-size: 28px;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(245, 158, 11, 0.18), transparent 34%),
    radial-gradient(circle at 84% 24%, rgba(234, 88, 12, 0.12), transparent 36%),
    linear-gradient(180deg, #1c1917 0%, #0c0a09 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 58px 58px;
  opacity: 0.2;
}

.hero-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 74px 24px 58px;
}

.hero-copy {
  max-width: 900px;
  margin: 0 auto 42px;
  text-align: center;
}

.hero-kicker,
.meta-pill,
.tag-line,
.type-badge {
  color: #fbbf24;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 74px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

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

.hero-actions,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
}

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

.btn:hover,
.search-button:hover,
.category-card:hover,
.poster-card:hover,
.compact-card:hover {
  transform: translateY(-3px);
}

.btn:hover,
.search-button:hover {
  background: #f59e0b;
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.28);
}

.btn.ghost {
  color: #f5f5f4;
  background: #292524;
  box-shadow: none;
}

.hero-search {
  display: flex;
  max-width: 620px;
  margin: 30px auto 0;
  border: 1px solid #44403c;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(41, 37, 36, 0.82);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

.hero-search input,
.search-input,
.filter-select {
  width: 100%;
  color: #f5f5f4;
  border: 1px solid #44403c;
  border-radius: 12px;
  outline: none;
  background: #1c1917;
}

.hero-search input {
  border: 0;
  border-radius: 0;
  padding: 16px 18px;
  background: transparent;
}

.hero-search button {
  border-radius: 0;
  min-width: 116px;
}

.hero-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 24px;
  align-items: stretch;
}

.hero-slide {
  position: relative;
  min-height: 520px;
  display: none;
  overflow: hidden;
  border: 1px solid #44403c;
  border-radius: 28px;
  background: #1c1917;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.hero-slide.active {
  display: block;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  filter: saturate(1.05);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 10, 9, 0.92), rgba(12, 10, 9, 0.36) 54%, rgba(12, 10, 9, 0.72)), linear-gradient(0deg, rgba(12, 10, 9, 0.86), transparent 50%);
}

.hero-slide-content {
  position: absolute;
  z-index: 2;
  left: 34px;
  right: 34px;
  bottom: 34px;
  max-width: 680px;
}

.hero-slide-content h2 {
  margin: 14px 0 12px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.1;
}

.hero-slide-content p {
  margin: 0 0 24px;
  color: #e7e5e4;
  font-size: 17px;
}

.hero-thumbs {
  display: grid;
  gap: 14px;
}

.hero-thumb {
  border: 1px solid #3f3a37;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 96px 1fr;
  min-height: 90px;
  color: #d6d3d1;
  background: #1c1917;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.hero-thumb.active,
.hero-thumb:hover {
  border-color: #d97706;
  background: #292524;
  transform: translateX(3px);
}

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

.hero-thumb span {
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 10px 14px;
}

.hero-thumb strong {
  color: #fafaf9;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-thumb em {
  color: #a8a29e;
  font-style: normal;
  font-size: 13px;
}

.main-wrap,
.page-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px;
}

.content-section {
  margin-bottom: 70px;
}

.content-section.panel {
  padding: 34px;
  border-radius: 28px;
  background: #1c1917;
  border: 1px solid #292524;
}

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

.section-head h2,
.page-head h1,
.detail-head h1 {
  margin: 0;
  color: #fafaf9;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.section-head p,
.page-head p,
.breadcrumb,
.detail-muted {
  margin: 8px 0 0;
  color: #a8a29e;
}

.section-more {
  color: #fbbf24;
  font-weight: 800;
  white-space: nowrap;
}

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

.poster-card,
.compact-card,
.category-card,
.info-card {
  border-radius: 18px;
  overflow: hidden;
  background: #1c1917;
  border: 1px solid #292524;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.poster-card:hover,
.compact-card:hover,
.category-card:hover {
  border-color: #57534e;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.32);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #292524;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.78));
}

.play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 44px;
  opacity: 0;
  background: rgba(0, 0, 0, 0.35);
  transition: opacity 0.25s ease;
}

.poster-card:hover .play-badge {
  opacity: 1;
}

.type-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 9px;
  color: #fff;
  border-radius: 999px;
  background: #d97706;
  font-size: 12px;
}

.card-body {
  min-height: 154px;
  display: grid;
  gap: 7px;
  padding: 15px;
}

.card-body strong {
  color: #fafaf9;
  font-size: 17px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.poster-card:hover strong,
.compact-card:hover strong {
  color: #fbbf24;
}

.card-body em,
.compact-card em {
  color: #a8a29e;
  font-style: normal;
  font-size: 13px;
}

.card-body small {
  color: #a8a29e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

.tag-line {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.category-card {
  padding: 24px;
  min-height: 180px;
  background: linear-gradient(135deg, #292524, #1c1917);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  color: #fafaf9;
  font-size: 24px;
}

.category-card p {
  margin: 0 0 18px;
  color: #a8a29e;
}

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

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

.compact-card {
  display: grid;
  grid-template-columns: auto 92px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
}

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

.rank-num {
  min-width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  border-radius: 12px;
  background: #d97706;
  font-weight: 900;
}

.compact-body {
  display: grid;
  min-width: 0;
}

.compact-body strong {
  overflow: hidden;
  color: #fafaf9;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.search-panel {
  padding: 26px;
  border: 1px solid #292524;
  border-radius: 24px;
  background: #1c1917;
  margin-bottom: 32px;
}

.search-input,
.filter-select {
  min-height: 46px;
  padding: 10px 14px;
}

.search-input {
  max-width: 420px;
}

.filter-select {
  max-width: 220px;
}

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

.player-shell {
  overflow: hidden;
  border: 1px solid #44403c;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.start-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.72));
  cursor: pointer;
}

.start-layer span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border-radius: 999px;
  background: #d97706;
  font-size: 34px;
  box-shadow: 0 16px 44px rgba(217, 119, 6, 0.35);
}

.player-box.started .start-layer {
  display: none;
}

.detail-copy,
.info-card {
  padding: 28px;
  margin-top: 24px;
  border-radius: 24px;
  background: #1c1917;
  border: 1px solid #292524;
}

.detail-copy h2,
.info-card h2,
.info-card h3 {
  margin: 0 0 12px;
  color: #fafaf9;
}

.detail-copy p,
.info-card p {
  margin: 0;
  color: #d6d3d1;
}

.meta-row,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.meta-pill,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #292524;
  color: #d6d3d1;
  font-size: 14px;
}

.tag-cloud span {
  color: #fbbf24;
}

.side-card {
  margin-bottom: 20px;
}

.side-poster {
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid #44403c;
}

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

.breadcrumb a {
  color: #fbbf24;
}

.site-footer {
  margin-top: 60px;
  border-top: 1px solid #292524;
  background: #1c1917;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 30px;
}

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

.footer-grid p,
.footer-grid a {
  display: block;
  margin: 0 0 9px;
  color: #a8a29e;
}

.footer-bottom {
  border-top: 1px solid #292524;
  padding: 20px 24px;
  color: #78716c;
  text-align: center;
}

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

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

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

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

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    padding: 14px 24px 22px;
    border-bottom: 1px solid #292524;
    background: #1c1917;
  }

  .nav-menu.open {
    display: grid;
    gap: 14px;
  }

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

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

@media (max-width: 640px) {
  .navbar,
  .hero-inner,
  .main-wrap,
  .page-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-inner {
    padding-top: 50px;
  }

  .hero-search {
    display: grid;
  }

  .hero-search button {
    border-radius: 0;
  }

  .hero-slide,
  .hero-slide img {
    min-height: 430px;
  }

  .hero-slide-content {
    left: 20px;
    right: 20px;
    bottom: 22px;
  }

  .hero-thumbs,
  .poster-grid,
  .related-grid,
  .category-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-section.panel,
  .detail-copy,
  .info-card,
  .search-panel {
    padding: 20px;
  }

  .section-head,
  .page-head,
  .detail-head {
    display: block;
  }

  .compact-card {
    grid-template-columns: auto 78px 1fr;
  }

  .compact-card img {
    width: 78px;
    height: 56px;
  }
}
