/* =========================================================
   vseti.su — плагин «Онлайн-радио» (тёмная тема)
   Подключать ПОСЛЕ night.css / styles.css
   ========================================================= */

/* --- Мини-плеер (всегда поверх, в углу) --- */
#vr-radio {
  position: fixed;
  right: 16px;
  bottom: 76px;
  z-index: 99999;
  width: 320px;
  max-width: calc(100vw - 24px);
  background: #1C1F27;
  border: 1px solid #30343f;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.55);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 13px;
  user-select: none;
  transition: transform .2s ease, opacity .2s ease;
}
#vr-radio.vr-collapsed { transform: translateY(6px); opacity:.97; }
#vr-radio.vr-hidden { opacity:0; pointer-events:none; transform:translateY(16px); }

/* Шапка мини-плеера (перетаскивание) */
#vr-radio .vr-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  cursor: grab;
  touch-action: none;
  border-bottom: 1px solid #2b303b;
}
#vr-radio .vr-head:active { cursor: grabbing; }
#vr-radio .vr-handle { color:#6C8089; font-size:14px; line-height:1; }
#vr-radio .vr-station-mark {
  width: 34px; height: 34px; flex:0 0 34px; border-radius:10px;
  display:grid; place-items:center; font-weight:800; color:#fff;
  background:linear-gradient(145deg,#ff2442,#7b42f6); font-size:12px;
}
#vr-radio .vr-name { flex:1; min-width:0; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#vr-radio .vr-status { color:#8B93A1; font-size:10px; margin-top:1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#vr-radio .vr-icon { border:0; background:transparent; color:#AEBDCD; cursor:pointer; font-size:15px; line-height:1; padding:4px; border-radius:6px; }
#vr-radio .vr-icon:hover { background:#2c303c; color:#fff; }

/* Нижний блок управления */
#vr-radio .vr-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
}
#vr-radio .vr-play {
  width: 40px; height: 40px; flex:0 0 40px; border:0; border-radius:50%;
  background:#fff; color:#181a20; cursor:pointer; font-size:15px;
  display:grid; place-items:center;
}
#vr-radio .vr-play:hover { background:#eee; }
#vr-radio .vr-vol-wrap { flex:1; display:flex; align-items:center; gap:7px; color:#8B93A1; }
#vr-radio input[type=range].vr-vol { flex:1; accent-color:#ff2442; cursor:pointer; }
#vr-radio .vr-toggle-mini { border:0; background:#2c303c; color:#AEBDCD; border-radius:8px; padding:6px 8px; cursor:pointer; font-size:12px; }
#vr-radio .vr-toggle-mini:hover { background:#383d4a; color:#fff; }

/* Развёрнутый режим: станции */
#vr-radio .vr-body { display:none; max-height:300px; overflow:auto; padding:6px 8px 10px; }
#vr-radio.vr-open .vr-body { display:block; }
#vr-radio .vr-body::-webkit-scrollbar { width:6px; }
#vr-radio .vr-body::-webkit-scrollbar-thumb { background:#383d4a; border-radius:3px; }

/* Форма добавления станции */
#vr-radio .vr-add {
  display:flex; gap:6px; padding:8px; border-bottom:1px solid #2b303b;
}
#vr-radio .vr-add input {
  flex:1; min-width:0; border:1px solid #383d4a; border-radius:8px;
  background:#14161c; color:#fff; padding:7px 9px; font-size:12px; outline:none;
}
#vr-radio .vr-add input:focus { border-color:#7b42f6; }
#vr-radio .vr-add button {
  border:0; background:#7b42f6; color:#fff; border-radius:8px; padding:0 12px;
  font-weight:700; cursor:pointer; font-size:12px;
}
#vr-radio .vr-add button:hover { background:#8f58ff; }

/* Список станций */
#vr-radio .vr-station {
  display:flex; align-items:center; gap:9px; width:100%;
  border:0; background:transparent; color:#D6DADE; text-align:left;
  padding:8px 9px; border-radius:9px; cursor:pointer; font-size:12.5px;
}
#vr-radio .vr-station:hover { background:#262b36; }
#vr-radio .vr-station.active { background:#2a1f25; color:#fff; }
#vr-radio .vr-station .vr-sm { width:28px; height:28px; flex:0 0 28px; border-radius:8px; display:grid; place-items:center; font-weight:800; background:#363b47; color:#fff; font-size:11px; }
#vr-radio .vr-station.active .vr-sm { background:#ff2d4b; }
#vr-radio .vr-station .vr-st { flex:1; min-width:0; }
#vr-radio .vr-station .vr-st b { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-weight:650; }
#vr-radio .vr-station .vr-st span { display:block; color:#8B93A1; font-size:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#vr-radio .vr-rm { border:0; background:transparent; color:#6C8089; cursor:pointer; font-size:14px; padding:4px 6px; border-radius:6px; opacity:0; }
#vr-radio .vr-station:hover .vr-rm { opacity:1; }
#vr-radio .vr-rm:hover { color:#ff5a5a; background:#332628; }

/* Кнопка-плашка для открытия, когда плеер свёрнут до плашки */
#vr-radio.vr-chip {
  width:auto; border-radius:999px; padding:6px 10px; bottom:76px;
}
#vr-radio.vr-chip .vr-head { border-bottom:0; padding:0; }
#vr-radio.vr-chip .vr-chip-label { font-weight:700; font-size:12px; margin:0 6px; }
#vr-radio.vr-chip .vr-body { display:none !important; }

/* Мобильные */
@media (max-width:640px) {
  #vr-radio { right:10px; bottom:70px; width:294px; }
}

/* Тёмные автозаполнения не мешают */
#vr-radio input:-webkit-autofill { -webkit-text-fill-color:#fff; transition: background-color 5000s ease-in-out 0s; }