.trend-carousel {
  margin: 34px auto 0;
  width: 100%;
  max-width: 1180px;
}

.trend-carousel-stage {
  display: flex;
  gap: 20px;
  padding: 8px 20px 18px;
  overflow: hidden;
  scroll-behavior: smooth;
}

.trend-card {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  width: 186px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  text-align: left;
}

.trend-card-poster {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 10px;
  background: #202a29;
  box-shadow: 0 12px 22px #21313026;
}

.trend-card-poster::after {
  content: '';
  position: absolute;
  inset: 44% 0 0;
  background: linear-gradient(transparent, #000b);
  pointer-events: none;
}

.trend-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trend-card-metrics {
  position: absolute;
  z-index: 1;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: flex;
  gap: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  text-shadow: 0 1px 3px #000;
}

.trend-card-metrics > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.trend-card-metrics img { filter: brightness(0) invert(1); }

.trend-card-title {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-card:focus-visible { outline: none; }
.trend-card:focus-visible .trend-card-poster {
  outline: 3px solid #337047;
  outline-offset: 3px;
}

.trend-dialog {
  width: min(390px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
}
.trend-dialog::backdrop { background: #152220c9; }
.trend-dialog-close {
  position: absolute;
  z-index: 1;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 26px;
}
.trend-dialog-video {
  display: block;
  width: 100%;
  max-height: 70dvh;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  background: #202a29;
  object-fit: contain;
}
.trend-dialog-title { margin: 14px 0 2px; font-size: 20px; text-align: left; }
.trend-dialog-metrics { color: var(--muted); font-size: 14px; }

@media (max-width: 650px) {
  .trend-carousel { margin-top: 18px; }
  .trend-carousel-stage { gap: 14px; padding-inline: 12px; }
  .trend-card { flex-basis: 164px; }
  .trend-card-title { font-size: 12px; }
}
