/* Hidden until slideshow / TV playback is active */
#shoutoutBeltMount.shoutout-belt-mount--inactive,
.shoutout-belt-mount--inactive {
  display: none !important;
  flex: 0 0 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  border: none !important;
}

#shoutoutBeltMount:not(.shoutout-belt-mount--inactive) {
  display: block !important;
  flex: 0 0 auto !important;
  width: 100%;
  min-height: 0;
  overflow: visible !important;
}

#rcTvRoot:fullscreen #shoutoutBeltMount:not(.shoutout-belt-mount--inactive),
#rcTvRoot:-webkit-full-screen #shoutoutBeltMount:not(.shoutout-belt-mount--inactive) {
  display: block !important;
}

.shoutout-belt-stack {
  position: relative;
  width: 100%;
}

/* Minimal send hint — top-right, just above the crawl belt */
.shoutout-belt__send-hint {
  display: none;
  position: absolute;
  right: 0.65rem;
  bottom: 100%;
  z-index: 2;
  margin: 0 0 0.22rem;
  align-items: center;
  justify-content: flex-end;
  gap: 0.32rem;
  max-width: min(100% - 1.3rem, 22rem);
  padding: 0;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.68);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.88);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

#shoutoutBeltMount:not(.shoutout-belt-mount--inactive):has(.shoutout-belt:not(.shoutout-belt--empty)) .shoutout-belt__send-hint {
  display: inline-flex;
}

/* Report C / TV playback — readable pill above the crawl belt */
#rcTvRoot .shoutout-belt__send-hint {
  padding: 0.32rem 0.62rem;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.38);
  color: rgba(255, 255, 255, 0.94);
  text-shadow: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#rcTvRoot .shoutout-belt__send-hint-icon {
  opacity: 0.95;
  color: rgba(255, 255, 255, 0.88);
}

.shoutout-belt__send-hint-icon {
  flex-shrink: 0;
  opacity: 0.82;
}

.shoutout-belt__send-hint-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  .shoutout-belt__send-hint {
    right: 0.45rem;
    font-size: 0.52rem;
    gap: 0.26rem;
    max-width: min(100% - 0.9rem, 16rem);
  }
}

/* TV news crawl — transform driven by JS (requestAnimationFrame) */
.shoutout-belt {
  --shoutout-belt-h: 48px;
  flex: 0 0 auto;
  width: 100%;
  height: var(--shoutout-belt-h);
  background: #000;
  color: #fff;
  overflow: hidden;
  border-top: 2px solid #c41e3a;
  font-family: inherit;
}

.shoutout-belt--empty {
  display: none;
}

.shoutout-belt__viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  text-align: left;
  direction: ltr;
}

.shoutout-belt__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  height: 100%;
  width: max-content;
  will-change: transform;
  line-height: 1.2;
  transform: translate3d(0, 0, 0);
  /* no CSS animation — JS rAF loop */
}

.shoutout-belt__viewport:hover .shoutout-belt__track {
  /* pause handled in JS */
}

.shoutout-belt__strip {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  flex-shrink: 0;
  box-sizing: border-box;
}

.shoutout-belt__strip + .shoutout-belt__strip {
  padding-left: 3rem;
}

.shoutout-belt__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.35rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.shoutout-belt__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #333;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.shoutout-belt__avatar--ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
}

.shoutout-belt__name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.92;
}

.shoutout-belt__msg {
  font-size: 0.8rem;
  font-weight: 500;
}

.shoutout-belt__time {
  font-size: 0.58rem;
  font-weight: 500;
  opacity: 0.45;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.shoutout-belt__sep {
  opacity: 0.35;
  padding: 0 0.35rem;
  user-select: none;
}

.shoutout-mine-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.shoutout-mine-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 6px;
  background: var(--panel, #fff);
}

.shoutout-mine-row__body {
  flex: 1 1 auto;
  min-width: 0;
}

.shoutout-mine-row__delete {
  flex: 0 0 auto;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  margin-top: 0.05rem;
}

.shoutout-mine-row__msg {
  margin: 0 0 0.2rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.shoutout-mine-row__time {
  font-size: 0.72rem;
}
