:root {
  --bg0:#0a2228; --bg1:#0e2c33; --bg2:#123a40;
  --orange:#e8915a; --orange-soft:#e8a874; --coral:#e8775a;
  --mint:#7fe0d0; --teal:#3f8f8c;
  --text:#eaf4f3; --text-2:#aac3c2; --text-dim:#7e9a99;
  --glass:rgba(255,255,255,.045); --glass-2:rgba(255,255,255,.07);
  --stroke:rgba(255,255,255,.09); --stroke-2:rgba(255,255,255,.14);
  --r-lg:24px; --r-md:18px; --r-sm:12px;
  --blur:saturate(140%) blur(26px);
  --shadow:0 24px 60px -24px rgba(0,0,0,.55);
}
* { box-sizing:border-box; margin:0; padding:0; }
html,body { height:100%; }
body {
  font-family:"Plus Jakarta Sans",system-ui,sans-serif;
  color:var(--text); -webkit-font-smoothing:antialiased;
  background:
    radial-gradient(120% 90% at 18% 0%, #1a4750 0%, transparent 46%),
    radial-gradient(120% 120% at 100% 110%, #2a4138 0%, transparent 50%),
    linear-gradient(160deg, var(--bg1) 0%, var(--bg0) 60%, #081c20 100%);
  background-attachment:fixed;
  overflow:hidden;
}
#root { height:100vh; }
button { font:inherit; color:inherit; cursor:pointer; border:none; background:none; }
input { font:inherit; }
::-webkit-scrollbar { width:9px; height:9px; }
::-webkit-scrollbar-thumb { background:rgba(255,255,255,.1); border-radius:20px; border:2px solid transparent; background-clip:content-box; }
::-webkit-scrollbar-thumb:hover { background:rgba(255,255,255,.2); background-clip:content-box; }

.glass { background:var(--glass); border:1px solid var(--stroke); backdrop-filter:var(--blur); -webkit-backdrop-filter:var(--blur); box-shadow:var(--shadow); }

.app-shell { display:flex; height:100vh; padding:14px; gap:14px; }
.main { flex:1; display:flex; flex-direction:column; min-width:0; gap:14px; }
.content-row { flex:1; display:flex; gap:14px; min-height:0; }
.center { flex:1; min-width:0; overflow-y:auto; padding-right:4px; }
.player-col { width:344px; flex:0 0 344px; display:flex; flex-direction:column; gap:14px; overflow:hidden; }

.rail { width:68px; flex:0 0 68px; display:flex; flex-direction:column; align-items:center; gap:26px;
  padding:18px 0; border-radius:var(--r-lg); background:rgba(6,22,26,.5); border:1px solid var(--stroke);
  backdrop-filter:var(--blur); -webkit-backdrop-filter:var(--blur); }
.rail-logo { width:42px; height:42px; border-radius:13px; display:grid; place-items:center; color:#0c2226;
  background:linear-gradient(150deg, var(--mint), var(--orange)); box-shadow:0 8px 22px -8px var(--orange); }
.rail-group { display:flex; flex-direction:column; gap:10px; flex:1; }
.rail-btn { position:relative; width:44px; height:44px; border-radius:14px; display:grid; place-items:center;
  color:var(--text-dim); transition:.18s; }
.rail-btn:hover { color:var(--text); background:var(--glass); }
.rail-btn-on { color:var(--text); background:var(--glass-2); }
.rail-dot { position:absolute; left:-9px; top:50%; transform:translateY(-50%); width:4px; height:18px; border-radius:4px; background:var(--orange); }
.rail-settings { color:var(--text-dim); }

.topbar { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:2px 4px; }
.topbar-title { font-family:"Sora",sans-serif; font-size:26px; font-weight:700; letter-spacing:-.02em; }
.topbar-sub { color:var(--text-2); font-size:13.5px; margin-top:3px; }
.topbar-right { display:flex; align-items:center; gap:12px; }
.search-box { display:flex; align-items:center; gap:9px; height:42px; padding:0 16px; width:300px;
  border-radius:14px; background:var(--glass); border:1px solid var(--stroke); color:var(--text-dim);
  backdrop-filter:var(--blur); transition:.2s; }
.search-box:focus-within { border-color:var(--stroke-2); background:var(--glass-2); color:var(--text-2); }
.search-box input { background:none; border:none; outline:none; color:var(--text); width:100%; }
.search-box input::placeholder { color:var(--text-dim); }
.icon-btn { position:relative; width:42px; height:42px; border-radius:13px; display:grid; place-items:center;
  background:var(--glass); border:1px solid var(--stroke); color:var(--text-2); backdrop-filter:var(--blur); transition:.18s; text-decoration:none; }
.icon-btn:hover { color:var(--text); border-color:var(--stroke-2); }
.bell-dot { position:absolute; top:10px; right:11px; width:7px; height:7px; border-radius:50%; background:var(--coral); border:1.5px solid var(--bg1); }
.user-chip { display:flex; align-items:center; gap:9px; height:42px; padding:0 10px 0 6px; border-radius:13px;
  background:var(--glass); border:1px solid var(--stroke); color:var(--text-2); backdrop-filter:var(--blur); text-decoration:none; }
.user-chip:hover { border-color:var(--stroke-2); color:var(--text); }
.user-av { width:30px; height:30px; border-radius:9px; background:linear-gradient(140deg,var(--orange),var(--coral)); }
.user-name { font-size:13.5px; font-weight:600; }

.view { padding:6px 8px 30px 2px; }
.sec-head { display:flex; align-items:baseline; justify-content:space-between; margin:30px 2px 16px; }
.sec-head:first-child { margin-top:6px; }
.sec-head h2 { font-family:"Sora",sans-serif; font-size:18px; font-weight:600; letter-spacing:-.01em; }
.sec-action { color:var(--text-dim); font-size:12.5px; font-weight:600; letter-spacing:.02em; }
.sec-action:hover { color:var(--text); }

.home-quick { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.quick-chip { display:flex; align-items:center; gap:13px; padding:8px 14px 8px 8px; border-radius:14px;
  background:var(--glass); border:1px solid var(--stroke); backdrop-filter:var(--blur); overflow:hidden; transition:.18s; }
.quick-chip:hover { background:var(--glass-2); border-color:var(--stroke-2); }
.quick-chip > span.quick-label { font-weight:600; font-size:13.5px; flex:1; text-align:left; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.quick-go { width:30px; height:30px; border-radius:50%; display:grid; place-items:center; color:#0c2226;
  background:linear-gradient(150deg,var(--mint),var(--orange)); opacity:0; transform:translateX(6px); transition:.2s; flex:0 0 30px; }
.quick-chip:hover .quick-go { opacity:1; transform:none; }

.feature-row { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.feature-card { position:relative; display:flex; flex-direction:column; gap:16px; padding:16px; border-radius:var(--r-lg);
  text-align:left; min-height:188px; transition:.2s; overflow:hidden; }
.feature-card:hover { transform:translateY(-3px); border-color:var(--stroke-2); }
.feature-art { flex:1; min-height:96px; }
.feature-kicker { font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--orange-soft); }
.feature-name { font-family:"Sora",sans-serif; font-size:18px; font-weight:700; margin-top:6px; letter-spacing:-.01em; }
.feature-sub { font-size:12.5px; color:var(--text-2); margin-top:2px; }
.feature-play { position:absolute; right:16px; top:16px; width:42px; height:42px; border-radius:50%; display:grid; place-items:center;
  color:#0c2226; background:linear-gradient(150deg,var(--mint),var(--orange)); box-shadow:0 10px 24px -8px var(--orange);
  opacity:0; transform:scale(.85) translateY(-4px); transition:.22s; }
.feature-card:hover .feature-play { opacity:1; transform:none; }

.mini-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(168px,1fr)); gap:16px; }
.mini-card { text-align:left; padding:12px; border-radius:var(--r-md); transition:.18s; display:block; width:100%; }
.mini-card:hover { background:var(--glass); }
.mini-art-wrap { position:relative; margin-bottom:12px; }
.mini-play { position:absolute; right:9px; bottom:9px; width:40px; height:40px; border-radius:50%; display:grid; place-items:center;
  color:#0c2226; background:linear-gradient(150deg,var(--mint),var(--orange)); box-shadow:0 10px 24px -8px rgba(0,0,0,.5);
  opacity:0; transform:translateY(7px); transition:.22s; }
.mini-card:hover .mini-play { opacity:1; transform:none; }
.mini-kicker { font-size:10.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--text-dim); }
.mini-name { font-weight:700; font-size:14.5px; margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mini-sub { font-size:12px; color:var(--text-2); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.seg { display:inline-flex; gap:4px; padding:4px; border-radius:13px; background:var(--glass); border:1px solid var(--stroke); margin-bottom:6px; }
.seg-btn { padding:8px 18px; border-radius:9px; font-size:13px; font-weight:600; color:var(--text-dim); transition:.16s; }
.seg-btn:hover { color:var(--text); }
.seg-on { background:var(--glass-2); color:var(--text); box-shadow:inset 0 1px 0 rgba(255,255,255,.08); }

.tlist { margin-top:14px; }
.tlist-head { display:grid; grid-template-columns:42px 1fr 200px 110px 38px 56px; align-items:center; gap:14px;
  padding:0 14px 10px; color:var(--text-dim); font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  border-bottom:1px solid var(--stroke); }
.trow { display:grid; grid-template-columns:42px 1fr 200px 110px 38px 56px; align-items:center; gap:14px;
  padding:8px 14px; border-radius:12px; transition:.14s; cursor:default; }
.trow:hover { background:var(--glass); }
.trow-on { background:var(--glass-2); }
.trow-idx { display:grid; place-items:center; height:32px; color:var(--text-dim); cursor:pointer; }
.trow-num { font-variant-numeric:tabular-nums; font-size:13px; }
.trow-play { display:none; }
.trow:hover .trow-num, .trow-on .trow-num { display:none; }
.trow:hover .trow-play { display:block; color:var(--text); }
.trow-main { min-width:0; }
.trow-song { display:flex; align-items:center; gap:13px; min-width:0; }
.trow-title { font-weight:600; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.trow-on .trow-title { color:var(--mint); }
.trow-artist { font-size:12px; color:var(--text-2); margin-top:1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.trow-album { font-size:12.5px; color:var(--text-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.trow-genre { font-size:11px; font-weight:600; color:var(--text-dim); padding:3px 9px; border-radius:20px;
  background:var(--glass); border:1px solid var(--stroke); justify-self:start; }
.trow-like { color:var(--text-dim); display:grid; place-items:center; opacity:0; transition:.14s; cursor:pointer; }
.trow:hover .trow-like { opacity:1; }
.trow-like.is-liked { opacity:1; color:var(--orange); }
.trow-dur { font-size:12.5px; color:var(--text-2); font-variant-numeric:tabular-nums; text-align:right; }
.eq { display:flex; align-items:flex-end; gap:2px; height:15px; }
.eq i { width:2.5px; background:var(--mint); border-radius:2px; animation:eq .9s ease-in-out infinite; }
.eq i:nth-child(1){height:6px;animation-delay:0s} .eq i:nth-child(2){height:14px;animation-delay:.25s} .eq i:nth-child(3){height:9px;animation-delay:.5s}
@keyframes eq { 0%,100%{transform:scaleY(.4)} 50%{transform:scaleY(1)} }

.back-btn { display:inline-flex; align-items:center; gap:5px; color:var(--text-2); font-size:13px; font-weight:600; padding:6px 12px 6px 6px; border-radius:10px; margin-bottom:14px; }
.back-btn:hover { color:var(--text); background:var(--glass); }
.detail-hero { display:flex; gap:24px; align-items:flex-end; padding:8px 6px 20px; }
.detail-art { width:208px; height:208px; flex:0 0 208px; box-shadow:0 30px 60px -22px rgba(0,0,0,.7); }
.detail-info { min-width:0; }
.detail-kicker { font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--orange-soft); }
.detail-title { font-family:"Sora",sans-serif; font-size:clamp(30px,4vw,52px); font-weight:800; letter-spacing:-.025em; line-height:1.02; margin:8px 0 10px; }
.detail-sub { color:var(--text); font-size:15px; }
.detail-meta { display:flex; align-items:center; gap:10px; color:var(--text-2); font-size:13px; margin-top:8px; }
.dot-sep { width:3px; height:3px; border-radius:50%; background:var(--text-dim); }
.detail-actions { display:flex; align-items:center; gap:12px; margin-top:22px; }
.btn-primary { display:inline-flex; align-items:center; gap:9px; height:48px; padding:0 26px; border-radius:14px; font-weight:700; font-size:15px;
  color:#0c2226; background:linear-gradient(150deg,var(--mint),var(--orange)); box-shadow:0 14px 30px -12px var(--orange); transition:.18s; }
.btn-primary:hover { transform:translateY(-2px); }
.btn-ghost { display:inline-flex; align-items:center; gap:8px; height:48px; padding:0 20px; border-radius:14px; font-weight:600; font-size:14px;
  color:var(--text); background:var(--glass); border:1px solid var(--stroke); backdrop-filter:var(--blur); }
.btn-ghost:hover { border-color:var(--stroke-2); }

.genre-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:16px; }
.genre-tile { position:relative; height:104px; border-radius:var(--r-md); overflow:hidden; padding:16px;
  background:linear-gradient(140deg, color-mix(in oklab, var(--orange) calc(18% + var(--gi)*7%), var(--bg2)), var(--bg0)); border:1px solid var(--stroke); }
.genre-tile span { font-family:"Sora",sans-serif; font-weight:700; font-size:17px; }
.search-count { color:var(--text-2); font-size:13.5px; margin:4px 2px 2px; }
.empty-state { display:grid; place-items:center; gap:12px; padding:70px 0; color:var(--text-dim); text-align:center; }
.empty-state p { font-size:14px; }
.empty-state .empty-cta { margin-top:8px; font-size:13px; padding:10px 18px; border-radius:12px; background:var(--glass); border:1px solid var(--stroke-2); color:var(--text); text-decoration:none; display:inline-flex; gap:8px; align-items:center; }
.empty-state .empty-cta:hover { background:var(--glass-2); }

.player-card { border-radius:var(--r-lg); padding:16px; display:flex; flex-direction:column; gap:14px; flex:0 0 auto; }
.now-tag { position:absolute; left:12px; top:12px; display:inline-flex; align-items:center; gap:6px; padding:5px 11px; border-radius:20px; white-space:nowrap;
  font-size:11px; font-weight:700; letter-spacing:.04em; color:var(--text); background:rgba(10,28,32,.55); backdrop-filter:blur(8px); border:1px solid var(--stroke-2); }
.now-tag svg { color:var(--mint); }
.player-meta { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.player-title { font-family:"Sora",sans-serif; font-size:19px; font-weight:700; letter-spacing:-.01em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.player-artist { font-size:13px; color:var(--text-2); margin-top:2px; }
.icon-ghost { color:var(--text-dim); display:grid; place-items:center; padding:4px; transition:.16s; cursor:pointer; }
.icon-ghost:hover { color:var(--text); }
.icon-ghost.is-liked { color:var(--orange); }
.track-bar { position:relative; height:6px; border-radius:6px; background:rgba(255,255,255,.1); cursor:pointer; }
.track-bar-fill { position:absolute; left:0; top:0; bottom:0; border-radius:6px; }
.track-bar-knob { position:absolute; top:50%; width:12px; height:12px; border-radius:50%; background:#fff; transform:translate(-50%,-50%); box-shadow:0 2px 6px rgba(0,0,0,.4); opacity:0; transition:.15s; }
.track-bar:hover .track-bar-knob { opacity:1; }
.player-times { display:flex; justify-content:space-between; font-size:11.5px; color:var(--text-dim); font-variant-numeric:tabular-nums; margin-top:-6px; }
.transport { display:flex; align-items:center; justify-content:center; gap:10px; padding:2px 0; }
.circ { width:40px; height:40px; border-radius:50%; display:grid; place-items:center; color:var(--text-2); transition:.16s; }
.circ:hover { color:var(--text); background:var(--glass); }
.circ-active { color:var(--orange); }
.circ-active:hover { color:var(--orange); }
.circ-primary { color:#0c2226 !important; background:linear-gradient(150deg,var(--mint),var(--orange)); box-shadow:0 12px 26px -10px var(--orange); }
.circ-primary:hover { transform:scale(1.05); background:linear-gradient(150deg,var(--mint),var(--orange)); }
.vol-row { display:flex; align-items:center; gap:11px; padding-top:2px; }
.vol-row .track-bar { flex:1; }

.queue-card { border-radius:var(--r-lg); padding:16px 10px 10px 16px; display:flex; flex-direction:column; min-height:0; flex:1; }
.queue-head { display:flex; align-items:center; justify-content:space-between; padding-right:6px; margin-bottom:12px; }
.queue-title { display:flex; align-items:center; gap:8px; font-family:"Sora",sans-serif; font-weight:600; font-size:14.5px; }
.queue-title svg { color:var(--text-2); }
.pill { font-size:10.5px; font-weight:700; letter-spacing:.04em; color:var(--text-dim); padding:4px 10px; border-radius:20px; background:var(--glass); border:1px solid var(--stroke); white-space:nowrap; flex:0 0 auto; }
.queue-list { overflow-y:auto; padding-right:6px; display:flex; flex-direction:column; gap:2px; }
.queue-row { display:flex; align-items:center; gap:11px; padding:7px 8px; border-radius:11px; text-align:left; transition:.14s; width:100%; }
.queue-row:hover { background:var(--glass); }
.queue-row-meta { flex:1; min-width:0; }
.qr-title { font-weight:600; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.qr-artist { font-size:11.5px; color:var(--text-2); margin-top:1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.qr-dur { font-size:11.5px; color:var(--text-dim); font-variant-numeric:tabular-nums; }
.queue-empty { color:var(--text-dim); font-size:13px; padding:16px 8px; }

/* ---------- App footer ---------- */
.app-foot {
  display:flex; align-items:center; justify-content:center; gap:6px;
  padding:10px 14px 4px;
  font-size:12px; color:var(--text-dim); letter-spacing:.01em;
  margin-top:auto;
}
.app-foot a {
  color:var(--text-2); font-weight:700; text-decoration:none;
  background:linear-gradient(150deg, var(--mint), var(--orange));
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
  border-bottom:1px dotted rgba(127,224,208,.35); padding-bottom:1px; transition:.16s;
}
.app-foot a:hover { border-color:var(--orange); }
.app-foot .foot-heart {
  display:inline-block; color:var(--coral);
  animation: foot-beat 1.4s ease-in-out infinite;
  font-size:13px;
}
@keyframes foot-beat {
  0%, 100% { transform:scale(1); }
  20%      { transform:scale(1.25); }
  40%      { transform:scale(.95); }
  60%      { transform:scale(1.15); }
}
@media (max-width:760px) {
  .app-foot { padding:6px 12px 0; font-size:11.5px; }
}

.album-art { position:relative; overflow:hidden; box-shadow:inset 0 1px 0 rgba(255,255,255,.12); }
.album-art-cover { position:absolute; inset:0; background-size:cover; background-position:center; }

/* ---------- Reactive halo (used by NP sheet only — player panel keeps just the band) ---------- */
.np-art-wrap { position:relative; }
.art-halo {
  position:absolute; left:50%; top:50%;
  width:108%; height:108%;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:
    radial-gradient(closest-side, rgba(232,145,90,.55), transparent 70%),
    radial-gradient(closest-side at 70% 30%, rgba(127,224,208,.45), transparent 70%);
  filter:blur(28px);
  opacity:.35;
  pointer-events:none;
  z-index:0;
  transition:opacity .12s linear;
}
.art-halo-np { width:118%; height:118%; filter:blur(46px); }
.np-art-wrap.is-playing .art-halo { animation:halo-breathe 4.5s ease-in-out infinite; }
@keyframes halo-breathe {
  0%,100% { filter:blur(28px) hue-rotate(0deg); }
  50%     { filter:blur(34px) hue-rotate(18deg); }
}

/* ---------- Player visualizer band (replaces big square album art) ---------- */
.player-viz-band {
  position:relative;
  height:118px;
  border-radius:18px;
  overflow:hidden;
  background:
    radial-gradient(120% 110% at 0% 0%, rgba(127,224,208,.10), transparent 55%),
    radial-gradient(120% 110% at 100% 100%, rgba(232,145,90,.10), transparent 55%),
    linear-gradient(160deg, rgba(255,255,255,.04), rgba(0,0,0,.18));
  border:1px solid var(--stroke);
}
.player-viz-band .art-halo {
  width:80%; height:200%;
  filter:blur(40px); opacity:.55;
}
.player-viz-band.is-playing .art-halo { animation:halo-breathe 4.5s ease-in-out infinite; }
.player-viz-band .now-tag { left:12px; top:12px; }

/* ---------- Visualizers ---------- */
.viz-canvas-side {
  position:absolute; left:14px; right:14px; bottom:10px;
  height:74px; width:auto;
  pointer-events:none; z-index:2;
  filter:drop-shadow(0 4px 10px rgba(0,0,0,.45));
  opacity:.95;
}
.viz-bars-np {
  width:100%; height:64px; margin-top:14px;
  pointer-events:none;
  filter:drop-shadow(0 4px 12px rgba(0,0,0,.45));
}
.viz-wave-np {
  position:absolute; left:6%; right:6%; bottom:8px;
  height:38px; width:auto;
  pointer-events:none; z-index:2;
  opacity:.65; mix-blend-mode:screen;
}

/* ---------- Beat-pulse primary button ---------- */
.circ-primary {
  position:relative;
}
.circ-primary::after {
  content:""; position:absolute; inset:-6px; border-radius:50%;
  background:linear-gradient(150deg, var(--mint), var(--orange));
  opacity:0; filter:blur(10px); z-index:-1;
  transition:opacity .15s;
}
.player-viz-band.is-playing ~ .transport .circ-primary,
.np-transport .circ-primary {
  animation: btn-pulse 1.8s ease-in-out infinite;
}
@keyframes btn-pulse {
  0%, 100% { box-shadow:0 12px 26px -10px var(--orange); }
  50%      { box-shadow:0 16px 38px -10px var(--orange), 0 0 0 4px rgba(232,145,90,.18); }
}

/* ---------- Body ambient hue shift driven by --beat ---------- */
body::before {
  content:""; position:fixed; inset:0;
  pointer-events:none; z-index:-1;
  background:
    radial-gradient(60% 40% at 25% 12%, rgba(232,145,90, calc(.12 + var(--rms, 0) * .4)), transparent 60%),
    radial-gradient(50% 40% at 80% 90%, rgba(127,224,208, calc(.08 + var(--rms, 0) * .35)), transparent 60%);
  transition:opacity .2s linear;
}

/* ---------- Cycling info ticker ---------- */
.info-ticker {
  position:relative; border-radius:var(--r-md);
  padding:14px 16px; min-height:84px;
  background:var(--glass); border:1px solid var(--stroke);
  backdrop-filter:var(--blur);
  overflow:hidden;
  display:flex; align-items:center; gap:12px;
}
.info-ticker .it-ico {
  width:36px; height:36px; border-radius:11px; flex:0 0 36px; display:grid; place-items:center;
  background:linear-gradient(150deg, rgba(127,224,208,.16), rgba(232,145,90,.16));
  color:var(--mint);
  border:1px solid var(--stroke-2);
}
.info-ticker .it-body { flex:1; min-width:0; position:relative; }
.info-ticker .it-kicker {
  font-size:10.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase;
  color:var(--orange-soft); margin-bottom:2px;
}
.info-ticker .it-text {
  font-size:13.5px; color:var(--text); line-height:1.4; font-weight:600;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.info-ticker .it-sub {
  font-size:11.5px; color:var(--text-dim); margin-top:2px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.info-ticker.is-swapping .it-body { animation:tick-swap .55s ease; }
@keyframes tick-swap {
  0%   { opacity:0; transform:translateY(8px); }
  100% { opacity:1; transform:none; }
}
.info-ticker .it-dots {
  position:absolute; right:14px; top:14px; display:flex; gap:4px;
}
.info-ticker .it-dot { width:5px; height:5px; border-radius:50%; background:rgba(255,255,255,.18); }
.info-ticker .it-dot.is-on { background:linear-gradient(150deg, var(--mint), var(--orange)); }

/* ---------- Floating note particles (NP sheet) ---------- */
.np-sheet .np-particles {
  position:absolute; inset:0; pointer-events:none; z-index:0; overflow:hidden;
}
.np-sheet .np-particles span {
  position:absolute; bottom:-20px;
  font-size:18px; color:rgba(127,224,208,.55);
  animation:note-rise linear infinite;
  filter:blur(.4px);
}
@keyframes note-rise {
  0%   { transform:translateY(0) rotate(0deg); opacity:0; }
  10%  { opacity:1; }
  90%  { opacity:.7; }
  100% { transform:translateY(-110vh) rotate(28deg); opacity:0; }
}

.miniplayer { display:none; }

/* ---------- toast ---------- */
.toast-host { position:fixed; left:50%; bottom:28px; transform:translateX(-50%); display:flex; flex-direction:column; gap:8px; z-index:80; pointer-events:none; }
.toast { padding:11px 18px; border-radius:14px; background:rgba(10,28,32,.85); border:1px solid var(--stroke-2);
  backdrop-filter:var(--blur); color:var(--text); font-size:13px; font-weight:600;
  box-shadow:0 16px 40px -16px rgba(0,0,0,.7); animation:toast-in .25s ease-out; pointer-events:auto; display:flex; align-items:center; gap:9px; }
.toast svg { color:var(--mint); }
@keyframes toast-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

/* ---------- settings + modal ---------- */
.modal-backdrop { position:fixed; inset:0; background:rgba(4,18,22,.65); backdrop-filter:blur(6px); z-index:60; display:grid; place-items:center; animation:fade-in .2s; }
@keyframes fade-in { from { opacity:0 } to { opacity:1 } }
.modal { width:min(520px, calc(100% - 32px)); max-height:calc(100% - 60px); overflow-y:auto;
  border-radius:var(--r-lg); padding:24px; background:rgba(14,38,44,.95); border:1px solid var(--stroke-2);
  box-shadow:var(--shadow); }
.modal-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.modal-title { font-family:"Sora",sans-serif; font-size:18px; font-weight:700; }
.modal-close { width:32px; height:32px; border-radius:10px; display:grid; place-items:center; color:var(--text-2); }
.modal-close:hover { background:var(--glass); color:var(--text); }
.modal-section { margin-top:18px; }
.modal-section:first-child { margin-top:0; }
.modal-label { font-size:11.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--text-dim); margin-bottom:10px; }
.accent-row { display:flex; gap:10px; flex-wrap:wrap; }
.accent-chip { width:34px; height:34px; border-radius:10px; border:2px solid transparent; cursor:pointer; transition:.16s; }
.accent-chip:hover { transform:scale(1.06); }
.accent-chip.is-on { border-color:#fff; box-shadow:0 0 0 2px rgba(255,255,255,.2); }
.toggle-row { display:flex; align-items:center; justify-content:space-between; padding:12px 0; border-top:1px solid var(--stroke); }
.toggle-row:first-child { border-top:none; padding-top:0; }
.toggle-label { font-size:14px; }
.toggle-desc { font-size:12px; color:var(--text-2); margin-top:2px; }
.switch { width:42px; height:24px; border-radius:14px; background:var(--glass-2); border:1px solid var(--stroke-2); position:relative; cursor:pointer; transition:.18s; flex:0 0 42px; }
.switch::after { content:""; position:absolute; top:2px; left:2px; width:18px; height:18px; border-radius:50%; background:#fff; transition:.18s; }
.switch.on { background:linear-gradient(150deg,var(--mint),var(--orange)); }
.switch.on::after { transform:translateX(18px); }
.offline-dot {
  display:inline-block; width:6px; height:6px; border-radius:50%;
  background:linear-gradient(150deg, var(--mint), var(--orange));
  vertical-align:middle; margin-left:6px;
  box-shadow:0 0 6px rgba(127,224,208,.6);
}
.net-pill {
  display:inline-flex; align-items:center; gap:6px;
  height:32px; padding:0 12px; border-radius:11px;
  font-size:12px; font-weight:700; letter-spacing:.04em;
}
.net-pill-off {
  background:rgba(232,119,90,.16); color:var(--coral);
  border:1px solid rgba(232,119,90,.35);
}
.cache-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.cache-stat { padding:14px 10px; border-radius:14px; background:var(--glass); border:1px solid var(--stroke); text-align:center; }
.cache-stat .cs-num { font-family:"Sora",sans-serif; font-weight:800; font-size:24px; line-height:1;
  background:linear-gradient(150deg,var(--mint),var(--orange)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.cache-stat .cs-label { font-size:11px; color:var(--text-dim); margin-top:6px; font-weight:600; letter-spacing:.04em; }
.kbd-grid { display:grid; grid-template-columns:auto 1fr; column-gap:18px; row-gap:8px; font-size:13px; }
.kbd-grid .kbd-row-l { color:var(--text-2); }
.kbd-grid .kbd-row-r { color:var(--text); }
.kbd { display:inline-block; padding:2px 7px; border-radius:6px; background:var(--glass-2); border:1px solid var(--stroke-2);
  font-family:"Sora",sans-serif; font-size:11.5px; font-weight:600; min-width:22px; text-align:center; margin-right:4px; }

/* ---------- context menu ---------- */
.ctx-menu { position:fixed; z-index:70; min-width:200px; border-radius:14px; padding:6px;
  background:rgba(14,38,44,.96); border:1px solid var(--stroke-2); backdrop-filter:var(--blur);
  box-shadow:0 30px 60px -22px rgba(0,0,0,.7); animation:ctx-in .14s ease-out; }
@keyframes ctx-in { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:none; } }
.ctx-item { display:flex; align-items:center; gap:11px; width:100%; padding:9px 12px; border-radius:9px;
  font-size:13px; color:var(--text); text-align:left; cursor:pointer; }
.ctx-item:hover { background:var(--glass-2); }
.ctx-item svg { color:var(--text-2); flex:0 0 16px; }
.ctx-item:hover svg { color:var(--text); }
.ctx-sep { height:1px; background:var(--stroke); margin:4px 6px; }

/* ---------- queue extras ---------- */
.queue-row { position:relative; }
.queue-remove { position:absolute; right:8px; top:50%; transform:translateY(-50%);
  width:24px; height:24px; border-radius:7px; display:grid; place-items:center; color:var(--text-dim);
  background:var(--glass-2); border:1px solid var(--stroke); opacity:0; transition:.14s; }
.queue-row:hover .queue-remove { opacity:1; }
.queue-row:hover .qr-dur { opacity:0; }
.queue-remove:hover { color:var(--text); background:rgba(232,119,90,.25); border-color:var(--coral); }
.queue-clear { font-size:11px; font-weight:700; padding:3px 9px; border-radius:9px; color:var(--text-dim);
  background:var(--glass); border:1px solid var(--stroke); }
.queue-clear:hover { color:var(--text); border-color:var(--stroke-2); }

/* ---------- sort + refresh ---------- */
.sort-row { display:flex; align-items:center; gap:10px; margin-bottom:6px; flex-wrap:wrap; }
.sort-select { appearance:none; -webkit-appearance:none; padding:8px 32px 8px 14px; border-radius:11px;
  background:var(--glass) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23aac3c2' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 12px center;
  border:1px solid var(--stroke); color:var(--text); font-size:13px; font-weight:600; cursor:pointer; }
.sort-select:hover { border-color:var(--stroke-2); }

/* ---------- now-tag pulse ---------- */
.now-tag.is-playing svg { animation:wave-pulse 1.2s ease-in-out infinite; }
@keyframes wave-pulse { 0%,100% { opacity:.7; transform:scale(.95);} 50% { opacity:1; transform:scale(1.05);} }

/* ---------- loading skeleton ---------- */
.loading { display:grid; place-items:center; height:100%; gap:14px; color:var(--text-dim); }
.spinner { width:38px; height:38px; border-radius:50%; border:3px solid rgba(255,255,255,.1); border-top-color:var(--mint); animation:spin 1s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }

/* ---------- fade transition for view ---------- */
.center > * { animation:view-fade .26s ease-out; }
@keyframes view-fade { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

/* ---------- info chip (replaces admin link) ---------- */
.user-chip { cursor:default; }
.icon-btn[data-action] { cursor:pointer; }

/* ---------- share modal pills ---------- */
.share-pill { display:inline-flex; align-items:center; gap:8px; padding:10px 16px; border-radius:12px;
  font-weight:700; font-size:13px; color:#fff; text-decoration:none; transition:.16s; cursor:pointer; }
.share-pill:hover { transform:translateY(-1px); }
.share-pill-wa { background:#25d366; }
.share-pill-tw { background:#1da1f2; }
.share-pill-fb { background:#1877f2; }
.share-pill-tg { background:#229ed9; }
.share-pill-native { background:rgba(255,255,255,.08); color:var(--text); border:1px solid var(--stroke-2); }
.share-url-row { display:flex; gap:0; margin-top:6px; }
.share-url-row input { flex:1; padding:10px 14px; background:rgba(0,0,0,.25); border:1px solid var(--stroke-2);
  color:var(--text); border-radius:12px 0 0 12px; font-size:12.5px; outline:none; font-family:"Sora",monospace; }
.share-url-row .btn-primary { border-radius:0 12px 12px 0; }

/* ---------- "Submit a song" topbar button ---------- */
.btn-upload { display:inline-flex; align-items:center; gap:8px; height:42px; padding:0 16px;
  border-radius:13px; font-weight:700; font-size:13px; color:#0c2226; text-decoration:none;
  background:linear-gradient(150deg,var(--mint),var(--orange));
  box-shadow:0 10px 22px -10px var(--orange); transition:.18s; white-space:nowrap; }
.btn-upload:hover { transform:translateY(-1px); box-shadow:0 14px 26px -10px var(--orange); }
@media (max-width:760px) {
  .btn-upload-label { display:none; }
  .btn-upload { padding:0 12px; }
}


@media (max-width:1180px) {
  .player-col { width:300px; flex-basis:300px; }
  .tlist-head, .trow { grid-template-columns:40px 1fr 110px 38px 52px; }
  .th-album, .trow-album { display:none; }
}
@media (max-width:980px) {
  .player-col { display:none; }
  .feature-row { grid-template-columns:1fr 1fr; }
  .feature-row .feature-card:nth-child(3) { display:none; }
}

/* ---------- mobile: Spotify-style tab bar + now-playing sheet ---------- */
@media (max-width:760px) {
  body { overflow-y:auto; overscroll-behavior-y:contain; }
  #root { height:auto; min-height:100vh; min-height:100dvh; }

  .app-shell {
    padding:10px 10px calc(env(safe-area-inset-bottom, 0px) + 152px);
    gap:10px;
    flex-direction:column;
    min-height:100vh;
    min-height:100dvh;
    height:auto;
  }
  .main { gap:12px; }
  .content-row { display:block; min-height:0; }
  .center { padding-right:0; overflow:visible; }

  /* Bottom tab-bar rail */
  .rail {
    position:fixed;
    left:8px; right:8px;
    bottom:calc(env(safe-area-inset-bottom, 0px) + 8px);
    width:auto;
    flex-direction:row; height:64px;
    padding:0 6px;
    gap:0;
    border-radius:22px;
    background:rgba(8,24,28,.82);
    backdrop-filter:saturate(160%) blur(22px);
    -webkit-backdrop-filter:saturate(160%) blur(22px);
    z-index:42;
    box-shadow:0 18px 40px -18px rgba(0,0,0,.7);
  }
  .rail-logo { display:none; }
  .rail-group { flex-direction:row; justify-content:space-around; width:100%; gap:0; }
  .rail-btn { width:54px; height:48px; border-radius:14px; }
  .rail-btn-on { background:var(--glass-2); }
  .rail-dot { left:50%; top:auto; bottom:-6px; transform:translateX(-50%); width:16px; height:3px; }
  .rail-settings { display:none; }

  /* Top bar — smaller, search slides full-width if focused */
  .topbar { padding:4px 2px; gap:10px; }
  .topbar-title { font-size:22px; }
  .topbar-sub, .user-name { display:none; }
  .search-box { width:auto; flex:1; min-width:0; height:40px; padding:0 14px; }
  .search-box input { min-width:0; }
  .icon-btn { width:40px; height:40px; }
  .user-chip { padding:0 8px 0 4px; height:40px; }
  .user-av { width:28px; height:28px; }
  .btn-upload { height:40px; padding:0 12px; }

  /* Content sections — tighter */
  .home-quick { grid-template-columns:1fr 1fr; gap:8px; }
  .quick-chip { padding:6px 12px 6px 6px; }
  .quick-chip > span.quick-label { font-size:12.5px; }
  .feature-row { grid-template-columns:1fr; gap:12px; }
  .feature-row .feature-card:nth-child(3) { display:flex; }
  .feature-card { min-height:160px; padding:14px; }
  .mini-grid { grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:12px; }

  /* Detail view */
  .detail-hero { flex-direction:column; align-items:flex-start; gap:14px; padding:4px 2px 14px; }
  .detail-art { width:55vw; max-width:240px; height:auto; aspect-ratio:1/1; flex-basis:auto; align-self:center; }
  .detail-title { font-size:clamp(26px, 7vw, 36px); margin:4px 0 6px; }
  .detail-actions { width:100%; }
  .detail-actions .btn-primary { flex:1; justify-content:center; padding:0 16px; }

  /* Track list — title + duration only */
  .tlist-head, .trow { grid-template-columns:34px 1fr 48px; gap:10px; padding-left:8px; padding-right:8px; }
  .trow-genre, .th-genre, .trow-like { display:none; }
  .trow:hover { background:transparent; }
  .trow:active { background:var(--glass); }

  /* Modals + sheets full-screen feel */
  .modal { width:calc(100% - 20px); max-height:calc(100% - 80px); padding:20px; }

  /* Mini-player above the tab bar — Spotify style */
  .miniplayer {
    display:flex; align-items:center; gap:12px;
    position:fixed; left:8px; right:8px;
    bottom:calc(env(safe-area-inset-bottom, 0px) + 80px);
    height:62px; padding:9px 12px 9px 9px;
    border-radius:16px;
    z-index:41;
    background:rgba(14,40,46,.86);
    backdrop-filter:saturate(160%) blur(22px);
    -webkit-backdrop-filter:saturate(160%) blur(22px);
    border:1px solid var(--stroke-2);
    box-shadow:0 16px 36px -16px rgba(0,0,0,.7);
    cursor:pointer;
  }
  .miniplayer::before {
    content:""; position:absolute; left:9px; right:9px; bottom:3px; height:2px;
    border-radius:3px; background:rgba(255,255,255,.07);
  }
  .miniplayer::after {
    content:""; position:absolute; left:9px; bottom:3px; height:2px;
    width:var(--mp-prog, 0%); border-radius:3px;
    background:linear-gradient(90deg, var(--mint), var(--orange));
    transition:width .25s linear;
  }
  .miniplayer .circ { width:38px; height:38px; }
  .miniplayer .circ-primary { width:44px; height:44px; box-shadow:0 8px 18px -8px var(--orange); }
  .miniplayer [data-prev], .miniplayer [data-next] { display:none; }
  .mini-meta { flex:1; min-width:0; }
  .mini-t { font-weight:700; font-size:13.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .mini-a { font-size:11.5px; color:var(--text-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
}

@media (max-width:420px) {
  .topbar-title { font-size:19px; }
  .feature-card { min-height:140px; }
  .detail-title { font-size:28px; }
  .home-quick { grid-template-columns:1fr; }
}

/* ---------- Full-screen Now Playing sheet (mobile-first overlay) ---------- */
.np-sheet {
  position:fixed; inset:0; z-index:55;
  background:
    radial-gradient(120% 70% at 50% 0%, color-mix(in oklab, var(--orange) 22%, transparent) 0%, transparent 55%),
    linear-gradient(180deg, #0e2c33 0%, #061a1f 100%);
  display:flex; flex-direction:column;
  padding:env(safe-area-inset-top, 0px) 22px env(safe-area-inset-bottom, 0px);
  animation:np-up .28s cubic-bezier(.2,.8,.25,1);
  color:var(--text);
  overflow-y:auto;
}
@keyframes np-up { from { transform:translateY(100%); } to { transform:none; } }
.np-handle {
  width:42px; height:4px; border-radius:3px; background:rgba(255,255,255,.18);
  margin:10px auto 6px;
}
.np-head {
  display:flex; align-items:center; justify-content:space-between;
  padding:6px 0 14px;
}
.np-head .np-kicker { font-size:11px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--text-2); }
.np-head .np-ctx-title { font-family:"Sora",sans-serif; font-size:14px; font-weight:700; margin-top:2px; }
.np-close, .np-more {
  width:40px; height:40px; border-radius:13px; display:grid; place-items:center;
  color:var(--text); background:var(--glass); border:1px solid var(--stroke);
}
.np-close:active, .np-more:active { background:var(--glass-2); }

.np-art-wrap {
  width:100%; aspect-ratio:1/1; max-width:380px; margin:6px auto 22px;
  border-radius:22px; overflow:hidden;
  box-shadow:0 32px 70px -22px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.05) inset;
  position:relative;
}
.np-art-wrap .album-art { width:100%; height:100%; border-radius:22px; }
.np-meta-row { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:18px; }
.np-title { font-family:"Sora",sans-serif; font-size:22px; font-weight:700; letter-spacing:-.01em; line-height:1.15; }
.np-artist { font-size:14px; color:var(--text-2); margin-top:4px; }
.np-meta-row .icon-ghost { width:40px; height:40px; border-radius:13px; background:var(--glass); border:1px solid var(--stroke); }
.np-meta-row .icon-ghost.is-liked { color:var(--orange); }

.np-bar { position:relative; height:5px; border-radius:6px; background:rgba(255,255,255,.1); cursor:pointer; }
.np-bar-fill { position:absolute; left:0; top:0; bottom:0; border-radius:6px; background:var(--orange); }
.np-bar-knob { position:absolute; top:50%; width:14px; height:14px; border-radius:50%; background:#fff; transform:translate(-50%,-50%); box-shadow:0 2px 6px rgba(0,0,0,.4); }
.np-times { display:flex; justify-content:space-between; font-size:11.5px; color:var(--text-dim); font-variant-numeric:tabular-nums; margin-top:8px; }

.np-transport {
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  margin-top:18px; padding:0 4px;
}
.np-transport .circ { width:52px; height:52px; }
.np-transport .circ svg { width:24px; height:24px; }
.np-transport .circ-primary { width:74px; height:74px; }
.np-transport .circ-primary svg { width:32px; height:32px; }
.np-transport .circ-active { color:var(--orange); }

.np-foot {
  margin-top:auto; padding-top:18px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  color:var(--text-2);
}
.np-foot button {
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 14px; border-radius:13px; font-size:13px; font-weight:600;
  color:var(--text); background:var(--glass); border:1px solid var(--stroke);
}
.np-foot button:active { background:var(--glass-2); }

@media (min-width:761px) {
  .np-sheet {
    /* On desktop, present as a centered card rather than full-bleed */
    inset:auto; left:50%; top:50%; transform:translate(-50%,-50%);
    width:min(440px, calc(100vw - 40px));
    max-height:calc(100vh - 60px);
    border-radius:24px;
    border:1px solid var(--stroke-2);
    box-shadow:var(--shadow);
    animation:np-fade .22s ease-out;
  }
  @keyframes np-fade { from { opacity:0; transform:translate(-50%,-48%);} to { opacity:1; transform:translate(-50%,-50%);} }
  .np-backdrop { position:fixed; inset:0; background:rgba(4,18,22,.65); backdrop-filter:blur(6px); z-index:54; }
}

@media (prefers-reduced-motion:reduce){
  .eq i{animation:none}
  .np-sheet, .modal-backdrop { animation:none; }
}

/* ---------- In-app upload form (scoped — never touches body) ---------- */
.upload-view { max-width:760px; margin:0 auto; padding:8px 4px 30px; }
.upload-view .hero { margin-bottom:22px; }
.upload-view .hero .kicker { font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--orange-soft); margin-bottom:10px; }
.upload-view .hero h1 { font-family:"Sora",sans-serif; font-size:clamp(26px,4.6vw,38px); font-weight:800; letter-spacing:-.025em; line-height:1.06; }
.upload-view .hero p { margin-top:10px; color:var(--text-2); font-size:14.5px; max-width:580px; line-height:1.55; }

.upload-view .card { background:var(--glass); border:1px solid var(--stroke); border-radius:var(--r-lg);
  backdrop-filter:var(--blur); -webkit-backdrop-filter:var(--blur); padding:22px; margin-bottom:14px; }
.upload-view .section-title { font-family:"Sora",sans-serif; font-size:15.5px; font-weight:700; margin-bottom:4px; }
.upload-view .section-sub { color:var(--text-dim); font-size:12.5px; margin-bottom:16px; }

.upload-view .grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:600px) { .upload-view .grid-2 { grid-template-columns:1fr; } }

.upload-view .field { display:flex; flex-direction:column; gap:7px; margin-bottom:14px; }
.upload-view .field:last-child { margin-bottom:0; }
.upload-view .field label {
  font-size:11.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--text-dim);
}
.upload-view .field .req { color:var(--coral); margin-left:3px; }
.upload-view .field input[type=text],
.upload-view .field input[type=email],
.upload-view .field input[type=tel],
.upload-view .field textarea {
  width:100%; padding:11px 14px; border-radius:12px; background:rgba(0,0,0,.18);
  color:var(--text); border:1px solid var(--stroke);
  font:14px "Plus Jakarta Sans",system-ui,sans-serif; transition:.16s; outline:none;
}
.upload-view .field input::placeholder,
.upload-view .field textarea::placeholder { color:var(--text-dim); }
.upload-view .field input:focus,
.upload-view .field textarea:focus { border-color:var(--mint); background:rgba(0,0,0,.28); }
.upload-view .field textarea { resize:vertical; min-height:80px; line-height:1.5; }
.upload-view .field-help { font-size:12px; color:var(--text-dim); margin-top:4px; }
.upload-view .field-errors { font-size:12px; color:var(--coral); margin-top:4px; }

.upload-view .upload-zone {
  border:1.5px dashed var(--stroke-2); border-radius:14px; padding:22px;
  text-align:center; transition:.16s; cursor:pointer; position:relative;
  background:rgba(0,0,0,.16);
}
.upload-view .upload-zone:hover { border-color:var(--mint); background:rgba(127,224,208,.06); }
.upload-view .upload-zone.has-file { border-color:var(--mint); background:rgba(127,224,208,.08); border-style:solid; }
.upload-view .upload-zone input[type=file] { position:absolute; inset:0; opacity:0; cursor:pointer; }
.upload-view .upload-zone .uz-ico {
  width:46px; height:46px; border-radius:13px; display:grid; place-items:center; color:var(--mint);
  background:rgba(127,224,208,.12); margin:0 auto 12px;
}
.upload-view .upload-zone .uz-title { font-weight:700; font-size:14px; margin-bottom:3px; }
.upload-view .upload-zone .uz-sub { font-size:12px; color:var(--text-2); }
.upload-view .upload-zone .uz-filename { margin-top:8px; font-size:12.5px; color:var(--mint); font-weight:600; }

.upload-view .cover-preview {
  width:108px; height:108px; border-radius:14px; overflow:hidden; flex:0 0 108px;
  background:rgba(0,0,0,.2); border:1px solid var(--stroke);
}
.upload-view .cover-preview img { width:100%; height:100%; object-fit:cover; display:block; }
.upload-view .cover-row { display:flex; gap:16px; align-items:flex-start; }
.upload-view .cover-row .upload-zone { flex:1; }
@media (max-width:520px) {
  .upload-view .cover-row { flex-direction:column; }
  .upload-view .cover-preview { width:100%; height:160px; }
}

.upload-view .audio-preview { margin-top:12px; }
.upload-view .audio-preview audio { width:100%; max-width:100%; }

.upload-view .submit-row {
  display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap;
}
.upload-view .submit-note { color:var(--text-dim); font-size:12.5px; max-width:420px; }

.upload-view .alert-error {
  padding:12px 16px; border-radius:12px; background:rgba(232,119,90,.12);
  border:1px solid var(--coral); color:var(--text); font-size:13.5px; margin-bottom:14px;
}
.upload-view .alert-error b { color:var(--coral); }

.upload-view .success-card { text-align:center; padding:40px 22px; }
.upload-view .success-card .ok-ring {
  width:84px; height:84px; border-radius:50%; margin:0 auto 18px; display:grid; place-items:center;
  background:linear-gradient(150deg,var(--mint),var(--orange)); color:#0c2226;
}
.upload-view .success-card h1 { font-family:"Sora",sans-serif; font-size:26px; font-weight:800; margin-bottom:10px; }
.upload-view .success-card p { color:var(--text-2); font-size:14.5px; max-width:480px; margin:0 auto 22px; line-height:1.6; }
.upload-view .success-actions { display:inline-flex; gap:10px; flex-wrap:wrap; justify-content:center; }
