/* ================================================
   DBS PLAYER — wmp-skin.css
   Add to bottom of styles.css or link separately
   ================================================ */

/* ── Window skin override ── */
.wmp-skin {
  width: 320px !important;
  min-width: 280px !important;
  min-height: unset !important;
  background: #0a0414 !important;
  border: 1px solid #3d0066 !important;
  box-shadow: 0 0 20px rgba(120,0,255,0.3), 2px 2px 0 #1a0030 !important;
  font-family: 'Courier New', monospace !important;
  color: #cc99ff !important;
}

/* ── Title bar ── */
.wmp-titlebar {
  background: linear-gradient(90deg, #1a0030, #3d0066, #1a0030) !important;
  color: #cc99ff !important;
  font-size: 11px !important;
  letter-spacing: 0.1em !important;
  border-bottom: 1px solid #6600cc !important;
  padding: 5px 8px !important;
}
.wmp-ctrl-btn {
  background: #2a0044 !important;
  border: 1px solid #6600cc !important;
  color: #cc99ff !important;
  font-family: 'Courier New', monospace !important;
  padding: 1px 6px !important;
  cursor: pointer !important;
  font-size: 10px !important;
}
.wmp-ctrl-btn:hover { background: #6600cc !important; color: #fff !important; }

/* ── Body ── */
.wmp-body {
  background: #0a0414;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── LED title display ── */
.wmp-led {
  background: #05020e;
  color: #cc66ff;
  border: 1px solid #3d0066;
  border-left: none; border-right: none;
  padding: 5px 8px;
  font-size: 11px;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 8px rgba(180,80,255,0.8);
}

/* ── Visualizer + album art display ── */
.wmp-display {
  position: relative;
  height: 120px;
  min-height: 120px;
  max-height: 120px;
  flex-shrink: 0;
  background: #05020e;
  border-bottom: 1px solid #2a0044;
  overflow: hidden;
}

/* Time overlay */
#wmp-time-overlay {
  position: absolute;
  bottom: 4px;
  left: 6px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: rgba(204,153,255,0.9);
  z-index: 2;
  text-shadow: 0 0 6px rgba(130,0,255,0.9);
  letter-spacing: 0.06em;
}

/* ── Seek bar ── */
.wmp-seek {
  width: 100%;
  display: block;
  accent-color: #9b30ff;
  height: 14px;
  cursor: pointer;
  background: transparent;
}

/* ── Controls row ── */
.wmp-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: #0d0520;
  border-bottom: 1px solid #2a0044;
  gap: 8px;
}
.wmp-btns { display: flex; gap: 4px; }

.wmp-btn {
  background: #1a0030;
  border: 1px solid #4d0099;
  color: #cc99ff;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  width: 32px; height: 28px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.1s;
  padding: 0;
}
.wmp-btn:hover { background: #4d0099; color: #fff; box-shadow: 0 0 8px rgba(150,0,255,0.5); }
.wmp-btn-play { width: 38px; background: #2a0044; font-size: 16px; }
.wmp-btn-play:hover { background: #6600cc; }

.wmp-badge { font-size: 12px; opacity: 0.5; }
.wmp-badge.on { opacity: 1; background: #4d0099; color: #ff99ff; }

/* Volume */
.wmp-vol-wrap {
  display: flex; align-items: center; gap: 4px;
  font-size: 9px; color: rgba(180,100,255,0.5);
  font-family: 'Courier New', monospace;
  flex: 1;
}
.wmp-vol {
  flex: 1; accent-color: #9b30ff;
  cursor: pointer;
}

/* ── Playlist header ── */
.wmp-pl-header {
  padding: 4px 8px;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(150,80,255,0.5);
  font-family: 'Courier New', monospace;
  border-bottom: 1px solid #1a0030;
  background: #0a0414;
}

/* ── Playlist ── */
.wmp-playlist {
  list-style: none;
  margin: 0; padding: 0;
  max-height: 200px;
  overflow-y: auto;
  background: #07030f;
  border-top: none;
  scrollbar-width: thin;
  scrollbar-color: #3d0066 #07030f;
}
.wmp-playlist::-webkit-scrollbar { width: 4px; }
.wmp-playlist::-webkit-scrollbar-thumb { background: #3d0066; }

.wmp-playlist li {
  padding: 5px 10px;
  font-size: 11px;
  font-family: 'Courier New', monospace;
  color: #9966cc;
  cursor: default;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 1px solid rgba(60,0,100,0.3);
  transition: background 0.1s;
}
.wmp-playlist li:hover { background: #1a0030; color: #cc99ff; cursor: pointer; }
.wmp-playlist li.active {
  background: #3d0066;
  color: #ff99ff;
  text-shadow: 0 0 6px rgba(255,100,255,0.6);
}
.pl-num {
  color: rgba(150,80,255,0.4);
  margin-right: 6px;
  font-size: 10px;
}

/* ── Override base styles.css rules ── */
.wmp-skin .window-content {
  padding: 0 !important;
  background: #0a0414 !important;
  color: #cc99ff !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Fix button styles being overridden */
.wmp-skin .wmp-btn {
  font-family: 'Courier New', monospace !important;
  font-size: 14px !important;
  background: #1a0030 !important;
  border: 1px solid #4d0099 !important;
  color: #cc99ff !important;
  width: 32px !important;
  height: 28px !important;
  cursor: pointer !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.wmp-skin .wmp-btn:hover {
  background: #4d0099 !important;
  color: #fff !important;
}
.wmp-skin .wmp-btn.on {
  background: #4d0099 !important;
  color: #ff99ff !important;
}

/* Fix album art — override .display img rule */
.wmp-skin #cover {
  position: absolute !important;
  right: 0 !important; top: 0 !important;
  height: 100% !important;
  width: auto !important;
  max-width: 50% !important;
  object-fit: contain !important;
  opacity: 0.9 !important;
  z-index: 1 !important;
  filter: none !important;
}

/* Fix list bullets from base styles */
.wmp-skin .wmp-playlist {
  list-style: none !important;
  padding: 0 !important;
}
.wmp-skin .wmp-playlist li {
  list-style: none !important;
}
