:root{
  --bg:#111611;
  --panel:#171C15;
  --panel-2:#1C2119;
  --panel-3:#222A1F;
  --line:rgba(255,255,255,.07);
  --line-strong:rgba(255,255,255,.13);
  --text:#E9EEE5;
  --muted:#93A08B;
  --muted-2:#6D7A66;
  --accent:#FF8232;
  --accent-2:#55632B;
  --accent-soft:rgba(255,130,50,.12);
  --radius:20px;
  --radius-sm:14px;
  --shadow:0 22px 50px rgba(0,0,0,.38);
  --glow-color:#FF8232;
  --glow-strength:.55;
}

*{margin:0;padding:0;box-sizing:border-box;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.14) transparent}
html,body{height:100%}
body{
  font-family:"Segoe UI Variable Display","Segoe UI",Inter,system-ui,-apple-system,Roboto,Arial,sans-serif;
  color:var(--text);
  background-color:var(--bg);
  background-image:
    radial-gradient(1100px 620px at 6% -12%, rgba(85,99,43,.30), transparent 62%),
    radial-gradient(900px 520px at 102% -4%, rgba(255,130,50,.07), transparent 58%);
  background-attachment:fixed;
  min-height:100vh;
  min-height:100dvh;
  overflow:hidden;
  -webkit-font-smoothing:antialiased;
  transition:background-color .25s ease;
}
button{font:inherit;color:inherit;background:none;border:none;cursor:pointer}
input,select{font:inherit;color:inherit}
input:focus,select:focus{outline:none}
::selection{background:rgba(255,130,50,.32)}

::-webkit-scrollbar{width:6px;height:6px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:rgba(255,255,255,.14);border-radius:99px}
::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.24)}

.defs{position:absolute;width:0;height:0;overflow:hidden}
.icon{width:20px;height:20px;flex:none;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.icon.fill{fill:currentColor;stroke:currentColor;stroke-width:1.4}
.icon.sm{width:16px;height:16px}
.icon.lg{width:26px;height:26px}

/* ---------- layout ---------- */
.app{
  position:relative;z-index:1;
  height:100vh;
  height:100dvh;
  padding:16px;
  display:grid;
  grid-template-columns:340px minmax(0,1fr);
  gap:16px;
  overflow:hidden;
}
.rail{display:flex;flex-direction:column;gap:14px;min-height:0;overflow-y:auto;padding-right:2px}
.card{
  background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,0) 42%),var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}

/* ---------- rail top ---------- */
.rail-top{display:flex;align-items:center;gap:8px;padding:2px 4px 0}
.rail-spacer{flex:1}
.heart-btn.on{color:var(--accent);border-color:rgba(255,130,50,.32);background:var(--accent-soft)}
.heart-btn.on svg{fill:currentColor}
.icon-btn{
  width:38px;height:38px;border-radius:12px;display:grid;place-items:center;
  color:var(--muted);border:1px solid var(--line);background:rgba(255,255,255,.02);
  transition:.18s;flex:none;
}
.icon-btn:hover{color:var(--text);border-color:var(--line-strong);background:rgba(255,255,255,.05)}
.brand{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:700;letter-spacing:.22em;color:var(--muted);white-space:nowrap}
.brand-dot{width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 12px var(--accent)}

/* ---------- banner ---------- */
.banner{
  position:relative;flex:none;height:150px;border-radius:18px;overflow:hidden;
  border:1px dashed rgba(255,255,255,.15);
  background:linear-gradient(135deg,#1C2119,#141A12);
  display:grid;place-items:center;cursor:pointer;transition:border-color .2s,transform .2s;
}
.banner:hover{border-color:rgba(255,130,50,.42)}
.banner:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.banner-empty{display:flex;flex-direction:column;align-items:center;gap:9px;color:var(--muted-2);font-size:12px;text-align:center;line-height:1.45}
.banner-empty b{color:var(--muted);font-weight:600}
.banner-media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.banner-clear{
  position:absolute;top:9px;right:9px;width:28px;height:28px;border-radius:9px;
  display:none;place-items:center;color:#fff;background:rgba(10,14,8,.62);
  border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(6px);z-index:2;
}
.banner:hover .banner-clear{display:grid}
.banner-clear:hover{background:rgba(10,14,8,.85)}

/* ---------- player ---------- */
.player{padding:18px;flex:none}
.now{display:flex;align-items:center;gap:13px}
.cover{
  width:58px;height:58px;border-radius:15px;flex:none;position:relative;
  display:grid;place-items:center;color:#12160F;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  box-shadow:0 8px 20px rgba(0,0,0,.28);
  overflow:hidden;
  background-size:cover;background-position:center;
}
.cover-ico{position:relative;z-index:1}
.eq{display:none;align-items:flex-end;gap:2.5px;height:22px;z-index:1}
.eq span{width:3px;height:6px;border-radius:2px;background:#12160F;animation:eq .95s ease-in-out infinite}
.eq span:nth-child(2){animation-delay:.12s}
.eq span:nth-child(3){animation-delay:.24s}
.eq span:nth-child(4){animation-delay:.36s}
.cover.playing .eq{display:flex}
.cover.playing .cover-ico{display:none}
.cover.has-img .cover-ico{display:none}
@keyframes eq{0%,100%{height:6px}50%{height:20px}}

.now-meta{min-width:0;flex:1}
.now-title{font-size:15.5px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.now-artist{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}
.now-tags{margin-top:7px;display:flex;gap:5px;flex-wrap:wrap}
.heart{
  width:34px;height:34px;border-radius:10px;display:grid;place-items:center;
  color:var(--muted-2);flex:none;transition:.16s;
}
.heart:hover{color:var(--text);background:rgba(255,255,255,.05)}
.heart.on{color:var(--accent)}
.heart.on svg{fill:currentColor}

.pill{
  display:inline-flex;align-items:center;padding:2px 8px;border-radius:99px;
  font-size:9.5px;letter-spacing:.06em;text-transform:uppercase;
  color:var(--muted);border:1px solid var(--line);background:rgba(255,255,255,.02);
}
.pill.sc{color:#FF9A57;border-color:rgba(255,130,50,.3);background:rgba(255,130,50,.07)}
.pill.yt{color:#E88C7A;border-color:rgba(232,110,90,.3);background:rgba(232,110,90,.07)}
.pill.sp{color:#A3C077;border-color:rgba(140,180,90,.28);background:rgba(140,180,90,.07)}
.pill.local{color:var(--muted);border-color:var(--line);background:rgba(255,255,255,.03)}

.progress{height:6px;border-radius:99px;background:rgba(255,255,255,.09);position:relative;cursor:pointer;margin:16px 0 7px;touch-action:none}
.progress-fill{height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,var(--accent-2),var(--accent))}
.progress-thumb{
  position:absolute;top:50%;left:0;width:12px;height:12px;border-radius:50%;
  background:#fff;transform:translate(-50%,-50%);opacity:0;transition:opacity .15s;
  box-shadow:0 0 0 3px rgba(255,130,50,.22);pointer-events:none;
}
.progress:hover .progress-thumb,.progress.dragging .progress-thumb{opacity:1}
.times{display:flex;justify-content:space-between;font-size:10.5px;color:var(--muted-2);font-variant-numeric:tabular-nums}

.controls{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:8px}
.ctrl{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;color:var(--muted);transition:.16s}
.ctrl:hover{color:var(--text);background:rgba(255,255,255,.05)}
.ctrl.sm{width:30px;height:30px;color:var(--muted-2)}
.ctrl.on{color:var(--accent)}
.play{
  width:54px;height:54px;border-radius:50%;display:grid;place-items:center;
  background:var(--accent);color:#14180F;flex:none;
  box-shadow:0 10px 26px rgba(255,130,50,.28);
  transition:transform .13s,box-shadow .2s,background .2s;
}
.play:hover{transform:scale(1.055);box-shadow:0 12px 32px rgba(255,130,50,.4)}
.play:active{transform:scale(.97)}
.play .icon{width:24px;height:24px}

.volume{display:flex;align-items:center;gap:10px;margin-top:10px;padding-top:12px;border-top:1px solid var(--line)}
.volume .ctrl{margin-left:-6px}
#volume{
  -webkit-appearance:none;appearance:none;flex:1;height:4px;border-radius:99px;cursor:pointer;
  background:linear-gradient(to right,var(--accent) 0%,var(--accent) var(--vol,80%),rgba(255,255,255,.1) var(--vol,80%));
}
#volume::-webkit-slider-thumb{
  -webkit-appearance:none;width:12px;height:12px;border-radius:50%;background:#E9EEE5;
  box-shadow:0 0 0 3px rgba(255,130,50,.18);margin-top:-4px;
}
#volume::-moz-range-thumb{width:12px;height:12px;border:none;border-radius:50%;background:#E9EEE5}

/* ---------- widgets ---------- */
.widgets{display:flex;flex-direction:column;gap:14px;padding-bottom:4px}
.widget{padding:14px 16px 15px;position:relative}
.widget-head{display:flex;align-items:center;gap:9px;margin-bottom:12px}
.widget-badge{
  width:28px;height:28px;border-radius:9px;display:grid;place-items:center;flex:none;
  background:var(--accent-soft);color:var(--accent);
}
.widget-title{font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted-2);flex:1}
.widget-select{
  appearance:none;-webkit-appearance:none;background:transparent;border:none;
  color:var(--muted);font-size:11px;cursor:pointer;padding:3px 0 3px 6px;text-align:right;
}
.widget-select:hover{color:var(--text)}
.widget-select option{background:#141A12;color:var(--text)}

.clock{font-size:36px;font-weight:650;line-height:1;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.clock-sub{margin-top:7px;font-size:11.5px;color:var(--muted);text-transform:capitalize}

.cal-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:9px}
.cal-month{font-size:12.5px;font-weight:600;text-transform:capitalize}
.cal-year{font-size:10.5px;color:var(--muted-2)}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px 0;text-align:center;font-size:11px}
.cal-dow{color:var(--muted-2);font-size:9.5px;padding:2px 0 4px;text-transform:uppercase;letter-spacing:.05em}
.cal-day{padding:4px 0;border-radius:8px;color:rgba(233,238,229,.58)}
.cal-day.other{color:rgba(233,238,229,.16)}
.cal-day.today{background:var(--accent);color:#14180F;font-weight:700}

.plan{display:flex;align-items:center;gap:8px;padding:3px 0}
.plan input[type=checkbox]{width:15px;height:15px;accent-color:var(--accent);cursor:pointer;flex:none}
.plan-text{
  flex:1;min-width:0;background:none;border:none;border-bottom:1px solid transparent;
  color:var(--text);font-size:12.5px;padding:3px 0;transition:border-color .15s;
}
.plan-text::placeholder{color:var(--muted-2)}
.plan-text:focus{border-bottom-color:var(--accent-2)}
.plan.done .plan-text{text-decoration:line-through;color:var(--muted-2)}
.plan-del{width:24px;height:24px;border-radius:7px;display:grid;place-items:center;color:var(--muted-2);opacity:0;transition:.15s;flex:none}
.plan:hover .plan-del{opacity:1}
.plan-del:hover{color:var(--accent);background:rgba(255,130,50,.1)}
.plan-add{display:flex;align-items:center;gap:6px;margin-top:7px;font-size:11px;color:var(--muted);padding:3px 0}
.plan-add:hover{color:var(--accent)}
.plan-add:disabled{opacity:.35;cursor:default;color:var(--muted-2)}
.plan-empty{font-size:11.5px;color:var(--muted-2);line-height:1.5}

.weather{display:flex;align-items:center;gap:14px}
.weather-main{flex:1;min-width:0}
.weather-temp{font-size:32px;font-weight:650;line-height:1;font-variant-numeric:tabular-nums}
.weather-cond{font-size:11.5px;color:var(--muted);margin-top:6px}
.weather-city{
  display:inline-flex;align-items:center;gap:4px;font-size:10.5px;color:var(--muted-2);
  margin-top:3px;padding:0;max-width:100%;transition:color .15s;
}
.weather-city:hover{color:var(--accent)}
.weather-city .icon{width:12px;height:12px}
.weather-city b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:130px}
.weather-loading{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);padding:4px 0}
.spin{animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.city-editor{margin-top:2px}
.city-input{
  width:100%;height:38px;border-radius:11px;border:1px solid var(--line-strong);
  background:rgba(0,0,0,.18);padding:0 12px;font-size:12px;color:var(--text);
}
.city-input:focus{border-color:rgba(255,130,50,.45)}
.city-input::placeholder{color:var(--muted-2)}
.city-results{margin-top:8px;display:flex;flex-direction:column;gap:2px;max-height:176px;overflow-y:auto}
.city-item{display:flex;flex-direction:column;align-items:flex-start;padding:7px 9px;border-radius:9px;text-align:left;transition:background .15s;width:100%}
.city-item:hover{background:rgba(255,255,255,.05)}
.city-item b{font-size:12px;font-weight:600}
.city-item span{font-size:10.5px;color:var(--muted-2);margin-top:1px}
.city-hint{font-size:10.5px;color:var(--muted-2);line-height:1.55;margin-top:8px}
.city-quick{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.city-quick button{
  font-size:10.5px;color:var(--muted);border:1px solid var(--line);
  border-radius:99px;padding:4px 9px;transition:.15s;
}
.city-quick button:hover{color:var(--accent);border-color:rgba(255,130,50,.3)}
.weather-ico{
  width:48px;height:48px;border-radius:15px;display:grid;place-items:center;
  background:var(--accent-soft);color:var(--accent);flex:none;
}
.weather-ico .icon{width:24px;height:24px}
.weather-side{display:flex;flex-direction:column;align-items:center;gap:6px;flex:none}
.weather-refresh{width:24px;height:24px;border-radius:7px;display:grid;place-items:center;color:var(--muted-2);opacity:.65;transition:.15s}
.weather-refresh:hover{opacity:1;color:var(--accent)}

/* ---------- search ---------- */
.search-wrap{position:relative;flex:none}
.search{
  width:100%;height:46px;border-radius:14px;border:1px solid var(--line);
  background:rgba(0,0,0,.16);color:var(--text);padding:0 42px 0 42px;font-size:13px;
  transition:border-color .2s,box-shadow .2s;
}
.search::placeholder{color:var(--muted-2)}
.search:focus{border-color:rgba(255,130,50,.45);box-shadow:0 0 0 3px rgba(255,130,50,.08)}
.search-ico{position:absolute;left:15px;top:50%;transform:translateY(-50%);width:17px;height:17px;color:var(--muted-2);pointer-events:none}
.search::-webkit-search-cancel-button{display:none}
.search-clear{
  position:absolute;right:9px;top:50%;transform:translateY(-50%);
  width:28px;height:28px;border-radius:9px;display:grid;place-items:center;
  color:var(--muted-2);transition:.15s;
}
.search-clear:hover{color:var(--text);background:rgba(255,255,255,.06)}

.chips{display:flex;gap:7px;flex-wrap:wrap;flex:none;margin-top:9px}
.chip{
  padding:5px 11px;border-radius:99px;border:1px solid var(--line);
  color:var(--muted);font-size:11px;transition:.16s;
}
.chip:hover{color:var(--text);border-color:var(--line-strong)}
.chip.on{background:var(--accent-soft);border-color:rgba(255,130,50,.35);color:var(--accent)}

/* ---------- track list ---------- */
.tracks-head{display:flex;align-items:center;justify-content:space-between;padding:4px 8px 9px;flex:none}
.tracks-title{font-size:10.5px;letter-spacing:.13em;text-transform:uppercase;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tracks-count{font-size:10px;color:var(--muted-2);white-space:nowrap;padding-left:8px}
.track-list{flex:1;min-height:0;overflow-y:auto;padding:2px 4px 8px;display:flex;flex-direction:column;gap:2px}

.track{
  display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:13px;
  border:1px solid transparent;cursor:pointer;transition:background .15s,border-color .15s;
}
.track:hover{background:rgba(255,255,255,.04)}
.track.active{background:rgba(255,130,50,.07);border-color:rgba(255,130,50,.22)}
.track-num{width:17px;text-align:center;font-size:10px;color:var(--muted-2);flex:none;font-variant-numeric:tabular-nums}
.track.active .track-num{color:var(--accent)}
.track-cover{
  width:40px;height:40px;border-radius:11px;display:grid;place-items:center;
  color:#12160F;flex:none;position:relative;overflow:hidden;
}
.track-cover .icon{width:18px;height:18px;position:relative;z-index:1}
.track-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.track-cover .eq{position:relative;z-index:2}
.track-cover .eq span{background:#E9EEE5}
.track.active .track-cover .cover-ico{display:none}
.track.active .track-cover .eq{display:flex}
.track-meta{min-width:0;flex:1}
.track-name{font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.track-artist{font-size:10.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.track-heart,.track-add{
  width:28px;height:28px;border-radius:8px;display:grid;place-items:center;
  color:var(--muted-2);opacity:0;transition:.15s;flex:none;
}
.track:hover .track-heart,.track:hover .track-add{opacity:1}
.track-heart:hover,.track-add:hover{color:var(--text);background:rgba(255,255,255,.06)}
.track-heart.on{opacity:1;color:var(--accent)}
.track-heart.on svg{fill:currentColor}
.track-empty{padding:34px 20px;text-align:center;font-size:12.5px;color:var(--muted-2);line-height:1.6}

/* result states */
.notice{
  display:flex;gap:12px;padding:15px;margin:6px 4px;
  border:1px solid var(--line);border-radius:15px;background:rgba(255,255,255,.025);
}
.notice-ico{
  width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:none;
  background:var(--accent-soft);color:var(--accent);
}
.notice-title{font-size:12.5px;font-weight:650;line-height:1.4}
.notice-text{font-size:11.5px;color:var(--muted);line-height:1.6;margin-top:5px}
.notice-text a{color:var(--accent);text-decoration:none}
.notice-actions{margin-top:11px;display:flex;gap:8px;flex-wrap:wrap}
.skel{display:flex;align-items:center;gap:10px;padding:7px 8px}
.skel-cover{
  width:40px;height:40px;border-radius:11px;flex:none;
  background:linear-gradient(90deg,rgba(255,255,255,.04),rgba(255,255,255,.10),rgba(255,255,255,.04));
  background-size:200% 100%;animation:shimmer 1.25s linear infinite;
}
.skel-lines{flex:1;display:flex;flex-direction:column;gap:7px}
.skel-line{
  height:8px;border-radius:99px;
  background:linear-gradient(90deg,rgba(255,255,255,.04),rgba(255,255,255,.10),rgba(255,255,255,.04));
  background-size:200% 100%;animation:shimmer 1.25s linear infinite;
}
.skel-line.short{width:38%}
@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
.loading-bar{display:flex;align-items:center;gap:8px;padding:8px 12px 2px;font-size:11px;color:var(--muted-2)}
.loading-bar .icon{width:14px;height:14px}

/* ---------- lyrics ---------- */
.lyrics{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.lyrics-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
  padding:22px 28px 17px;border-bottom:1px solid var(--line);flex:none;
}
.lyrics-title{font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.lyrics-track{font-size:12px;color:var(--muted-2);margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sync{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted-2);white-space:nowrap;padding-top:2px;flex:none}
.sync-dot{width:6px;height:6px;border-radius:50%;background:#8FB055;box-shadow:0 0 0 0 rgba(143,176,85,.5);animation:pulse 2.2s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(143,176,85,.45)}70%{box-shadow:0 0 0 7px rgba(143,176,85,0)}100%{box-shadow:0 0 0 0 rgba(143,176,85,0)}}

.lyrics-body{
  flex:1;overflow-y:auto;
  padding:14vh clamp(22px,4vw,64px) 30vh;
  scroll-behavior:smooth;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 9%,#000 88%,transparent 100%);
  mask-image:linear-gradient(to bottom,transparent 0,#000 9%,#000 88%,transparent 100%);
}
.lyr{
  position:relative;max-width:900px;margin:0 auto;
  font-size:clamp(23px,2.15vw,34px);line-height:1.46;
  color:rgba(233,238,229,.58);
  padding:7px 0 7px 18px;border-left:2px solid transparent;cursor:pointer;
  transition:color .3s,transform .3s,border-color .3s,opacity .3s;
}
.lyr:hover{color:rgba(233,238,229,.82)}
.lyr.past{color:rgba(233,238,229,.33)}
.lyr.active{
  color:#fff;font-weight:600;border-left-color:var(--accent);transform:translateX(3px);
  text-shadow:0 0 34px rgba(255,130,50,.18);
}
.lyr-header{
  max-width:900px;margin:26px auto 4px;padding:0 0 3px 18px;
  font-size:11px;font-weight:700;letter-spacing:.15em;text-transform:uppercase;
  color:rgba(255,130,50,.6);
}
.lyr-header:first-child{margin-top:0}
.lyr-header.active{color:var(--accent)}
.lyr-empty{
  height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:14px;text-align:center;color:var(--muted-2);font-size:13.5px;line-height:1.7;
}
.lyr-empty .icon{width:36px;height:36px;color:var(--muted-2);opacity:.7}
.lyr-empty b{color:var(--text);font-size:15px}

/* ---------- glow ---------- */
.glow{
  position:fixed;left:50%;bottom:-150px;z-index:0;
  width:min(820px,92vw);height:460px;
  transform:translateX(-50%);
  pointer-events:none;
  background:radial-gradient(closest-side,var(--glow-color),transparent 74%);
  background:radial-gradient(closest-side,color-mix(in srgb,var(--glow-color) 75%,transparent),transparent 74%);
  filter:blur(42px);
  opacity:0;
  transition:opacity .6s ease;
}
body.playing .glow{opacity:calc(.16 + var(--glow-strength) * .64)}
body.no-glow .glow{opacity:0 !important}

/* ---------- glass ---------- */
body.glass .card,
body.glass .drawer,
body.glass .modal-card,
body.glass .search{
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.012) 45%),rgba(23,28,21,.52);
  -webkit-backdrop-filter:blur(22px) saturate(150%);
  backdrop-filter:blur(22px) saturate(150%);
  border-color:rgba(255,255,255,.10);
}
body.glass .icon-btn,
body.glass .chip,
body.glass .field-input,
body.glass .city-input{
  background:rgba(255,255,255,.035);
}
body.glass .toast{
  background:rgba(28,33,25,.72);
  -webkit-backdrop-filter:blur(18px) saturate(150%);
  backdrop-filter:blur(18px) saturate(150%);
}

/* ---------- drawer ---------- */
.scrim{
  position:fixed;inset:0;background:rgba(4,7,3,.55);backdrop-filter:blur(3px);
  opacity:0;pointer-events:none;transition:opacity .25s;z-index:55;
}
body.drawer-open .scrim{opacity:1;pointer-events:auto}
.drawer{
  position:fixed;top:0;bottom:0;left:0;width:430px;max-width:94vw;z-index:60;
  background:#141A12;border-right:1px solid var(--line-strong);
  transform:translateX(-102%);transition:transform .28s cubic-bezier(.2,.8,.2,1);
  display:flex;flex-direction:column;box-shadow:var(--shadow);
}
body.drawer-open .drawer{transform:none}
.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:18px 18px 12px;flex:none}
.drawer-search{padding:0 18px 12px;flex:none;border-bottom:1px solid var(--line)}
.drawer-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;padding:11px 14px 12px;border-bottom:1px solid var(--line);flex:none}
.dtab{
  height:36px;border-radius:10px;border:1px solid transparent;
  font-size:11px;color:var(--muted);display:inline-flex;align-items:center;justify-content:center;gap:5px;
  transition:.16s;padding:0 4px;white-space:nowrap;
}
.dtab:hover{color:var(--text);background:rgba(255,255,255,.04)}
.dtab.on{background:var(--accent-soft);border-color:rgba(255,130,50,.3);color:var(--accent);font-weight:600}
.dtab-count{
  display:inline-grid;place-items:center;min-width:17px;height:17px;padding:0 5px;
  border-radius:99px;background:rgba(255,255,255,.08);font-size:9px;color:var(--muted);
  font-weight:500;
}
.dtab.on .dtab-count{background:rgba(255,130,50,.2);color:var(--accent)}
.drawer-body{flex:1;min-height:0;display:flex}
.drawer-panel{display:none;width:100%;min-width:0;min-height:0}
.drawer-panel:not([hidden]){display:flex;flex-direction:column}
.drawer-panel[hidden]{display:none !important}
.drawer-panel[data-panel="tracks"]{padding:12px 10px 14px}
.drawer-panel[data-panel="playlists"],
.drawer-panel[data-panel="favorites"],
.drawer-panel[data-panel="settings"]{padding:18px 18px 26px;overflow-y:auto;display:block}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.panel-head .drawer-label{margin:0}
.dsec{margin-bottom:26px}
.dsec:last-of-type{margin-bottom:0}
.drawer-label{font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted-2);margin-bottom:12px}
.drawer-note{font-size:10.5px;color:var(--muted-2);line-height:1.6;border-top:1px solid var(--line);padding-top:16px}

/* settings controls */
.toggle-row{
  display:flex;align-items:center;gap:14px;justify-content:space-between;
  padding:11px 0;border-bottom:1px solid var(--line);
}
.toggle-row:last-of-type{border-bottom:none}
.toggle-text{min-width:0}
.toggle-text b{display:block;font-size:12.5px;font-weight:600}
.toggle-text span{display:block;font-size:10.5px;color:var(--muted-2);line-height:1.5;margin-top:3px}
.switch{
  width:46px;height:27px;border-radius:99px;flex:none;position:relative;
  background:rgba(255,255,255,.09);border:1px solid var(--line-strong);
  transition:background .2s,border-color .2s;
}
.switch span{
  position:absolute;top:50%;left:3px;width:19px;height:19px;border-radius:50%;
  background:#C9D1C3;transform:translateY(-50%);transition:left .2s,background .2s;
}
.switch.on{background:var(--accent);border-color:var(--accent)}
.switch.on span{left:22px;background:#14180F}

.fx-grid{display:flex;align-items:flex-end;gap:16px;padding:12px 0 4px;flex-wrap:wrap}
.fx-item{display:flex;flex-direction:column;gap:6px;font-size:10.5px;color:var(--muted-2)}
.fx-item.range{flex:1;min-width:150px}
.fx-item.range input{width:100%}
.fx-item input[type=color]{
  width:44px;height:30px;border-radius:9px;border:1px solid var(--line-strong);
  background:none;cursor:pointer;padding:2px;
}
.fx-item input[type=color]::-webkit-color-swatch-wrapper{padding:0}
.fx-item input[type=color]::-webkit-color-swatch{border:none;border-radius:6px}
.fx-item input[type=color]::-moz-color-swatch{border:none;border-radius:6px}
#glowIntensity{
  -webkit-appearance:none;appearance:none;height:4px;border-radius:99px;cursor:pointer;
  background:linear-gradient(to right,var(--accent) 0%,var(--accent) var(--gi,55%),rgba(255,255,255,.1) var(--gi,55%));
}
#glowIntensity::-webkit-slider-thumb{
  -webkit-appearance:none;width:12px;height:12px;border-radius:50%;background:#E9EEE5;
  box-shadow:0 0 0 3px rgba(255,130,50,.18);
}
#glowIntensity::-moz-range-thumb{width:12px;height:12px;border:none;border-radius:50%;background:#E9EEE5}

.bg-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
#bgColor{
  width:44px;height:44px;border-radius:13px;border:1px solid var(--line-strong);
  background:none;cursor:pointer;padding:3px;flex:none;
}
#bgColor::-webkit-color-swatch-wrapper{padding:0}
#bgColor::-webkit-color-swatch{border:none;border-radius:10px}
#bgColor::-moz-color-swatch{border:none;border-radius:10px}
.swatches{display:flex;gap:7px;flex-wrap:wrap}
.swatch{
  width:27px;height:27px;border-radius:9px;background:var(--c);
  border:1px solid rgba(255,255,255,.15);transition:.15s;
}
.swatch:hover{transform:translateY(-1px)}
.swatch.on{box-shadow:0 0 0 2px #141A12,0 0 0 4px var(--accent)}

.field{margin-bottom:14px}
.field-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px;font-size:11px;color:var(--muted)}
.field-state{font-size:9.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted-2);white-space:nowrap}
.field-state.ok{color:#9CC06A}
.field-input{
  width:100%;height:38px;border-radius:10px;border:1px solid var(--line);
  background:rgba(0,0,0,.18);padding:0 11px;font-size:12px;color:var(--text);
  transition:border-color .15s;
}
.field-input:focus{border-color:rgba(255,130,50,.45)}
.field-input::placeholder{color:var(--muted-2)}
.field-actions{display:flex;align-items:center;gap:10px;margin-top:2px;flex-wrap:wrap}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  height:36px;padding:0 14px;border-radius:10px;font-size:11.5px;font-weight:600;
  border:1px solid var(--line);color:var(--muted);transition:.16s;
}
.btn:hover{color:var(--text);border-color:var(--line-strong);background:rgba(255,255,255,.04)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:#14180F}
.btn.primary:hover{background:#FF914B;color:#14180F}
.btn.small{height:30px;padding:0 10px;font-size:10.5px;gap:5px}
.btn.danger{color:#E08A7A;border-color:rgba(224,138,122,.28);margin-top:18px}
.btn.danger:hover{color:#FFA08D;background:rgba(224,138,122,.08)}
.btn.ghost{background:none}
.save-state{font-size:10.5px;color:#9CC06A;opacity:0;transition:opacity .2s}
.save-state.show{opacity:1}
.field-hint{font-size:10.5px;line-height:1.65;color:var(--muted-2);margin-top:12px}
.field-hint b{color:var(--muted);font-weight:600}
.field-hint a{color:var(--accent);text-decoration:none;border-bottom:1px solid rgba(255,130,50,.35)}
.field-hint a:hover{color:#FFA263}
.field-hint code,.guide code{
  font-family:ui-monospace,Consolas,"Cascadia Mono",monospace;font-size:10px;
  background:rgba(255,255,255,.06);padding:1px 4px;border-radius:4px;color:var(--muted);
  word-break:break-word;
}

/* ---------- playlists ---------- */
.pl-new{display:flex;gap:8px;margin-bottom:14px}
.pl-new .field-input{height:36px}
.pl-list{display:flex;flex-direction:column;gap:8px}
.pl{
  border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.02);
  overflow:hidden;transition:border-color .15s,background .15s;
}
.pl.open{border-color:rgba(255,130,50,.24);background:rgba(255,130,50,.04)}
.pl-head{display:flex;align-items:center;gap:10px;padding:10px;cursor:pointer}
.pl-badge{
  width:36px;height:36px;border-radius:11px;display:grid;place-items:center;flex:none;
  background:var(--accent-soft);color:var(--accent);
}
.pl-badge .icon{width:18px;height:18px}
.pl-meta{min-width:0;flex:1}
.pl-name{font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pl-sub{font-size:10px;color:var(--muted-2);margin-top:2px}
.pl-actions{display:flex;align-items:center;gap:2px;flex:none}
.pl-act{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;color:var(--muted-2);transition:.15s}
.pl-act:hover{color:var(--accent);background:rgba(255,130,50,.1)}
.pl-act.del:hover{color:#E08A7A;background:rgba(224,138,122,.1)}
.pl-tracks{display:none;padding:2px 6px 8px;border-top:1px solid var(--line)}
.pl.open .pl-tracks{display:flex;flex-direction:column;gap:1px}
.pl-track{display:flex;align-items:center;gap:9px;padding:6px;border-radius:9px;cursor:pointer;transition:background .15s}
.pl-track:hover{background:rgba(255,255,255,.05)}
.pl-track-cover{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;color:#12160F;flex:none;position:relative;overflow:hidden}
.pl-track-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.pl-track-cover .icon{width:14px;height:14px;position:relative;z-index:1}
.pl-track-meta{min-width:0;flex:1}
.pl-track-name{font-size:11.5px;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pl-track-artist{font-size:9.5px;color:var(--muted-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pl-track-del{width:24px;height:24px;border-radius:7px;display:grid;place-items:center;color:var(--muted-2);opacity:0;transition:.15s;flex:none}
.pl-track:hover .pl-track-del{opacity:1}
.pl-track-del:hover{color:#E08A7A;background:rgba(224,138,122,.1)}
.pl-empty{font-size:11.5px;color:var(--muted-2);line-height:1.6;padding:6px 0}

/* ---------- favorites ---------- */
.fav-list{display:flex;flex-direction:column;gap:2px}
.fav{display:flex;align-items:center;gap:10px;padding:7px;border-radius:11px;cursor:pointer;transition:background .15s}
.fav:hover{background:rgba(255,255,255,.04)}
.fav-cover{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;color:#12160F;flex:none;position:relative;overflow:hidden}
.fav-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.fav-cover .icon{width:16px;height:16px;position:relative;z-index:1}
.fav-meta{min-width:0;flex:1}
.fav-name{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fav-artist{font-size:10.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}
.fav-empty{font-size:11.5px;color:var(--muted-2);line-height:1.6}

/* ---------- modal ---------- */
.modal{
  position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:20px;
  background:rgba(4,7,3,.62);backdrop-filter:blur(5px);
}
.modal[hidden]{display:none}
.modal-card{
  width:min(420px,100%);max-height:80vh;display:flex;flex-direction:column;
  background:#161C14;border:1px solid var(--line-strong);border-radius:18px;
  box-shadow:var(--shadow);padding:16px;
}
.modal-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.modal-title{font-size:14px;font-weight:650}
.modal-track{font-size:11.5px;color:var(--muted-2);line-height:1.5;margin-bottom:12px}
.modal-track b{color:var(--text);font-weight:600}
.modal-list{display:flex;flex-direction:column;gap:3px;overflow-y:auto;max-height:260px;margin-bottom:12px}
.modal-pl{display:flex;align-items:center;gap:9px;padding:9px;border-radius:10px;transition:background .15s;text-align:left}
.modal-pl:hover{background:rgba(255,255,255,.06)}
.modal-pl-icon{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);flex:none}
.modal-pl-icon .icon{width:15px;height:15px}
.modal-pl-meta{min-width:0;flex:1}
.modal-pl-name{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.modal-pl-sub{font-size:10px;color:var(--muted-2)}
.modal-new{display:flex;gap:8px;padding-top:12px;border-top:1px solid var(--line)}
.modal-new .field-input{height:36px}
.modal-empty{font-size:11.5px;color:var(--muted-2);line-height:1.55;padding:4px 2px 8px}

/* ---------- toast ---------- */
.toast{
  position:fixed;left:50%;bottom:26px;transform:translate(-50%,16px);
  background:#1C2119;border:1px solid var(--line-strong);color:var(--text);
  padding:10px 16px;border-radius:12px;font-size:12px;z-index:90;
  box-shadow:var(--shadow);opacity:0;pointer-events:none;transition:.2s;max-width:80vw;
}
.toast.show{opacity:1;transform:translate(-50%,0)}

/* ---------- responsive ---------- */
@media (max-width:1250px){
  .app{grid-template-columns:306px minmax(0,1fr);gap:12px;padding:12px}
  .lyr{font-size:clamp(22px,2.4vw,31px)}
}
@media (max-width:1000px){
  body{overflow:auto}
  .app{
    height:auto;min-height:100dvh;
    grid-template-columns:1fr;grid-auto-rows:auto;overflow:visible;
  }
  .rail{overflow:visible;max-height:none}
  .lyrics{height:72vh;min-height:460px}
  .drawer{width:min(430px,100%)}
}
@media (max-width:640px){
  .app{padding:10px;gap:10px}
  .rail-top{gap:6px}
  .icon-btn{width:34px;height:34px}
  .brand{font-size:11px;letter-spacing:.16em}
  .lyrics{height:78vh}
  .lyrics-head{padding:16px 18px 13px}
  .lyrics-body{padding:10vh 18px 26vh}
  .lyr{font-size:22px}
  .drawer-tabs{grid-template-columns:repeat(2,1fr)}
}
