* { box-sizing: border-box }
:root {
  color-scheme: dark;
  font: 13px/1.45 "Inter","Microsoft YaHei UI","Microsoft YaHei",sans-serif;
  color: #e4e4e2;
  background: #18191b;
  --surface: #202124;
  --panel: #252629;
  --border: #37383a;
  --muted: #a1a2a5;
  --accent: #e5b971;
  --mono: "IBM Plex Mono",Consolas,monospace;
}
body { margin: 0; height: 100dvh; overflow: hidden; display: flex; flex-direction: column }
button,input,select { font: inherit; color: inherit }
button,select,input:not([type=checkbox]):not([type=range]) { border: 1px solid var(--border); border-radius: 5px; background: var(--panel); padding: 6px 10px }
button,select { cursor: pointer }
button:hover { background: #37383b }
button:disabled { opacity: .4; cursor: default }
button:focus-visible,select:focus-visible,input:focus-visible,[tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: -1px }
[hidden] { display: none !important }
small { color: var(--muted); font-size: 12px }
input { min-width: 0; accent-color: var(--accent) }
header { height: 55px; flex: none; display: flex; align-items: center; gap: 22px; padding: 0 23px; background: #1d1e20; border-bottom: 1px solid var(--border) }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 16px; white-space: nowrap }
.disc { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: repeating-radial-gradient(circle,#45464a 0 1px,#35363a 2px 3px); border: 1px solid #555659 }
.disc::after { content: ""; width: 28%; aspect-ratio: 1; background: #92908b; border-radius: 50% }
.brand .disc { width: 26px; height: 26px; background: repeating-radial-gradient(circle,#d9ac64 0 2px,#b98e51 2px 3px); border-color: #ebca95 }
.brand .disc::after { background: #252320 }
.search { margin-left: auto; width: min(340px,45vw); display: flex; align-items: center; gap: 7px; border: 1px solid #383a3d; background: #28292c; border-radius: 7px; padding: 0 10px }
.search span { font-size: 22px; color: var(--muted); line-height: 1 }
.search input[type=search] { background: transparent; border: 0; width: 100%; padding: 7px 0 }
.workspace { display: flex; flex: 1; min-height: 0 }
#sidebar { width: 205px; flex: none; display: flex; flex-direction: column; align-items: stretch; padding: 22px 11px 12px; overflow: auto; background: #1c1d1f; border-right: 1px solid var(--border) }
h3 { margin: 0 10px 10px; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .04em }
.nav,.sync,.tree-name,.disclose,.icon,.empty-create { border: 0; background: transparent; text-align: left }
.nav { display: flex; align-items: center; gap: 12px; padding: 8px 12px; margin-bottom: 2px }
.nav i { color: #b8b9b9; width: 16px; font: 18px/1 var(--mono); text-align: center }
.nav.active,.tree-row.active { background: #37332c; color: #edce96 }
.nav.active i,.list-mark { color: var(--accent) }
.section-label { display: flex; align-items: center; justify-content: space-between; margin-top: 23px }
.section-label h3 { margin-bottom: 0 }
.icon { padding: 3px 7px; font-size: 19px }
.tree-row { position: relative; padding-left: var(--indent); min-height: 28px; display: flex; align-items: center; border-radius: 4px; user-select: none }
.tree-row:hover { background: #292a2d }
.tree-row.menu-open { box-shadow: inset 0 0 0 1px var(--accent) }
.tree-menu { position: fixed; z-index: 12; display: grid; min-width: 145px; padding: 4px; border: 1px solid #4b4c50; border-radius: 6px; background: #28292b; box-shadow: 0 4px 14px #0007 }
.tree-menu button { padding: 6px 12px; border: 0; text-align: left; background: transparent }
.tree-menu button:hover,.tree-menu button:focus-visible { background: #3a3b3d; outline: none }
.disclose,.list-mark { display: inline-grid; place-items: center; flex: none; width: 24px; padding: 2px 0; text-align: center; color: var(--muted) }
.tree-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px }
.tree-row.drop { background: #514530; box-shadow: inset 0 0 0 1px var(--accent) }
.tree-name,.tree-grip { cursor: grab }
.tree-grip { flex: none; width: 22px; text-align: center; color: var(--muted); opacity: 0; touch-action: none }
.tree-row:hover .tree-grip,.tree-row:focus-within .tree-grip { opacity: .85 }
@media (pointer:coarse) { .tree-grip { width: 30px; opacity: .8 } }
.tree-row[data-drop=before]::after,.tree-row[data-drop=after]::after {
  content: ""; position: absolute; left: var(--line-indent); right: 0; height: 3px; border-radius: 2px;
  background: #86c6ec; z-index: 1; pointer-events: none;
}
.tree-row[data-drop=before]::after { top: 0 }
.tree-row[data-drop=after]::after { bottom: 0 }
.tree-root-drop { margin: 5px 0; padding: 5px; text-align: center; border: 1px dashed var(--border); border-radius: 4px; color: var(--muted) }
.tree-row[data-drop=inside],.tree-root-drop[data-drop=inside] { background: #50432e; box-shadow: inset 0 0 0 2px var(--accent); color: #f1d49e }
.sync { margin-top: auto; padding-top: 18px; color: var(--muted); font-size: 12px }
.scan-panel { display: grid; gap: 12px }
.scan-panel p { margin: 0; color: var(--muted) }
.scan-panel > button { justify-self: start }
.scan-paths { margin: 0; padding: 0; list-style: none }
.scan-paths li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0 }
.scan-paths span, .scan-status { overflow-wrap: anywhere }
.scan-status:empty { display: none }
.device-panel,.device-list,.device-row > div,.device-share,.guest-login main { display:grid; gap:10px }
.device-panel > button,.device-share button { justify-self:start }
.device-row { display:flex; align-items:center; gap:8px; padding:10px 0; border-top:1px solid #414145; flex-wrap:wrap }
.device-row > div { flex:1; min-width:120px; gap:4px }
.device-row small,.guest-login small { color:var(--muted) }
.device-row input { width:145px }
.guest-login { align-items:center; justify-content:center; padding:20px }
.guest-login main { flex:none; width:min(100%,390px); padding:24px; border:1px solid #414145; border-radius:12px }
.guest-login strong { font-size:28px; letter-spacing:.15em }
.mobile { display: none }
main { flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column }
.heading,.toolbar,.edit-head,.inline,footer,.rating-head,.rating-actions,.controls,.wave-caption { display: flex; align-items: center; gap: 8px }
.heading { padding: 19px 22px 8px; justify-content: space-between }
.heading-title { display: flex; align-items: baseline; gap: 12px; min-width: 0 }
#selection:empty { display: none }
h1,h2 { margin: 0; line-height: 1.25 }
h1 { font-size: 24px; font-weight: 650 }
.toolbar { padding: 5px 22px 13px; flex-wrap: wrap }
select, .toolbar button { font-size: 12px }
.table-wrap { --track-height: 28px; flex: 1; min-height: 0; overflow: auto; overflow-anchor: none; scrollbar-color: #494a4d #1b1c1e; border-top: 1px solid var(--border) }
table { table-layout: fixed; border-spacing: 0; font-size: 12px; user-select: none }
th,td { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 8px; height: var(--track-height) }
.row-spacer td { padding: 0; border: 0; height: 0; line-height: 0 }
th { position: sticky; top: 0; z-index: 1; font-weight: 500; color: #b8b9bb; background: #242527; border-right: 1px solid #38393b; border-bottom: 1px solid #3c3d3f }
.resize-handle { position: absolute; inset: 0 -1px 0 auto; width: 8px; cursor: col-resize; touch-action: none }
.resize-handle:hover { border-right: 2px solid var(--accent) }
th { padding: 0 }
.sort-heading { display: flex; align-items: center; gap: 3px; width: 100%; height: 100%; padding: 0 8px; border: 0; border-radius: 0; background: transparent; color: inherit; text-align: left; font: inherit; overflow: hidden; white-space: nowrap }
.sort-heading:hover { background: #303134 }
th[aria-sort] .sort-heading::after { content: ""; flex: none; width: 0; height: 0; border: 3px solid transparent; border-top: none; border-bottom-color: var(--accent) }
th[aria-sort=descending] .sort-heading::after { transform: rotate(180deg) }
td { border: 0; color: #b8b9bc }
tbody tr { background: #1b1c1e }
tbody tr.alternate { background: #232426 }
td.song { color: #e8e8e5; font-weight: 510 }
td.numeric,.wave-caption,output,.rating-head b { font-family: var(--mono); font-variant-numeric: tabular-nums }
tr.playing td:first-child { box-shadow: inset 2px 0 var(--accent); color: var(--accent) }
tbody tr:hover { background: #2d2e31 }
tbody tr.selected { background: #3b3832 }
.art-cell .disc,.art-cell img { width: 20px; height: 20px; vertical-align: middle }
.art-cell img,.player-art img,.cover-edit img { border-radius: 3px; object-fit: cover }
.art-cell img { pointer-events: none }
.chip { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 12px; background: #383c40; border: 1px solid #484d51; color: #d2d9dc; font-size: 11px; line-height: 17px }
.cell-tags { display: flex; gap: 3px; overflow: hidden }
.cell-tags .chip { flex: none }
.primary-genre .chip { font-weight: 700 }
.genre-choices { display:flex; flex:none; align-content:start; flex-wrap:wrap; gap:5px; overflow:auto; max-height:20vh; padding:0 20px 8px }
.genre-choices button.chip { border-radius:16px; padding:2px 10px; font-size:12px }
.genre-choices .chip:hover,.genre-choices .chosen-genre { color:var(--accent); border-color:var(--accent) }
.phone-listen .genre-choices { padding-inline:16px }
.phone-listen .genre-choices button.chip { min-height:32px }
#noRows { padding: 24px; color: var(--muted) }
.player { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 5px 12px; flex: none; padding: 4px 8px 7px; border-top: 1px solid #424345; background: #232426 }
.transport { display: flex; align-items: center; gap: 12px }
.now-block,.master,.cover-edit,.tabs,.check { display: flex; align-items: center; gap: 8px }
.now-block,.now-text { min-width: 0 }
.now-text h2,.now-text small { display: block; text-overflow: ellipsis; overflow: hidden; white-space: nowrap }
.now-text h2 { font-size: 14px; margin-bottom: 3px }
.player-art { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border: 1px solid var(--border); background: #191a1c; border-radius: 5px }
.player-art .disc { width: 30px; height: 30px }
.player-art img { width: 100%; height: 100% }
.controls { gap: 3px }
.controls button { border: 0; background: transparent; padding: 5px 8px }
.controls #play { width: 34px; height: 34px; border-radius: 50%; background: #e0c597; color: #211f1c; padding: 0 }
/* MusicBee's bottom panel and graph each inset the waveform by 4 px per side at 96 DPI. */
#waveBox { grid-column: 1 / -1; position: relative; height: 53px; background: #222; box-shadow: 0 0 0 8px #222; overflow: hidden }
#wave,#seek { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0 }
#seek { appearance: none; padding: 0; border: 0; opacity: 0; cursor: pointer }
#seek::-webkit-slider-thumb { appearance: none; width: 0; height: 100% }
#seek::-moz-range-thumb { width: 0; border: 0 }
#seekPreview { position: absolute; bottom: 2px; padding: 1px 5px; border-radius: 3px; color: #eee; background: #181818ed; font: 11px var(--mono); pointer-events: none }
#waveBox:focus-within { outline: 1px solid var(--accent) }
#waveInfo { pointer-events: none; position: absolute; top: 8px; left: 6px; color: var(--muted); font-size: 11px }
.wave-caption { flex-direction: column; align-items: flex-start; gap: 0; white-space: nowrap; color: var(--muted); font-size: 10px }
.output { display: grid; gap: 5px; width: min(100%,190px); justify-self: end }
.output select { padding: 3px 5px }
.master { font-size: 10px; color: var(--muted); white-space: nowrap; gap: 5px }
.master input { flex: 1; min-width: 20px; height: 12px }
.master output { min-width: 46px; text-align: right }
#editor { flex: none; display: flex; flex-direction: column; height: min(34dvh,320px); padding: 9px 18px; background: #222326; border-top: 2px solid #716553 }
.edit-head { padding-bottom: 6px; border-bottom: 1px solid var(--border) }
.edit-head>div { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px }
.edit-head h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px }
#dirty { color: var(--muted); font-size: 11px }
#editorBody { overflow: auto; padding: 7px 0 }
.tabs { gap: 4px; margin-bottom: 9px }
.tabs button,.text-btn { padding: 3px 8px; background: none; border-color: transparent }
.tabs .active { color: var(--accent); background: #3a352e }
.primary { color: #201e1a; background: #dbbb87; border-color: #dbbb87; font-weight: 600 }
.primary:hover { background: #ebcc9c }
.field,.form-stack,.list-checks,.tag-editor { display: flex; flex-direction: column; gap: 5px }
.field { color: #bbbcbe; min-width: 0; font-size: 12px }
.field input,.field select { width: 100% }
.track-gain { display: flex; align-items: center; gap: 8px; min-height: 30px }
.track-gain input { flex: 1; margin: 0 }
.track-gain span { min-width: 7ch; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums }
.grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(185px,1fr)); gap: 10px }
.path { display: block; padding-top: 8px; overflow-wrap: anywhere }
.cover-edit { grid-column: span 2 }
.cover-edit img { width: 40px; height: 40px }
.rating-item { padding: 6px 9px; border: 1px solid var(--border); border-radius: 5px }
.rating-head { justify-content: space-between; font-size: 12px }
.rating-head b,.rating-total { color: var(--accent) }
.stars { display: inline-flex; cursor: pointer; user-select: none; touch-action: manipulation }
.stars span { font: 24px/1.3 "Segoe UI Symbol",sans-serif; display: block; background: linear-gradient(to right,#e3ba76 var(--fill),#54555a var(--fill)); color: transparent; background-clip: text }
.stars[aria-disabled=true] { opacity: .45; cursor: default }
.rating-actions,.rating-actions button { font-size: 11px }
.rating-actions .text-btn { padding: 0 2px }
.rating-total { margin: 6px 0 0 }
.ordered-tags,.matches { display: flex; flex-wrap: wrap; gap: 4px }
.edit-chip { padding-right: 3px }
.edit-chip button { border: 0; background: none; padding: 0 4px; font-size: 15px }
.matches { max-height: 100px; overflow: auto }
.matches button { padding: 3px 6px; font-size: 11px }
dialog { width: min(540px,94vw); max-height: 85dvh; padding: 0; border: 1px solid #4b4c4e; border-radius: 9px; background: #242528; color: inherit }
dialog::backdrop { background: #08090bc2 }
#dialogForm { display: flex; flex-direction: column; max-height: 84dvh }
#dialogTitle { font-size: 18px; padding: 17px 18px 12px }
#dialogBody { padding: 0 18px 12px; overflow: auto }
footer { justify-content: flex-end; padding: 9px 16px; border-top: 1px solid var(--border) }
.form-stack { gap: 10px }
.inline input { flex: 1 }
.tag-tree,.layout-list { max-height: 38vh; overflow: auto; border: 1px solid var(--border); border-radius: 5px }
.tag-line,.layout-row,.tag-create { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-bottom: 1px solid var(--border) }
.tag-line .chip,.layout-row .check { margin-right: auto }
.tag-line button,.layout-row button { font-size: 11px; padding: 3px 6px }
.tag-create { flex-wrap: wrap; align-items: end }
.tag-create .field { flex: 1; min-width: 110px }
.tag-create .genre-description { flex-basis: 100% }
.genre-description textarea { width: 100%; resize: vertical; font: inherit; color: inherit; background: var(--panel); border: 1px solid var(--border); border-radius: 5px; padding: 6px 10px }
.cell-tags .chip[title] { cursor: help }
.layout-row input[type=number] { width: 68px; padding: 3px 4px }
.danger { color: #e1a196 }
#notice { position: fixed; top: 9px; left: 50%; transform: translateX(-50%); padding: 8px 14px; z-index: 5; max-width: 80vw; background: #38352d; color: #f4dbc0; border: 1px solid #686050; border-radius: 6px }
@media(max-width:900px){
  #sidebar { width: 160px }
}
@media(max-width:660px){
  header { height: 43px; padding: 0 10px; gap: 8px }
  .mobile { display: inline-block }
  .brand { font-size: 14px; gap: 6px }
  .brand .disc { width: 19px; height: 19px }
  .search { max-width: 55vw; padding: 0 4px }
  #sidebar { display: none }
  .nav-open #sidebar { display: flex; position: absolute; top: 43px; left: 0; bottom: 112px; z-index: 3; width: min(240px,75vw); box-shadow: 10px 2px 24px #0007 }
  .heading { padding: 10px 12px 4px }
  h1 { font-size: 20px }
  .toolbar { padding: 3px 10px 7px; gap: 4px; flex-wrap: wrap }
  .toolbar select,.toolbar button { padding: 4px 6px }
  .player { grid-template-columns: minmax(0,1fr) auto minmax(100px,35%); gap: 4px 7px }
  .player-art { display: none }
  .transport { flex-direction: column; gap: 2px }
  .wave-caption { align-items: center }
  .output select { width: 100% }
  .master { flex-wrap: wrap }

  .controls #play { width: 27px; height: 27px }
  #editor { padding: 6px 10px; height: 36dvh }
  .edit-head>div { display: block }
  .edit-head small { display: none }
  .grid { grid-template-columns: repeat(auto-fit,minmax(140px,1fr)) }
}

.output { min-width: 0 }
.output select { width: 100%; min-width: 0 }
.master input { width: 0 }
.drag-badge { position: fixed; z-index: 10; pointer-events: none; padding: 5px 10px; background: #dfc28f; color: #211d17; border-radius: 5px; box-shadow: 0 2px 9px #0005 }

#rightSidebar { width: 285px; flex: none; min-height: 0; overflow: auto; border-left: 1px solid var(--border); background: #1c1d1f; scrollbar-width: thin }
.workspace { position: relative }
.pane-divider { display: none }
@media (min-width:761px) {
  .workspace { --pane-limit: calc(50% - 140px) }
  #sidebar,#rightSidebar { width: var(--pane-width, var(--pane-default)); min-width: 140px; max-width: var(--pane-limit) }
  #sidebar { --pane-default: 205px; border-right: 0 }
  #rightSidebar { --pane-default: 285px; border-left: 0 }
  .workspace .pane-divider { display: block; flex: 0 0 7px; background: linear-gradient(to right, transparent 3px, var(--border) 3px 4px, transparent 4px); cursor: col-resize; touch-action: none; user-select: none }
  .pane-divider:hover,.pane-divider:focus-visible,.pane-divider.dragging { background: var(--accent) }
  .workspace .pane-divider:has(+ [hidden]) { display: none }
}
#editor { min-width: 0; max-height: 55%; border-right: 0; border-left: 0 }
#editorBody { min-height: 0; overflow-x: hidden }
#editor .cover-edit { grid-column: 1 / -1 }
#toggleRight[aria-expanded=true] { color: var(--accent) }
@media(max-width:1000px){
  #rightSidebar { --pane-default: 235px }
}
@media(min-width:761px) and (max-width:900px){ #sidebar { --pane-default: 160px } }
@media(max-width:760px){
  #rightSidebar { position: absolute; inset: 0 0 0 auto; z-index: 4; width: min(285px,85vw); box-shadow: -8px 0 20px #0006 }
  header .search { flex: 1; min-width: 40px }
  #toggleRight { padding: 4px 7px; white-space: nowrap }
  #editor .edit-head { gap: 4px }
}
#rows tr.insert-before td { box-shadow: inset 0 2px var(--accent) }
#rows tr.insert-after td { box-shadow: inset 0 -2px var(--accent) }
#rows td.drag-number { cursor: grab; touch-action: none }
.side-head,.side-heading { display:flex; align-items:center; justify-content:space-between; gap:8px }
.side-head { padding:12px 14px; border-bottom:1px solid var(--border) }
.side-head select { font-size:11px; padding:3px 5px }
.side-section { padding:10px 14px; border-bottom:1px solid var(--border) }
.side-heading { margin-bottom:7px; min-height:19px }
.side-heading h2 { margin:0; font-size:12px; font-weight:600; color:#cececa }
.side-heading button { font-size:11px; color:var(--accent); padding:2px 3px }
.side-cover { display:grid; place-items:center; width:100%; height:clamp(110px,21vh,230px); overflow:hidden; border-radius:4px; background:#17181a }
.side-cover img { width:100%; height:100%; min-height:0; object-fit:contain }
.cover-empty,.side-empty { color:#98999d; font-size:12px }
.lyrics-view { position:relative; height:clamp(60px,13vh,165px); overflow:auto; scrollbar-width:thin; overscroll-behavior:contain }
.lyrics-view p { white-space:pre-wrap; overflow-wrap:anywhere; margin:2px 0 4px; line-height:1.7 }
.lyrics-view .lyric-line { display:block; width:100%; padding:3px 0; border:0; border-radius:0; background:none; text-align:left; color:#a6a7a9 }
.lyrics-view .lyric-line.current,.lyrics-view .lyric-line:hover { color:var(--accent) }
.side-info { display:grid; grid-template-columns:auto minmax(0,1fr); gap:3px 12px; margin:0; font-size:12px }
.side-info dt { color:#97989c }
.side-info dd { margin:0; overflow-wrap:anywhere }
.side-info dd:only-child { grid-column:1/-1 }
#spectrum { display:block; width:100%; height:34px; background:#191a1c }
.lyric-input { grid-column:1/-1 }
.lyric-input textarea { width:100%; resize:vertical; font:inherit; background:var(--panel); color:inherit; border:1px solid var(--border); padding:7px }

#rightSidebar { display:flex; flex-direction:column }
.side-head,.side-section { flex:none }
.side-section:has(.side-cover) { display:flex; flex-direction:column; flex:1 1 auto; min-height:88px }
.side-cover { flex:1 1 0; min-height:44px; max-height:245px; height:auto }
#sideInfo dd { max-height:3.1em; overflow:auto }

/* Phone listening pages share one audio element so browsing never interrupts a song. */
#listenPage,#listenOptions { display: none }
.phone-listen body > header,.phone-listen .workspace,.phone-listen body:not(.listen-playing) > .player { display: none }
.phone-listen #listenPage { display: flex; flex-direction: column; flex: 1; min-height: 0; background: #19191b }
.listen-head { flex: none; padding: max(20px,env(safe-area-inset-top)) 20px 14px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 12px }
.listen-head h1 { font-size: clamp(24px,6vw,32px); line-height: 1.25; font-weight: 650; margin: 0; overflow-wrap: anywhere; outline: none }
#listenBack { flex: 0 0 100%; min-height: 44px; text-align: left; padding: 0; background: none; border: 0; color: var(--accent); font-size: 16px }
#listenCount,.listen-text small { color: #aaa8a5 }
#listenSearch { margin: 0 16px 10px; width: calc(100% - 32px); min-height: 42px; font-size: 16px }
#listenScroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 12px max(16px,env(safe-area-inset-bottom)) }
#listenItems { display: grid; gap: 3px }
#listenItems .listen-row { display: flex; width: 100%; min-height: 64px; padding: 8px 10px; border: 0; border-radius: 7px; align-items: center; gap: 12px; background: #212123; text-decoration: none; color: inherit; text-align: left; touch-action: manipulation }
#listenItems .listen-row:nth-child(even) { background: #242426 }
#listenItems .listen-row:active { background: #35322d }
#listenItems .listen-row[aria-current=true] strong { color: var(--accent) }
.listen-text { display: grid; gap: 3px; flex: 1; min-width: 0 }
.listen-text strong,.listen-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.listen-text strong { font-size: 16px; font-weight: 550 }
.listen-text small { font-size: 12px }
.listen-icon { width: 44px; height: 44px; display: grid; position: relative; flex: none; place-items: center; overflow: hidden; border-radius: 6px; color: #dfc395; background: #302e2a; font-size: 22px }
.listen-icon img { width: 100%; height: 100%; object-fit: cover }
.listen-icon.folder::before,.listen-icon.folder::after { content: ""; position: absolute; background: #c3a679; border-radius: 2px }
.listen-icon.folder::before { width: 12px; height: 7px; top: 11px; left: 9px }
.listen-icon.folder::after { width: 26px; height: 17px; top: 15px; left: 9px }
.listen-chevron { font-size: 23px; color: #aaa39a }
#listenEmpty { padding: 18px 8px; color: var(--muted) }
#listenMore { width: 100%; min-height: 44px; margin: 8px 0 }
.phone-listen .player { grid-template-columns: minmax(0,1fr) auto 36px; padding: 5px max(10px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left)); gap: 2px 4px }
.listen-rating { flex: none; padding-inline: 4px; color: var(--accent); font: 14px var(--mono); font-variant-numeric: tabular-nums }
.listen-rating.unrated { color: var(--muted); font-family: inherit; font-size: 12px }
.phone-listen #waveBox { height: 26px; background: transparent; box-shadow: none }
.phone-listen #wave,.phone-listen #waveInfo,.phone-listen #seekPreview { display: none }
.phone-listen #seek { appearance: auto; opacity: 1; accent-color: var(--accent) }
.phone-listen #seek::-webkit-slider-thumb { appearance: auto; width: revert; height: revert }
.phone-listen #seek::-moz-range-thumb { width: revert; border: revert }
.phone-listen .now-block { min-height: 52px; gap: 8px }
.phone-listen .player-art { display: grid; width: 34px; height: 34px }
.phone-listen .now-text h2 { font-size: 14px }
.phone-listen .transport { display: flex; flex-direction: column; gap: 0 }
.phone-listen .controls button { min-width: 36px; height: 38px }
.phone-listen .controls #play { width: 38px; height: 38px }
.phone-listen .wave-caption { align-items: center }
.phone-listen #gainLabel { display: none }
.phone-listen #listenOptions { display: block; padding: 0; min-height: 44px; background: transparent; border: 0; font-size: 22px }
.phone-listen .output { display: none }
.phone-listen .listen-settings .output { display: flex; grid-column: 1/-1; align-items: center; justify-content: space-between; max-width: none; width: 100%; gap: 12px; padding: 6px 0 }
.phone-listen .output select { width: auto; max-width: 56%; min-height: 36px }
.phone-listen .output .master { flex: 1 }
.phone-listen[data-guest] .listen-settings .output { flex-wrap: wrap }

#guestLibrary,.guest-columns { display: none }
.desktop-guest body { display: grid; grid-template-columns: clamp(170px,18vw,250px) minmax(0,1fr); grid-template-rows: minmax(0,1fr) auto }
.desktop-guest #guestLibrary { display: block; padding: 20px 12px; overflow: auto; background: #1c1d1f; border-right: 1px solid var(--border) }
#guestLibrary .brand { margin: 0 8px 24px }
#guestLists a { color: inherit; text-decoration: none; border-radius: 4px }
#guestLists a:hover { background: #292a2d }
#guestLists a[aria-current] { color: #edce96; background: #37332c }
#guestLists summary { cursor: pointer; color: var(--muted) }
#guestLists summary .nav { display: inline-flex; max-width: calc(100% - 18px); vertical-align: middle }
#guestLists details > :not(summary) { margin-inline-start: 12px }
#guestLists .nav span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis }
.desktop-guest #listenPage { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: #19191b }
.desktop-guest .listen-head { padding: 20px 20px 12px }
.desktop-guest .listen-head h1 { font-size: 24px }
.desktop-guest #listenBack { display: none }
.desktop-guest #listenSearch { width: min(360px,90%); margin: 0 20px 14px; min-height: 32px; font-size: 13px }
.desktop-guest #listenScroll { padding: 0; overflow: auto; scrollbar-gutter: stable; scrollbar-color: #707176 #232426 }
.desktop-guest .guest-sheet { display: grid; min-width: 1100px; grid-template-columns: 32px minmax(max-content,1.5fr) minmax(max-content,1fr) minmax(max-content,1.2fr) 56px repeat(2,minmax(max-content,.8fr)) 48px; column-gap: 12px; padding-inline: 20px }
.desktop-guest #listenItems { grid-column: 1/-1; grid-template-columns: subgrid; row-gap: 0 }
.desktop-guest .guest-columns,.desktop-guest #listenItems button.listen-row { display: grid; grid-column: 1/-1; grid-template-columns: subgrid; padding: 3px 0; align-items: center }
.desktop-guest .guest-columns { position: sticky; top: 0; z-index: 1; background: #202124; padding-block: 7px; border-block: 1px solid var(--border); color: var(--muted); font-size: 12px }
.desktop-guest #listenItems button.listen-row { min-height: 34px; border-radius: 0 }
.desktop-guest #listenItems button.listen-row:hover { background: #313134 }
.desktop-guest #listenItems button[aria-current=true] { background: #383328 }
.desktop-guest .listen-icon { width: 28px; height: 28px; border-radius: 3px }
.desktop-guest .listen-text strong { font-size: 13px }
.desktop-guest .guest-cell { color: #c0c0bf; overflow: hidden; white-space: nowrap; text-overflow: ellipsis }
.desktop-guest .listen-rating { font-size: 13px; padding: 0 }
.desktop-guest .player { grid-column: 1/-1; grid-template-columns: minmax(0,1fr) auto minmax(230px,1fr); padding: 7px 15px }
.desktop-guest #waveBox { height: 15px; box-shadow: none; background: transparent }
.desktop-guest #wave,.desktop-guest #waveInfo { display: none }
.desktop-guest #seek,.desktop-guest #seek::-webkit-slider-thumb { appearance: auto; opacity: 1; accent-color: var(--accent) }
.desktop-guest #seek::-webkit-slider-thumb { width: revert; height: revert }
.desktop-guest #seek::-moz-range-thumb { width: revert; height: revert }
.desktop-guest .output { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; width: 100% }
.desktop-guest .output .master { min-width: 120px }
