.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: var(--bg);
  contain: layout paint;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s ease;
  background: var(--bg);
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide .bg {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: auto;
  width: 70%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}
.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to left,
    var(--shade-1) 10%,
    var(--shade-2) 40%,
    var(--shade-3) 64%,
    var(--shade-3) 100%);
}
.hero-fade {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  height: 160px;
  pointer-events: none;
  background: linear-gradient(to top, var(--bg) 6%, rgba(0, 0, 0, 0));
}
.hero-content {
  position: absolute;
  left: 44px;
  top: 50%;
  transform: translateY(-50%);
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  z-index: 2;
}
.hero-slide:not(.active) .hero-content { display: none; }
.hero-content h2 { font-size: 40px; font-weight: 900; line-height: 1.55; text-wrap: balance; color: var(--tx); }
.hero-content h2 a { color: var(--tx); }
.hero-content h2 a:hover { color: var(--ac); }
.hero-excerpt { font-size: 14.5px; line-height: 2; color: var(--tx-2); max-width: 440px; }
.hero-meta { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--tx-2); flex-wrap: wrap; }
.hero-meta .dot { width: 1px; height: 14px; background: var(--line); }
.hero-meta .who { display: flex; align-items: center; gap: 8px; }
.hero-meta .ava {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--card-h);
  border: 1px solid #4A4F56;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--tx);
  flex-shrink: 0;
}
.hero-meta .m { display: flex; align-items: center; gap: 5px; }
.hero-cta { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.hero-cta .go {
  height: 46px;
  padding: 0 26px;
  border-radius: 12px;
  background: var(--ac);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 22px rgba(249, 115, 22, .28);
}
.hero-cta .go:hover { background: var(--ac-h); color: #fff; }

.hero-nums {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
  direction: ltr;
}
.hero-nums .n { font-size: 15px; color: var(--tx-3); font-weight: 800; line-height: 1; cursor: pointer; transition: font-size .4s, color .4s; }
.hero-nums .n.on { font-size: 30px; color: var(--tx); }
.hero-nums .line { width: 2px; height: 30px; background: var(--ac); }

.hero-arrows { position: absolute; right: 40px; bottom: 30px; display: flex; gap: 8px; z-index: 2; }
.hero-arrows button {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(17, 19, 21, .55);
  border: 1px solid var(--ac);
  color: var(--ac);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.hero-arrows button:hover { background: var(--ac); border-color: var(--ac); color: #fff; }

.cat-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-tile {
  position: relative;
  height: 108px;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--ac);
  background: var(--card);
  display: block;
}
.cat-tile:hover { border-color: var(--ac-h); background: var(--card-h); }
.cat-tile .thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .35;
}
.cat-tile .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 19, 21, .85), rgba(17, 19, 21, .35));
  pointer-events: none;
}
.cat-tile .body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  pointer-events: none;
}
.cat-tile .ic { color: var(--ac); display: flex; align-items: center; justify-content: center; }
.cat-tile .ic svg { width: 33px; height: 33px; }
.cat-tile .name { font-size: 13.5px; font-weight: 800; color: var(--tx); }
.cat-tile .count { font-size: 10.5px; color: var(--tx-2); }

.grid-feature { display: grid; grid-template-columns: 340px 1fr 340px; gap: 18px; align-items: start; }
.grid-feature .feat-side { order: 1; }
.grid-feature .feat-main { order: 2; }
.grid-feature .popular { order: 3; }

.feat-main.overlay-card .media { height: 500px; }
.feat-main.overlay-card .overlay-content .title { font-size: 21px; -webkit-line-clamp: 3; }
.feat-side { display: flex; flex-direction: column; gap: 18px; }
.feat-side .overlay-card .media { height: 241px; }
.feat-side .overlay-card .overlay-content .title { font-size: 14px; }

.popular {
  background: var(--card);
  border: 1px solid var(--ac-soft);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}
.popular .head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; }
.popular .head .bar { width: 4px; height: 20px; border-radius: 2px; background: var(--ac); }
.popular .head h2 { font-size: 16.5px; font-weight: 800; color: var(--tx); }
.pop-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.pop-row:last-of-type { border-bottom: 0; }
.pop-row .thumb { position: relative; width: 72px; height: 54px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.pop-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pop-row .info { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pop-row .info a { font-size: 12.5px; font-weight: 700; line-height: 1.7; color: var(--tx); }
.pop-row .info a:hover { color: var(--ac); }
.pop-row .info .date { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--tx-2); }
.pop-row .rank {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--tx-3);
  flex-shrink: 0;
}
.pop-row.first .rank { border-radius: 8px; border: 1.5px solid var(--ac); color: var(--ac); }
.pop-more {
  margin-top: 10px;
  height: 42px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid var(--ac);
  color: var(--ac);
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 24px;
  transition: background .2s, color .2s;
}
.pop-more:hover { background: var(--ac); color: #fff; }

.video-card { background: transparent; border: 0; box-shadow: none; }
.video-card:hover { background: transparent; border-color: transparent; }
.video-card .media { border: 1.5px solid var(--ac); border-radius: 14px; overflow: hidden; background: #1A1E22; }
.video-card:hover .media { border-color: var(--ac-h); }
.video-card .pad { padding: 11px 2px 0; background: transparent; }
.video-card .title { color: var(--tx); }
.video-card .title:hover { color: var(--ac); }
.video-card .play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .8);
  border: 1px solid rgba(255, 255, 255, .55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}
.video-card .play-btn svg { width: 22px; height: 22px; color: #fff; }
.vid-cover {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(249, 115, 22, .12), transparent 55%),
    linear-gradient(135deg, #171A1D 0%, #22272C 100%);
  pointer-events: none;
  z-index: -1;
}
.vid-dur {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(17, 19, 21, .82);
  color: #D6DBE0;
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  direction: ltr;
  pointer-events: none;
  z-index: 2;
}
.vid-dur::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2.5px solid var(--ac);
  margin-inline-end: 5px;
  vertical-align: middle;
}

.auction-card .media { border: 1.5px solid var(--ac); }
.auction-card:hover .media { border-color: var(--ac-h); }

.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.perk {
  background: var(--card);
  border: 1px solid var(--ac);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background .2s, border-color .2s;
}
.perk:hover { background: var(--card-h); border-color: var(--ac-h); }
.perk .t { font-size: 14.5px; font-weight: 800; color: var(--tx); display: block; }
.perk .s { font-size: 11.5px; color: var(--tx-3); display: block; margin-top: 4px; }
.perk svg { stroke: var(--ac); flex-shrink: 0; }

:root[data-theme="light"] .popular,
:root[data-theme="light"] .perk { box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }
:root[data-theme="light"] .video-card { box-shadow: none; }
:root[data-theme="light"] .vid-cover { background: linear-gradient(135deg, #E9ECF0, #D8DDE3); }
:root[data-theme="light"] .cat-tile .shade { background: linear-gradient(to top, #feffff, rgba(17, 19, 21, .35)); }
:root[data-theme="light"] .hero-content h2,
:root[data-theme="light"] .hero-content h2 a { color: #16181B; }
:root[data-theme="light"] .hero-excerpt,
:root[data-theme="light"] .hero-meta { color: #44505A; }
:root[data-theme="light"] .hero-meta .ava { color: #16181B; background: #E4E7EB; border-color: #C9CED4; }

@media (max-width: 1100px) {
  .grid-feature { grid-template-columns: 1fr 1fr; }
  .grid-feature .feat-main { grid-column: 1 / -1; }
  .cat-tiles { grid-template-columns: repeat(3, 1fr); }
  .perks { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .hero { height: 520px; }
  .hero-slide .bg { width: 100%; }
  .hero-shade {
    background: linear-gradient(to top,
      var(--shade-3) 22%,
      var(--shade-2) 52%,
      var(--shade-1) 82%);
  }
  .hero-fade { height: 110px; }
  .hero-content {
    left: 18px;
    right: 18px;
    top: auto;
    bottom: 84px;
    transform: none;
    max-width: none;
    gap: 12px;
  }
  .hero-content h2 { font-size: 26px; line-height: 1.45; }
  .hero-excerpt {
    max-width: none;
    font-size: 13.5px;
    line-height: 1.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-nums { display: none; }
  .hero-arrows { right: 18px; bottom: 22px; }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .grid-feature { grid-template-columns: 1fr; }
  .feat-main.overlay-card .media { height: 240px; }
  .feat-side .overlay-card .media { height: 200px; }
  .perks { grid-template-columns: 1fr; }
}
