/* ── Weuf Player – Frontend Styles ──────────────────────────── */

:root {
  --weuf-dark-bg:      #1a1a2e;
  --weuf-dark-surface: #16213e;
  --weuf-dark-card:    #0f3460;
  --weuf-dark-accent:  #e94560;
  --weuf-dark-text:    #eaeaea;
  --weuf-dark-sub:     #a8a8b3;

  --weuf-light-bg:      #f0f4ff;
  --weuf-light-surface: #ffffff;
  --weuf-light-card:    #e8edf8;
  --weuf-light-accent:  #4a6cf7;
  --weuf-light-text:    #1a1a2e;
  --weuf-light-sub:     #6b7280;
}

.weuf-player {
  font-family: 'Segoe UI', system-ui, sans-serif;
  max-width: 400px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  transition: all .3s ease;
}

/* ── Themes ───────────────────────────────────────────────── */
.weuf-theme-dark  { background: var(--weuf-dark-bg);   color: var(--weuf-dark-text); }
.weuf-theme-light { background: var(--weuf-light-bg);  color: var(--weuf-light-text); }

/* ── Offline / no-schedule banners ────────────────────────── */
.weuf-offline-banner,
.weuf-no-schedule-banner {
  padding: 28px 20px;
  text-align: center;
  font-size: 1rem;
  letter-spacing: .02em;
}
.weuf-theme-dark  .weuf-offline-banner,
.weuf-theme-dark  .weuf-no-schedule-banner { background: var(--weuf-dark-surface); }
.weuf-theme-light .weuf-offline-banner,
.weuf-theme-light .weuf-no-schedule-banner { background: var(--weuf-light-card); }
.weuf-icon { font-size: 1.6rem; display: block; margin-bottom: 6px; }

/* ── Header ───────────────────────────────────────────────── */
.weuf-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 20px 4px;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .7;
}
.weuf-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #e94560;
  animation: weuf-blink 1.4s ease-in-out infinite;
}
@keyframes weuf-blink { 0%,100%{opacity:1} 50%{opacity:.2} }

/* ── Vinyl ────────────────────────────────────────────────── */
.weuf-album-art {
  display: flex;
  justify-content: center;
  padding: 20px 0 10px;
}
.weuf-vinyl {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: conic-gradient(
    #111 0deg, #222 20deg, #111 40deg, #222 60deg,
    #111 80deg, #222 100deg, #111 120deg, #222 140deg,
    #111 160deg, #222 180deg, #111 200deg, #222 220deg,
    #111 240deg, #222 260deg, #111 280deg, #222 300deg,
    #111 320deg, #222 340deg, #111 360deg
  );
  box-shadow: 0 0 30px rgba(233,69,96,.3), inset 0 0 20px rgba(0,0,0,.8);
  position: relative;
  transition: transform .1s linear;
}
.weuf-vinyl::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle, #444 30%, #222 100%);
  box-shadow: 0 0 6px rgba(0,0,0,.6);
}
.weuf-vinyl.weuf-spinning {
  animation: weuf-spin 4s linear infinite;
}
@keyframes weuf-spin { to { transform: rotate(360deg); } }

/* ── Track info ───────────────────────────────────────────── */
.weuf-track-title-above {
  padding: 12px 20px 0;
  text-align: center;
}
.weuf-track-title {
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.weuf-track-info {
  padding: 2px 20px 4px;
  text-align: center;
}
.weuf-track-index {
  font-size: .8rem;
  opacity: .6;
  margin-top: 2px;
}

/* ── Progress ─────────────────────────────────────────────── */
.weuf-progress-bar {
  margin: 12px 20px 0;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,.15);
  cursor: pointer;
}
.weuf-theme-light .weuf-progress-bar { background: rgba(0,0,0,.12); }
.weuf-progress-fill {
  height: 100%;
  border-radius: 4px;
  width: 0;
  background: var(--weuf-dark-accent);
  transition: width .5s linear;
}
.weuf-theme-light .weuf-progress-fill { background: var(--weuf-light-accent); }
.weuf-time-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 20px 0;
  font-size: .72rem;
  opacity: .55;
}

/* ── Controls ─────────────────────────────────────────────── */
.weuf-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 20px;
}
.weuf-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: inherit;
  opacity: .75;
  transition: opacity .2s, transform .15s;
  padding: 6px 10px;
  border-radius: 8px;
}
.weuf-btn:hover { opacity: 1; transform: scale(1.15); }
.weuf-play-pause {
  font-size: 1.6rem !important;
  opacity: 1 !important;
  background: var(--weuf-dark-accent) !important;
  border-radius: 50% !important;
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  cursor: pointer;
  color: #fff;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 4px 18px rgba(233,69,96,.45);
}
.weuf-play-pause:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(233,69,96,.6); }
.weuf-theme-light .weuf-play-pause { background: var(--weuf-light-accent) !important; box-shadow: 0 4px 18px rgba(74,108,247,.35); }
.weuf-volume-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}
.weuf-volume {
  width: 80px;
  accent-color: var(--weuf-dark-accent);
}
.weuf-theme-light .weuf-volume { accent-color: var(--weuf-light-accent); }

/* ── Background image overlay ─────────────────────────────── */
.weuf-player[style*="background-image"] {
  position: relative;
}
.weuf-player[style*="background-image"]::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: rgba(10, 10, 20, 0.72);
  pointer-events: none;
  z-index: 0;
}
.weuf-player[style*="background-image"] > * {
  position: relative;
  z-index: 1;
}

/* ── Marquee ──────────────────────────────────────────────── */
.weuf-marquee-wrap {
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 8px 0;
  margin: 0 0 4px;
  background: rgba(0,0,0,.18);
}
.weuf-theme-light .weuf-marquee-wrap {
  border-color: rgba(0,0,0,.08);
  background: rgba(0,0,0,.04);
}
.weuf-marquee {
  display: flex;
  white-space: nowrap;
}
.weuf-marquee span {
  display: inline-block;
  padding-left: 100%;
  font-size: .8rem;
  letter-spacing: .03em;
  animation: weuf-marquee-scroll 18s linear infinite;
  opacity: .75;
}
@keyframes weuf-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ── Next schedule ────────────────────────────────────────── */
.weuf-next-schedule {
  text-align: center;
  padding: 6px 20px 16px;
  opacity: .55;
  font-size: .78rem;
}

/* ── Online listeners box ────────────────────────────────────── */
.weuf-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.weuf-online-box {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.10);
  border-radius: 20px;
  padding: 3px 10px 3px 7px;
  font-size: .78rem;
}
.weuf-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4caf50;
  display: inline-block;
  animation: weuf-pulse-green 1.6s ease-in-out infinite;
}
@keyframes weuf-pulse-green {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.3); }
}
.weuf-online-count {
  font-weight: 700;
  font-size: .85rem;
}
.weuf-online-label {
  opacity: .75;
}
