/* JiCHO Music redesign (12 Nov 2026): the Music home, tabs, filters, shelves, song rows, albums,
   artists, playlists, Radio, the mini-player, Now Playing and the artist's earnings dashboard
   (public/music.js). Loaded after music.css; every colour comes from the Music theme variables,
   and the JiCHO theme (orange on a dark music room) is the default. Mobile first. */

body[data-jm-music-theme="jicho"] .jm-page,body[data-jm-music-theme="jicho"] dialog.jm-dialog,body[data-jm-music-theme="jicho"] .jm-player{--jm-bg:#0a0d17;--jm-bg2:#121728;--jm-card:#161c30;--jm-line:rgba(255,255,255,.1);--jm-ink:#fff;--jm-soft:#a8afc6;--jm-hot1:#ff6a00;--jm-hot2:#ffa12e;--jm-cool:#ffb766;--jm-ok:#22c58b}
body[data-jm-music-theme="jicho"] .view.jm-page{background:radial-gradient(700px 360px at 85% -60px,rgba(255,106,0,.16),transparent 70%),radial-gradient(600px 400px at -10% 30%,rgba(90,60,200,.12),transparent 70%),var(--jm-bg)}
.jm-page{--jm-pad:14px}
/* The Music pages fill the content column without spilling past the screen (main has no side padding on phones). */
.view.jm-page{margin:0;box-sizing:border-box;max-width:100%}
.jm-page svg{flex:none}
.jm-page :focus-visible,.jm-player :focus-visible,dialog.jm-dialog :focus-visible{outline:3px solid var(--jm-cool);outline-offset:2px}
.jm-home{overflow-x:clip}

/* ---- header: JiCHO eye + Music, search, notifications, account ---- */
.jm-top{position:static;background:none;box-shadow:none;border:0;padding:0;display:flex;align-items:center;gap:8px;margin:0 0 10px}
.jm-brand{display:flex;align-items:center;gap:8px;flex:1;min-width:0;padding:0;border:0;background:none;color:var(--jm-ink);font:inherit;cursor:pointer;text-align:left}
.jm-brand-eye{width:54px;height:auto;flex:none;filter:drop-shadow(0 2px 8px rgba(255,106,0,.35))}
.jm-brand-text{display:grid;min-width:0}
.jm-brand-text b{font-size:23px;font-weight:900;line-height:1.05;letter-spacing:-.3px;white-space:nowrap}
.jm-word{background:linear-gradient(90deg,var(--jm-hot1),var(--jm-hot2));-webkit-background-clip:text;background-clip:text;color:transparent}
.jm-music-word{color:var(--jm-ink)}
.jm-brand-text small{font-size:11.5px;color:var(--jm-soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jm-top-acts{display:flex;gap:6px;flex:none}
.jm-round{position:relative;width:42px;height:42px;flex:none;border-radius:50%;border:1px solid var(--jm-line);background:rgba(255,255,255,.06);color:var(--jm-ink);display:grid;place-items:center;cursor:pointer;padding:0}
.jm-round svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.jm-dot{position:absolute;top:7px;right:8px;width:9px;height:9px;border-radius:50%;background:var(--jm-hot1);box-shadow:0 0 0 2px var(--jm-bg)}
.jm-me{overflow:hidden}.jm-me-ini{font-weight:900;font-size:16px}
@media (max-width:360px){.jm-brand-eye{width:42px}.jm-brand-text b{font-size:19px}.jm-round{width:38px;height:38px}}

/* ---- upload band ---- */
.jm-upload-band{display:flex;align-items:center;gap:12px;padding:12px 14px;margin:0 0 12px;border-radius:18px;background:linear-gradient(120deg,rgba(255,106,0,.18),rgba(255,161,46,.06) 60%,rgba(255,255,255,.03));border:1px solid rgba(255,140,40,.28)}
.jm-upload-band>div{display:grid;gap:2px;flex:1;min-width:0}
.jm-upload-band b{font-size:15.5px}.jm-upload-band small{font-size:12.5px;color:var(--jm-soft)}
.jm-btn.sm{min-height:38px;padding:0 13px;font-size:13.5px}
.jm-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.jm-btn svg [fill="currentColor"],.jm-btn svg path[fill="currentColor"]{fill:currentColor;stroke:none}
.jm-btn.hot{background:linear-gradient(90deg,var(--jm-hot1),var(--jm-hot2));color:#fff;box-shadow:0 6px 18px rgba(255,106,0,.3)}
.jm-btn.wide{width:100%;margin-top:10px}

/* ---- Music tabs ---- */
.jm-tabs{display:flex;gap:4px;margin:0 calc(-1 * var(--jm-pad)) 10px;padding:2px var(--jm-pad) 4px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity}
.jm-tabs::-webkit-scrollbar{display:none}
.jm-tab{flex:1 0 auto;min-width:50px;display:grid;justify-items:center;gap:3px;padding:7px 3px 6px;border-radius:14px;border:0;background:none;color:var(--jm-soft);font:inherit;font-size:11.5px;letter-spacing:-.1px;font-weight:800;cursor:pointer;scroll-snap-align:start}
.jm-tab svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.jm-tab.on{background:linear-gradient(180deg,var(--jm-hot1),var(--jm-hot2));color:#fff;box-shadow:0 6px 16px rgba(255,106,0,.32)}

/* ---- All Music menu, search, filters ---- */
.jm-tools{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr) 42px;gap:8px;align-items:center;margin:0 0 10px}
.jm-select{position:relative;min-width:0}
.jm-select select{appearance:none;-webkit-appearance:none;width:100%;max-width:132px;height:44px;padding:0 30px 0 12px;border-radius:12px;border:1px solid var(--jm-line);background:rgba(255,255,255,.06);color:var(--jm-ink);font:inherit;font-size:14.5px;font-weight:800;cursor:pointer;text-overflow:ellipsis}
.jm-select select option{color:#111;background:#fff}
.jm-select::after{content:"";position:absolute;right:12px;top:50%;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-70%) rotate(45deg);pointer-events:none;color:var(--jm-soft)}
.jm-page .jm-search{position:relative;display:block;margin:0;min-width:0}
.jm-page .jm-search svg{position:absolute;left:12px;top:50%;width:18px;height:18px;transform:translateY(-50%);fill:none;stroke:var(--jm-soft);stroke-width:2;stroke-linecap:round;pointer-events:none}
.jm-page .jm-search input{width:100%;box-sizing:border-box;height:44px;padding:0 12px 0 38px;border-radius:12px;border:1px solid var(--jm-line);background:rgba(255,255,255,.06);color:var(--jm-ink);font:inherit;font-size:16px}
.jm-page .jm-search input::placeholder{color:var(--jm-soft);opacity:.85}
.jm-filter-btn{border-radius:12px;border-color:rgba(255,140,40,.55);color:var(--jm-hot2)}
@media (max-width:370px){.jm-select select{max-width:118px;font-size:13.5px;padding-left:10px}}

/* ---- genre chips ---- */
.jm-chips{display:flex;gap:8px;margin:0 calc(-1 * var(--jm-pad)) 6px;padding:2px var(--jm-pad) 8px;overflow-x:auto;scrollbar-width:none}
.jm-chips::-webkit-scrollbar{display:none}
.jm-chip2{flex:none;min-height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--jm-line);background:rgba(255,255,255,.05);color:var(--jm-ink);font:inherit;font-size:13.5px;font-weight:700;cursor:pointer;white-space:nowrap}
.jm-chip2.on{background:linear-gradient(90deg,var(--jm-hot1),var(--jm-hot2));border-color:transparent;color:#fff;font-weight:800}
.jm-fchips{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 12px}
.jm-chip2.theme i{display:inline-block;width:14px;height:14px;border-radius:50%;margin-right:6px;vertical-align:-2px}
.t-jicho i{background:linear-gradient(135deg,#0a0d17 50%,#ff6a00 50%)}.t-crimson i{background:linear-gradient(135deg,#02060e 50%,#c50337 50%)}.t-sunset i{background:linear-gradient(135deg,#262262 50%,#f16623 50%)}
.t-warm i{background:linear-gradient(135deg,#59171b 50%,#fed7b8 50%)}.t-gold i{background:linear-gradient(135deg,#1c1206 50%,#d4a017 50%)}.t-vibrant i{background:linear-gradient(135deg,#7b2ff7 50%,#ff3d77 50%)}

/* ---- sections and shelves ---- */
.jm-sec{margin:16px 0 4px;min-width:0}
.jm-page .jm-sec-head{display:flex;align-items:center;gap:8px;margin:0 0 10px;min-width:0}
.jm-page .jm-sec-head h3{margin:0;font-size:18.5px;font-weight:900;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jm-sec-head.page{margin-top:6px}
.jm-sec-ico{font-size:19px;line-height:1}
.jm-new{flex:none;padding:3px 8px;border-radius:999px;background:linear-gradient(90deg,#7b2ff7,#b06bff);color:#fff;font-size:10.5px;font-weight:900;letter-spacing:.4px}
.jm-see{flex:none;border:0;background:none;color:var(--jm-hot2);font:inherit;font-size:14px;font-weight:800;cursor:pointer;padding:6px 2px}
.jm-shelf{display:grid;grid-auto-flow:column;gap:12px;margin:0 calc(-1 * var(--jm-pad));padding:0 var(--jm-pad) 6px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none}
.jm-shelf::-webkit-scrollbar{display:none}
.jm-shelf>*{scroll-snap-align:start}
.jm-shelf.tiles{grid-auto-columns:minmax(132px,40%)}
.jm-shelf.albums{grid-auto-columns:minmax(132px,40%)}
.jm-shelf.artists{grid-auto-columns:96px}
@media (min-width:600px){.jm-shelf.tiles,.jm-shelf.albums{grid-auto-columns:170px}.jm-shelf.artists{grid-auto-columns:116px}}
.jm-note{margin:6px 0}

/* song tile */
.jm-tile{position:relative;display:grid;gap:6px;min-width:0;padding:6px;border-radius:16px;background:var(--jm-card);border:1px solid var(--jm-line)}
.jm-tile-art{position:relative;display:block;width:100%;aspect-ratio:1;padding:0;border:0;border-radius:12px;overflow:hidden;background:var(--jm-bg2);cursor:pointer}
.jm-tile-img{width:100%;height:100%;object-fit:cover;display:grid;place-items:center;font-size:34px}
.jm-tile-play{position:absolute;left:50%;top:50%;width:42px;height:42px;transform:translate(-50%,-50%);border-radius:50%;display:grid;place-items:center;background:rgba(10,13,23,.62);color:#fff;border:1.5px solid rgba(255,255,255,.7)}
.jm-tile-play svg{width:20px;height:20px;margin-left:2px}
.jm-tile-meta{display:flex;align-items:center;gap:2px;min-width:0}
.jm-tile-text{flex:1;min-width:0;display:grid;gap:1px;padding:0 2px;border:0;background:none;color:var(--jm-ink);font:inherit;text-align:left;cursor:pointer}
.jm-tile-text b{font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jm-tile-text small{font-size:12px;color:var(--jm-soft);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jm-prog{display:block;height:4px;border-radius:4px;background:rgba(255,255,255,.14);overflow:hidden;margin:0 2px 2px}
.jm-prog i{display:block;height:100%;background:linear-gradient(90deg,var(--jm-hot1),var(--jm-hot2))}

/* song rows */
.jm-page .jm-list{display:grid;gap:6px}
.jm-page .jm-row{display:flex;align-items:center;gap:10px;padding:6px 6px 6px 6px;border-radius:14px;background:rgba(255,255,255,.035);border:1px solid var(--jm-line);min-width:0}
.jm-page .jm-row.current{border-color:rgba(255,140,40,.6);background:rgba(255,106,0,.08)}
.jm-rank-n{flex:none;width:20px;text-align:center;font-weight:900;font-size:16px;color:var(--jm-ink)}
.jm-rank-n.num{font-weight:700;color:var(--jm-soft);font-size:14px}
.jm-page .jm-row-art{position:relative;flex:none;width:52px;height:52px;padding:0;border:0;border-radius:10px;overflow:hidden;background:var(--jm-bg2);cursor:pointer}
.jm-page .jm-row-art .jm-art,.jm-page .jm-row-art img{width:52px;height:52px;object-fit:cover;display:grid;place-items:center;font-size:22px;border-radius:0}
.jm-page .jm-row-btn{position:absolute;inset:auto 3px 3px auto;width:22px;height:22px;border-radius:50%;background:rgba(0,0,0,.6);display:grid;place-items:center;color:#fff}
.jm-page .jm-row-btn svg{width:13px;height:13px}
.jm-page .jm-row-main{flex:1;min-width:0;display:grid;gap:1px;padding:0;border:0;background:none;color:var(--jm-ink);font:inherit;text-align:left;cursor:pointer}
.jm-page .jm-row-main b{font-size:14.5px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jm-page .jm-row-main small{font-size:12.5px;color:var(--jm-soft);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Artist Studio "My songs" rows (24 Nov 2026): the one-line flex row above is for listening lists.
   A Studio row keeps artwork | title, details, status on top and its management buttons on their own
   line below, so the buttons never cover the title, artwork or status; Delete sits apart at the end. */
.jm-page .jm-row.studio{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:start;row-gap:8px}
.jm-page .jm-row.studio .jm-row-main small{white-space:normal;overflow:visible;line-height:1.35}
.jm-page .jm-row.studio .jm-row-main b{white-space:normal;overflow-wrap:anywhere}
.jm-page .jm-row.studio .jm-status{margin-top:3px}
.jm-page .jm-row.studio .jm-row-tools{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px;padding-top:8px;border-top:1px solid var(--jm-line)}
.jm-page .jm-row.studio .jm-row-tools .danger{margin-left:auto}
.jm-meta{display:flex;gap:10px;font-size:11.5px;color:var(--jm-soft);font-variant-numeric:tabular-nums}
.jm-plays{display:inline-flex;align-items:center;gap:3px}.jm-plays svg{width:10px;height:10px}
.jm-ic{flex:none;width:38px;height:38px;border-radius:50%;border:0;background:none;color:var(--jm-soft);display:grid;place-items:center;cursor:pointer;padding:0;position:relative}
.jm-ic svg{width:21px;height:21px}
.jm-ic:hover{background:rgba(255,255,255,.07);color:var(--jm-ink)}
.jm-ic:disabled{opacity:.3;cursor:default}
.jm-like.on,.jm-pl-like.on{color:var(--jm-hot1)}
.jm-like.on .hf,.jm-pl-like.on .hf{fill:currentColor}
.jm-ic.on{color:var(--jm-hot2)}
@media (min-width:720px){.jm-rank{grid-template-columns:1fr 1fr;column-gap:14px}}
.jm-skel{display:grid;gap:8px;margin-top:12px}
.jm-skel span{display:block;height:64px;border-radius:14px;background:linear-gradient(90deg,rgba(255,255,255,.04),rgba(255,255,255,.09),rgba(255,255,255,.04));background-size:200% 100%;animation:jmShim 1.3s linear infinite}
@keyframes jmShim{to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.jm-skel span{animation:none}}
.jm-empty.err{border-color:rgba(255,120,80,.4)}

/* albums, artists, playlists */
.jm-album,.jm-plcard{display:grid;gap:3px;min-width:0;padding:0;border:0;background:none;color:var(--jm-ink);font:inherit;text-align:left;cursor:pointer}
.jm-album-art,.jm-plcard .jm-mosaic{display:block;width:100%;aspect-ratio:1;border-radius:14px;overflow:hidden;background:var(--jm-card);box-shadow:0 8px 20px rgba(0,0,0,.35);margin-bottom:5px}
.jm-album-art img{width:100%;height:100%;object-fit:cover;display:block}
.jm-art-none{width:100%;height:100%;display:grid;place-items:center;font-size:40px}
.jm-album b,.jm-plcard b{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jm-album small,.jm-plcard small{font-size:12px;color:var(--jm-soft);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jm-mosaic{display:grid;place-items:center;font-size:36px;color:var(--jm-soft)}
.jm-mosaic.n4{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}
.jm-mosaic img{width:100%;height:100%;object-fit:cover;display:block}
.jm-mosaic.n2 img:nth-child(2),.jm-mosaic.n3 img:nth-child(n+2){display:none}
.jm-plcard.new .jm-mosaic{border:1.5px dashed var(--jm-line);background:rgba(255,255,255,.03);box-shadow:none;font-size:40px;color:var(--jm-hot2)}
.jm-artist{display:grid;justify-items:center;gap:3px;min-width:0;padding:0;border:0;background:none;color:var(--jm-ink);font:inherit;cursor:pointer;text-align:center}
.jm-artist-ph{width:84px;height:84px;border-radius:50%;overflow:hidden;background:linear-gradient(135deg,var(--jm-hot1),#7b2ff7);display:grid;place-items:center;font-size:30px;font-weight:900;border:2px solid rgba(255,140,40,.45);margin-bottom:4px}
.jm-artist-ph img{width:100%;height:100%;object-fit:cover}
.jm-artist b{font-size:13.5px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jm-artist small{font-size:11.5px;color:var(--jm-soft)}
.jm-grid{display:grid;gap:14px 12px}
.jm-grid.albums{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
.jm-grid.artists{grid-template-columns:repeat(auto-fill,minmax(96px,1fr))}
@media (max-width:340px){.jm-grid.albums{grid-template-columns:1fr 1fr}}

/* Radio */
.jm-radio2{display:grid;gap:10px}
.jm-radio-hero{display:flex;align-items:center;gap:12px;padding:14px;border-radius:18px;background:linear-gradient(120deg,rgba(255,106,0,.22),rgba(123,47,247,.18));border:1px solid var(--jm-line)}
.jm-radio-hero>div{display:grid;gap:2px;flex:1;min-width:0}.jm-radio-hero small{font-size:12.5px;color:var(--jm-soft)}
.jm-page .jm-pill.radio.jm-radio-play{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 16px;border:0;background:linear-gradient(90deg,var(--jm-hot1),var(--jm-hot2));color:#fff;box-shadow:0 6px 16px rgba(255,106,0,.35)}
.jm-radio-play svg{width:18px;height:18px}
.jm-stations{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(132px,40%);gap:10px;margin:0 calc(-1 * var(--jm-pad));padding:0 var(--jm-pad) 6px;overflow-x:auto;scrollbar-width:none}
.jm-stations::-webkit-scrollbar{display:none}
.jm-stations.full{grid-auto-flow:row;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));margin:0;padding:0;overflow:visible}
.jm-station{position:relative;display:grid;gap:2px;justify-items:start;min-height:84px;padding:12px;border-radius:16px;border:1px solid var(--jm-line);background:linear-gradient(160deg,rgba(255,255,255,.07),rgba(255,255,255,.02)),var(--jm-card);color:var(--jm-ink);font:inherit;text-align:left;cursor:pointer;overflow:hidden}
.jm-station::before{content:"";position:absolute;inset:auto -20px -30px auto;width:80px;height:80px;border-radius:50%;background:var(--g);opacity:.45;filter:blur(6px)}
.jm-station span{font-size:22px;position:relative}.jm-station b{font-size:13.5px;position:relative;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jm-station small{font-size:11.5px;color:var(--jm-soft);position:relative}

/* footer links, library tools */
.jm-home-foot{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0 0;padding-top:14px;border-top:1px solid var(--jm-line)}
.jm-home .jm-home-foot .jm-pill{flex:1 1 auto;min-height:40px;font-size:13px;padding:0 12px}
.jm-libtools{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 4px}

/* album, playlist and artist pages */
.jm-coll .jm-back{margin-bottom:8px}
.jm-coll-head{display:grid;grid-template-columns:132px minmax(0,1fr);gap:14px;align-items:end;margin-bottom:12px}
.jm-coll-art{display:block;width:132px;height:132px;border-radius:16px;overflow:hidden;background:var(--jm-card);box-shadow:0 12px 28px rgba(0,0,0,.45)}
.jm-coll-art img{width:100%;height:100%;object-fit:cover;display:block}
.jm-coll-head h2{margin:4px 0 2px;font-size:22px;line-height:1.15;overflow-wrap:anywhere}
.jm-coll-head p{margin:2px 0;color:var(--jm-soft);font-size:13px}
.jm-coll-head .jm-desc{color:var(--jm-ink)}
@media (max-width:380px){.jm-coll-head{grid-template-columns:1fr;justify-items:center;text-align:center}.jm-coll-art{width:170px;height:170px}}
.jm-ap-acts{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 6px}
.jm-ap-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.jm-ap-stats b{overflow:hidden;text-overflow:ellipsis}
.jm-ap-head h2{overflow-wrap:anywhere}
.jm-link.light{color:#fff;text-decoration:underline;background:none;border:0;font:inherit;padding:0;cursor:pointer}
.jm-ord{display:flex;gap:2px}
.jm-list.reorder .jm-art{width:44px;height:44px;border-radius:8px;object-fit:cover;flex:none}

/* earnings */
.jm-earncard{margin:12px 0;padding:14px;border-radius:18px;background:linear-gradient(140deg,rgba(255,106,0,.14),rgba(255,255,255,.03));border:1px solid rgba(255,140,40,.3);display:grid;gap:10px}
.jm-earn-top{display:flex;justify-content:space-between;gap:8px;align-items:baseline}.jm-earn-top small{color:var(--jm-soft);font-size:12px}
.jm-earncard .jm-btn{justify-self:start}
.jm-earn.four{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:620px){.jm-earn.four{grid-template-columns:repeat(4,minmax(0,1fr))}}
.jm-table-wrap{max-width:100%}
.jm-table{width:100%;border-collapse:separate;border-spacing:0 6px;font-size:13.5px}
.jm-table th,.jm-table td{padding:9px 10px;text-align:left;vertical-align:top;background:rgba(255,255,255,.04)}
.jm-table thead th{background:none;color:var(--jm-soft);font-size:12px;font-weight:800;padding-bottom:2px}
.jm-table tbody th{border-radius:12px 0 0 12px;font-weight:600}.jm-table tbody td:last-child{border-radius:0 12px 12px 0}
.jm-table small{display:block;color:var(--jm-soft);font-size:11.5px}
.jm-table b{overflow-wrap:anywhere}
.jm-st{display:inline-block;padding:3px 8px;border-radius:999px;font-size:11.5px;font-weight:800;background:rgba(255,255,255,.1)}
.jm-st.pending{background:rgba(255,161,46,.2);color:#ffc77a}.jm-st.available{background:rgba(34,197,139,.2);color:#6ee7b7}.jm-st.reversed{background:rgba(239,68,68,.2);color:#fca5a5}
@media (max-width:600px){
  .jm-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .jm-table,.jm-table tbody,.jm-table tr{display:block;width:100%}
  .jm-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px;padding:10px 12px;margin-bottom:8px;border-radius:14px;background:rgba(255,255,255,.05)}
  .jm-table tr>*{background:none!important;padding:0;border-radius:0!important}
  .jm-table tbody th{grid-column:1/-1}
  .jm-table td::before{display:block;font-size:11px;color:var(--jm-soft);font-weight:800}
  #jmEarnings .jm-table td:nth-of-type(1)::before{content:"Plays"}#jmEarnings .jm-table td:nth-of-type(2)::before{content:"Revenue"}#jmEarnings .jm-table td:nth-of-type(3)::before{content:"Artist share"}#jmEarnings .jm-table td:nth-of-type(4)::before{content:"Status"}
  #jmEarnings .jm-table.albums-t td:nth-of-type(1)::before{content:"Songs"}#jmEarnings .jm-table.albums-t td:nth-of-type(2)::before{content:"Plays"}#jmEarnings .jm-table.albums-t td:nth-of-type(3)::before{content:"Revenue"}#jmEarnings .jm-table.albums-t td:nth-of-type(4)::before{content:"Artist share"}
}
.jm-studio-main{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.jm-studio-main .jm-upload-btn{flex:1 1 100%}

/* sheets: options menu, add to playlist, filters */
dialog.jm-sheet{margin:auto auto 0;max-width:min(520px,100vw);width:100%}
@media (min-width:700px){dialog.jm-sheet{margin:auto}}
dialog.jm-sheet .jm-dbox{border-radius:22px 22px 0 0;padding-bottom:calc(16px + env(safe-area-inset-bottom,0px));max-height:86dvh;overflow-y:auto}
@media (min-width:700px){dialog.jm-sheet .jm-dbox{border-radius:22px}}
.jm-menu-head{display:flex;align-items:center;gap:12px;padding:2px 44px 10px 0;border-bottom:1px solid var(--jm-line);margin-bottom:6px}
.jm-menu-art{width:52px;height:52px;border-radius:10px;object-fit:cover;flex:none;display:grid;place-items:center;font-size:22px}
.jm-menu-head>div{display:grid;min-width:0}.jm-menu-head b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jm-menu-head small{color:var(--jm-soft);font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jm-menu-list{display:grid}
.jm-menu-list button{display:flex;align-items:center;gap:14px;min-height:48px;padding:0 6px;border:0;border-radius:12px;background:none;color:var(--jm-ink);font:inherit;font-size:15px;font-weight:700;text-align:left;cursor:pointer}
.jm-menu-list button:hover{background:rgba(255,255,255,.06)}
.jm-menu-list svg{width:22px;height:22px;color:var(--jm-soft)}
.jm-newpl{display:flex;gap:8px;margin:6px 0 12px}
.jm-newpl input{flex:1;min-width:0;min-height:44px;padding:0 12px;border-radius:12px;border:1px solid var(--jm-line);background:rgba(255,255,255,.08);color:var(--jm-ink);font:inherit;font-size:16px}
.jm-pick{display:grid;gap:4px}
.jm-pick-row{display:flex;align-items:center;gap:12px;width:100%;padding:6px;border:0;border-radius:12px;background:none;color:var(--jm-ink);font:inherit;text-align:left;cursor:pointer}
.jm-pick-row:hover{background:rgba(255,255,255,.06)}
.jm-pick-row>span:last-child{display:grid;min-width:0}.jm-pick-row b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14.5px}.jm-pick-row small{color:var(--jm-soft);font-size:12px}
.jm-mosaic.sm{width:46px;height:46px;border-radius:8px;overflow:hidden;flex:none;font-size:20px;background:var(--jm-card)}
.jm-q-art{width:44px;height:44px;border-radius:8px;object-fit:cover;flex:none;display:grid;place-items:center}

/* ---- mini-player ---- */
.jm-player{grid-template-columns:44px minmax(0,1fr) auto 36px 46px 36px 36px;grid-template-areas:"art info info prev play next like" "bar bar bar bar queue share x";gap:4px 6px;padding:8px 10px 6px;border-radius:18px;background:linear-gradient(120deg,rgba(18,23,40,.97),rgba(30,22,48,.97));border:1px solid rgba(255,140,40,.3);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
body[data-jm-music-theme]:not([data-jm-music-theme="jicho"]) .jm-player{background:linear-gradient(120deg,#2a0f5c,#5b1a8c 60%,#a0156b);border-color:transparent}
.jm-pl-art{width:44px;height:44px;cursor:pointer}.jm-pl-img{width:44px;height:44px}
.jm-pl-prev,.jm-pl-next,.jm-pl-like,.jm-pl-queue,.jm-pl-share{width:36px;height:36px;border-radius:50%;border:0;background:none;color:#fff;display:grid;place-items:center;cursor:pointer;padding:0}
.jm-pl-prev{grid-area:prev}.jm-pl-next{grid-area:next}.jm-pl-like{grid-area:like}.jm-pl-queue{grid-area:queue;justify-self:end}.jm-pl-share{grid-area:share}
.jm-pl-prev svg,.jm-pl-next svg{width:22px;height:22px}.jm-pl-like svg,.jm-pl-queue svg,.jm-pl-share svg{width:21px;height:21px}
.jm-pl-next[hidden]{display:grid!important;visibility:hidden}
.jm-player .jm-pl-play{width:44px;height:44px;background:linear-gradient(180deg,var(--jm-hot1),var(--jm-hot2));color:#fff;box-shadow:0 4px 14px rgba(255,106,0,.45)}
.jm-player .jm-pl-x{width:34px;height:34px;font-size:20px;background:rgba(255,255,255,.1)}
.jm-player .jm-pl-dl,.jm-player .jm-pl-vol{display:none}
.jm-player .jm-pl-bar input{accent-color:var(--jm-hot2)}
.jm-player .jm-pl-bar{font-size:11px;color:#d8dcea}
@media (max-width:350px){.jm-player{grid-template-columns:40px minmax(0,1fr) auto 32px 42px 32px 32px;padding:7px 8px 5px}.jm-player .jm-pl-play{width:40px;height:40px}}
@media (min-width:760px){
  .jm-player{grid-template-columns:48px minmax(120px,1fr) 36px 46px 36px minmax(160px,2fr) 36px 36px 36px auto 40px 36px;grid-template-areas:"art info prev play next bar like queue share vol dl x";max-width:1000px}
  .jm-player .jm-pl-dl{display:grid}.jm-player .jm-pl-vol{display:flex;width:120px}
}

/* ---- Now Playing ---- */
dialog.jm-np-dialog{max-width:100vw;width:100vw;height:100%;max-height:100%;margin:0;inset:0;border:0;outline:none}
@media (min-width:700px){dialog.jm-np-dialog{max-width:460px;height:min(860px,96dvh);margin:auto;border-radius:24px;overflow:hidden}}
dialog.jm-np-dialog .jm-dbox{height:100%;box-sizing:border-box;border-radius:0;padding:0;background:radial-gradient(500px 420px at 50% 10%,rgba(255,106,0,.28),transparent 70%),linear-gradient(180deg,var(--jm-bg2),var(--jm-bg));overflow-y:auto}
dialog.jm-np-dialog .jm-dbox>.jm-x{display:none}
.jm-np{display:grid;gap:14px;padding:calc(10px + env(safe-area-inset-top,0px)) 20px calc(20px + env(safe-area-inset-bottom,0px));min-height:100%;box-sizing:border-box;align-content:start}
.jm-np-top{display:grid;grid-template-columns:40px 1fr 40px;align-items:center;text-align:center;font-size:13px;font-weight:800;color:var(--jm-soft);text-transform:uppercase;letter-spacing:.6px}
.jm-np-top .jm-ic{color:var(--jm-ink);font-size:24px}
.jm-np-art{width:min(100%,360px,46dvh);aspect-ratio:1;margin:6px auto 4px;border-radius:20px;overflow:hidden;box-shadow:0 24px 50px rgba(0,0,0,.55);background:var(--jm-card)}
.jm-np-img{width:100%;height:100%;object-fit:cover;display:grid;place-items:center;font-size:80px}
.jm-np-meta{display:flex;align-items:center;gap:10px;min-width:0}
.jm-np-meta>div{flex:1;min-width:0;display:grid;gap:2px}
.jm-np-meta b{font-size:21px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jm-np-artist{justify-self:start;max-width:100%;padding:0;border:0;background:none;color:var(--jm-soft);font:inherit;font-size:15px;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jm-np-meta .jm-ic{width:44px;height:44px}.jm-np-meta .jm-ic svg{width:26px;height:26px}
.jm-np-bar input{width:100%;accent-color:var(--jm-hot2)}
.jm-np-bar div{display:flex;justify-content:space-between;font-size:12px;color:var(--jm-soft);font-variant-numeric:tabular-nums}
.jm-np-ctrl{display:flex;align-items:center;justify-content:space-between;max-width:380px;width:100%;margin:0 auto}
.jm-np-ctrl .jm-ic{color:var(--jm-ink)}.jm-np-ctrl .jm-ic.on{color:var(--jm-hot2)}
.jm-np-ctrl .jm-ic.big{width:52px;height:52px}.jm-np-ctrl .jm-ic.big svg{width:30px;height:30px}
.jm-rep1{position:absolute;right:4px;top:4px;font-style:normal;font-size:10px;font-weight:900}
.jm-np-play{width:72px;height:72px;border-radius:50%;border:0;background:linear-gradient(180deg,var(--jm-hot1),var(--jm-hot2));color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:0 10px 26px rgba(255,106,0,.5)}
.jm-np-play svg{width:34px;height:34px}
.jm-np-acts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.jm-np-acts button{display:grid;justify-items:center;gap:4px;padding:8px 2px;border:0;border-radius:12px;background:rgba(255,255,255,.05);color:var(--jm-ink);font:inherit;font-size:11.5px;font-weight:700;cursor:pointer}
.jm-np-acts svg{width:22px;height:22px}
.jm-np-queue{display:grid;gap:4px;padding:10px;border-radius:16px;background:rgba(255,255,255,.04)}

/* Minimise the player: a small handle on top of the player; minimised, only a small tab at the right edge shows (music keeps playing). */
.jm-player{transition:transform .25s ease,opacity .2s ease,visibility .25s}
.jm-player .jm-pl-min{position:absolute;top:-13px;left:50%;transform:translateX(-50%);width:48px;height:22px;padding:0;border-radius:11px;border:1px solid rgba(255,140,40,.45);background:rgba(18,23,40,.97);color:#fff;display:grid;place-items:center;cursor:pointer;z-index:1}
.jm-player .jm-pl-min::after{content:"";position:absolute;inset:-12px -12px -6px}
.jm-player .jm-pl-min svg{width:18px;height:18px}
body.jm-pl-min .jm-player{transform:translateY(calc(100% + 140px));opacity:0;visibility:hidden;pointer-events:none}
.jm-mini{display:none;position:fixed;right:0;top:42%;z-index:901;width:46px;height:50px;padding:0 0 0 9px;align-items:center;border:1px solid rgba(255,140,40,.5);border-right:0;border-radius:25px 0 0 25px;background:rgba(18,23,40,.94);color:#ffa12e;box-shadow:0 6px 18px rgba(0,0,0,.45);cursor:pointer;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
body.jm-has-player.jm-pl-min .jm-mini{display:flex}
.jm-mini:focus-visible{outline:3px solid #ffb766;outline-offset:2px}
.jm-mini-eq{display:flex;align-items:flex-end;gap:3px;height:20px}
.jm-mini-eq i{width:4px;height:6px;border-radius:2px;background:currentColor}
.jm-mini.on .jm-mini-eq i{animation:jmMiniEq .9s ease-in-out infinite alternate}
.jm-mini.on .jm-mini-eq i:nth-child(2){animation-delay:-.3s}.jm-mini.on .jm-mini-eq i:nth-child(3){animation-delay:-.6s}.jm-mini.on .jm-mini-eq i:nth-child(4){animation-delay:-.15s}
@keyframes jmMiniEq{from{height:5px}to{height:20px}}
@media (prefers-reduced-motion:reduce){.jm-player{transition:none}.jm-mini.on .jm-mini-eq i{animation:none;height:14px}}
