/* 4IN PM · Studio Graphite / Champagne
   One restrained accent colour instead of multiple competing browns. */
body.pm-unified-ready{
  --pm-base:#090b0e;--pm-surface:#12161b;--pm-surface-high:#1a2025;
  --pm-border:#394047;--pm-accent:#d7b987;--pm-text:#f0f1f0;--pm-muted:#a9b1b9;
  --mint:#d7b987;--paper:#f0f1f0;--muted:#a9b1b9;--bg:#090b0e;
  background:radial-gradient(ellipse at 85% 0,rgba(185,156,113,.11),transparent 40%),#090b0e!important;
  color:var(--pm-text);
}
body.pm-unified-ready .pm-unified-intro h1,
body.pm-unified-ready .pm-u-heading h2{color:#f7f5f2}
body.pm-unified-ready .pm-unified-intro h1 em,
body.pm-unified-ready .pm-count-label,
body.pm-unified-ready .pm-u-count strong,
body.pm-unified-ready .pm-see-all,
body.pm-unified-ready .pm-genre-header{color:var(--pm-accent)}
body.pm-unified-ready .pm-unified-intro p,
body.pm-unified-ready .pm-u-count,
body.pm-unified-ready .pm-account-intro{color:var(--pm-muted)}
body.pm-unified-ready .pm-unified-feature{
 background:radial-gradient(ellipse at 67% 26%,rgba(195,167,124,.20),transparent 60%),linear-gradient(135deg,#1b2026,#0b0e12);
 border-color:#3f464e;box-shadow:0 18px 45px #0007;
}
body.pm-unified-ready .pm-feature-art strong{color:var(--pm-accent);text-shadow:none}
body.pm-unified-ready .pm-feature-art small{color:#bdc5c9}
body.pm-unified-ready .pm-account-count{
 background:linear-gradient(160deg,#161c22,#101419);border-color:var(--pm-border)
}
body.pm-unified-ready .pm-u-btn.primary,
body.pm-unified-ready .pm-circle,
body.pm-unified-ready .pm-see-all{border-color:#877254}
body.pm-unified-ready .pm-u-btn.primary{background:var(--pm-accent)!important;color:#17191b!important}
body.pm-unified-ready .pm-u-btn.secondary,
body.pm-unified-ready .pm-load-more{background:#192025;color:#ebded0;border:1px solid var(--pm-border)}
body.pm-unified-ready .pm-genre-chip{background:#161d23;color:#d4d8d9;border:1px solid #454c54}
body.pm-unified-ready .pm-genre-chip[aria-pressed=true]{background:var(--pm-accent);border-color:var(--pm-accent);color:#121416}
body.pm-unified-ready .pm-genre-chip:focus-visible,
body.pm-unified-ready button:focus-visible{outline:2px solid #f3d8a7;outline-offset:2px}
body.pm-unified-ready .pm-library-bar{margin-top:8px}
body.pm-unified-ready .pm-search{background:#151a20;border-color:#48515b;color:var(--pm-accent)}
body.pm-unified-ready .pm-search input{color:#f2f4f5}
body.pm-unified-ready .pm-search input::placeholder{color:#aab4bd}
body.pm-unified-ready .pm-song-list{background:#11171c;border-color:#3d464e}
body.pm-unified-ready .pm-u-song{border-color:#333d44}
body.pm-unified-ready .pm-u-art{background:linear-gradient(135deg,#46433b,#1f272d);color:#e0c698}
body.pm-unified-ready .pm-u-copy strong{color:#f3f3f2}
body.pm-unified-ready .pm-u-copy small{color:#b0b9c1}
body.pm-unified-ready .pm-u-song-menu{background:#171d23;border-color:#515961;color:#f7f1e9}
body.pm-unified-ready .pm-u-nav{
 background:rgba(13,18,23,.97);border-color:#434b53
}
body.pm-unified-ready .pm-u-nav button{color:#aeb6be}
body.pm-unified-ready .pm-u-nav button[aria-current=page]{color:#eccb93}
body.pm-unified-ready .player{
 background:linear-gradient(115deg,#1c242b,#0f1318)!important;
 border-color:#59616a!important;box-shadow:0 13px 35px #0009
}
body.pm-unified-ready .player .cover{background:var(--pm-accent);color:#0e1418}
body.pm-unified-ready .player .play-btn{background:var(--pm-accent);color:#0e1418}
body.pm-unified-ready .player .track-meta span{color:#b8c0c6}
body.pm-unified-ready .pm-op-monitor{
 background:linear-gradient(160deg,#161d23,#11161a);border-color:#454f56
}
body.pm-unified-ready .pm-op-counts>span{border-color:#414a52;background:#1b2228}
body.pm-unified-ready .pm-op-health[data-state=good]{color:#a2dabb}
body.pm-unified-ready .pm-op-head,
body.pm-unified-ready .pm-op-kicker{color:var(--pm-text)}
body.pm-unified-ready .pm-op-actions button,
body.pm-unified-ready .pm-op-retry-genres{background:#252d33;color:#f0f0ee;border-color:#535e67}
body.pm-unified-ready .pm-op-genre-error{color:#ffbdb2}
body.pm-player-open .player{
 background:radial-gradient(circle at 50% 23%,#30343a 0%,#151b20 45%,#090b0e 87%)!important;
}
body.pm-player-open .player .cover{background:radial-gradient(circle at 40% 30%,#a39173,#30363b 62%,#111418);color:#e8d2ae}

/* Lyrics: an accessible overlay that never interrupts audio playback. */
.pm-lyrics-toggle{
 background:none;color:#d8c4a4;border:1px solid transparent;border-radius:9px;
 font-size:20px;line-height:1;min-width:36px;min-height:38px;cursor:pointer;
}
.pm-lyrics-toggle[aria-expanded=true]{background:rgba(215,185,135,.17);border-color:#766344}
.pm-lyrics-modal[hidden]{display:none!important}
.pm-lyrics-modal{
 position:fixed;inset:0;z-index:420;display:flex;align-items:stretch;
 justify-content:center;background:rgba(0,0,0,.88);padding:max(env(safe-area-inset-top),12px) 12px max(env(safe-area-inset-bottom),12px);
}
.pm-lyrics-shell{
 display:flex;flex-direction:column;width:100%;max-width:650px;height:100%;
 color:#f3f3f0;background:radial-gradient(circle at 80% 0,rgba(190,159,110,.15),transparent 48%),#10151a;
 border:1px solid #3d4952;border-radius:18px;overflow:hidden;
}
.pm-lyrics-head{padding:20px 20px 16px;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;border-bottom:1px solid #333e46}
.pm-lyrics-title{display:flex;flex-direction:column;gap:7px;min-width:0}
.pm-lyrics-title small{color:#d4ba90;letter-spacing:.12em;font-size:10px;font-weight:800}
.pm-lyrics-title strong{font-size:clamp(20px,4.8vw,29px);overflow-wrap:anywhere}
.pm-lyrics-title span{color:#b9c2c9;font-size:13px}
.pm-lyrics-close{background:#202830;color:#f3f4f5;border:1px solid #59636c;border-radius:50%;height:43px;min-width:43px;font-size:30px;line-height:1;cursor:pointer}
.pm-lyrics-body{flex:1;min-height:0;overflow-y:auto;text-align:center;padding:30px 24px;overscroll-behavior:contain;scrollbar-color:#81745b transparent}
.pm-lyrics-line{font-size:clamp(18px,5.5vw,28px);line-height:1.5;font-weight:650;color:#929da6;transition:color .2s ease;max-width:34ch;margin:0 auto 23px}
.pm-lyrics-line.is-current{color:#f5deb3}
.pm-lyrics-plain{font-size:clamp(16px,4.5vw,22px);line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;color:#e6e8e9}
.pm-lyrics-message{margin:15vh auto 0;max-width:35ch;color:#c2c9ce;line-height:1.7}
.pm-lyrics-credit{margin:0;padding:12px 16px 16px;border-top:1px solid #313a42;text-align:center;font-size:11px;color:#aab3b8}
body.pm-lyrics-open{overflow:hidden}
@media(max-width:700px){
 body.pm-unified-ready .player .pm-lyrics-toggle{font-size:18px;min-width:28px;padding:2px}
 body.pm-player-open .player .pm-lyrics-toggle{min-width:40px}
 .pm-lyrics-modal{padding:0}
 .pm-lyrics-shell{border:0;border-radius:0}
 .pm-lyrics-head{padding:calc(20px + env(safe-area-inset-top)) 18px 15px}
 .pm-lyrics-body{padding:26px 17px}
 .pm-lyrics-credit{padding-bottom:calc(15px + env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){.pm-lyrics-line{transition:none}}

.pm-lyrics-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.pm-lyrics-text{display:none}
body.pm-player-open .pm-lyrics-text{display:inline;font-size:12px;font-weight:800;letter-spacing:.06em}
body.pm-player-open .pm-lyrics-toggle{padding:7px 14px;border-color:#59626b;background:#232a30;width:auto}

/* Per-track search correction (never modifies the audio filename). */
.pm-lyrics-head-actions{display:flex;align-items:flex-start;justify-content:flex-end;gap:8px;flex-shrink:0}
.pm-lyrics-edit-toggle{min-height:42px;border:1px solid #67717b;border-radius:10px;padding:8px 11px;background:#222a32;color:#f0d9ad;font:inherit;font-size:12px;font-weight:750;cursor:pointer}
.pm-lyrics-edit-toggle[aria-expanded=true]{background:#40392d;border-color:#b69c75}
.pm-lyrics-editor{border-bottom:1px solid #3d4952;padding:13px 20px 16px;background:#182027;display:grid;grid-template-columns:1fr 1fr;gap:10px 12px}
.pm-lyrics-editor[hidden]{display:none!important}
.pm-lyrics-editor-help{grid-column:1/-1;color:#bec7cd;font-size:12px;line-height:1.5;margin:0 0 3px}
.pm-lyrics-editor label{display:flex;flex-direction:column;gap:5px;color:#ddc59e;font-size:11px;letter-spacing:.04em;font-weight:750;min-width:0}
.pm-lyrics-editor input{width:100%;border:1px solid #566370;border-radius:9px;min-height:43px;background:#10161c;color:#f8f8f7;padding:10px 12px;font:inherit;font-size:14px;letter-spacing:normal;outline:0}
.pm-lyrics-editor input:focus{border-color:#e2bb7e;box-shadow:0 0 0 2px #c79b6038}
.pm-lyrics-edit-actions{grid-column:1/-1;display:flex;gap:9px;flex-wrap:wrap}
.pm-lyrics-edit-actions button{font:inherit;font-weight:750;font-size:12px;min-height:41px;border-radius:9px;padding:9px 12px;border:1px solid #75818b;cursor:pointer}
.pm-lyrics-save{background:#d7b987;color:#171c20!important;border-color:#d7b987!important}
.pm-lyrics-reset{background:#262e35;color:#e5e8ea}
.pm-lyrics-edit-actions button:disabled{opacity:.5;cursor:not-allowed}
.pm-lyrics-edit-status{grid-column:1/-1;margin:0;min-height:0;color:#9ed5b5;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.pm-lyrics-edit-status[data-state=warning]{color:#eac88c}
.pm-lyrics-title{flex:1}
@media(max-width:700px){
  .pm-lyrics-head{gap:8px}
  .pm-lyrics-edit-toggle{font-size:11px;padding:7px 9px}
  .pm-lyrics-head-actions{gap:5px}
  .pm-lyrics-editor{padding:11px 16px 14px;grid-template-columns:1fr;gap:9px}
  .pm-lyrics-editor-help,.pm-lyrics-edit-actions,.pm-lyrics-edit-status{grid-column:auto}
  .pm-lyrics-edit-actions button{flex:1}
  .pm-lyrics-body{min-height:80px}
}

/* One-field Rename MP3 dialog, usable in mobile in-app browsers. */
.pm-rename-overlay{position:fixed;inset:0;z-index:500;display:flex;align-items:center;justify-content:center;
 background:rgba(3,7,11,.88);padding:18px;padding-bottom:max(18px,env(safe-area-inset-bottom))}
.pm-rename-panel{display:flex;flex-direction:column;gap:18px;width:min(100%,460px);border:1px solid #656c71;
 border-radius:17px;padding:25px;background:linear-gradient(145deg,#202830,#10171c);color:#f2f2ef;box-shadow:0 25px 100px #000b}
.pm-rename-panel h3{margin:0;color:#f1d0a0;font-size:22px;line-height:1.2}
.pm-rename-panel label{display:flex;flex-direction:column;gap:10px;font-size:13px;line-height:1.5;color:#d3d9dd}
.pm-rename-panel input{display:block;width:100%;font:inherit;font-size:16px;min-height:50px;border-radius:11px;
 border:1px solid #81868b;background:#111820;padding:12px;color:#fff;outline:0}
.pm-rename-panel input:focus{border-color:#e8c994;box-shadow:0 0 0 3px #bfa47735}
.pm-rename-actions{display:flex;gap:12px}
.pm-rename-actions button{font:inherit;font-size:14px;font-weight:800;min-height:45px;border-radius:10px;
 flex:1;padding:12px 14px;background:#29333c;border:1px solid #606a72;color:#e8ebeb;cursor:pointer}
.pm-rename-actions .pm-rename-confirm{color:#141a1e;background:#e0bb83;border-color:#e0bb83}
.pm-rename-actions button:disabled{opacity:.55}
.pm-rename-error{margin:0;color:#ffb8af;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.pm-rename-error:empty{display:none}
@media(max-width:480px){.pm-rename-panel{padding:20px}.pm-rename-overlay{align-items:center;padding:12px}}
