/* Music page look: mostly Spotify (artist header, track list, bottom player) and BeatStars (cover squares, BPM and key,
   price labels, licenses), with a touch of the Market (white pill buttons, the sample packs on a warm light panel).
   Loaded after maesdy.css on music.html only. */
:root { --mu-bg: #07070B; --mu-row: rgba(255,255,255,.06); --mu-text: #F2F3FA; --mu-muted: #A3A6B8; --mu-blue: #4D6BFF; --mu-neon: linear-gradient(135deg, #4D6BFF 0%, #7A4DFF 100%); --mu-day: #FFFFFF; }

/* ---------- artist header ---------- */
:root:root:root body.m-music .phero { min-height: clamp(400px, 46vw, 520px); border-radius: 22px 22px 0 0; margin-bottom: 0;
  background-image: linear-gradient(180deg, rgba(7,7,11,.15) 0%, rgba(7,7,11,.45) 45%, rgba(7,7,11,.96) 100%), url("https://images.unsplash.com/photo-1514320291840-2e0a9bf2a9ae?auto=format&fit=crop&w=1600&q=70"); }
:root:root:root body.m-music .phero .ptext { max-width: none; gap: 14px; }
:root:root:root body.m-music .phero .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 13px; letter-spacing: .04em; text-transform: none; font-weight: 600; }
:root:root:root body.m-music .phero .vbadge { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--mu-blue); color: #fff; }
:root:root:root body.m-music .phero h1 { font-size: clamp(64px, 13vw, 140px); line-height: .9; letter-spacing: -0.055em; font-weight: 800; }
:root:root:root body.m-music .phero .plead { max-width: 56ch; }
:root:root:root body.m-music .phero .pstats { margin: -4px 0 0; color: rgba(255,255,255,.72); font: 600 14px/1.3 "Plus Jakarta Sans", sans-serif; min-height: 1.3em; }
:root:root:root body.m-music .phero .wave { max-width: 360px; height: 36px; }
:root:root:root body.m-music .phero .cta { align-items: center; gap: 12px; }
:root:root:root body.m-music .phero .cta .btn { min-height: 44px; padding: 10px 20px; flex: 0 0 auto; }
:root:root:root body.m-music .phero .cta .btn.ghost { background: transparent !important; color: #fff !important; border: 1px solid rgba(255,255,255,.4) !important; }
:root:root:root body.m-music .phero .cta .btn.ghost:hover { border-color: #fff !important; }
body.m-music .bigplay { flex: none; width: 60px; height: 60px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #fff; background: var(--mu-neon); box-shadow: 0 10px 28px rgba(77,107,255,.5); transition: transform .12s, box-shadow .15s; }
body.m-music .bigplay:hover { transform: scale(1.06); box-shadow: 0 12px 34px rgba(77,107,255,.65); }
body.m-music .bigplay svg { display: block; margin-left: 2px; } body.m-music .bigplay .ic-pause { display: none; margin-left: 0; }
body.m-music.mplaying .bigplay .ic-play { display: none; } body.m-music.mplaying .bigplay .ic-pause { display: block; }
:root:root:root body.m-music .pcredit { z-index: 1; }

/* section pills (Market style) */
body.m-music .mtabs { position: sticky; top: 64px; z-index: 20; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 14px 0; margin: 0 0 -40px;
  background: linear-gradient(180deg, var(--mu-bg) 75%, rgba(7,7,11,0)); }
body.m-music .mtabs::-webkit-scrollbar { display: none; }
body.m-music .mtabs a { flex: none; font: 600 14px/1 "Plus Jakarta Sans", sans-serif; color: #0E0F14; background: #fff; border-radius: 999px; padding: 10px 16px; text-decoration: none; transition: background .15s, color .15s; }
body.m-music .mtabs a:hover { background: #E8EAFF; }
@media (max-width: 759px) { body.m-music .mtabs { top: 52px; margin: 0 -16px -32px; padding: 12px 16px; } }

/* genre filter: white pills too */
:root:root:root body.m-music .chips .chip { background: rgba(255,255,255,.08); color: #fff; border: 0; padding: 9px 15px; }
:root:root:root body.m-music .chips .chip[aria-pressed="true"] { background: #fff !important; color: #0E0F14 !important; }

/* ---------- track list (Spotify rows) ---------- */
:root:root:root body.m-music .thead { display: grid; grid-template-columns: 26px 52px minmax(0, 1.6fr) minmax(90px, .7fr) minmax(120px, .9fr) minmax(200px, auto); gap: 16px; padding: 0 14px 10px; margin-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.08); font: 600 12px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--mu-muted); }
:root:root:root body.m-music .thead span:first-child { text-align: center; }
:root:root:root body.m-music .thead:has(+ .beatlist > .nobeats) { display: none; }
:root:root:root body.m-music .beatlist { gap: 2px; }
:root:root:root body.m-music .beat {
  grid-template-columns: 26px 52px minmax(0, 1.6fr) minmax(90px, .7fr) minmax(120px, .9fr) minmax(200px, auto); grid-template-areas: "num art name meta lic buy" "spec spec spec spec spec spec";
  gap: 4px 16px; padding: 8px 14px !important; background: transparent !important; border: 0 !important; border-radius: 10px !important; box-shadow: none !important; transition: background .12s;
}
:root:root:root body.m-music .beat:hover { background: var(--mu-row) !important; }
:root:root:root body.m-music .beat.playing, :root:root:root body.m-music .beat.paused { background: rgba(77,107,255,.13) !important; box-shadow: none !important; }
:root:root:root body.m-music .beat .num { grid-area: num; text-align: center; font: 500 15px/1 "DM Mono", ui-monospace, monospace; color: var(--mu-muted); }
:root:root:root body.m-music .beat.playing .num, :root:root:root body.m-music .beat.paused .num { color: #9DB2FF; }
:root:root:root body.m-music .beat .playbtn { grid-area: art; position: relative; width: 52px; height: 52px; border-radius: 8px; overflow: hidden; background-size: cover !important; background-position: center !important;
  background-color: #1C1D2B !important; background-image: linear-gradient(135deg, var(--g, #4D6BFF) 0%, #2A1B6B 100%) !important; box-shadow: 0 4px 14px rgba(0,0,0,.4) !important; }
:root:root:root body.m-music .beat .playbtn::before { content: attr(data-ini); position: absolute; inset: 0; display: grid; place-items: center; font: 800 18px/1 Sora, sans-serif; letter-spacing: -.04em; color: rgba(255,255,255,.92); text-shadow: 0 1px 6px rgba(0,0,0,.3); transition: opacity .12s; }
:root:root:root body.m-music .beat .playbtn[style*="url("]::before { content: ""; }
:root:root:root body.m-music .beat .playbtn svg { position: relative; z-index: 1; width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: rgba(0,0,0,.55); fill: #fff; opacity: 0; transition: opacity .12s; box-sizing: border-box; }
:root:root:root body.m-music .beat:hover .playbtn svg, :root:root:root body.m-music .beat .playbtn:focus-visible svg, :root:root:root body.m-music .beat.playing .playbtn svg, :root:root:root body.m-music .beat.paused .playbtn svg { opacity: 1; }
:root:root:root body.m-music .beat:hover .playbtn::before, :root:root:root body.m-music .beat.playing .playbtn::before, :root:root:root body.m-music .beat.paused .playbtn::before { opacity: 0; }
:root:root:root body.m-music .beat.playing .playbtn { box-shadow: 0 0 0 2px #9DB2FF, 0 6px 18px rgba(77,107,255,.45) !important; }
:root:root:root body.m-music .beat.paused .playbtn .ic-play { display: block; } :root:root:root body.m-music .beat.paused .playbtn .ic-pause { display: none; }
:root:root:root body.m-music .beat .name { grid-area: name; gap: 5px; }
:root:root:root body.m-music .beat .ntext { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
:root:root:root body.m-music .beat .scover { display: none; }
:root:root:root body.m-music .beat .name strong { font: 700 16px/1.25 "Plus Jakarta Sans", sans-serif; letter-spacing: -.01em; color: #fff; }
:root:root:root body.m-music .beat.playing .name strong, :root:root:root body.m-music .beat.paused .name strong { color: #9DB2FF; }
:root:root:root body.m-music .beat .ttl .mlike { padding: 3px 8px; min-height: 26px; background: transparent; border-color: transparent; color: var(--mu-muted); }
:root:root:root body.m-music .beat .ttl .mlike:hover { color: #fff; }
:root:root:root body.m-music .beat .ttl .mlike.on { color: #FF5C8A; }
:root:root:root body.m-music .beat .tags .tag { background: rgba(255,255,255,.08); border: 0; color: #C9CBD8; padding: 4px 7px; font-size: 10px; }
:root:root:root body.m-music .beat .tags .tag.plain { background: none; color: var(--mu-muted); padding-left: 0; font: 600 13px/1.2 "Plus Jakarta Sans", sans-serif; text-transform: none; letter-spacing: 0; }
:root:root:root body.m-music .beat .meta { grid-area: meta; flex-direction: column; gap: 3px; text-align: left; color: var(--mu-muted); font-size: 13px; }
:root:root:root body.m-music .beat .meta b { color: #E4E6F2; }
:root:root:root body.m-music .beat .licwrap { grid-area: lic; }
:root:root:root body.m-music .beat .licwrap .freenote { font-size: 13px; color: var(--mu-muted); }
:root:root:root body.m-music .beat select.lic { background: rgba(255,255,255,.07); color: #fff; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 9px 12px; font-size: 13px; }
:root:root:root body.m-music .beat .buy { grid-area: buy; gap: 12px; }
/* BeatStars style price label */
:root:root:root body.m-music .beat .price { font: 700 13px/1 "Plus Jakarta Sans", sans-serif; min-width: 0; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; letter-spacing: .01em; }
:root:root:root body.m-music .beat .buy .btn { min-height: 38px; padding: 9px 16px; font-size: 13px; border-radius: 999px; }
:root:root:root body.m-music .beat canvas.spec { grid-area: spec; display: none; height: 34px; margin-top: 4px; }
:root:root:root body.m-music .beat.playing canvas.spec, :root:root:root body.m-music .beat.paused canvas.spec { display: block; }

@media (max-width: 960px) {
  :root:root:root body.m-music .thead { display: none; }
  :root:root:root body.m-music .beat { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "art name buy" "art meta buy" "lic lic lic" "spec spec spec"; padding: 8px 6px !important; gap: 2px 12px; }
  :root:root:root body.m-music .beat .num { display: none; }
  :root:root:root body.m-music .beat .meta { flex-direction: row; gap: 10px; align-self: start; }
  :root:root:root body.m-music .beat .licwrap:has(.freenote) { display: none; }
  :root:root:root body.m-music .beat .licwrap { margin-top: 6px; }
  :root:root:root body.m-music .beat .buy { flex-direction: column; align-items: flex-end; gap: 6px; }
  :root:root:root body.m-music .beat .tags:not(:has(.tag)) { display: none; }
}
@media (max-width: 480px) {
  :root:root:root body.m-music .beat .buy .btn { padding: 8px 12px; font-size: 12px; min-height: 34px; }
  :root:root:root body.m-music .beat .price { padding: 5px 9px; font-size: 12px; }
}
:root:root:root body.m-music .nobeats { background: rgba(255,255,255,.04) !important; border: 1px dashed rgba(255,255,255,.14) !important; border-radius: 14px; }

/* ---------- sample packs: the Market touch (warm light panel, white cards) ---------- */
:root:root:root body.m-music #packs { background: var(--mu-day); color: #0E0F14; border-radius: 22px; padding: clamp(22px, 4vw, 44px); }
:root:root:root body.m-music #packs .eyebrow { color: #B45309; }
:root:root:root body.m-music #packs h2 { color: #0E0F14; }
:root:root:root body.m-music #packs .shead p { color: #5A5D6B; }
:root:root:root body.m-music #packs .packs { gap: 18px; }
:root:root:root body.m-music #packs .pack { background: #fff !important; border: 1px solid #EAEAEE !important; border-radius: 18px; color: #0E0F14; overflow: hidden; transition: transform .15s, box-shadow .15s; }
:root:root:root body.m-music #packs .pack:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(14,15,20,.12) !important; }
:root:root:root body.m-music #packs .pack ul li { color: #3A3C48; }
:root:root:root body.m-music #packs .pack .snd { background: #F3F3F6 !important; color: #0E0F14 !important; border: 1px solid #EAEAEE !important; border-radius: 999px; font: 600 12px/1 "Plus Jakarta Sans", sans-serif; padding: 9px 12px; }
:root:root:root body.m-music #packs .pack .snd.more { background: #E8EAFF !important; color: #2A3FA8 !important; border-color: transparent !important; }
:root:root:root body.m-music #packs .pack .snd:hover, :root:root:root body.m-music #packs .pack .snd.on { background: #0E0F14 !important; color: #fff !important; border-color: #0E0F14 !important; }
:root:root:root body.m-music #packs .pack { padding-bottom: 18px; }
:root:root:root body.m-music #packs .pack > :not(.art):not(.mlike) { margin-left: 18px; margin-right: 18px; }
:root:root:root body.m-music #packs .pack .price { color: #0E0F14; font: 800 20px/1 Sora, sans-serif; }
:root:root:root body.m-music #packs .pack .manualbtn { color: #3D4FE0; }
:root:root:root body.m-music #packs .pcredit2, :root:root:root body.m-music #packs .pcredit2 a { color: #5A5D6B; }
:root:root:root body.m-music #packs .pack > .mlike { background: rgba(255,255,255,.92); color: #0E0F14; border-color: transparent; }
@media (max-width: 759px) { :root:root:root body.m-music #packs { border-radius: 20px; padding: 26px 14px; } }

/* ---------- bottom player (Spotify style) ---------- */
:root:root:root body .nowbar { left: 0; right: 0; bottom: 0; max-width: none; margin: 0; border-radius: 0; border: 0; border-top: 1px solid rgba(255,255,255,.08); background: #0B0B10; box-shadow: 0 -10px 30px rgba(0,0,0,.45);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 16px; padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left)); }
:root:root:root body .nowbar[hidden] { display: none; }
:root:root:root body .nowbar .nart { grid-column: 1; grid-row: 1; width: 52px; height: 52px; border-radius: 8px; position: relative; background-color: #1C1D2B; background-image: linear-gradient(135deg, var(--g, #4D6BFF) 0%, #2A1B6B 100%); background-size: cover; background-position: center; }
:root:root:root body .nowbar .nart::before { content: attr(data-ini); position: absolute; inset: 0; display: grid; place-items: center; font: 800 17px/1 Sora, sans-serif; color: #fff; }
:root:root:root body .nowbar .nart[style*="url("]::before { content: ""; }
:root:root:root body .nowbar .ntext { grid-column: 1; grid-row: 1; margin-left: 64px; flex: none; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
:root:root:root body .nowbar .ntitle { font: 700 15px/1.2 "Plus Jakarta Sans", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root:root:root body .nowbar .nsub { font: 500 12px/1.2 "Plus Jakarta Sans", sans-serif; color: var(--mu-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root:root:root body .nowbar .nctl { grid-column: 2; display: grid; gap: 6px; justify-items: center; }
:root:root:root body .nowbar .nbtns { display: flex; align-items: center; gap: 18px; }
:root:root:root body .nowbar .nprev, :root:root:root body .nowbar .nnext { width: 36px; height: 36px; border: 0; background: none; color: #B9BBC9; cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
:root:root:root body .nowbar .nprev:hover, :root:root:root body .nowbar .nnext:hover { color: #fff; }
:root:root:root body .nowbar .npause { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #0B0B10; display: grid; place-items: center; cursor: pointer; transition: transform .1s; }
:root:root:root body .nowbar .npause:hover { transform: scale(1.07); }
:root:root:root body .nowbar .nprog { width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 8px; font: 500 11px/1 "DM Mono", ui-monospace, monospace; color: var(--mu-muted); }
:root:root:root body .nowbar .nprog .ncur { text-align: right; }
:root:root:root body .nowbar .nprog.nodur { visibility: hidden; }
:root:root:root body .nowbar .nbar { position: relative; height: 16px; cursor: pointer; display: flex; align-items: center; }
:root:root:root body .nowbar .nbar::before { content: ""; position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); }
:root:root:root body .nowbar .nbar i { position: relative; display: block; height: 4px; border-radius: 4px; background: #fff; width: 0; }
:root:root:root body .nowbar .nbar:hover i { background: var(--mu-blue); }
:root:root:root body .nowbar .nbar i::after { content: ""; position: absolute; right: -6px; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; opacity: 0; transition: opacity .12s; }
:root:root:root body .nowbar .nbar:hover i::after, :root:root:root body .nowbar .nbar:focus-visible i::after { opacity: 1; }
:root:root:root body .nowbar .nspec { grid-column: 3; width: 100%; max-width: 260px; justify-self: end; height: 36px; }
:root:root:root body.has-nowbar { padding-bottom: 92px; }
@media (max-width: 759px) {
  /* phone: a compact player above the menu bar */
  :root:root:root body .nowbar { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); left: 8px; right: 8px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); background: #1A1B2A;
    grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 8px 10px 12px; }
  :root:root:root body .nowbar .nart { width: 42px; height: 42px; border-radius: 6px; }
  :root:root:root body .nowbar .nart::before { font-size: 14px; }
  :root:root:root body .nowbar .ntext { margin-left: 52px; }
  :root:root:root body .nowbar .nctl { grid-column: 2; grid-row: 1; display: contents; }
  :root:root:root body .nowbar .nbtns { grid-column: 2; grid-row: 1; gap: 4px; }
  :root:root:root body .nowbar .nprev { display: none; }
  :root:root:root body .nowbar .npause { width: 38px; height: 38px; background: none; color: #fff; }
  :root:root:root body .nowbar .nprog { position: absolute; left: 10px; right: 10px; bottom: 3px; grid-template-columns: minmax(0, 1fr); }
  :root:root:root body .nowbar .nprog .ncur, :root:root:root body .nowbar .nprog .ndur { display: none; }
  :root:root:root body .nowbar .nbar { height: 10px; }
  :root:root:root body .nowbar .nbar::before, :root:root:root body .nowbar .nbar i { height: 3px; }
  :root:root:root body .nowbar .nspec { display: none; }
  :root:root:root body.has-nowbar { padding-bottom: 150px; }
}
:root:root:root body.m-music .beat .licwrap .freenote { visibility: hidden; }
@media (max-width: 759px) {
  :root:root:root body.m-music .phero .cta { flex-wrap: nowrap; gap: 10px; }
  :root:root:root body.m-music .phero .cta .btn { padding: 10px 14px; font-size: 14px; flex: 0 1 auto; white-space: nowrap; }
  body.m-music .bigplay { width: 56px; height: 56px; }
  :root:root:root body.m-music .phero h1 { font-size: clamp(64px, 20vw, 96px); }
}
