/* ============================================================
   Currently Hyped — live reading ticker
   JS drives the scroll via requestAnimationFrame + translateX.
   ============================================================ */

.ao-widget.widget_ao_widget_currently_hyped {
  background-color: transparent !important;
  box-shadow: none !important;
}

.ao-hyped {
  display: flex;
  align-items: center;
  overflow: hidden;
  background: rgba(108, 92, 231, 0.06);
  border-top: 1px solid rgba(108, 92, 231, 0.15);
  border-bottom: 1px solid rgba(108, 92, 231, 0.15);
  height: 40px;
  font-size: 12px;
  user-select: none;
}

/* ── Label ─────────────────────────────────────────────────── */

.ao-hyped__label {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px 0 16px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6c5ce7;
  white-space: nowrap;
  flex-shrink: 0;
  border-right: 1px solid rgba(108, 92, 231, 0.2);
  height: 100%;
}

.ao-hyped__fire {
  color: #e17055;
  flex-shrink: 0;
}

/* ── Scrolling track ────────────────────────────────────────── */

.ao-hyped__track-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  /* Fade edges */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 40px,
    #000 calc(100% - 40px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 40px,
    #000 calc(100% - 40px),
    transparent 100%
  );
}

/* JS applies translateX — no CSS animation needed */
.ao-hyped__track {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  will-change: transform;
  white-space: nowrap;
}

/* ── Item ───────────────────────────────────────────────────── */

.ao-hyped__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px 0 6px;
  height: 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.ao-hyped__item:hover {
  background: rgba(108, 92, 231, 0.12);
  border-color: rgba(108, 92, 231, 0.3);
  color: inherit;
}

/* ── Cover ──────────────────────────────────────────────────── */

.ao-hyped__cover {
  width: 20px;
  height: 26px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
}

.ao-hyped__cover--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ao-text-muted, #888);
}

/* ── Title ──────────────────────────────────────────────────── */

.ao-hyped__title {
  font-size: 12px;
  font-weight: 500;
  color: var(--ao-text, #e0e0f0);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Reader count badge ─────────────────────────────────────── */

.ao-hyped__count {
  font-size: 10px;
  font-weight: 700;
  color: #6c5ce7;
  background: rgba(108, 92, 231, 0.14);
  border-radius: 10px;
  padding: 1px 6px;
  flex-shrink: 0;
  min-width: 20px;
  text-align: center;
}

/* ── Light mode adjustments ─────────────────────────────────── */

[data-theme="light"] .ao-hyped {
  background: rgba(108, 92, 231, 0.04);
  border-color: rgba(108, 92, 231, 0.12);
}

[data-theme="light"] .ao-hyped__item {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .ao-hyped__title {
  color: var(--ao-text, #1a1a2e);
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 480px) {
  .ao-hyped__label {
    padding: 0 10px 0 12px;
    font-size: 10px;
  }
  .ao-hyped__title {
    max-width: 90px;
  }
}
