/* ==============================
   XP Playlist Window Chrome
================================= */
body.theme-xp .win.playlistWin {
  border: 2px solid #4a76c4;
  border-radius: 8px;
  background: linear-gradient(to bottom, #f0f7ff, #bdd4f9);
  box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}

/* XP titlebar */
body.theme-xp .win.playlistWin .titlebar {
  background: linear-gradient(to bottom, #3a6fd9, #2b59b5);
  color: #fff;
  font-family: Tahoma, sans-serif;
  font-size: 13px;
  font-weight: bold;
  padding: 4px 8px;
  border-bottom: 1px solid #1c3c7d;
  border-radius: 6px 6px 0 0;
  text-shadow: 0 1px 1px rgba(0,0,0,0.5);
}

/* ===============================
   XP Media Player Skin (Playlist)
================================== */

/* Whole playlist window */
body.theme-xp .win.playlistWin {
  border: 2px solid #4a76c4;
  border-radius: 10px;
  background: #f0f7ff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Titlebar (XP glossy) */
body.theme-xp .win.playlistWin .titlebar {
  background: linear-gradient(to bottom, #4a8df7, #2b59b5);
  color: #fff;
  font-family: Tahoma, sans-serif;
  font-size: 13px;
  font-weight: bold;
  padding: 5px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1c3c7d;
  text-shadow: 0 1px 1px rgba(0,0,0,0.4);
}

/* Visualizer area */
body.theme-xp .playlistBody .visualizer {
  flex: 1;
  background: #000;
  margin: 6px;
  border: 2px inset #333;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f0;
  font-size: 12px;
}

/* Track list (XP style) */
body.theme-xp .playlistBody .tracklist {
  flex: 1;
  background: #fff;
  border: 1px solid #7a9fdc;
  overflow-y: auto;
  font-family: Tahoma, sans-serif;
  font-size: 12px;
}
body.theme-xp .playlistBody .tracklist .track {
  padding: 4px 6px;
  border-bottom: 1px solid #c5d9f7;
  cursor: pointer;
}
body.theme-xp .playlistBody .tracklist .track:nth-child(even) {
  background: #f3f8ff;
}
body.theme-xp .playlistBody .tracklist .track:hover {
  background: #dce8fb;
}

/* Control bar */
body.theme-xp .playlistBody .controls {
  background: linear-gradient(to top, #d6e6ff, #fefefe);
  border-top: 1px solid #7a9fdc;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* XP buttons */
body.theme-xp .playlistBody .controls button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #4a76c4;
  background: radial-gradient(circle at 30% 30%, #fff, #a6c9f9);
  box-shadow: inset 0 1px 0 #fff, inset -1px -1px 2px rgba(0,0,0,0.2);
  cursor: pointer;
}
body.theme-xp .playlistBody .controls button:hover {
  background: radial-gradient(circle at 30% 30%, #fff, #80b5ff);
}

/* Progress bar */
body.theme-xp .playlistBody .progress {
  flex: 1;
  height: 6px;
  margin: 0 8px;
  background: #bdd4f9;
  border: 1px solid #7a9fdc;
  border-radius: 3px;
  overflow: hidden;
}
body.theme-xp .playlistBody .progress .fill {
  width: 40%;
  height: 100%;
  background: linear-gradient(to right, #4ad24a, #00cc00);
}

/* Cassette Player (Win95 style) */
#player95{background:#c0c0c0;color:#000;border:2px solid #fff;border-right-color:#808080;border-bottom-color:#808080;border-radius:4px;padding:10px;box-shadow:inset -2px -2px 3px rgba(0,0,0,.5), inset 2px 2px 3px rgba(255,255,255,.5);font-family:'Press Start 2P'}
#player95 canvas{display:block;width:100%;height:80px;background:#000;margin-bottom:5px}
#player95 .controls{display:flex;align-items:center;margin-bottom:10px}
#player95 .controls button{background:#d0d0d0;border:2px solid #f8f8f8;border-right-color:#808080;border-bottom-color:#808080;padding:2px 8px;margin-right:5px;cursor:pointer;font-size:12px}
#player95 .controls input[type="range"]{flex:1}
#player95 ul{list-style:none;max-height:120px;overflow-y:auto;padding-left:10px;margin:5px 0;background:#e0e0e0;border:1px solid #fff;border-right-color:#808080;border-bottom-color:#808080}
