.topbar, .nav-tree-menu, .player, .po-btn, a.thumb { background: var(--bg2); }
.topbar a, .topbar .arrow, .nav-tree-menu a, .po-btn, .po-link, .po-close { color: var(--text2); }
.topbar a:hover, .nav-tree-menu a.cur { background: var(--bg3); }
.branch { display: flex; align-items: center; }
.branch button, .copy-link {
  background: var(--bg2); color: var(--accent); font: inherit; cursor: pointer;
  border: 1px solid var(--border); border-radius: 4px; padding: .4em .7em;
}
.branch button { border: 0; }
.branch button:disabled { visibility: hidden; }
.branch a, .folder-list a, .gallery-status a, .song-link { color: var(--accent); }
.branch a { flex: 1; padding: .45em; overflow-wrap: anywhere; text-decoration: none; }
.branch a[aria-current], .branch a:hover { background: var(--bg3); }
.folder-list { display: none; }
.gallery-status { color: var(--text); }
.gallery-status:not(:empty) { padding: .8em; }
.gallery-status a { text-decoration: underline; }
.tracklist-wrap, .grid-wrap, .player-center { min-width: 0; }
a.track-item { color: inherit; text-decoration: none; }
.track-item { border-color: var(--border); }
.track-item.playing, .pbtn.playbtn, .player-info .pi-name { color: var(--text); }
.tracklist-header { text-transform: none; }
a.thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
a.thumb .ph { color: var(--text2); }
a.thumb .tname { color: white; background: linear-gradient(transparent, #101914); }
.po-link { color: var(--accent); }
.progress-bar, .vol-bar { background: var(--border); }
.progress-bar:hover .fill { background: var(--accent); }
.album-art { width: 52px; height: 52px; object-fit: cover; margin-right: .6em; vertical-align: middle; }
.song-link { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) {
  .sidebar { display: none; }
  .folder-list { display: grid; }
  .folder-list a {
    display: flex; align-items: center; min-height: 44px; padding: .55em 1em;
    color: var(--text); background: var(--bg2); border-bottom: 1px solid var(--border);
    text-decoration: none; overflow-wrap: anywhere;
  }
  .folder-list:not(:empty) { margin-bottom: .65em; }
  .folder-list a:hover, .folder-list a:active { background: var(--bg3); }
  .player { height: auto; flex-wrap: wrap; gap: .3em; padding: .35em .75em; }
  .player:not(.has-track) { display: none; }
  .player-info { max-width: none; width: 100%; display: flex; gap: .6em; align-items: center; }
  .pi-folder { display: none; }
  .player-info .song-link { flex: 1; }
  .player-center { align-items: stretch; }
  .player-controls { justify-content: space-between; gap: 0; }
  .player-controls button, .po-controls button, .po-close { min-height: 44px; min-width: 44px; }
  .player-right { display: none; }
  .track-item { min-height: 44px; }
  .po-video-wrap video { max-height: 60dvh; }
}
