/* OSD Base Typography */
.channel-osd, #vol-osd, #vote-osd, .ticker, .mtv-lower {
  font-family: 'VT323', monospace;
}

/* Channel info OSD */
.channel-osd {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.channel-osd.show {
  opacity: 1;
  animation: osd-fade 3s forwards;
}

@keyframes osd-fade {
  0% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; }
}

.channel-number {
  font-size: 48px;
  color: var(--neon-yellow);
  text-shadow: 0 0 10px rgba(212,255,0,0.8), 2px 2px 0 rgba(0,0,0,0.5);
  line-height: 1;
}

.channel-name {
  font-size: 20px;
  color: var(--neon-yellow);
  text-shadow: 0 0 8px rgba(212,255,0,0.6);
  margin-top: 4px;
}

.now-playing {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* OSD Volumen retro */
#vol-osd {
  position: absolute;
  bottom: 40px;
  right: 16px;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  background: rgba(0,0,0,0.75);
  padding: 8px 12px;
  border-left: 3px solid var(--neon-yellow);
  backdrop-filter: blur(4px);
}
#vol-osd.show {
  opacity: 1;
  animation: osd-fade 2.5s forwards;
}
#vol-osd-label {
  font-size: 13px;

  color: var(--neon-yellow);
  letter-spacing: 3px;
  margin-bottom: 5px;
}
#vol-osd-segs {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 18px;
}
.vol-osd-seg {
  width: 8px;
  border-radius: 1px;
  background: rgba(255,255,255,0.15);
}
.vol-osd-seg.active {
  background: var(--neon-yellow);
  box-shadow: 0 0 4px var(--neon-yellow);
}
.vol-osd-seg.active.danger {
  background: var(--neon-red);
  box-shadow: 0 0 4px var(--neon-red);
}
#vol-osd-pct {
  font-size: 22px;

  color: #fff;
  letter-spacing: 1px;
  text-align: right;
  margin-top: 2px;
}

/* ── OSD Votación retro ── */
@keyframes vote-in {
  0%   { transform: translateX(110%); opacity: 0; }
  100% { transform: translateX(0);    opacity: 1; }
}
@keyframes vote-out {
  0%   { transform: translateX(0);    opacity: 1; }
  100% { transform: translateX(110%); opacity: 0; }
}
@keyframes vote-confirm {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}
#vote-osd {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 25;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  pointer-events: auto;
}
#vote-osd.show {
  display: flex;
  animation: vote-in 0.4s cubic-bezier(0.22,1,0.36,1) forwards;
}
#vote-osd.hide {
  animation: vote-out 0.3s ease-in forwards;
}
#vote-osd-label {
  font-size: 12px;

  color: rgba(255,255,255,0.4);
  letter-spacing: 3px;
}
#vote-btn {
  background: linear-gradient(to bottom, #1a1a0a, #0d0d05);
  border: 2px solid #D4FF00;
  color: #D4FF00;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(212,255,0,0.2), 0 4px 0 #060600, inset 0 1px 0 rgba(255,255,255,0.05);
  border-radius: 50%;
  transition: all 0.1s;
  display: flex;
  align-items: center;
  gap: 0;
}
#vote-btn:hover {
  background: linear-gradient(to bottom, #2a2a10, #1a1a08);
  box-shadow: 0 0 20px rgba(212,255,0,0.45), 0 4px 0 #060600;
}
#vote-btn:active {
  transform: translateY(3px);
  box-shadow: 0 0 12px rgba(212,255,0,0.3), 0 1px 0 #060600;
}
#vote-btn.voted {
  border-color: #00ff88;
  color: #00ff88;
  box-shadow: 0 0 20px rgba(0,255,136,0.3), 0 4px 0 #003320;
  animation: vote-confirm 0.4s ease;
  cursor: default;
}
#vote-count {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 2px;
  text-align: right;
}

/* Bottom ticker */
.ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(212,255,0,0.9);
  color: #000;
  font-size: 16px;

  padding: 4px 0;
  overflow: hidden;
  z-index: 20;
  transition: opacity 1.5s ease;
}

.ticker-inner {
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}

@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* MTV Raps lower third */
.mtv-lower {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  z-index: 25;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.mtv-lower.show {
  opacity: 1;
  transform: translateY(0);
}

.mtv-lower-bar {
  display: inline-flex;
  flex-direction: column;
  margin-left: 20px;
  background: #000;
  padding: 0;
  max-width: 85%;
}

.mtv-lower-label {
  background: var(--neon-red);
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 3px 10px;
  text-transform: uppercase;
}

.mtv-lower-title {
  font-size: 28px;

  color: var(--neon-yellow);
  letter-spacing: 2px;
  padding: 2px 10px 4px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* No signal screen */
.no-signal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  z-index: 15;
}

.no-signal.hidden { display: none; }

.no-signal-text {
  font-size: 64px;

  color: #fff;
  text-shadow: 2px 2px 0 #888;
  animation: nosignal-flicker 0.15s infinite;
}

@keyframes nosignal-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.no-signal-bars {
  display: flex;
  gap: 4px;
  margin-top: 20px;
}

.no-signal-bar {
  width: 60px;
  height: 200px;
}