/* Djinn Music — the knob player (see _includes/knobplayer.njk). */
/* while a knob is being dragged, nothing on the page can be highlighted */
.knob-drag, .knob-drag *{user-select:none !important;-webkit-user-select:none !important;cursor:ns-resize !important}

/* ================= THE KNOB PLAYER ================= one ornate gold frame: player row on top, knobs + SWITCH below */
.kp{position:relative;margin-top:34px;color:var(--paper);border:2px solid var(--gold);border-radius:30px;
  background:radial-gradient(900px 260px at 50% 0%,rgba(255,255,255,.06),transparent 70%),linear-gradient(180deg,var(--green-700),var(--green-900) 45%,var(--green-950));
  box-shadow:inset 0 0 0 4px rgba(0,0,0,.35), inset 0 0 0 5px rgba(217,179,92,.55), 0 22px 40px -18px rgba(0,0,0,.6)}
.kp-corner{position:absolute;width:44px;height:44px;pointer-events:none;opacity:.9;z-index:2}   /* tl/tr live in .kp-top, bl/br in .kp-bottom: they fold and flip with their panel */
.kp-corner svg{width:100%;height:100%;display:block}
.kp-corner.tl{left:7px;top:7px} .kp-corner.tr{right:7px;top:7px;transform:scaleX(-1)}
.kp-corner.bl{left:7px;bottom:7px;transform:scaleY(-1)} .kp-corner.br{right:7px;bottom:7px;transform:scale(-1,-1)}

.kp-top{display:flex;align-items:center;gap:16px;padding:0 34px 0 26px;height:86px;box-sizing:border-box;border-bottom:1px solid rgba(217,179,92,.6)}
.kp-play{width:60px;height:60px;margin:-2px 0;box-shadow:0 0 0 3px rgba(0,0,0,.45),0 0 0 4.5px var(--gold),inset 0 1px 0 rgba(255,255,255,.6),0 6px 12px rgba(0,0,0,.5)}
.kp-play svg{width:28px;height:28px}
.kp-badge{flex:none;display:flex;flex-direction:column;align-items:center;gap:5px;color:var(--gold-hi);font-family:var(--caps);text-transform:uppercase;line-height:1;white-space:nowrap}
.kp-badge b{font-weight:600;font-size:15px;letter-spacing:.12em}
.kp-badge i{font-style:normal;font-size:10px;letter-spacing:.44em;margin-right:-.44em;opacity:.85}
.kp-top .pl-title{max-width:none}
/* fixed-width title block, so the waveform starts in the same place whatever the song or loop is called (both modes) */
.kp-top .pl-meta{flex:none;width:210px}
.kp-top .pl-time{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kp-top .kp-prev{margin-right:-8px}   /* back + forward sit together as a pair */

.kp-bottom{display:flex;align-items:center;gap:18px;padding:0 28px 0 32px;height:128px;box-sizing:border-box}
.kp-knobs{flex:1;display:flex;justify-content:space-between;gap:10px;min-width:0}
.kp-knobs[hidden]{display:none}
.kp-k{display:flex;align-items:center;gap:12px;flex:none}
/* the label column has a FIXED width: if it grew and shrank with the text ("Normal" -> "+5.5 semitones") every knob would shift sideways as you turn */
.kp-kt{display:flex;flex-direction:column;align-items:center;width:104px;flex:none;text-align:center}
.kp-kt strong{font-family:var(--serif-display);font-weight:500;font-size:22px;line-height:1.1;padding-bottom:5px;margin-bottom:5px;position:relative;white-space:nowrap}
.kp-kt strong::after{content:"";position:absolute;left:-8px;right:-8px;bottom:0;height:1px;background:linear-gradient(90deg,transparent,var(--gold) 20%,var(--gold) 80%,transparent)}
.kp-kt small{font-size:15px;color:var(--gold-text);font-variant-numeric:tabular-nums;line-height:1.2;min-height:1.2em;white-space:nowrap}

/* a knob = a fixed emblem coin + a ring that turns, with a bright gem on it showing the position */
.knob-dial{position:relative;flex:none;width:86px;height:86px;border-radius:50%;cursor:ns-resize;touch-action:none;user-select:none;-webkit-user-select:none;
  background:radial-gradient(circle at 40% 32%,#6a4a16,#3a2709 55%,#1c1203);
  box-shadow:0 0 0 2px rgba(0,0,0,.5),0 0 0 4px var(--gold-lo),0 8px 16px rgba(0,0,0,.55),inset 0 2px 6px rgba(255,235,170,.25),inset 0 -6px 12px rgba(0,0,0,.5)}
.knob-dial:focus-visible{outline:2px solid var(--gold-hi);outline-offset:6px}
.knob-face{position:absolute;inset:-1px;border-radius:50%;border:3px solid var(--gold);box-shadow:inset 0 0 0 1px rgba(0,0,0,.45);z-index:2}
.knob-face::after{content:"";position:absolute;left:50%;top:-6px;width:11px;height:11px;margin-left:-5.5px;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#fff,#fbe7ab 45%,#b98d36);box-shadow:0 0 8px rgba(255,236,170,.9),0 0 0 1.5px rgba(0,0,0,.55)}
.knob-emblem{position:absolute;inset:9px;width:calc(100% - 18px);height:calc(100% - 18px);filter:drop-shadow(0 1px 1px rgba(0,0,0,.7))}

.knob-face{will-change:transform}   /* turned by the graphics chip: smooth, no shimmer */
/* a knob made from Djinn's own artwork (--art). The artwork NEVER turns: the medallions are drawn at a slight angle,
   so their rings are not evenly thick and any rotation shows as a wobble. Instead a glowing gem travels round the
   tick band to show the setting. (.knob-face is the invisible turning layer that carries the gem.) */
.knob-art{background:none;box-shadow:none;filter:drop-shadow(0 7px 9px rgba(0,0,0,.55))}
.knob-art .knob-face,.knob-art .knob-core{position:absolute;inset:-14%;border:0;border-radius:50%;box-shadow:none}
.knob-art .knob-core{background:var(--art) center/100% 100% no-repeat;z-index:1}
.knob-art .knob-face{background:none;z-index:2}
.knob-art .knob-face::after{top:8.5%;width:11%;height:11%;margin-left:-5.5%;
  background:radial-gradient(circle at 40% 35%,#fff,#fff3c4 40%,#ffd45e 75%);
  box-shadow:0 0 0 1.5px rgba(60,35,0,.75),0 0 9px 3px rgba(255,226,140,.95),0 0 18px 6px rgba(255,200,80,.45)}
.kp-vdiv{width:1px;align-self:stretch;margin:4px 0;background:rgba(217,179,92,.55);flex:none}
/* the SWITCH */
.kp-switch{flex:none;display:flex;align-items:center;gap:12px;padding:6px 4px;cursor:pointer;color:inherit;
  font-family:var(--caps);font-size:13px;letter-spacing:.14em;text-transform:uppercase}
.kp-sw-track{width:60px;height:30px;border-radius:15px;border:1.5px solid var(--gold);background:rgba(0,0,0,.45);position:relative;flex:none;box-shadow:inset 0 2px 5px rgba(0,0,0,.6)}
.kp-sw-track i{position:absolute;top:3px;left:3px;width:21px;height:21px;border-radius:50%;transition:transform .18s ease;
  background:radial-gradient(circle at 35% 30%,#fff6d6,#e9c877 55%,#a87c2c);box-shadow:0 1px 3px rgba(0,0,0,.6)}
.kp-switch[aria-checked="true"] .kp-sw-track i{transform:translateX(30px)}
.kp-sw-a{color:var(--gold-hi)} .kp-sw-b{opacity:.55}
.kp-switch[aria-checked="true"] .kp-sw-a{opacity:.55;color:inherit} .kp-switch[aria-checked="true"] .kp-sw-b{opacity:1}
.kp-switch:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:8px}

.kp-badge-l{display:none}

/* ================= LOOP MODE: "Rich Music Loops — Loop Machine" (was "Boom Bap Player"; Djinn's Zodiac Edition concept) =================
   Same player, same size and place; only the skin changes. The pictures are CUT FROM DJINN'S OWN CONCEPT
   (_archive/concepts/boom-bap-player-concept-v3-2026-11-13.png, made by tools/loop-skin/): img/player/loops/
   art = the scene on top (painted controls removed) · plate-desk = the bottom panel with its zodiac corners, gold
   dividers and fire edge (controls removed) · plate-plain = the same without dividers (tablet/phone) · wheel-l/r =
   the corners on their own · knob-cap = the chrome knob (its pointer removed; it never turns — only the red pointer
   does) · ic-* = the gold icons · badge = the title. (No emblem on the bottom edge: Djinn removed it, 13 Nov.)
   On a desktop the controls sit exactly where they are painted in the concept (positions in % of the panel). */
.kp.is-loops{--bb-ink:#f3e6c4;--bb-red:#e0301c;--bb-gold:#d4a24a;--gold:#f3e6c4;--gold-hi:#fff;--gold-lo:#a9a394;--gold-text:#f3e6c4;
  --bb-font:"Oswald","Arial Narrow","Helvetica Neue",Impact,Arial,sans-serif;
  color:var(--bb-ink);border:2px solid #b8731f;border-radius:18px;background:#050505;
  box-shadow:0 0 0 1px #4a2606,0 0 18px -2px rgba(255,120,40,.45),0 26px 40px -20px rgba(0,0,0,.85)}
/* the black gap inside the bronze frame */
.kp.is-loops::before{content:"";position:absolute;inset:0;border-radius:16px;pointer-events:none;z-index:4;
  box-shadow:inset 0 0 0 2.5px #000,inset 0 0 0 3.5px rgba(212,162,74,.3)}
.is-loops .kp-corner{display:none}
.is-loops .kp-badge-s{display:none} .is-loops .kp-badge-l{display:flex}

/* SAME LAYOUT AS SONGS MODE (Djinn, 13 Nov): every control sits exactly where its songs-mode twin sits — same row
   heights, padding, Play size, badge width, knob centres and switch. Only the look and the features change.
   TOP: the scene sits in the middle of the row, behind the controls, darkened at the sides so text stays readable. */
.is-loops .kp-top{position:relative;border-bottom:1px solid rgba(214,166,72,.7);border-radius:16px 16px 0 0;text-shadow:0 1px 3px #000,0 0 10px rgba(0,0,0,.9);
  background:linear-gradient(90deg,rgba(5,5,5,.8) 0,rgba(5,5,5,.55) 30%,rgba(5,5,5,.3) 50%,rgba(5,5,5,.55) 70%,rgba(5,5,5,.8) 100%),
    #050505 url(../img/player/loops/art.webp) 50% 0/auto 200% no-repeat}
.is-loops .kp-top>*{position:relative;z-index:1}
/* Play = a round chrome button like the knobs (Djinn: the red rounded square looked "too YouTube"), bronze ring,
   glowing red arrow */
.is-loops .kp-play{border-radius:50%;color:#ff3a1f;
  background:radial-gradient(circle at 50% 50%,rgba(8,8,8,.8) 0 40%,rgba(8,8,8,.3) 44%,transparent 46%),
    radial-gradient(circle at 35% 28%,#ffffff,#c9ccd0 28%,#6d7177 62%,#2a2c2f 100%);
  box-shadow:inset 0 1px 1px rgba(255,255,255,.7),inset 0 -2px 4px rgba(0,0,0,.6),0 0 0 2px #0a0a0a,0 0 0 3.5px #b8731f,
    0 0 14px rgba(255,70,30,.45),0 6px 12px rgba(0,0,0,.6)}
.is-loops .kp-play:hover{box-shadow:inset 0 1px 1px rgba(255,255,255,.7),inset 0 -2px 4px rgba(0,0,0,.6),0 0 0 2px #0a0a0a,0 0 0 3.5px #e0a050,
    0 0 20px rgba(255,70,30,.7),0 6px 12px rgba(0,0,0,.6)}
.is-loops .kp-play svg{width:27px;height:27px;margin-left:2px;color:#ff5a30;filter:drop-shadow(0 0 3px rgba(255,80,30,1)) drop-shadow(0 0 7px rgba(255,40,10,.8))}
/* the title badge (22 Nov): was Djinn's painted picture (img/player/loops/badge.webp, kept, unused) — now real text
   in the same style so it can say "LOOP MACHINE" (Djinn: "change Boom Bap player to Loop Machine") and be a little
   bigger ("there seems to be a little more space here"): cream capitals + crown, red line with gold dashes, gold
   script between gold rules (Google font Yellowtail, loaded in base.njk with Oswald). */
.is-loops .kp-badge-l{gap:3px;font-family:var(--bb-font);text-transform:uppercase;text-shadow:0 1px 2px #000}
.is-loops .kp-badge-l b{display:flex;align-items:center;gap:5px;font-weight:700;font-size:16px;letter-spacing:.01em;line-height:17px;
  background:linear-gradient(180deg,#fffaf0,#e9d9b2);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none;filter:drop-shadow(0 1px 1px #000)}
.is-loops .kp-badge-l b::after{content:"";width:15px;height:11px;flex:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 22'%3E%3Cpath d='M2 19h26M3 6l6 7 6-10 6 10 6-7-2 13H5z' fill='none' stroke='%23efe2bf' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.is-loops .kp-badge-l i{display:flex;align-items:center;gap:5px;font-style:normal;font-weight:700;font-size:15.5px;line-height:16px;letter-spacing:.06em;margin:0;opacity:1;color:#e8261a;
  text-shadow:0 0 6px rgba(255,40,20,.35),0 1px 2px #000}
.is-loops .kp-badge-l i::before,.is-loops .kp-badge-l i::after{content:"";width:6px;height:2px;background:#d9a24a;flex:none}
.is-loops .kp-badge-l em{display:flex;align-items:center;gap:6px;font-family:"Yellowtail",cursive;font-style:normal;text-transform:none;font-size:15px;line-height:16px;
  letter-spacing:.01em;color:#f2bd45;text-shadow:0 1px 2px #000}
.is-loops .kp-badge-l em::before,.is-loops .kp-badge-l em::after{content:"";width:14px;height:1.5px;background:#d9a24a;flex:none}
.is-loops .pl-div{background:linear-gradient(180deg,transparent,rgba(214,166,72,.85) 25% 75%,transparent)}
.is-loops .pl-title{font-family:var(--bb-font);font-weight:500;letter-spacing:.02em;font-size:20px;line-height:25px;color:#f8eed8;text-shadow:0 1px 2px #000}
.is-loops .pl-time{font-family:var(--bb-font);font-weight:400;font-size:12.5px;line-height:17px;letter-spacing:.05em;opacity:1;color:#e9dfc8;text-transform:uppercase}
.is-loops .pl-next,.is-loops .pl-mute{color:#f3e6c4}
.is-loops .pl-next svg,.is-loops .pl-mute svg{width:25px;height:25px}
.is-loops .pl-vol{background:linear-gradient(90deg,#f3e6c4 var(--v,85%),rgba(243,230,196,.22) var(--v,85%))}
.is-loops .pl-vol::-webkit-slider-thumb{width:19px;height:19px;border:0;background:radial-gradient(circle at 40% 35%,#fffaf0,#e9dcbc 60%,#b9a67c);box-shadow:0 1px 4px rgba(0,0,0,.7)}
.is-loops .pl-vol::-moz-range-thumb{width:17px;height:17px;border:0;background:radial-gradient(circle at 40% 35%,#fffaf0,#e9dcbc 60%,#b9a67c);box-shadow:0 1px 4px rgba(0,0,0,.7)}

/* BOTTOM: Djinn's painted panel */
.is-loops .kp-bottom{position:relative;overflow:hidden;border-radius:0 0 16px 16px;
  background:url(../img/player/loops/reflect.webp) 50% 0/1365px auto no-repeat,
    #060606 url(../img/player/loops/plate-plain.webp) center bottom/cover no-repeat}
/* reflect.webp = the top scene flipped and faded (tools/loop-skin/reflect.py): a faint mirror of the picture just under
   the gold line, same scale and centre as the top row (top row image is 2 x 86px tall = 1365px wide) */
.is-loops .kp-bottom::before,.is-loops .kp-bottom::after{content:"";position:absolute;bottom:0;width:150px;height:92px;pointer-events:none;
  background:url(../img/player/loops/wheel-l.webp) left bottom/contain no-repeat}
.is-loops .kp-bottom::before{left:0} .is-loops .kp-bottom::after{right:0;background-image:url(../img/player/loops/wheel-r.webp);background-position:right bottom}
.is-loops .kp-knobs,.is-loops .kp-switch,.is-loops .kp-vdiv{position:relative;z-index:1}
/* each loop knob = the songs knob's box: knob first (same 86px box, same centre), label column beside/below it */
.is-loops .kp-dw{order:-1;width:86px;height:86px;flex:none;display:flex;align-items:center;justify-content:center}
.is-loops .kp-vdiv{background:linear-gradient(180deg,transparent,rgba(214,166,72,.85) 20% 80%,transparent)}
/* label column (same fixed width as songs) = Djinn's gold icon, the name, the % tag */
/* same height as the songs label column (52px), so knobs and switch line up exactly */
.is-loops .kp-kt{gap:0;height:52px;min-width:0;justify-content:center}
.is-loops .kp-kt svg{display:none}
.is-loops .kp-kt strong::before{content:"";display:inline-block;width:26px;height:20px;margin-right:6px;vertical-align:-3px;background:var(--ic) center/contain no-repeat;filter:drop-shadow(0 1px 1px rgba(0,0,0,.6))}
.is-loops .kp-lk:nth-child(1){--ic:url(../img/player/loops/ic-drums.webp)}
.is-loops .kp-lk:nth-child(2){--ic:url(../img/player/loops/ic-bass.webp)}
.is-loops .kp-lk:nth-child(3){--ic:url(../img/player/loops/ic-music.webp)}
.is-loops .kp-lk:nth-child(4){--ic:url(../img/player/loops/ic-bed.webp)}   /* the 4th knob is now "Loop"; same stacked-layers icon */
.is-loops .kp-kt strong{font-family:var(--bb-font);font-weight:700;text-transform:uppercase;font-size:19px;line-height:22px;letter-spacing:.02em;
  color:#f3e6c4;text-shadow:0 1px 0 rgba(0,0,0,.7);padding:0;margin:0}
.is-loops .kp-kt strong::after{display:none}
.kp-dw{display:flex;flex-direction:column;align-items:center}
/* the knob = Djinn's chrome knob (still) + a red pointer that turns. Around it: tick marks that run gold to red,
   dimmed past the level, and a glowing red arc in the top half (--lv = level 0 to 1, set by knobplayer.js) */
.is-loops .knob-dial{--a:calc(var(--lv,.75) * 270deg);width:64px;height:64px;margin:0;border-radius:50%;
  background:url(../img/player/loops/knob-cap.webp) center/100% 100% no-repeat;box-shadow:0 6px 10px rgba(0,0,0,.65)}
.is-loops .knob-dial::before,.is-loops .knob-dial::after{content:"";position:absolute;border-radius:50%;pointer-events:none}
.is-loops .knob-dial::before{inset:-8px;
  background:conic-gradient(from 225deg,transparent 0 var(--a),rgba(12,12,12,.74) var(--a) 270deg,transparent 0),
    conic-gradient(from 225deg,#f4d68f 0,#e7b65a 115deg,#ff4a22 150deg,#ff2410 270deg,transparent 0);
  -webkit-mask:radial-gradient(circle closest-side,transparent 0 80%,#000 81% 100%),repeating-conic-gradient(from 224deg,#000 0 1.8deg,transparent 1.8deg 7.5deg);
  -webkit-mask-composite:source-in;
  mask:radial-gradient(circle closest-side,transparent 0 80%,#000 81% 100%) intersect,repeating-conic-gradient(from 224deg,#000 0 1.8deg,transparent 1.8deg 7.5deg)}
.is-loops .knob-dial::after{inset:-10px;
  background:conic-gradient(from 225deg,transparent 0 118deg,#ff2a14 148deg var(--a),transparent var(--a));
  -webkit-mask:radial-gradient(circle closest-side,transparent 0 88%,#000 89% 100%);mask:radial-gradient(circle closest-side,transparent 0 88%,#000 89% 100%);
  filter:drop-shadow(0 0 3px rgba(255,40,20,.9))}
.is-loops .knob-face{position:absolute;inset:0;border:0;background:none;box-shadow:none}
.is-loops .knob-face::after{top:7%;left:50%;width:3px;height:43%;margin-left:-1.5px;border-radius:2px;
  background:linear-gradient(0deg,rgba(255,70,40,.55),#ff2a14 35%,#ff5a3c);box-shadow:0 0 5px rgba(255,40,20,.9)}
/* the cream % tag with its two rivets */
.is-loops .kp-kt small{font-family:var(--bb-font);font-weight:700;font-size:14.5px;line-height:19px;height:19px;min-width:54px;min-height:0;padding:0 13px;margin-top:3px;
  color:#141414;text-align:center;box-sizing:border-box;position:relative;z-index:1;transform:none;box-shadow:none;border-radius:0;
  background:radial-gradient(circle,#2a2a2a 0 1.3px,transparent 1.8px) 5px 50%/4px 4px no-repeat,radial-gradient(circle,#2a2a2a 0 1.3px,transparent 1.8px) calc(100% - 5px) 50%/4px 4px no-repeat,linear-gradient(180deg,#fbf3dc,#e2d1aa);
  clip-path:polygon(5px 0,calc(100% - 5px) 0,100% 5px,100% calc(100% - 5px),calc(100% - 5px) 100%,5px 100%,0 calc(100% - 5px),0 5px)}
/* the SWITCH: dark track, gold edge, glowing red button */
.is-loops .kp-switch{width:199px;justify-content:center;box-sizing:border-box;font-family:var(--bb-font);font-weight:700;font-size:19px;line-height:30px;letter-spacing:.02em;gap:10px;color:#f3e6c4}
.is-loops .kp-sw-track{width:54px;height:28px;border-radius:14px;border:2px solid #cfae6a;box-sizing:border-box;
  background:linear-gradient(180deg,#050505,#1c1c1c);box-shadow:inset 0 2px 4px rgba(0,0,0,.8),0 0 0 1px #000}
.is-loops .kp-sw-track i{top:2px;left:2px;width:20px;height:20px;background:radial-gradient(circle at 38% 30%,#ff8a70,#ef2c16 55%,#a3100a);
  box-shadow:0 0 8px rgba(255,40,20,.85),inset 0 -2px 3px rgba(0,0,0,.35)}
.is-loops .kp-switch[aria-checked="true"] .kp-sw-track i{transform:translateX(26px)}
.is-loops .kp-sw-a,.is-loops .kp-sw-b{opacity:1 !important;color:#f3e6c4 !important}


@media (max-width:1100px){
  .kp-bottom{flex-wrap:wrap;justify-content:center;align-content:center;padding:0 30px;height:236px;gap:14px 18px}
  .kp-knobs{flex-basis:100%}
  .kp-vdiv{display:none}
  .kp-k{flex-direction:column;gap:10px;flex:1 1 0;min-width:0}
  .is-loops .kp-kt strong{font-size:18px}
  .kp-kt{width:100%}
}
@media (max-width:700px){
  .kp{border-radius:22px}
  .kp-corner{width:30px;height:30px;left:5px;top:5px} .kp-corner.tr,.kp-corner.br{left:auto;right:5px} .kp-corner.bl,.kp-corner.br{top:auto;bottom:5px}
  .kp-top{flex-wrap:wrap;align-content:center;gap:10px 12px;padding:0 18px;height:150px}
  .kp-top .pl-time{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .kp-top .pl-div,.kp-hide-s{display:none}
  .kp-play{width:50px;height:50px} .kp-play svg{width:22px;height:22px}
  .kp-badge b{font-size:10px;letter-spacing:.08em} .kp-badge i{font-size:7.5px;letter-spacing:.3em;margin-right:-.3em}
  .kp-top .pl-meta{flex:1}
  .kp-top .pl-title{max-width:none;font-size:15.5px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.15}
  .kp-top .pl-time{margin-top:3px}
  .kp-top .pl-wave{order:5;flex-basis:100%;height:34px}
  .kp-bottom{padding:0 10px;height:204px;gap:12px}
  .kp-knobs{gap:4px}
  .knob-dial{width:64px;height:64px}
  .knob-emblem{inset:7px;width:calc(100% - 14px);height:calc(100% - 14px)}
  .knob-face::after{width:9px;height:9px;margin-left:-4.5px;top:-5px}
  .kp-kt strong{font-size:17px}
  .kp-kt small{font-size:11.5px;letter-spacing:-.01em}
  .kp.is-loops{border-radius:16px}
  .is-loops .kp-top{background-size:auto 130%,auto 130%;background-position:0 0,50% 0}
  .is-loops .kp-bottom{background-size:1548px auto,cover}   /* top row image here = 1.3 x 150px tall = 1548px wide */
  .is-loops .kp-play svg{width:22px;height:22px}
  .is-loops .kp-badge-l{gap:2px}
  /* phones: same size as the old painted badge (78px) — the loop name needs the room */
  .is-loops .kp-badge-l b{font-size:8.4px;line-height:9px;gap:2px} .is-loops .kp-badge-l b::after{width:8px;height:6px}
  .is-loops .kp-badge-l i{font-size:8px;line-height:9px;gap:2px} .is-loops .kp-badge-l i::before,.is-loops .kp-badge-l i::after{width:3px;height:1px}
  .is-loops .kp-badge-l em{font-size:8.6px;line-height:9px;gap:3px} .is-loops .kp-badge-l em::before,.is-loops .kp-badge-l em::after{width:6px;height:1px}
  .is-loops .pl-title{font-size:15px}
  .is-loops .pl-time{font-size:11px}
  .is-loops .kp-bottom::before,.is-loops .kp-bottom::after{width:96px;height:59px}
  .is-loops .kp-dw{width:64px;height:64px}
  .is-loops .kp-kt strong::before{width:16px;height:13px;margin-right:3px;vertical-align:-2px}
  .is-loops .kp-kt{height:42px}
  .is-loops .kp-top .pl-title{line-height:1.15}
  .kp-top .pl-meta{width:auto}
  .is-loops .kp-kt strong{font-size:12.5px;line-height:16px;letter-spacing:.01em}
  .is-loops .knob-dial{width:48px;height:48px}
  .is-loops .knob-dial::before{inset:-7px} .is-loops .knob-dial::after{inset:-9px}
  .is-loops .kp-kt small{font-size:12px;line-height:16px;height:16px;min-width:46px;padding:0 10px}
  .is-loops .kp-switch{font-size:15px}
}

/* On the home page the player sits over the bottom of the hero photo: top row on the photo, knobs below it. */
.hero .kp{margin-top:-62px}
.hero:has(.kp) .hero-bg{bottom:136px}
@media (max-width:1100px){ .hero:has(.kp) .hero-bg{bottom:250px} }
@media (max-width:700px){ .hero .kp{margin-top:-48px} .hero:has(.kp) .hero-bg{bottom:215px} }

/* ================= THE FOLD-FLIP: the Songs <-> Loops change (foldFlip() in knobplayer.js, ~2.3s) ================= */
.kp-block{position:absolute;inset:0;border-radius:inherit;z-index:6;cursor:progress}   /* catches clicks mid-change */
/* the gold crease between the two panels, glowing while the player is folded (it lives inside .kp-inner, so it flips too) */
.kp-crease{position:absolute;left:4%;right:4%;height:2px;margin-top:-1px;z-index:5;pointer-events:none;opacity:0;border-radius:2px;
  background:linear-gradient(90deg,transparent,#ffe7a6 15%,#fff6dc 50%,#ffe7a6 85%,transparent);box-shadow:0 0 10px 2px rgba(255,200,90,.85),0 0 26px 6px rgba(255,170,60,.45)}
/* .kp-inner = the holder of the two panels: it folds and flips; the frame (.kp: border, corners, shadow) stays still */
.kp-inner{position:relative;border-radius:inherit}
.kp.is-fold .kp-inner{z-index:1}
/* THE GOLD BORDER MOVES WITH THE PLAYER (Djinn, 13 Nov night). While switching, the still frame becomes an empty dark
   slot (its border, rim and corner glow hide) and .kp-ring — made by foldFlip(), inside .kp-inner — carries the same
   border and rim (in two halves, one per panel), sitting exactly on top of where the frame's border was, so nothing jumps when the switch ends.
   The ring takes the look of whichever mode is showing (the mode changes at the edge-on moment, when it's invisible). */
.kp.is-fold{border-color:rgba(0,0,0,.55);box-shadow:inset 0 8px 22px rgba(0,0,0,.65),0 22px 40px -18px rgba(0,0,0,.6)}
.kp.is-loops.is-fold{border-color:rgba(0,0,0,.55);box-shadow:inset 0 8px 22px rgba(0,0,0,.8),0 26px 40px -20px rgba(0,0,0,.85)}
.kp.is-loops.is-fold::before{display:none}
/* two halves: each sticks 12px past its panel's middle edge and that part is cut off, so the halves meet at the crease
   with no line of their own there */
.kp-ring{position:absolute;pointer-events:none;z-index:3;border:2px solid var(--gold);--r:30px;
  box-shadow:inset 0 0 0 4px rgba(0,0,0,.35),inset 0 0 0 5px rgba(217,179,92,.55)}
.kp-ring-t{inset:-2px -2px -12px;border-radius:var(--r) var(--r) 0 0;clip-path:inset(0 0 12px 0)}
.kp-ring-b{inset:-12px -2px -2px;border-radius:0 0 var(--r) var(--r);clip-path:inset(12px 0 0 0)}
.is-loops .kp-ring{border-color:#b8731f;--r:18px;
  box-shadow:inset 0 0 0 2.5px #000,inset 0 0 0 3.5px rgba(212,162,74,.3),0 0 0 1px #4a2606,0 0 18px -2px rgba(255,120,40,.45)}
@media (max-width:700px){ .kp-ring{--r:22px} .is-loops .kp-ring{--r:16px} }
.kp .kp-ring{position:absolute;z-index:3}   /* beats ".is-loops .kp-top>*" (which would put the ring into the row) */
/* loop mode's bottom panel normally cuts off anything outside it; while switching it mustn't (its half of the ring sits
   2px outside it), so its wheel corners get rounded themselves instead */
.kp.is-fold.is-loops .kp-bottom{overflow:visible}
.kp.is-fold.is-loops .kp-bottom::before{border-bottom-left-radius:16px} .kp.is-fold.is-loops .kp-bottom::after{border-bottom-right-radius:16px}
.kp.is-fold .kp-top,.kp.is-fold .kp-bottom{position:relative;z-index:1;backface-visibility:hidden;-webkit-backface-visibility:hidden}
/* songs-mode panels are normally see-through (the frame's green shows), so they get their own plates while they fold */
.kp.is-fold:not(.is-loops){background:#06110c}
.kp.is-fold:not(.is-loops) .kp-top{background:linear-gradient(180deg,var(--green-700),var(--green-900));border-radius:28px 28px 0 0}
.kp.is-fold:not(.is-loops) .kp-bottom{background:linear-gradient(180deg,var(--green-900),var(--green-950));border-radius:0 0 28px 28px}
@media (max-width:700px){
  .kp.is-fold:not(.is-loops) .kp-top{border-radius:20px 20px 0 0} .kp.is-fold:not(.is-loops) .kp-bottom{border-radius:0 0 20px 20px}
}

/* ================= TRACK LIST (17 Nov) — opens from the song name (#kpMeta) ================= */
.kp-top .kp-meta{width:234px}   /* 210 + the padding below, so the title keeps its width */
.kp-meta{text-align:left;cursor:pointer;position:relative;padding:4px 18px 4px 6px;margin:-4px -18px -4px -6px;border-radius:8px;transition:background .2s}
.kp-meta::after{content:"";position:absolute;right:4px;top:50%;width:6px;height:6px;margin-top:-5px;border:solid var(--gold);border-width:0 1.6px 1.6px 0;transform:rotate(45deg);opacity:.75;transition:transform .2s}
.kp-meta:hover,.kp-meta[aria-expanded="true"]{background:rgba(217,179,92,.1)}
.kp-meta:hover .pl-title{color:var(--gold-hi)}
.kp-meta[aria-expanded="true"]::after{transform:rotate(225deg);margin-top:-1px}
/* while the list is open, the section holding the player comes to the front, so the list isn't hidden under the
   sections below it (Home: the hero is its own layer — "isolation:isolate" — and Latest releases painted over it) */
.hero:has(.kp.list-open),section:has(.kp.list-open){position:relative;z-index:20}
.kp-list{position:absolute;z-index:8;left:20px;top:80px;width:min(460px,calc(100% - 40px));
  background:linear-gradient(180deg,var(--green-800),var(--green-950));border:1.5px solid var(--gold);border-radius:16px;
  box-shadow:0 22px 50px -12px rgba(0,0,0,.75),inset 0 1px 0 rgba(255,255,255,.06);overflow:hidden;color:#f1e9d6;
  animation:kpListIn .22s cubic-bezier(.2,.8,.2,1)}
@keyframes kpListIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.kp-list-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 10px 9px 16px;border-bottom:1px solid var(--line-gold);
  font-family:var(--caps);font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-text)}
.kp-list-x{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;color:var(--gold)}
.kp-list-x:hover{background:rgba(217,179,92,.12);color:var(--gold-hi)} .kp-list-x svg{width:14px;height:14px}
.kp-list-ol{list-style:none;margin:0;padding:6px;max-height:min(340px,55vh);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(217,179,92,.5) transparent}
.kp-list-ol li{display:grid;grid-template-columns:28px 1fr auto;grid-template-areas:"n t d" "n a d";column-gap:10px;align-items:center;padding:7px 10px;border-radius:10px;cursor:pointer;outline:none}
.kp-list-ol li:hover,.kp-list-ol li:focus-visible{background:rgba(217,179,92,.12)}
.kp-list-ol li[aria-selected="true"]{background:rgba(217,179,92,.2)}
.kl-n{grid-area:n;font-size:13px;opacity:.6;text-align:right;font-variant-numeric:tabular-nums}
.kl-t{grid-area:t;font-family:var(--serif-display);font-size:17px;font-weight:600;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kl-a{grid-area:a;font-size:12.5px;opacity:.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kl-d{grid-area:d;font-size:12px;opacity:.6;font-variant-numeric:tabular-nums}
li[aria-selected="true"] .kl-n,li[aria-selected="true"] .kl-t{color:var(--gold-hi);opacity:1}
.is-loops .kp-list{background:linear-gradient(180deg,#1c1c1c,#0b0b0b);border-color:#d6a648}
@media (max-width:700px){
  .kp-top .kp-meta{width:auto}
  .kp-list{left:10px;top:118px;width:calc(100% - 20px)}
  .kp-list-ol{max-height:min(320px,50vh)}
}
@media (prefers-reduced-motion:reduce){ .kp-list{animation:none} }

/* TABLETS (701–1100px, 17 Nov): one row had more parts than fit — the waveform shrank to a stub and the volume slider
   spilled past the gold frame. Like phones, the waveform gets its own line under the buttons; the volume slider and
   its divider hide (the mute button stays; tablets have their own volume buttons). */
@media (min-width:701px) and (max-width:1100px){
  .kp-top{flex-wrap:wrap;align-content:center;gap:12px 16px;height:138px;padding:0 30px 0 26px}
  .kp-top .kp-meta{width:auto;flex:1;min-width:0}
  .kp-top .pl-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .kp-top .pl-wave{order:5;flex-basis:100%;height:34px}
  .kp-top .pl-div.kp-hide-s{display:none}
  .kp-list{top:72px}
  .hero:has(.kp) .hero-bg{bottom:302px}   /* 250 + the 52px the top row grew, so the picture sits as before */
}

/* ===== RICH MUSIC LOOPS ROW = BEAT PADS (Djinn picked option "A" on the design canvas, 18 Nov night; /lab/ only for now) =====
   Speed knob · gold line · four pads: LOOP (as sold), BOOM BAP, R&B, POP. The pad you hear (.is-on) glows red and its
   four lights follow the beat (first beat of the bar = gold). A pad you tapped blinks "Next bar" (.is-next) until the
   bar ends. A missing demo is greyed out. Row heights are unchanged, so the twin flip is untouched. */
.kp-pads{align-items:center;gap:18px}
.kp-pads .kp-rs{flex:none}
.kp-pads .kp-kt{width:84px}
.kp-pads .kp-kt strong::before{display:none}
.kp-pads .kp-vdiv{height:84px;align-self:center;margin:0}
.kp-padrow{flex:1;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.22fr) minmax(0,1fr) minmax(0,1fr);gap:14px}   /* BOOM BAP is the longest name */
.kp-pad{position:relative;height:88px;min-width:0;border:0;border-radius:12px;cursor:pointer;padding:11px 11px 10px;box-sizing:border-box;
  display:flex;flex-direction:column;justify-content:space-between;text-align:left;font-family:var(--bb-font);color:#f3e6c4;
  -webkit-tap-highlight-color:transparent;transition:background .2s,box-shadow .2s,transform .12s;
  background:radial-gradient(120% 90% at 50% 0%,rgba(255,255,255,.09),transparent 60%),linear-gradient(180deg,#2a2521,#100e0c);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),inset 0 -3px 6px rgba(0,0,0,.65),0 0 0 1.5px rgba(207,174,106,.55),0 0 0 3px #000,0 8px 14px rgba(0,0,0,.6)}
.kp-pad:hover{background:radial-gradient(120% 90% at 50% 0%,rgba(255,255,255,.13),transparent 60%),linear-gradient(180deg,#332c27,#15120f)}
.kp-pad:active{transform:scale(.98)}
.kp-pad.is-on{background:radial-gradient(95% 130% at 50% 110%,rgba(255,80,30,.7),rgba(160,20,8,.25) 60%,transparent 80%),linear-gradient(180deg,#3b1611,#170705);
  box-shadow:inset 0 1px 0 rgba(255,190,160,.35),inset 0 -3px 6px rgba(0,0,0,.5),0 0 0 1.5px #ff2a14,0 0 0 3px #000,0 0 18px rgba(255,40,20,.55),0 8px 14px rgba(0,0,0,.6)}
.kp-pad.is-on.is-down{box-shadow:inset 0 1px 0 rgba(255,190,160,.45),inset 0 -3px 6px rgba(0,0,0,.5),0 0 0 1.5px #ff5a30,0 0 0 3px #000,0 0 26px rgba(255,60,20,.8),0 8px 14px rgba(0,0,0,.6)}
.kp-pad.is-next{animation:kpNext .65s ease-in-out infinite;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),inset 0 -3px 6px rgba(0,0,0,.65),0 0 0 1.5px #ff7a40,0 0 0 3px #000,0 8px 14px rgba(0,0,0,.6)}
@keyframes kpNext{0%,100%{opacity:1}50%{opacity:.45}}
.kp-pad:disabled{cursor:default;filter:grayscale(1) brightness(.5)}
.kp-pad:focus-visible{outline:2px solid #f3e6c4;outline-offset:5px}
.kp-pad-a,.kp-pad-b{display:flex;justify-content:space-between;align-items:baseline;gap:6px;width:100%;min-width:0}
.kp-pad-b{align-items:center}
.kp-pad b{flex:none;font-weight:700;font-size:18px;line-height:22px;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap;text-shadow:0 1px 0 rgba(0,0,0,.8)}
.kp-pad i,.kp-pad em{font-style:normal;font-weight:400;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.kp-pad i{font-size:11px;line-height:14px;letter-spacing:.06em;color:#cdbf9f}
.kp-pad em{font-size:11px;line-height:14px;letter-spacing:.06em;color:#b9ad92}
.kp-pad.is-on i,.kp-pad.is-on em{color:#ffd9c4} .kp-pad.is-next em{color:#ffb38a}
.kp-leds{display:flex;gap:4px;flex:none}
.kp-leds u{display:block;width:11px;height:4px;border-radius:2px;background:rgba(243,230,196,.16);text-decoration:none}
.kp-leds u.lit{background:#ff3a1f;box-shadow:0 0 6px #ff3a1f}
.kp-leds u.lit1{background:#ffd27a;box-shadow:0 0 7px #ffb040}
@media (prefers-reduced-motion:reduce){ .kp-pad.is-next{animation:none} }
@media (max-width:1100px){
  .kp-pads{gap:16px}
  .kp-pads .kp-rs{flex:none;width:104px}
  .kp-pads .kp-kt{width:100%}
  .kp-pads .kp-vdiv{display:block;height:110px}
  .kp-pad{height:96px}
  .kp-pad b{font-size:20px}
  .kp-padrow{grid-template-columns:repeat(4,minmax(0,1fr))}
}
/* narrow pads: only the LOOP pad keeps its "As sold" tag, the demo pads show just their name */
@media (max-width:900px){ .kp-pad b{font-size:17px} .kp-pad{padding:11px 9px 10px} .kp-leds{gap:3px} .kp-leds u{width:8px} .kp-pad em{font-size:10.5px;letter-spacing:.03em} .kp-pad:not([data-ver="loop"]) i{display:none} }
@media (min-width:701px) and (max-width:900px){ .kp-pad i{display:none} }
/* phones: speed on the left, the four pads as a 2 x 2 block (first pass, Djinn has not seen the phone yet) */
@media (max-width:700px){
  .kp-pads{gap:10px}
  .kp-pads .kp-rs{width:72px}
  .kp-pads .kp-vdiv{display:none}
  .kp-padrow{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .kp-pad{height:56px;padding:8px 10px 7px;border-radius:10px}
  .kp-pad b{font-size:15px;line-height:17px}
  .kp-pad i,.kp-pad em{font-size:10px;line-height:12px;letter-spacing:.05em}
  .kp-leds{gap:3px} .kp-leds u{width:8px;height:3px}
}
/* Loops title ("Spin Me — Aquarius · Emotive") was cut off by the 210px box on computer screens (Djinn, 18 Nov):
   in Loops mode the box grows to fit the whole name; the waveform takes what is left. */
@media (min-width:1101px){ .is-loops .kp-top .pl-meta{width:auto;max-width:400px} }
/* Loops: the category ("Aquarius · Emotive") sits on its own small gold line under the loop name. */
.kp-cat{display:block;font-size:12px;line-height:15px;letter-spacing:.1em;text-transform:uppercase;color:var(--gold-hi,#e8c77a);white-space:normal}
.is-loops .kp-top .pl-title{-webkit-line-clamp:unset;overflow:visible}
@media (max-width:700px){ .kp-cat{font-size:10px;line-height:12px;letter-spacing:.06em} }
/* Back / next a little bigger (Djinn, 19 Nov): button 30 → 40px, icon 22/25 → 30/32px. */
.kp-top .pl-next{width:40px;height:40px}
.kp-top .pl-next svg{width:30px;height:30px}
.is-loops .kp-top .pl-next svg{width:32px;height:32px}

/* ===== PITCH FADER (Djinn, 19 Nov; design: _archive/concepts/pitch-fader-2026-11-19/) — replaces the Speed knob =====
   A range input dressed as a turntable pitch fader: chrome cap with a red line, dark slot with a gold edge, gold ticks,
   a small light that glows at the original speed. Computers: flat, right = faster. Tablets + phones: upright, up = faster. */
.kp-pads .kp-pitch{width:178px;display:flex;flex-direction:column;gap:6px}
.kp-pads .kp-pitch .kp-kt{width:100%;height:auto;flex-direction:row;justify-content:space-between;align-items:center}
.kp-pitch .kp-kt strong{font-size:17px;line-height:20px;padding:0;margin:0}
.kp-pitch .kp-kt small{margin-top:0}
.kp-fd{position:relative;flex:none;width:178px;height:62px}
.kp-fd > span{position:absolute;pointer-events:none}
.kp-slot{left:4px;top:16px;width:170px;height:10px;border-radius:5px;background:linear-gradient(180deg,#000,#1a1816);
  box-shadow:inset 0 2px 4px #000,0 0 0 1px rgba(207,174,106,.6),0 1px 0 rgba(255,255,255,.08)}
.kp-tk{opacity:.9}
.kp-tk1{left:14px;top:38px;width:151px;height:8px;background:repeating-linear-gradient(90deg,#e7b65a 0 1px,transparent 1px 10.71px)}
.kp-tk2{display:none}
.kp-tk0{left:88px;top:36px;width:2px;height:13px;background:#f3e6c4}
.kp-zero{left:85.5px;top:53px;width:7px;height:7px;border-radius:50%;background:#3a2a12;box-shadow:inset 0 1px 2px #000;transition:background .15s,box-shadow .15s}
.kp-zero.is-lit{background:#ffd27a;box-shadow:0 0 8px #ffb040,0 0 2px #fff}
.kp-num{top:50px;font-family:var(--bb-font);font-size:10.5px;line-height:12px;letter-spacing:.06em;color:#e3d6b8;text-shadow:0 1px 2px #000;white-space:nowrap}
.kp-num b{font-weight:400}
.kp-lo{left:4px} .kp-hi{right:4px}
.kp-fd input{position:absolute;left:4px;top:0;width:170px;height:42px;margin:0;padding:0;background:transparent;-webkit-appearance:none;appearance:none;
  cursor:grab;z-index:2;touch-action:none;-webkit-tap-highlight-color:transparent}
.kp-fd input:active{cursor:grabbing}
.kp-fd input:focus{outline:none}
.kp-fd input:focus-visible{outline:2px solid #f3e6c4;outline-offset:2px}
.kp-fd input::-webkit-slider-runnable-track{background:transparent;height:100%;border:0}
.kp-fd input::-moz-range-track{background:transparent;border:0}
.kp-fd input::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:42px;border-radius:3px;border:0;
  background:linear-gradient(90deg,transparent 0 9px,#ff2a14 9px 11px,transparent 11px),repeating-linear-gradient(90deg,rgba(0,0,0,.28) 0 1px,transparent 1px 3px),linear-gradient(90deg,#f4f5f6,#b9bcc1 30%,#6d7177 50%,#b9bcc1 70%,#e9eaec);
  box-shadow:0 0 0 1px #0a0a0a,0 0 0 2px rgba(184,115,31,.9),0 3px 6px rgba(0,0,0,.8),0 0 8px rgba(255,60,20,.35)}
.kp-fd input::-moz-range-thumb{width:20px;height:42px;border-radius:3px;border:0;
  background:linear-gradient(90deg,transparent 0 9px,#ff2a14 9px 11px,transparent 11px),linear-gradient(90deg,#f4f5f6,#b9bcc1 30%,#6d7177 50%,#b9bcc1 70%,#e9eaec);
  box-shadow:0 0 0 1px #0a0a0a,0 0 0 2px rgba(184,115,31,.9),0 3px 6px rgba(0,0,0,.8)}
/* tablets + phones: the fader stands up (up = faster) — PITCH above, BPM tag below, in the narrow column left of the pads */
@media (max-width:1100px){
  .kp-pads .kp-pitch{width:104px;align-items:center;gap:3px}
  .kp-pads .kp-pitch .kp-kt{display:contents}
  .kp-pitch .kp-kt strong{order:1;font-size:13px;line-height:16px}
  .kp-pitch .kp-fd{order:2}
  .kp-pitch .kp-kt small{order:3;font-size:12px;line-height:16px;height:16px;padding:0 10px}
  .kp-fd{width:72px;height:82px}
  .kp-slot{left:32px;top:0;width:8px;height:82px;border-radius:4px}
  .kp-tk1,.kp-tk2{display:block;top:8px;width:8px;height:67px;background:repeating-linear-gradient(180deg,#e7b65a 0 1px,transparent 1px 8.25px)}
  .kp-tk1{left:17px} .kp-tk2{left:47px}
  .kp-tk0{left:12px;top:40px;width:13px;height:2px}
  .kp-zero{left:58px;top:37.5px}
  .kp-num{font-size:12px}
  .kp-num b{display:none}
  .kp-lo{left:2px;top:68px} .kp-hi{left:2px;right:auto;top:2px}
  .kp-fd input{left:-5px;top:24px;width:82px;height:34px;transform:rotate(-90deg)}
  .kp-fd input::-webkit-slider-thumb{width:16px;height:34px;background:linear-gradient(90deg,transparent 0 7px,#ff2a14 7px 9px,transparent 9px),repeating-linear-gradient(90deg,rgba(0,0,0,.28) 0 1px,transparent 1px 3px),linear-gradient(90deg,#f4f5f6,#b9bcc1 30%,#6d7177 50%,#b9bcc1 70%,#e9eaec)}
  .kp-fd input::-moz-range-thumb{width:16px;height:34px}
}
@media (max-width:700px){ .kp-pads .kp-pitch{width:72px} }
/* Speed bubble: pops up by the fader cap while it moves (Djinn, 19 Nov). --f = 0 (slowest) … 1 (fastest).
   Computers: above the cap. Tablets + phones: to the right of the cap, clear of the finger. */
.kp-fd .kp-bub{position:absolute;z-index:5;left:calc(14px + var(--f,.5) * 150px);bottom:46px;transform:translate(-50%,6px) scale(.85);opacity:0;
  pointer-events:none;transition:opacity .15s,transform .15s;white-space:nowrap;
  padding:6px 11px 7px;border-radius:10px;font-family:var(--bb-font);font-weight:700;font-size:13px;line-height:16px;letter-spacing:.04em;color:#1a0f0c;
  background:linear-gradient(180deg,#fff7e4,#f1dfb4);box-shadow:0 0 0 1px #b8873a,0 6px 16px rgba(0,0,0,.6)}
.kp-fd .kp-bub b{font-size:20px;line-height:20px;margin-right:2px}
.kp-fd .kp-bub i{display:block;font-style:normal;font-weight:400;font-size:11px;line-height:13px;color:#7a5520;text-align:center}
.kp-fd .kp-bub::after{content:"";position:absolute;left:50%;top:100%;margin-left:-6px;border:6px solid transparent;border-top-color:#f1dfb4}
.kp-fd .kp-bub.is-on{opacity:1;transform:translate(-50%,0) scale(1)}
@media (max-width:1100px){
  .kp-fd .kp-bub{left:64px;bottom:auto;top:calc(8px + (1 - var(--f,.5)) * 66px);transform:translate(6px,-50%) scale(.85)}
  .kp-fd .kp-bub.is-on{transform:translate(0,-50%) scale(1)}
  .kp-fd .kp-bub::after{left:auto;right:100%;top:50%;margin:-6px 0 0;border-top-color:transparent;border-right-color:#f1dfb4}
}
/* typing a speed into the BPM tag */
#kpSpeedRead{cursor:pointer;-webkit-user-select:none;user-select:none}
#kpSpeedRead.is-typing{padding:0 4px}
.kp-bpmin{width:54px;height:100%;border:0;margin:0;padding:0 4px;border-radius:9px;background:#fff;color:#1a0f0c;text-align:center;
  font:inherit;font-size:16px;outline:2px solid #ff2a14;-moz-appearance:textfield}
.kp-bpmin::-webkit-inner-spin-button,.kp-bpmin::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.kp-pads .kp-pitch{position:relative;z-index:6}   /* the speed bubble sits on top of the pads */

/* VOLUME (Djinn, 21 Nov: "I also need a volume button on the loop player"). Computers (>1100px): speaker = mute and the
   slider sits in the row, as before. Tablets + phones: the speaker opens the slider as a small pop-up under it
   (knobplayer.js "VOLUME"); on phones the speaker sits at the end of the waveform line (row 1 has no room). */
.kp-volbox{display:contents}
.kp-volhead{display:none}
@media (max-width:1100px){
  .kp-top{position:relative}
  .kp .kp-top>.kp-volbox{position:absolute;z-index:9}   /* beats ".is-loops .kp-top>*{position:relative}" — that put the
     pop-up INTO the row in Loops mode, so the whole top row jumped when it opened (Djinn's screen recording, 22 Nov) */
  .kp-volhead{display:flex;justify-content:space-between;align-items:baseline;margin:-4px 0 10px;
    font-family:var(--caps);font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-text)}
  .kp-volhead b{font-weight:600}
  .kp-volhead em{font-style:normal;letter-spacing:.04em;font-size:13px;color:#fff3d6;font-variant-numeric:tabular-nums}
  .is-loops .kp-volhead{font-family:var(--bb-font);font-weight:700;color:#f3e6c4}
  .kp-top .kp-volbox .pl-vol{height:8px;border-radius:5px;touch-action:none}
  .kp-top .kp-volbox .pl-vol::-webkit-slider-thumb{width:24px;height:24px}
  .kp-top .kp-volbox .pl-vol::-moz-range-thumb{width:22px;height:22px}
  .kp-volbox{display:none;position:absolute;z-index:9;width:190px;padding:16px 18px;box-sizing:border-box;border-radius:14px;
    background:linear-gradient(180deg,var(--green-800),var(--green-950));border:1.5px solid var(--gold);box-shadow:0 14px 30px -8px rgba(0,0,0,.7)}
  .is-loops .kp-volbox{background:linear-gradient(180deg,#1c1c1c,#0b0b0b);border-color:#d6a648}
  .kp.vol-open .kp-volbox{display:block}
  .kp.vol-open .kp-top{z-index:12}   /* above the pads / knobs row below it */
  .kp-top .kp-volbox .pl-vol{display:block;width:100%;height:6px}
  .kp-top .pl-mute{display:grid}
  .kp.vol-open .kp-top .pl-mute{color:var(--gold-hi)}
}
@media (max-width:700px){
  .kp-top .pl-wave{flex-basis:calc(100% - 42px)}
  .kp-top .pl-mute{order:6;width:30px}
}

/* LOOP-PLAYER SKINS (Djinn, 22 Nov 2026): the Loops player's picture + colours follow the loop's star sign.
   knobplayer.js puts class "sk-<sign>" on #kp (Loops mode, signs with art only); pictures from tools/make-skins.py in
   img/player/loops/skins/<sign>/. Pads, fader, switch, layout, row heights and the twin flip are NOT changed.
   Per sign: computers = one "full" strip through both rows (Aquarius: top + bottom + corner wheels); <=1100px = top +
   bottom cuts. Built from the 22 Nov preview drafts (_archive/concepts/skin-aquarius-2026-11-22/skin-<sign>-draft.css). */
/* a short fade from dark when the skin changes (class sk-fade, removed by knobplayer.js after the animation) */
.kp.sk-fade .kp-top,.kp.sk-fade .kp-bottom{animation:skFade .55s ease-out}
@keyframes skFade{from{filter:brightness(.25)}to{filter:none}}
@media (prefers-reduced-motion:reduce){.kp.sk-fade .kp-top,.kp.sk-fade .kp-bottom{animation:none}}
/* AQUARIUS · EMOTIVE (oxblood + gold) */
.kp.is-loops.sk-aquarius{--pad-accent:#ff9784;border-color:#cf9550;background:#22040a;
  box-shadow:0 0 0 1px #4a1208,0 0 22px -2px rgba(255,130,70,.55),0 26px 40px -20px rgba(0,0,0,.85)}
.kp.is-loops.sk-aquarius::before{box-shadow:inset 0 0 0 2.5px #1a0206,inset 0 0 0 3.5px rgba(232,180,110,.45)}
.sk-aquarius.is-loops .kp-top{border-bottom-color:rgba(232,180,110,.8);
  background:linear-gradient(90deg,rgba(26,2,6,.82) 0,rgba(26,2,6,.5) 26%,rgba(26,2,6,0) 42%,rgba(26,2,6,0) 62%,rgba(26,2,6,.5) 100%),
    #22040a url(../img/player/loops/skins/aquarius/top.webp) 50% 37%/100% auto no-repeat}
.sk-aquarius.is-loops .kp-bottom{background:linear-gradient(180deg,#22040a 0,rgba(34,4,10,0) 45%),#22040a url(../img/player/loops/skins/aquarius/bottom.webp) 50% calc(100% + 40px)/100% auto no-repeat}
.sk-aquarius.is-loops .kp-bottom::before,.sk-aquarius.is-loops .kp-bottom::after{display:none}
.sk-aquarius.is-loops .kp-play{background:radial-gradient(circle at 50% 50%,rgba(40,4,8,.9) 0 40%,rgba(40,4,8,.35) 44%,transparent 46%),
    radial-gradient(circle at 35% 28%,#fff3d6,#e9bd7c 28%,#b0763a 62%,#5a2c12 100%);
  box-shadow:inset 0 1px 1px rgba(255,255,255,.7),inset 0 -2px 4px rgba(0,0,0,.5),0 0 0 2px #1a0206,0 0 0 3.5px #d9a35c,0 0 16px rgba(255,110,60,.55),0 6px 12px rgba(0,0,0,.6)}
.sk-aquarius .kp-pad{background:radial-gradient(120% 90% at 50% 0%,rgba(255,220,200,.08),transparent 60%),linear-gradient(180deg,#2a1210,#120606)}
@media (max-width:1100px){
  .sk-aquarius.is-loops .kp-top{background-size:auto,auto 150%;background-position:0 0,45% 30%}
  .sk-aquarius.is-loops .kp-bottom{background:#22040a url(../img/player/loops/skins/aquarius/bottom.webp) center bottom/cover no-repeat}
  .sk-aquarius.is-loops .kp-bottom::before,.sk-aquarius.is-loops .kp-bottom::after{display:block;width:150px;height:106px;
    background:url(../img/player/loops/skins/aquarius/wheel-l.webp) left bottom/cover no-repeat;
    -webkit-mask:radial-gradient(farthest-side at 0 100%,#000 60%,transparent 100%);mask:radial-gradient(farthest-side at 0 100%,#000 60%,transparent 100%)}
  .sk-aquarius.is-loops .kp-bottom::after{background-image:url(../img/player/loops/skins/aquarius/wheel-r.webp);background-position:right bottom;
    -webkit-mask:radial-gradient(farthest-side at 100% 100%,#000 60%,transparent 100%);mask:radial-gradient(farthest-side at 100% 100%,#000 60%,transparent 100%)}
}
@media (max-width:700px){
  .sk-aquarius.is-loops .kp-top{background:linear-gradient(90deg,rgba(26,2,6,.86) 0,rgba(26,2,6,.72) 55%,rgba(26,2,6,.35) 100%),#22040a url(../img/player/loops/skins/aquarius/top.webp) 30% 30%/auto 105% no-repeat}
  .sk-aquarius.is-loops .kp-bottom::before,.sk-aquarius.is-loops .kp-bottom::after{width:96px;height:68px}
}

/* CAPRICORN · FOLK (forest green, cream, brass) */
.kp.is-loops.sk-capricorn{--pad-accent:#95cb95;border-color:#b8935a;background:#10241a;
  box-shadow:0 0 0 1px #2a1c0c,0 0 20px -2px rgba(220,190,120,.45),0 26px 40px -20px rgba(0,0,0,.85)}
.kp.is-loops.sk-capricorn::before{box-shadow:inset 0 0 0 2.5px #0a160f,inset 0 0 0 3.5px rgba(226,200,140,.45)}
.sk-capricorn.is-loops .kp-top{border-bottom-color:rgba(226,200,140,.85);
  background:linear-gradient(90deg,rgba(8,26,17,.88) 0,rgba(8,26,17,.7) 30%,rgba(8,26,17,.12) 44%,rgba(8,26,17,.12) 58%,rgba(8,26,17,.72) 72%,rgba(8,26,17,.8) 100%),
    #10241a url(../img/player/loops/skins/capricorn/full.webp) 50% 0/100% auto no-repeat}
.sk-capricorn.is-loops .kp-bottom{background:linear-gradient(180deg,rgba(8,26,17,.62),rgba(8,26,17,.5)),
    #10241a url(../img/player/loops/skins/capricorn/full.webp) 50% 100%/100% auto no-repeat}
.sk-capricorn.is-loops .kp-bottom::before,.sk-capricorn.is-loops .kp-bottom::after{display:none}
.sk-capricorn.is-loops .kp-play{background:radial-gradient(circle at 50% 50%,rgba(10,26,17,.9) 0 40%,rgba(10,26,17,.35) 44%,transparent 46%),
    radial-gradient(circle at 35% 28%,#fff6dc,#dcc48a 28%,#96783e 62%,#3e2c12 100%);
  box-shadow:inset 0 1px 1px rgba(255,255,255,.7),inset 0 -2px 4px rgba(0,0,0,.5),0 0 0 2px #0a160f,0 0 0 3.5px #c9a868,0 0 14px rgba(230,200,120,.45),0 6px 12px rgba(0,0,0,.6)}
.sk-capricorn .kp-pad{background:radial-gradient(120% 90% at 50% 0%,rgba(240,255,230,.08),transparent 60%),linear-gradient(180deg,#1b2a20,#0b140e)}
@media (max-width:1100px){
  .sk-capricorn.is-loops .kp-top{background:linear-gradient(90deg,rgba(8,26,17,.85) 0,rgba(8,26,17,.55) 100%),#10241a url(../img/player/loops/skins/capricorn/top.webp) 50% 40%/auto 125% no-repeat}
  .sk-capricorn.is-loops .kp-bottom{background:linear-gradient(180deg,rgba(8,26,17,.7),rgba(8,26,17,.5)),#10241a url(../img/player/loops/skins/capricorn/bottom.webp) center bottom/cover no-repeat}
}
@media (max-width:700px){
  .sk-capricorn.is-loops .kp-top{background:linear-gradient(90deg,rgba(8,26,17,.9) 0,rgba(8,26,17,.78) 55%,rgba(8,26,17,.3) 100%),#10241a url(../img/player/loops/skins/capricorn/top.webp) 38% 45%/auto 110% no-repeat}
}

/* VIRGO · MEDIEVAL (antique olive + old gold) */
.kp.is-loops.sk-virgo{--pad-accent:#dec174;border-color:#c2a35a;background:#1a1a0e;
  box-shadow:0 0 0 1px #2e2610,0 0 20px -2px rgba(230,200,110,.45),0 26px 40px -20px rgba(0,0,0,.85)}
.kp.is-loops.sk-virgo::before{box-shadow:inset 0 0 0 2.5px #0f0f08,inset 0 0 0 3.5px rgba(230,205,130,.45)}
.sk-virgo.is-loops .kp-top{border-bottom-color:rgba(230,205,130,.85);
  background:linear-gradient(90deg,rgba(18,18,9,.7) 0,rgba(18,18,9,.55) 34%,rgba(18,18,9,.08) 46%,rgba(18,18,9,.08) 60%,rgba(18,18,9,.6) 72%,rgba(18,18,9,.7) 100%),
    #1a1a0e url(../img/player/loops/skins/virgo/full.webp) 50% 0/100% auto no-repeat}
.sk-virgo.is-loops .kp-bottom{background:linear-gradient(180deg,rgba(18,18,9,.58),rgba(18,18,9,.5)),
    #1a1a0e url(../img/player/loops/skins/virgo/full.webp) 50% 100%/100% auto no-repeat}
.sk-virgo.is-loops .kp-bottom::before,.sk-virgo.is-loops .kp-bottom::after{display:none}
.sk-virgo.is-loops .kp-play{background:radial-gradient(circle at 50% 50%,rgba(20,20,10,.9) 0 40%,rgba(20,20,10,.35) 44%,transparent 46%),
    radial-gradient(circle at 35% 28%,#fff6d6,#e0c67e 28%,#9a7c36 62%,#3c2e10 100%);
  box-shadow:inset 0 1px 1px rgba(255,255,255,.7),inset 0 -2px 4px rgba(0,0,0,.5),0 0 0 2px #0f0f08,0 0 0 3.5px #cdae62,0 0 14px rgba(235,205,115,.45),0 6px 12px rgba(0,0,0,.6)}
.sk-virgo .kp-pad{background:radial-gradient(120% 90% at 50% 0%,rgba(255,245,210,.08),transparent 60%),linear-gradient(180deg,#26241a,#100f0a)}
@media (max-width:1100px){
  .sk-virgo.is-loops .kp-top{background:linear-gradient(90deg,rgba(18,18,9,.8) 0,rgba(18,18,9,.5) 100%),#1a1a0e url(../img/player/loops/skins/virgo/top.webp) 50% 30%/auto 125% no-repeat}
  .sk-virgo.is-loops .kp-bottom{background:linear-gradient(180deg,rgba(18,18,9,.6),rgba(18,18,9,.45)),#1a1a0e url(../img/player/loops/skins/virgo/bottom.webp) center bottom/cover no-repeat}
}
@media (max-width:700px){
  .sk-virgo.is-loops .kp-top{background:linear-gradient(90deg,rgba(18,18,9,.88) 0,rgba(18,18,9,.72) 55%,rgba(18,18,9,.25) 100%),#1a1a0e url(../img/player/loops/skins/virgo/top.webp) 30% 40%/auto 110% no-repeat}
}

/* GEMINI · PIANO (amber gold into teal) */
.kp.is-loops.sk-gemini{--pad-accent:#64d8bd;border-color:#c9a45a;background:#0c1614;
  box-shadow:0 0 0 1px #2a1c08,0 0 20px -2px rgba(240,190,90,.5),0 26px 40px -20px rgba(0,0,0,.85)}
.kp.is-loops.sk-gemini::before{box-shadow:inset 0 0 0 2.5px #060c0b,inset 0 0 0 3.5px rgba(236,200,120,.45)}
.sk-gemini.is-loops .kp-top{border-bottom-color:rgba(236,200,120,.85);
  background:linear-gradient(90deg,rgba(12,10,6,.6) 0,rgba(12,10,6,.5) 30%,rgba(12,10,6,.05) 44%,rgba(6,14,13,.05) 60%,rgba(6,14,13,.55) 72%,rgba(6,14,13,.6) 100%),
    #0c1614 url(../img/player/loops/skins/gemini/full.webp) 50% 0/100% auto no-repeat}
.sk-gemini.is-loops .kp-bottom{background:linear-gradient(180deg,rgba(6,12,11,.5),rgba(6,12,11,.35)),
    #0c1614 url(../img/player/loops/skins/gemini/full.webp) 50% 100%/100% auto no-repeat}
.sk-gemini.is-loops .kp-bottom::before,.sk-gemini.is-loops .kp-bottom::after{display:none}
.sk-gemini.is-loops .kp-play{background:radial-gradient(circle at 50% 50%,rgba(14,12,8,.9) 0 40%,rgba(14,12,8,.35) 44%,transparent 46%),
    radial-gradient(circle at 35% 28%,#fff4d0,#ecc878 28%,#a87a2e 62%,#44290c 100%);
  box-shadow:inset 0 1px 1px rgba(255,255,255,.7),inset 0 -2px 4px rgba(0,0,0,.5),0 0 0 2px #060c0b,0 0 0 3.5px #d2ac5e,0 0 16px rgba(245,190,90,.5),0 6px 12px rgba(0,0,0,.6)}
.sk-gemini .kp-pad{background:radial-gradient(120% 90% at 50% 0%,rgba(220,255,245,.08),transparent 60%),linear-gradient(180deg,#16221f,#080e0d)}
@media (max-width:1100px){
  .sk-gemini.is-loops .kp-top{background:linear-gradient(90deg,rgba(10,10,7,.7) 0,rgba(6,14,13,.45) 100%),#0c1614 url(../img/player/loops/skins/gemini/top.webp) 50% 40%/auto 125% no-repeat}
  .sk-gemini.is-loops .kp-bottom{background:linear-gradient(180deg,rgba(6,12,11,.5),rgba(6,12,11,.35)),#0c1614 url(../img/player/loops/skins/gemini/bottom.webp) center bottom/cover no-repeat}
}
@media (max-width:700px){
  .sk-gemini.is-loops .kp-top{background:linear-gradient(90deg,rgba(10,10,7,.85) 0,rgba(8,12,10,.68) 55%,rgba(6,14,13,.2) 100%),#0c1614 url(../img/player/loops/skins/gemini/top.webp) 35% 45%/auto 110% no-repeat}
}

/* LEO · LO-FI (charcoal, flame orange, cream) */
.kp.is-loops.sk-leo{--pad-accent:#ff9b44;border-color:#d08a3a;background:#141210;
  box-shadow:0 0 0 1px #3a1c06,0 0 20px -2px rgba(255,130,40,.5),0 26px 40px -20px rgba(0,0,0,.85)}
.kp.is-loops.sk-leo::before{box-shadow:inset 0 0 0 2.5px #0a0908,inset 0 0 0 3.5px rgba(240,170,90,.45)}
.sk-leo.is-loops .kp-top{border-bottom-color:rgba(240,170,90,.85);
  background:linear-gradient(90deg,rgba(14,12,10,.35) 0,rgba(14,12,10,.2) 30%,rgba(14,12,10,0) 44%,rgba(14,12,10,0) 66%,rgba(14,12,10,.5) 76%,rgba(14,12,10,.55) 100%),
    #141210 url(../img/player/loops/skins/leo/desktop.webp) 50% 0/100% auto no-repeat}
.sk-leo.is-loops .kp-bottom{background:linear-gradient(180deg,rgba(14,12,10,.35),rgba(14,12,10,.3)),
    #141210 url(../img/player/loops/skins/leo/desktop.webp) 50% 100%/100% auto no-repeat}
.sk-leo.is-loops .kp-bottom::before,.sk-leo.is-loops .kp-bottom::after{display:none}
.sk-leo.is-loops .kp-play{background:radial-gradient(circle at 50% 50%,rgba(16,13,10,.9) 0 40%,rgba(16,13,10,.35) 44%,transparent 46%),
    radial-gradient(circle at 35% 28%,#fff0d2,#f0b46a 28%,#b4642a 62%,#4a220c 100%);
  box-shadow:inset 0 1px 1px rgba(255,255,255,.7),inset 0 -2px 4px rgba(0,0,0,.5),0 0 0 2px #0a0908,0 0 0 3.5px #d8924a,0 0 16px rgba(255,130,50,.55),0 6px 12px rgba(0,0,0,.6)}
.sk-leo .kp-pad{background:radial-gradient(120% 90% at 50% 0%,rgba(255,235,210,.08),transparent 60%),linear-gradient(180deg,#221e1a,#0c0a09)}
@media (max-width:1100px){
  .sk-leo.is-loops .kp-top{background:linear-gradient(90deg,rgba(14,12,10,.6) 0,rgba(14,12,10,.4) 100%),#141210 url(../img/player/loops/skins/leo/top.webp) 60% 40%/auto 125% no-repeat}
  .sk-leo.is-loops .kp-bottom{background:linear-gradient(180deg,rgba(14,12,10,.3),rgba(14,12,10,.2)),#141210 url(../img/player/loops/skins/leo/bottom.webp) center bottom/cover no-repeat}
}
@media (max-width:700px){
  .sk-leo.is-loops .kp-top{background:linear-gradient(90deg,rgba(14,12,10,.85) 0,rgba(14,12,10,.7) 50%,rgba(14,12,10,.2) 100%),#141210 url(../img/player/loops/skins/leo/top.webp) 56% 45%/auto 110% no-repeat}
}


/* SKIN: SAGITTARIUS · CONTEMPORARY (navy, saffron, cream) */
.kp.is-loops.sk-sagittarius{--pad-accent:#ffca57;border-color:#e0a83e;background:#0b1836;
  box-shadow:0 0 0 1px #2a1c06,0 0 20px -2px rgba(245,180,60,.5),0 26px 40px -20px rgba(0,0,0,.85)}
.kp.is-loops.sk-sagittarius::before{box-shadow:inset 0 0 0 2.5px #060d20,inset 0 0 0 3.5px rgba(245,200,110,.45)}
.sk-sagittarius.is-loops .kp-top{border-bottom-color:rgba(245,200,110,.85);
  background:linear-gradient(90deg,rgba(8,16,40,.35) 0,rgba(8,16,40,.15) 34%,rgba(8,16,40,0) 46%,rgba(8,16,40,0) 62%,rgba(8,16,40,.62) 74%,rgba(8,16,40,.78) 100%),
    #0b1836 url(../img/player/loops/skins/sagittarius/full.webp) 50% 0/100% auto no-repeat}
.sk-sagittarius.is-loops .kp-bottom{background:linear-gradient(90deg,rgba(8,16,40,.45) 0,rgba(8,16,40,.4) 70%,rgba(8,16,40,.72) 80%,rgba(8,16,40,.78) 100%),
    #0b1836 url(../img/player/loops/skins/sagittarius/full.webp) 50% 100%/100% auto no-repeat}
.sk-sagittarius.is-loops .kp-bottom::before,.sk-sagittarius.is-loops .kp-bottom::after{display:none}
.sk-sagittarius.is-loops .kp-play{background:radial-gradient(circle at 50% 50%,rgba(8,16,40,.92) 0 40%,rgba(8,16,40,.35) 44%,transparent 46%),
    radial-gradient(circle at 35% 28%,#fff6d8,#f2c868 28%,#b8862a 62%,#4a320c 100%);
  box-shadow:inset 0 1px 1px rgba(255,255,255,.7),inset 0 -2px 4px rgba(0,0,0,.5),0 0 0 2px #060d20,0 0 0 3.5px #e4b04a,0 0 16px rgba(245,185,70,.5),0 6px 12px rgba(0,0,0,.6)}
.sk-sagittarius .kp-pad{background:radial-gradient(120% 90% at 50% 0%,rgba(220,235,255,.09),transparent 60%),linear-gradient(180deg,#152444,#080f22)}
@media (max-width:1100px){
  .sk-sagittarius.is-loops .kp-top{background:linear-gradient(90deg,rgba(8,16,40,.55) 0,rgba(8,16,40,.3) 45%,rgba(8,16,40,.7) 100%),#0b1836 url(../img/player/loops/skins/sagittarius/top.webp) 50% 40%/auto 125% no-repeat}
  .sk-sagittarius.is-loops .kp-bottom{background:linear-gradient(90deg,rgba(8,16,40,.55),rgba(8,16,40,.45) 60%,rgba(8,16,40,.78)),#0b1836 url(../img/player/loops/skins/sagittarius/bottom.webp) center bottom/cover no-repeat}
}
@media (max-width:700px){
  .sk-sagittarius.is-loops .kp-top{background:linear-gradient(90deg,rgba(8,16,40,.85) 0,rgba(8,16,40,.68) 50%,rgba(8,16,40,.45) 100%),#0b1836 url(../img/player/loops/skins/sagittarius/top.webp) 45% 45%/auto 110% no-repeat}
}

/* SKINS SWITCH (Djinn, 22 Nov: "let the default be the default we have. then let them chose an -enable skins-"):
   a small pill under the SONGS/LOOPS switch, Loops mode only. Off (default) = the normal Boom Bap look. The choice is
   remembered on that device (localStorage "dmSkins"). */
.kp-skinbtn{display:none}
.is-loops .kp-skinbtn{display:inline-flex;align-items:center;gap:7px;position:absolute;z-index:3;right:92px;bottom:10px;   /* centred under the 199px switch */
  padding:3px 11px 3px 8px;
  border-radius:12px;border:1.5px solid rgba(207,174,106,.75);background:rgba(0,0,0,.55);color:#f3e6c4;cursor:pointer;
  font-family:var(--bb-font);font-weight:700;font-size:12px;line-height:16px;letter-spacing:.08em;text-transform:uppercase}
.is-loops .kp-skinbtn i{width:9px;height:9px;border-radius:50%;background:#3a3a3a;box-shadow:inset 0 1px 2px rgba(0,0,0,.8)}
.is-loops .kp-skinbtn[aria-checked="true"]{border-color:#e8c37a;color:#fff3d6}
.is-loops .kp-skinbtn[aria-checked="true"] i{background:radial-gradient(circle at 40% 35%,#fff2c8,#f2b13a 55%,#a8650c);box-shadow:0 0 6px rgba(255,190,70,.9)}
.is-loops .kp-skinbtn:hover{border-color:#e8c37a}
.is-loops .kp-skinbtn:focus-visible{outline:2px solid #f3e6c4;outline-offset:2px}
@media (max-width:1100px){   /* tablets + phones: beside the switch, in the same centred line */
  .is-loops .kp-skinbtn{position:static;padding:3px 9px 3px 7px;font-size:11px;gap:6px}
}

/* PAD GLOW PER SKIN (other session, 22 Nov — kept): the playing pad glows in the skin's own --pad-accent colour
   (set on each .kp.is-loops.sk-<sign> rule above); the normal look keeps its red. */
.is-loops:is(.sk-aquarius,.sk-capricorn,.sk-virgo,.sk-gemini,.sk-leo,.sk-sagittarius) .kp-pad.is-on{
  --halo:14px;
  background:radial-gradient(95% 130% at 50% 110%,color-mix(in srgb,var(--pad-accent) 52%,transparent),transparent 77%),#1a1714;
  box-shadow:inset 0 1px 0 #ffffff38,0 0 0 1.5px var(--pad-accent),0 0 0 3px #090807,
    0 0 var(--halo) color-mix(in srgb,var(--pad-accent) 70%,transparent),0 6px 12px #0009
}
.kp.is-loops .kp-pad.is-on.is-down{--halo:26px}
.is-loops .kp-pad.is-on .kp-leds u.lit:not(.lit1){
  background:var(--pad-accent,#ff3a1f);box-shadow:0 0 6px var(--pad-accent,#ff3a1f)
}

/* SKINS: THE WAVEFORM = OPTION C "low bars along the bottom" (Djinn, 22 Nov: "ok c"; options A–D in _archive/concepts/
   skin-aquarius-2026-11-22/waveform-options/). With a skin on, on computers: the canvas stretches to the full height of
   the top row (a tall, easy touch area for scrubbing) but knobplayer.js drawWave() draws the bars short (max 20px)
   standing 7px above the gold line, gold when played, cream when not, with a soft dark fade under them — so the art's
   faces and subjects stay clear. Tablets + phones (the waveform has its own line there): unchanged. */
@media (min-width:1101px){
  /* option B "smoked glass strip" (Djinn, 22 Nov: "Try B"): dark see-through plate, thin gold edge, soft blur of the art */
  .kp.wv-b.is-loops:is(.sk-aquarius,.sk-capricorn,.sk-virgo,.sk-gemini,.sk-leo,.sk-sagittarius) .kp-top .pl-wave{
    box-sizing:border-box;padding:0 6px;border-radius:10px;border:1px solid rgba(226,190,120,.55);
    background:rgba(6,6,8,.55);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
  .kp.wv-c.is-loops:is(.sk-aquarius,.sk-capricorn,.sk-virgo,.sk-gemini,.sk-leo,.sk-sagittarius) .kp-top .pl-wave{align-self:stretch;height:auto;
    background:linear-gradient(0deg,rgba(0,0,0,.6) 0,rgba(0,0,0,.38) 12px,transparent 34px);
    filter:drop-shadow(0 1px 1.5px rgba(0,0,0,.85))}
}

/* LOADING RING (Djinn, 23 Nov): songs must fully download + unpack before they play (Pitch and Reverb need that), so a
   spinning gold ring shows round Play until the sound starts. No words. It fades in after .15s, so instant starts show nothing. */
.kp .kp-play,.mini .mini-play{position:relative}
.kp.is-waiting .kp-play::after,.mini.is-waiting .mini-play::after{content:"";position:absolute;inset:-9px;border-radius:50%;pointer-events:none;
  background:conic-gradient(from 0deg,transparent 0 22%,rgba(243,212,138,.25) 45%,#ffe9ae 100%);
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3.5px),#000 calc(100% - 3px));
  mask:radial-gradient(farthest-side,transparent calc(100% - 3.5px),#000 calc(100% - 3px));
  filter:drop-shadow(0 0 3px rgba(255,214,120,.8));
  animation:kpWaitSpin .9s linear infinite,kpWaitIn .2s ease-out .15s both}
.mini.is-waiting .mini-play::after{inset:-4px}
@keyframes kpWaitSpin{to{transform:rotate(360deg)}}
@keyframes kpWaitIn{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){
  .kp.is-waiting .kp-play::after,.mini.is-waiting .mini-play::after{animation:kpWaitIn .2s ease-out .15s both;background:rgba(255,233,174,.9)}
}
