:root {
  --bg: #07090d;
  --card-bg: rgba(17,20,27,.78);
  --card-hover: rgba(28,33,43,.92);
  --border: rgba(255,255,255,.075);
  --accent: #00ff7f;
  --text: #f5f7fa;
  --text-muted: #8d96a6;
}

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0;
}

html {
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: var(--bg);
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.table-wrapper::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

html, body {
  width: 100%;
  background:
    radial-gradient(900px 500px at 15% -10%,rgba(0,255,127,.06),transparent 65%),
    radial-gradient(700px 450px at 90% 15%,rgba(95,120,255,.05),transparent 65%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  padding: 16px 16px 140px 16px;
}

header {
  position: sticky;
  top: 8px;
  z-index: 1000;
  max-width: 1440px;
  margin: 0 auto 16px auto;
  background: rgba(7,9,13,.86);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 16px 45px rgba(0,0,0,0.55);
  backdrop-filter: blur(20px) saturate(140%);
}

.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

h1#portalTitle {
  margin: 0;
  font-size: clamp(13px, 3.2vw, 20px);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.8px;
  user-select: none;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.header-sep {
  color: #4a4a58;
  font-weight: 900;
  font-size: clamp(12px, 3vw, 18px);
  user-select: none;
  flex-shrink: 0;
}

#activeChartLabel {
  font-size: clamp(12px, 2.8vw, 16px);
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  min-width: 0;
  flex: 1 1 auto;
}
#activeChartLabel:hover {
  color: var(--accent);
}

.controls-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
}

.search-input {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: #fff;
  padding: 0 14px;
  height: 36px;
  line-height: 36px;
  border-radius: 999px;
  font-size: 13px;
  outline: none;
  width: 240px;
  transition: all 0.2s;
}
.search-input:focus {
  border-color: rgba(0,255,127,.4);
  box-shadow: 0 0 0 4px rgba(0,255,127,.08);
}

.drop-nav-btn {
  background: rgba(255,255,255,.04);
  color: #cbd5e1;
  border: 1px solid var(--border);
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  touch-action: manipulation;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.drop-nav-btn:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
  transform: translateY(-1px);
}
.drop-nav-btn.active {
  background: var(--accent) !important;
  color: #000000 !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 14px rgba(0, 255, 127, 0.4) !important;
}

.tiles-container {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
}
@media (max-width: 1300px) { .tiles-container { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 960px)  { .tiles-container { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.tile {
  width: 100%;
  background: rgba(255,255,255,.035);
  color: #cbd5e1;
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  touch-action: manipulation;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  display: block;
}
.tile:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
  transform: translateY(-1px);
}
.tile.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(0, 255, 127, 0.35);
}
.tile-filter-mode {
  background: #1e1b4b !important;
  color: #a5b4fc !important;
  border-color: #6366f1 !important;
}

.table-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  border-radius: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
table {
  width: 100%;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0 7px;
  text-align: left;
  table-layout: fixed;
}

td.col-pos { width: 44px; text-align: center; }
td.col-cover-td { width: 66px; text-align: center; }
td.col-main-info { width: 330px; }
td.col-actions { width: 320px; text-align: center; }
td.col-label { width: 170px; }
td.col-genre { width: 170px; }
td.col-bpm { width: 75px; text-align: center; }
td.col-key { width: 85px; text-align: center; }

tbody tr {
  background: rgba(17,20,27,.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  transition: transform .16s ease, background .16s ease;
}
tbody tr:hover {
  background: rgba(28,33,43,.92);
  transform: translateY(-1px);
}
tbody td {
  padding: 10px;
  border: 0;
  vertical-align: middle;
}
tbody tr td:first-child { border-radius: 12px 0 0 12px; }
tbody tr td:last-child { border-radius: 0 12px 12px 0; }

.clickable-tag {
  cursor: pointer;
  transition: color 0.15s ease;
  display: inline-block;
}
td.col-main-info {
  white-space: normal !important;
  overflow: visible !important;
  word-break: break-word !important;
  line-height: 1.35;
}
.artist-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  line-height: 1.35;
}
.artist-tag {
  color: #f4f6f8;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.1px;
}
.track-title-text {
  color: #9ca7b6;
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
  line-height: 1.35;
}
.artist-tag:hover,
.track-title-text:hover {
  color: var(--accent) !important;
}
.artist-sep {
  color: #64748b;
  margin-left: -1px;
  margin-right: 2px;
  font-size: 12.5px;
  user-select: none;
}

td.col-label {
  white-space: normal !important;
  word-break: break-word !important;
  line-height: 1.25;
}
.label-tag {
  color: #f59e0b;
  font-size: 12px;
  font-weight: 600;
  display: inline;
}
td.col-genre {
  color: #38bdf8;
  font-size: 12px;
  font-weight: 600;
  white-space: normal !important;
  word-break: break-word !important;
  line-height: 1.25;
}
.key-tag {
  color: #c084fc;
  font-size: 12px;
  font-family: Consolas, monospace;
  font-weight: bold;
}

.img-wrapper {
  position: relative;
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
}
.img-wrapper:hover {
  box-shadow: 0 0 12px rgba(0, 255, 127, 0.4);
  transform: translateY(-1px) scale(1.02);
}
.img-wrapper img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  display: block;
}
.mobile-overlay-pos {
  display: none;
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.6) 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.copy-toast {
  display: none;
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(5, 150, 105, 0.9);
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.btn-group { 
  display: inline-flex; 
  gap: 6px; 
  align-items: center; 
  justify-content: center; 
}
.btn {
  text-decoration: none;
  padding: 0 10px;
  height: 28px;
  line-height: 26px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  touch-action: manipulation;
  border: 1px solid transparent;
  user-select: none;
  transition: all 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-bp {
  background: #102322;
  color: #00ff7f;
  border-color: #174735;
}
.btn-bp:hover {
  background: #00ff7f;
  color: #000;
  border-color: #00ff7f;
  box-shadow: 0 0 8px rgba(0, 255, 127, 0.4);
}
.btn-bp.is-playing {
  background: var(--accent) !important;
  color: #000 !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 10px rgba(0, 255, 127, 0.6) !important;
}
.btn-yt { 
  background: #2b1717; 
  color: #ff4d4d; 
  border-color: #661f1f; 
}
.btn-yt:hover { 
  background: #ff0000; 
  color: #fff; 
  border-color: #ff0000;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
}
.btn-yt.is-playing {
  background: #ff0000 !important;
  color: #fff !important;
  border-color: #ff0000 !important;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.6) !important;
}
.btn-sp { 
  background: #132719; 
  color: #1ed760; 
  border-color: #1a532a; 
}
.btn-sp:hover { 
  background: #1ed760; 
  color: #000; 
  border-color: #1ed760;
  box-shadow: 0 0 8px rgba(30, 215, 96, 0.4);
}
.btn-sp.is-playing {
  background: #1ed760 !important;
  color: #000 !important;
  border-color: #1ed760 !important;
  box-shadow: 0 0 10px rgba(30, 215, 96, 0.6) !important;
}
.btn-drop {
  background: #181820;
  color: #94a3b8;
  border-color: #33333f;
}
.btn-drop:hover {
  background: #242430;
  color: #fff;
  border-color: #555568;
}
.btn-drop.is-dropped {
  background: var(--accent) !important;
  color: #000000 !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 10px rgba(0, 255, 127, 0.4) !important;
}

.mobile-actions { display: none; }
.mobile-genre-text { display: none; }

/* ДОК-ПЛЕЕР ДЕСКТОП */
#bp-audio-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(12,15,20,.96);
  border-top: 1px solid rgba(0,255,127,.35);
  z-index: 999999;
  box-shadow: 0 -16px 50px rgba(0,0,0,.6);
  padding: 8px 24px;
  backdrop-filter: blur(24px) saturate(140%);
}
.dock-content {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  width: 100%;
}
.dock-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 250px;
  min-width: 220px;
  max-width: 280px;
  flex-shrink: 0;
}
.dock-cover-img {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.dock-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}
.dock-artist {
  font-size: 12px;
  font-weight: 750;
  color: #f4f6f8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  line-height: 1.25;
}
.dock-title {
  font-size: 11px;
  font-weight: 500;
  color: #9ca7b6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
  display: block;
  line-height: 1.25;
  transition: color 0.15s;
}
.dock-title:hover {
  color: var(--accent);
}

.dock-player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.dock-btn-icon {
  background: #1c2b22;
  border: 1px solid #234f36;
  color: var(--accent) !important;
  fill: var(--accent) !important;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
  transition: all 0.15s ease;
  padding: 0;
}
.dock-btn-icon svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  pointer-events: none;
}
.dock-btn-icon:hover {
  background: var(--accent);
  color: #000 !important;
  fill: #000 !important;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(0, 255, 127, 0.4);
}
.dock-btn-icon.active {
  background: var(--accent) !important;
  color: #000 !important;
  fill: #000 !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 12px rgba(0, 255, 127, 0.5);
}
.dock-play-toggle-btn {
  background: var(--accent);
  color: #000 !important;
  fill: #000 !important;
  border: 1px solid var(--accent);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s;
  padding: 0;
}
.dock-play-toggle-btn svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  pointer-events: none;
}
.dock-play-toggle-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(0, 255, 127, 0.6);
}

.dock-right-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.dock-progress-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  width: 100%;
  min-width: 0;
}
.dock-time {
  font-family: Consolas, monospace;
  font-size: 11px;
  color: var(--text-muted);
  min-width: 26px;
  flex-shrink: 0;
}
.dock-progress-bar {
  flex: 1;
  width: 100%;
  height: 6px;
  background: #252a32;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.dock-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.1s linear;
}
.dock-close-btn {
  background: #23232b;
  border: 1px solid var(--border);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  font-weight: bold;
  flex-shrink: 0;
  transition: all 0.15s;
}
.dock-close-btn:hover {
  background: #e11d48;
  border-color: #e11d48;
}

footer {
  max-width: 1440px;
  margin: 24px auto 0 auto;
  text-align: center;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.footer-updated-text {
  font-size: 12px;
  color: var(--text-muted);
  font-family: Consolas, monospace;
  letter-spacing: 0.3px;
}

/* МОБИЛЬНЫЙ ВИД */
@media (max-width: 768px), (pointer: coarse) and (max-width: 1024px) {
  body {
    padding: 8px 8px 140px 8px !important;
  }
  header {
    position: sticky;
    top: 6px;
    padding: 10px;
    border-radius: 14px;
    gap: 8px;
    margin-bottom: 10px;
    width: 100% !important;
  }
  .top-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .brand-box {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }
  h1#portalTitle {
    font-size: 13px !important;
  }
  #activeChartLabel {
    font-size: 12px !important;
  }
  .controls-row {
    display: flex !important;
    width: 100% !important;
    gap: 6px !important;
  }
  .search-input {
    height: 34px !important;
    font-size: 12px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  .drop-nav-btn {
    height: 34px !important;
    padding: 0 14px !important;
    font-size: 11px !important;
    flex: 0 0 auto !important;
  }
  .tiles-container {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    padding: 0 !important;
  }
  .tile {
    width: 100% !important;
    padding: 7px 4px !important;
    font-size: 10px !important;
    border-radius: 8px !important;
    text-align: center !important;
  }

  .table-wrapper {
    border-radius: 12px !important;
    background: transparent;
    overflow-x: hidden !important;
    width: 100% !important;
  }
  table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 6px !important;
  }
  tbody tr {
    display: table-row !important;
    background: rgba(17,20,27,.82) !important;
    border-radius: 12px !important;
  }
  tbody td {
    display: table-cell !important;
    vertical-align: middle !important;
    padding: 6px !important;
  }
  tbody tr td:first-child { border-radius: 10px 0 0 10px !important; }
  tbody tr td:last-child { border-radius: 0 10px 10px 0 !important; }

  .col-pos,
  .col-actions,
  .col-label,
  .col-bpm,
  .col-key,
  .col-genre {
    display: none !important;
  }
  
  .col-cover-td {
    display: table-cell !important;
    width: 54px !important;
    padding: 6px 4px !important;
    text-align: center !important;
  }
  .img-wrapper {
    width: 48px !important;
    height: 48px !important;
    border-radius: 8px !important;
  }
  .img-wrapper img {
    width: 48px !important;
    height: 48px !important;
  }
  .mobile-overlay-pos {
    display: flex !important;
    font-size: 14px !important;
  }

  .col-main-info {
    display: table-cell !important;
    width: auto !important;
    padding: 8px 8px 8px 6px !important;
    overflow: visible !important;
  }
  .artist-links {
    line-height: 1.25;
  }
  .artist-tag {
    font-size: 12.5px !important;
    font-weight: 750 !important;
    color: #f4f6f8 !important;
  }
  .track-title-text {
    font-size: 12px !important;
    color: #9aa4b2 !important;
    margin-top: 3px;
    white-space: normal !important;
  }

  .mobile-genre-text {
    display: block !important;
    text-align: right !important;
    color: #38bdf8 !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    margin-top: 2px !important;
    line-height: 1.2 !important;
  }

  .mobile-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 6px !important;
    gap: 4px !important;
  }
  .mobile-actions .btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 0 2px !important;
    height: 25px !important;
    line-height: 23px !important;
    font-size: 10px !important;
    text-align: center !important;
    justify-content: center !important;
  }

  #bp-audio-dock {
    left: 8px !important;
    right: 8px !important;
    bottom: 12px !important;
    width: auto !important;
    border-radius: 14px !important;
    border: 1px solid rgba(0,255,127,.35) !important;
    padding: 8px 12px 6px 12px !important;
    box-shadow: 0 14px 45px rgba(0,0,0,.85) !important;
    backdrop-filter: blur(24px) saturate(150%) !important;
  }
  .dock-content {
    display: grid !important;
    grid-template-columns: 1fr auto auto !important;
    grid-template-areas:
      "meta controls close"
      "progress progress progress" !important;
    align-items: center !important;
    gap: 6px 8px !important;
    width: 100% !important;
  }
  .dock-left-group {
    grid-area: meta;
    min-width: 0 !important;
    width: auto !important;
    gap: 8px !important;
  }
  .dock-cover-img {
    width: 34px !important;
    height: 34px !important;
    border-radius: 6px !important;
  }
  .dock-meta {
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
  }
  .dock-artist {
    font-size: 11.5px !important;
  }
  .dock-title {
    font-size: 10px !important;
  }
  .dock-player-controls {
    grid-area: controls;
    gap: 4px !important;
    justify-content: flex-end !important;
  }
  .dock-btn-icon {
    width: 26px !important;
    height: 26px !important;
  }
  .dock-btn-icon svg {
    width: 11px !important;
    height: 11px !important;
  }
  .dock-play-toggle-btn {
    width: 28px !important;
    height: 28px !important;
  }
  .dock-play-toggle-btn svg {
    width: 12px !important;
    height: 12px !important;
  }
  .dock-right-group {
    grid-area: progress;
    width: 100% !important;
    justify-content: center !important;
    gap: 0 !important;
  }
  .dock-close-btn {
    grid-area: close;
    width: 24px !important;
    height: 24px !important;
    font-size: 10px !important;
  }
  .dock-progress-wrapper {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  .dock-progress-bar {
    width: 100% !important;
    flex: 1 !important;
    height: 4px !important;
  }
  .dock-time {
    font-size: 9.5px !important;
    min-width: 24px !important;
  }
}

/* ==================== GLOBAL PERSISTENT 2X MINI-PLAYER & PIP ==================== */
.floating-mini-player,
.mini-persistent-player {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  width: 340px !important;
  height: 140px !important;
  border-radius: 16px !important;
  background: rgba(18, 18, 22, 0.94) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(0, 255, 127, 0.15) !important;
  z-index: 99999 !important;
  overflow: hidden !important;
  display: none !important; /* Hidden on page while user is on site */
  user-select: none !important;
  box-sizing: border-box !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

.mini-persistent-player.is-active {
  display: flex !important;
}

.mpp-bg {
  position: absolute !important;
  inset: 0 !important;
  background-size: cover !important;
  background-position: center !important;
  filter: blur(14px) brightness(0.28) saturate(1.4) !important;
  transform: scale(1.2) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

.mpp-card {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  padding: 10px 12px !important;
  gap: 12px !important;
  box-sizing: border-box !important;
}

.mpp-cover-wrap {
  position: relative !important;
  width: 80px !important;
  height: 80px !important;
  min-width: 80px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6) !important;
  flex-shrink: 0 !important;
  background: #1c1c22 !important;
}

.mpp-cover-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.mpp-badge {
  position: absolute !important;
  top: 4px !important;
  left: 4px !important;
  font-size: 8px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  padding: 2px 4px !important;
  border-radius: 4px !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6) !important;
}

.mpp-badge.badge-bp { background: #00ff7f !important; color: #000000 !important; }
.mpp-badge.badge-sp { background: #1ed760 !important; color: #000000 !important; }
.mpp-badge.badge-yt { background: #ff0000 !important; color: #ffffff !important; }

.mpp-main {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100% !important;
}

.mpp-top-row {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 6px !important;
}

.mpp-meta {
  min-width: 0 !important;
  flex: 1 !important;
}

.mpp-title {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.25 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9) !important;
}

.mpp-artist {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.7) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.25 !important;
  margin-top: 1px !important;
}

.mpp-actions {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  flex-shrink: 0 !important;
}

.mpp-action-btn {
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  transition: all 0.15s ease !important;
}

.mpp-action-btn:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  transform: scale(1.1) !important;
}

.mpp-action-btn svg {
  width: 12px !important;
  height: 12px !important;
  fill: currentColor !important;
}

.mpp-controls-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  margin: 2px 0 !important;
}

.mpp-ctrl-btn {
  background: transparent !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.8) !important;
  width: 28px !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: transform 0.15s ease, color 0.15s ease !important;
}

.mpp-ctrl-btn:hover {
  color: #ffffff !important;
  transform: scale(1.12) !important;
}

.mpp-ctrl-btn svg {
  width: 16px !important;
  height: 16px !important;
  fill: currentColor !important;
}

.mpp-play-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: none !important;
  color: #000000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
  transition: transform 0.15s ease, background-color 0.15s ease !important;
  padding: 0 !important;
}

.mpp-play-btn:hover {
  transform: scale(1.1) !important;
  background: #00ff7f !important;
}

.mpp-play-btn svg {
  width: 16px !important;
  height: 16px !important;
  fill: currentColor !important;
}

.mpp-progress-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
}

.mpp-progress-bar {
  flex: 1 !important;
  height: 4px !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border-radius: 2px !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: hidden !important;
}

.mpp-progress-fill {
  width: 0%;
  height: 100% !important;
  background: #00ff7f !important;
  border-radius: 2px !important;
  transition: width 0.15s linear !important;
}

.mpp-time-label {
  font-size: 10px !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-variant-numeric: tabular-nums !important;
  min-width: 26px !important;
  text-align: right !important;
}

/* ==================== DOCK ACTIONS (PIP & CLOSE) ==================== */
#bp-audio-dock, #spotify-audio-dock, #youtube-audio-dock {
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease !important;
}

body.is-pip-active #bp-audio-dock,
body.is-pip-active #spotify-audio-dock,
body.is-pip-active #youtube-audio-dock {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(100%) !important;
}

.dock-side-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

.dock-pip-btn {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #b3b3b3 !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background 0.2s, color 0.2s, transform 0.15s !important;
  padding: 0 !important;
}

.dock-pip-btn svg {
  width: 18px !important;
  height: 18px !important;
  fill: currentColor !important;
}

.dock-pip-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  transform: scale(1.06) !important;
}

.dock-pip-btn.is-active {
  background: rgba(0, 255, 127, 0.15) !important;
  border-color: #00ff7f !important;
  color: #00ff7f !important;
}

@media (max-width: 768px) {
  .mini-persistent-player,
  .floating-mini-player {
    bottom: 12px !important;
    right: 12px !important;
    width: calc(100vw - 24px) !important;
    max-width: 340px !important;
    height: 130px !important;
  }
  .dock-pip-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }
}

/* ==================== CAPABILITY ONBOARDING & STATUS CENTER ==================== */
.capability-center-btn {
  background: rgba(255,255,255,.04);
  color: #cbd5e1;
  border: 1px solid var(--border);
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.15s ease;
  touch-action: manipulation;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.capability-center-btn:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
  transform: translateY(-1px);
}
.capability-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00ff7f;
  display: inline-block;
  box-shadow: 0 0 6px #00ff7f;
  transition: background 0.3s, box-shadow 0.3s;
}
.capability-badge-dot.is-warning {
  background: #ffb84d;
  box-shadow: 0 0 6px #ffb84d;
}
.capability-badge-dot.is-error {
  background: #ff5252;
  box-shadow: 0 0 6px #ff5252;
}

/* ==================== SPOTIFY AUTH BUTTON ==================== */
.spotify-auth-btn {
  background: rgba(29, 185, 84, 0.08);
  color: #1db954;
  border: 1px solid rgba(29, 185, 84, 0.4);
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.2s ease;
  touch-action: manipulation;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.spotify-auth-btn:hover {
  background: rgba(29, 185, 84, 0.16);
  border-color: #1db954;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(29, 185, 84, 0.3);
}
.spotify-auth-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}
.spotify-auth-btn.connected {
  background: rgba(0, 255, 127, 0.1);
  color: #00ff7f;
  border-color: rgba(0, 255, 127, 0.45);
}
.spotify-auth-btn.connected:hover {
  background: rgba(0, 255, 127, 0.18);
  border-color: #00ff7f;
  box-shadow: 0 0 14px rgba(0, 255, 127, 0.35);
}
.spotify-auth-btn svg {
  flex-shrink: 0;
}
.spotify-auth-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1db954;
  display: inline-block;
  box-shadow: 0 0 6px #1db954;
  transition: background 0.3s, box-shadow 0.3s;
}
.spotify-auth-btn.connected .spotify-auth-dot {
  background: #00ff7f;
  box-shadow: 0 0 8px #00ff7f;
}


/* Modal Overlay */
.capability-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.capability-modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Modal Card */
.capability-modal-card {
  width: 100%;
  max-width: 500px;
  background: rgba(14, 18, 26, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  box-sizing: border-box;
  color: #f5f7fa;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.capability-modal-overlay.is-visible .capability-modal-card {
  transform: scale(1) translateY(0);
}

/* Modal Header */
.capability-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.capability-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.capability-modal-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0, 255, 127, 0.1);
  border: 1px solid rgba(0, 255, 127, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  font-size: 20px;
}
.capability-modal-icon.icon-warning {
  background: rgba(255, 184, 77, 0.12);
  border-color: rgba(255, 184, 77, 0.3);
  color: #ffb84d;
}
.capability-modal-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}
.capability-modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.capability-modal-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Modal Content & Steps */
.capability-modal-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0;
}
.capability-steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px;
}
.capability-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #e2e8f0;
}
.capability-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 255, 127, 0.15);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.capability-step-text strong {
  color: #fff;
}

/* Modal Actions */
.capability-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 6px;
}
.capability-btn-primary {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 999px;
  height: 36px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  user-select: none;
}
.capability-btn-primary:hover {
  background: #1aff8c;
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(0, 255, 127, 0.35);
}
.capability-btn-primary:active {
  transform: translateY(0);
}
.capability-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  user-select: none;
}
.capability-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.capability-btn-link {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(0, 255, 127, 0.3);
  border-radius: 999px;
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.capability-btn-link:hover {
  background: rgba(0, 255, 127, 0.1);
  color: #fff;
}

/* Status Center Rows */
.capability-status-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.capability-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  gap: 12px;
}
.capability-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.capability-row-icon {
  font-size: 16px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  flex-shrink: 0;
}
.capability-row-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.capability-row-title {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.capability-row-desc {
  font-size: 11px;
  color: var(--text-muted);
}
.capability-row-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.capability-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.capability-tag.tag-ok {
  background: rgba(0, 255, 127, 0.12);
  color: #00ff7f;
  border: 1px solid rgba(0, 255, 127, 0.3);
}
.capability-tag.tag-warn {
  background: rgba(255, 184, 77, 0.12);
  color: #ffb84d;
  border: 1px solid rgba(255, 184, 77, 0.3);
}
.capability-tag.tag-muted {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.capability-tag-action-btn {
  background: rgba(0, 255, 127, 0.15);
  border: 1px solid rgba(0, 255, 127, 0.35);
  color: #00ff7f;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.capability-tag-action-btn:hover {
  background: #00ff7f;
  color: #000;
}

/* Spinner */
.capability-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: cap-spin 0.6s linear infinite;
}
@keyframes cap-spin {
  to { transform: rotate(360deg); }
}

/* Unified Onboarding */
.capability-onboarding-card {
  max-width: 520px;
}
.capability-checklist {
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 12px 14px;
}
.capability-check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #cbd5e1;
}
.capability-check-item.is-ok {
  color: #e2e8f0;
}
.capability-check-item.is-pending {
  color: #ffb84d;
  font-weight: 600;
}
.capability-check-badge {
  font-size: 11px;
  font-weight: 700;
}
.capability-check-badge.badge-ok {
  color: #00ff7f;
}
.capability-check-badge.badge-pending {
  color: #ffb84d;
}
.capability-action-box {
  background: rgba(255, 184, 77, 0.08);
  border: 1px solid rgba(255, 184, 77, 0.25);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.capability-action-box-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffdd99;
  display: flex;
  align-items: center;
  gap: 6px;
}
.capability-action-box-desc {
  font-size: 13px;
  line-height: 1.45;
  color: #f1f5f9;
}
.capability-address-bar-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #fff;
  margin-top: 4px;
}