/* ---------- Windows Media Player (XP / WMP 9 style) ---------- */
.window-body.wmp-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0 3px 3px !important;
  padding: 0 !important;
  overflow: hidden !important;
}
.wmp-body > .window-content.wmp {
  flex: 1;
  width: auto;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  font: 11px Tahoma, "Segoe UI", sans-serif;
  color: #fff;
  background: linear-gradient(#27468f, #102a63);
  user-select: none;
}

/* Menu bar */
.wmp-menu {
  display: flex;
  height: 20px;
  align-items: center;
  padding: 0 4px;
  background: linear-gradient(#3a64b8, #25479a);
  border-bottom: 1px solid #0b1d47;
  flex-shrink: 0;
}
.wmp-menu span {
  padding: 2px 7px;
  color: #e6eeff;
  cursor: default;
  border-radius: 2px;
}
.wmp-menu span:hover { background: rgba(255,255,255,.18); }

/* Main area: feature taskbar + pane */
.wmp-main { flex: 1; display: flex; min-height: 0; }

.wmp-tabs {
  width: 108px;
  flex-shrink: 0;
  padding: 8px 0;
  background: linear-gradient(90deg, #1b3a82, #2a51a8 85%, #1d3b80);
  border-right: 1px solid #0a1a40;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
}
.wmp-tab {
  padding: 6px 8px 6px 10px;
  color: #dfe8ff;
  font-weight: bold;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  border-left: 0;
  border-radius: 0 3px 3px 0;
  margin-right: 6px;
}
.wmp-tab:hover { color: #fff; background: rgba(255,255,255,.12); }
.wmp-tab.active {
  color: #10214d;
  background: linear-gradient(#f7fbff, #c6d6f4);
  border-color: #8fa9df;
}

.wmp-pane { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.wmp-page { flex: 1; display: none; min-height: 0; }
.wmp-page.active { display: flex; }

/* Now Playing */
.wmp-np { flex-direction: column; }
.wmp-np-top {
  height: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
  background: linear-gradient(#0d2250, #06142f);
  border-bottom: 1px solid #000;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
}
.wmp-np-top .wmp-viz-nav {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 1px solid #5f7fc4;
  background: radial-gradient(circle at 40% 30%, #6d8fd8, #1b3470);
  color: #fff;
  font-size: 8px;
  line-height: 13px;
  text-align: center;
  cursor: pointer;
  flex-shrink: 0;
}
.wmp-np-top .wmp-viz-nav:hover { filter: brightness(1.3); }
.wmp-viz-name { color: #9fb8ec; overflow: hidden; text-overflow: ellipsis; }
.wmp-np-title { margin-left: auto; color: #fff; font-weight: bold; overflow: hidden; text-overflow: ellipsis; }

.wmp-np-body { flex: 1; display: flex; min-height: 0; }
.wmp-stage { flex: 1; position: relative; background: #000; min-width: 0; }
.wmp-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; }

.wmp-list {
  width: 170px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #0c1d44;
  border-left: 1px solid #000;
  min-height: 0;
}
.wmp-list-head {
  padding: 4px 6px;
  background: linear-gradient(#2c4f9e, #183572);
  border-bottom: 1px solid #06122e;
  font-weight: bold;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wmp-list ul {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 2px 0;
  overflow-y: auto;
  min-height: 0;
}
.wmp-list li {
  display: flex;
  gap: 4px;
  padding: 2px 6px;
  color: #b9c9ee;
  cursor: default;
  white-space: nowrap;
}
.wmp-list li span:first-child { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.wmp-list li span:last-child { color: #7f95c8; }
.wmp-list li:hover { background: rgba(255,255,255,.08); }
.wmp-list li.sel { background: #2a4f9f; color: #fff; }
.wmp-list li.current { color: #ffe36b; font-weight: bold; }
.wmp-list li.current span:last-child { color: #ffe36b; }
.wmp-list-foot {
  padding: 3px 6px;
  border-top: 1px solid #06122e;
  background: #0a1837;
  color: #9fb8ec;
  text-align: right;
}

/* Media Library */
.wmp-lib { flex-direction: column; background: #fff; color: #000; }
.wmp-lib-bar {
  padding: 4px 8px;
  background: linear-gradient(#f4f7fd, #d9e3f6);
  border-bottom: 1px solid #9eb2d9;
  color: #10214d;
  font-weight: bold;
}
.wmp-lib-scroll { flex: 1; overflow: auto; min-height: 0; }
.wmp-lib table { width: 100%; border-collapse: collapse; }
.wmp-lib th {
  position: sticky; top: 0;
  text-align: left;
  font-weight: normal;
  padding: 3px 6px;
  background: linear-gradient(#fff, #e6e6e0);
  border-right: 1px solid #d0d0bf;
  border-bottom: 1px solid #c4c4b4;
}
.wmp-lib td { padding: 2px 6px; white-space: nowrap; cursor: default; }
.wmp-lib tr:nth-child(even) td { background: #f3f6fc; }
.wmp-lib tr.sel td { background: #316ac5; color: #fff; }
.wmp-lib tr.current td:first-child { font-weight: bold; }

/* Placeholder pages */
.wmp-empty {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(#f6f9ff, #d6e2f7);
  color: #10214d;
  text-align: center;
  padding: 20px;
}
.wmp-empty b { font-size: 14px; }

/* Transport bar */
.wmp-controls {
  flex-shrink: 0;
  padding: 3px 8px 6px;
  background: linear-gradient(#5a78b8, #2f4f94 40%, #1b356f);
  border-top: 1px solid #8ba4dc;
}
.wmp-status {
  display: flex;
  justify-content: space-between;
  color: #d7e3ff;
  padding: 0 2px 3px;
  white-space: nowrap;
}
.wmp-status span:first-child { overflow: hidden; text-overflow: ellipsis; margin-right: 8px; }

.wmp-seek {
  position: relative;
  height: 8px;
  margin: 0 2px 6px;
  border-radius: 4px;
  background: #0b1a3d;
  box-shadow: inset 0 1px 2px #000, 0 1px 0 rgba(255,255,255,.25);
  cursor: pointer;
}
.wmp-seek-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  border-radius: 4px;
  background: linear-gradient(#9ee26a, #3f9d1c);
  width: 0;
}
.wmp-seek-thumb, .wmp-vol-thumb {
  position: absolute;
  top: 50%;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #fff, #b8c7e6 60%, #6a82b8);
  border: 1px solid #243f7d;
  left: 0;
}

.wmp-buttons { display: flex; align-items: center; gap: 4px; }
.wmp-btn {
  width: 24px; height: 24px;
  padding: 0; min-width: 0; min-height: 0;
  border-radius: 50%;
  border: 1px solid #1b2f5e;
  background: radial-gradient(circle at 50% 25%, #f5f8ff, #b3c3e4 55%, #7188bb);
  box-shadow: 0 1px 1px rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.wmp-btn:hover { filter: brightness(1.12); }
.wmp-btn:active { background: radial-gradient(circle at 50% 70%, #f5f8ff, #9fb2da 55%, #5d74a8); }
.wmp-btn:focus { outline: none; }
.wmp-btn.on { background: radial-gradient(circle at 50% 25%, #fff6c9, #f2c94c 55%, #b07d0e); }
.wmp-btn svg { width: 12px; height: 12px; fill: #13285a; }
.wmp-btn.big {
  width: 38px; height: 38px;
  border: 1px solid #0f2a13;
  background: radial-gradient(circle at 50% 22%, #e6ffd4, #6ccf3a 50%, #2d7f14);
  margin: 0 4px;
}
.wmp-btn.big:active { background: radial-gradient(circle at 50% 70%, #e6ffd4, #5bbb2c 50%, #256a10); }
.wmp-btn.big svg { width: 18px; height: 18px; fill: #fff; filter: drop-shadow(0 1px 0 rgba(0,0,0,.4)); }
.wmp-sep { flex: 1; }

.wmp-vol {
  position: relative;
  width: 70px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #0b1a3d, #0b1a3d);
  box-shadow: inset 0 1px 2px #000;
  cursor: pointer;
}
.wmp-vol-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #6d8fd8, #cfe0ff);
}
.wmp-vol-thumb { width: 10px; height: 10px; margin: -5px 0 0 -5px; }

/* Narrow windows: drop the playlist and shrink the taskbar */
.wmp.narrow .wmp-list { display: none; }
.wmp.narrow .wmp-tabs { width: 76px; }
.wmp.narrow .wmp-tab { padding: 5px 4px 5px 6px; font-size: 10px; }
