/* Дополнения к существующему оформлению. Цвета и расположение карточек сохранены. */
button.playlist-card { border: 0; font-family: inherit; font-size: 16px; color: inherit; flex-shrink: 0; }
button.track { display: block; width: 100%; border: 0; text-align: left; font-family: inherit; font-size: 16px; color: inherit; }
.track:disabled { opacity: .55; cursor: not-allowed; }
button:focus-visible, input:focus-visible { outline: 2px solid #3b82f6; outline-offset: 3px; }
.player-btn:disabled, .big-btn:disabled { opacity: .45; cursor: default; }
.player-seekbar { min-width: 0; width: auto !important; }
.volume-control { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.volume-control input { width: 92px; accent-color: #2196f3; }
.volume-control output { color: #cfd1d6; font: 12px monospace; min-width: 32px; }
.volume-button { border: 0; border-radius: 8px; padding: 7px; min-width: 34px; min-height: 34px; background: #333; color: #fff; font-size: 18px; cursor: pointer; }
.mobile-volume-control { display: none; position: relative; }
.mobile-volume-popup { position: absolute; right: 0; top: calc(100% + 10px); display: flex; align-items: center; gap: 10px; width: 200px; padding: 12px; border: 1px solid #444; border-radius: 12px; background: #222; box-shadow: 0 5px 20px #0005; z-index: 20; }
.mobile-volume-popup[hidden] { display: none; }
.mobile-volume-popup input { min-width: 0; flex: 1; accent-color: #2196f3; }
.playback-info { display: flex; align-items: center; gap: 20px; min-height: 34px; margin: 6px 4px 8px; }
#now-playing { flex: 1; min-width: 0; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.playback-feedback { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; flex: 0 1 auto; max-width: 50%; min-width: 0; }
.playback-feedback:has(#playback-status:empty):has(#playback-retry[hidden]):has(#playback-report[hidden]) { visibility: hidden; }
#playback-status { color: #e5e5e5; font-size: 14px; margin: 0; }
#playback-retry, .catalog-retry { border: 0; border-radius: 8px; padding: 8px 12px; background: #333; color: #fff; cursor: pointer; }
#playback-retry[hidden] { display: none; }
.catalog-message { color: #555; padding: 14px 0; }
.bp-title { display: block; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media ((hover: none) and (pointer: coarse)), (max-width: 900px) {
  body { padding-bottom: calc(var(--audio-panel-height, 194px) + 16px) !important; }
  main { padding-bottom: 16px; }
  #track-list { padding-bottom: 0; }
  .controls { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(6px, 2vw, 12px); }
  .big-btn { box-sizing: border-box; min-width: 0; width: 100%; min-height: 0; height: clamp(52px, 16vw, 72px); padding: 8px 0; font-size: clamp(22px, 7vw, 28px); }
  button.track { font-size: clamp(17px, 3vw, 21px); }
  header .header-row { gap: 10px; }
  .search-container { min-width: 0; margin-left: 0; }
  .header-row h1 { font-size: clamp(26px, 7vw, 35px); }
  .mobile-volume-control { display: none; }
  .mobile-volume-control > button { min-height: 40px; min-width: 40px; }
  .playlists-header { flex-wrap: wrap; gap: 10px; }
  #show-all-playlists { white-space: nowrap; }
  .playback-info { min-height: 20px; margin: 4px 12px 0; justify-content: flex-end; }
  .playback-feedback { max-width: 100%; }
}

/* Очередь воспроизведения */
.queue-open { cursor: pointer; color: inherit; font: inherit; background: transparent; border: 0; padding: 0; text-align: left; }
#bp-title.queue-open { display: block; width: 100%; text-align: center; color: #fff; pointer-events: auto; }
#queue-dialog { box-sizing: border-box; width: min(640px, calc(100% - 24px)); max-height: min(80vh, 760px); border: 0; border-radius: 14px; padding: 20px; background: #f4f4f4; color: #222; }
#queue-dialog::backdrop { background: #0009; }
.queue-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.queue-header h2 { margin: 0; font-size: 1.25rem; }
.queue-header button, .queue-row button { border: 0; border-radius: 8px; background: #e5e5e5; color: #222; min-width: 36px; min-height: 36px; font-size: 18px; cursor: pointer; }
.queue-row button:disabled { opacity: .35; cursor: default; }
.queue-caption { font-weight: bold; margin: 20px 0 8px; }
#queue-current { margin: 0; overflow-wrap: anywhere; }
.queue-hint { color: #555; font-size: 14px; margin: 0 0 10px; }
#queue-list { list-style: none; margin: 0; padding: 0; }
.queue-row { display: flex; align-items: center; gap: 6px; padding: 8px; margin-bottom: 6px; border-radius: 8px; background: #fff; }
.queue-track { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#queue-empty { color: #555; }

.queue-row .queue-handle { background: transparent; color: #777; cursor: grab; touch-action: none; }
.queue-row.queue-dragging { opacity: .55; }

#playback-report[hidden] { display: none; }
