/* ==========================================================================
   lcd.css — WINAMP 2026
   Bright, readable phosphor LCD with strong glow. Every character visible.
   ========================================================================== */

/* --------------------------------------------------------------------------
   LCD Panel Container
   -------------------------------------------------------------------------- */
.lcd-section {
  background: var(--lcd-bg);
  border-radius: var(--radius-inner);
  padding: 14px 14px;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 4px rgba(0, 0, 0, 0.6),
    inset 0 0 12px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   Vignette — very subtle, must not hurt text readability
   -------------------------------------------------------------------------- */
.lcd-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 50%,
    transparent 60%,
    rgba(0, 0, 0, 0.15) 100%
  );
  pointer-events: none;
  z-index: 3;
}

/* --------------------------------------------------------------------------
   Scanlines — extremely subtle, readability first
   -------------------------------------------------------------------------- */
.lcd-scanlines,
.lcd-vignette,
.lcd-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.05) 2px,
    rgba(0, 0, 0, 0.05) 3px
  );
  pointer-events: none;
  z-index: 4;
}

/* --------------------------------------------------------------------------
   LCD Content Layer
   -------------------------------------------------------------------------- */
.lcd-content {
  position: relative;
  z-index: 2;
}

.lcd-top-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   Time Display — Big, bold, bright, unmissable
   -------------------------------------------------------------------------- */
.lcd-time {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--lcd-text);
  line-height: 1;
  letter-spacing: 2px;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  text-shadow:
    0 0 6px var(--lcd-glow),
    0 0 14px var(--lcd-glow),
    0 0 30px var(--lcd-glow-wide);
}

.lcd-time-digits {
  font-family: var(--font-mono);
}

.lcd-time-colon {
  font-family: var(--font-mono);
}

.lcd-time-colon.is-hidden {
  visibility: hidden;
}

/* --------------------------------------------------------------------------
   LCD Info (sample rate, bitrate) — readable dim green
   -------------------------------------------------------------------------- */
.lcd-info {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.lcd-samplerate,
.lcd-bitrate {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--lcd-dim);
  text-shadow: 0 0 4px var(--lcd-glow-wide);
}

/* --------------------------------------------------------------------------
   Status Badges — Clearly readable
   -------------------------------------------------------------------------- */
.lcd-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
  position: relative;
  z-index: 2;
}

/* DL badge holds "DL 45%" style progress; pulses softly while active. */
.lcd-badge-dl {
  min-width: 42px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.lcd-badge-dl.is-pulsing {
  animation: lcd-dl-pulse 1.4s ease-in-out infinite;
}
@keyframes lcd-dl-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

.lcd-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1;
  color: var(--lcd-dim);
  padding: 2px 4px;
  position: relative;
  transition:
    color var(--transition-fast),
    text-shadow var(--transition-fast);
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}

/* Active badge — bright green, clearly lit */
.lcd-badge.is-active {
  color: var(--lcd-text);
  text-shadow:
    0 0 4px var(--lcd-glow),
    0 0 10px var(--lcd-glow),
    0 0 20px var(--lcd-glow-wide);
}

/* Glow halo behind active badges */
.lcd-badge.is-active::before {
  content: '';
  position: absolute;
  inset: -4px -6px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 50%,
    var(--lcd-glow-wide) 0%,
    transparent 70%
  );
  z-index: -1;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Marquee — Bold, bright, readable scrolling text
   -------------------------------------------------------------------------- */
.lcd-marquee-container {
  width: 100%;
  height: 22px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.lcd-marquee {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--lcd-text);
  white-space: nowrap;
  line-height: 22px;
  display: inline-block;
  will-change: transform;
  text-shadow:
    0 0 4px var(--lcd-glow),
    0 0 10px var(--lcd-glow-wide);
  animation: marquee-scroll 12s linear infinite;
}

.lcd-marquee.no-scroll {
  animation: none;
}

.lcd-marquee-container:hover .lcd-marquee {
  animation-play-state: paused;
}

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