/* Soundboard - public board. One committed dark "arcade deck" look. */
:root {
  --bg: #0b0c11;
  --bg2: #12131a;
  --bg3: #1a1c27;
  --bg4: #232636;
  --line: #262a3a;
  --text: #eceef6;
  --mute: #a3a9bf;
  --dim: #6d7390;
  --yellow: #ffd23f;
  --pink: #ff4d6d;
  --mint: #3ee6c4;
  --blue: #5aa9ff;
  --r: 16px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* .btn etc. set display, which would beat the UA rule */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 15px/1.45 var(--font);
  background-image:
    radial-gradient(1200px 500px at 10% -10%, rgba(255, 77, 109, .10), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(62, 230, 196, .08), transparent 60%);
  background-attachment: fixed;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ------------------------------------------------------------ header -- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: auto minmax(180px, 1fr) auto auto; gap: 14px; align-items: center;
  padding: 10px clamp(12px, 3vw, 28px);
  background: rgba(11, 12, 17, .82); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.logo-pads { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 28px; height: 28px; }
.logo-pads i { border-radius: 4px; background: var(--bg4); }
.logo-pads i:nth-child(1) { background: linear-gradient(135deg, var(--yellow), var(--pink)); }
.logo-pads i:nth-child(4) { background: var(--mint); }
.logo:hover .logo-pads i:nth-child(2) { background: var(--blue); }
.logo-word { font-weight: 800; letter-spacing: .08em; font-size: 17px; }
.logo-word b { color: var(--yellow); font-weight: 800; }

.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 12px; width: 18px; height: 18px; fill: var(--dim); pointer-events: none; }
.search input {
  width: 100%; height: 42px; padding: 0 40px 0 38px; border-radius: 12px;
  background: var(--bg2); border: 1px solid var(--line); outline: none;
  transition: border-color .15s, background .15s;
}
.search input:focus { border-color: var(--yellow); background: var(--bg3); }
.search input::-webkit-search-cancel-button { filter: invert(.6); }
.search .hint { position: absolute; right: 10px; font: 12px var(--mono); color: var(--dim); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.search input:focus + .hint { display: none; }

.nav { display: flex; gap: 2px; }
.nav a { text-decoration: none; padding: 8px 11px; border-radius: 10px; color: var(--mute); font-weight: 600; font-size: 14px; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--bg3); }
.nav a.on { color: var(--text); background: var(--bg4); }
.nav-mine { color: var(--yellow) !important; }

.deck { display: flex; align-items: center; gap: 6px; }
.deck-btn {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 11px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); cursor: pointer; font-size: 13px; font-weight: 600; color: var(--mute);
}
.deck-btn:hover { color: var(--text); border-color: var(--bg4); }
.deck-btn[aria-pressed="true"] { color: var(--mint); border-color: rgba(62, 230, 196, .45); }
.deck-btn.stop.active { color: #fff; background: var(--pink); border-color: var(--pink); }
.deck-ico { font-size: 13px; }
.live { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--yellow); color: #000; font: 700 11px/18px var(--font); text-align: center; padding: 0 4px; }
.vol { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.vol input { width: 84px; accent-color: var(--yellow); }

@media (max-width: 1100px) {
  .top { grid-template-columns: auto 1fr auto; }
  .nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; scrollbar-width: none; }
  .deck-lbl { display: none; }
}
@media (max-width: 640px) {
  .top { grid-template-columns: 1fr auto; gap: 8px 10px; }
  .search { grid-column: 1 / -1; grid-row: 2; }
  .nav { grid-row: 3; }
  .logo-word { font-size: 15px; }
  .vol input { width: 60px; }
  .search .hint { display: none; }
}

/* -------------------------------------------------------------- page -- */
/* The headline sits close under the deck: the board is the point of the page,
   so the first row of pads should be visible without scrolling. */
main { padding: clamp(8px, 1.4vw, 14px) clamp(14px, 3vw, 30px) clamp(14px, 3vw, 30px); max-width: 1480px; margin: 0 auto; outline: none; min-height: 60vh; }
.hero { display: grid; gap: 8px; padding: 2px 0 14px; }
.hero h1 { margin: 0; font-size: clamp(28px, 4.8vw, 54px); line-height: 1.02; letter-spacing: -.02em; font-weight: 850; }
.hero h1 .hl { background: linear-gradient(90deg, var(--yellow), var(--pink) 60%, var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 0; color: var(--mute); font-size: clamp(15px, 1.6vw, 18px); max-width: 60ch; }
.stats { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--dim); font-size: 13px; }
.stats b { color: var(--text); font-weight: 700; }

.sec { margin: 26px 0 12px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sec h2 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.sec .more { margin-left: auto; color: var(--mute); font-size: 14px; text-decoration: none; }
.sec .more:hover { color: var(--yellow); }
.sub { color: var(--dim); font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: var(--bg2); border: 1px solid var(--line); text-decoration: none; font-size: 14px; font-weight: 600; color: var(--mute); cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--bg4); background: var(--bg3); }
.chip.on { color: #000; background: var(--yellow); border-color: var(--yellow); }
.chip .n { font-weight: 500; color: var(--dim); font-size: 12px; }
.chip.on .n { color: rgba(0, 0, 0, .6); }
.chip.tag { font-weight: 500; font-size: 13px; padding: 5px 10px; }

/* -------------------------------------------------------------- pads -- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); }
@media (max-width: 640px) { .grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; } }

.pad {
  --c: #7c83ff; --p: 0;
  position: relative; aspect-ratio: 1 / 1.06; border-radius: var(--r); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--c) 42%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--c) 18%, #171924), #12131a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 0 0 1px rgba(255, 255, 255, .04), 0 5px 0 #06070a, 0 12px 22px rgba(0, 0, 0, .35);
  transform: translateY(0); transition: transform .07s ease, box-shadow .07s ease;
}
.pad:has(.pad-hit:active) { transform: translateY(4px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 1px 0 #06070a, 0 4px 10px rgba(0, 0, 0, .35); }
.pad.flash { transform: translateY(4px); }
.pad-hit {
  all: unset; position: absolute; inset: 0; z-index: 2; cursor: pointer; border-radius: var(--r);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 10px 11px 14px;
}
.pad-hit:focus-visible { outline: 2px solid var(--yellow); outline-offset: -2px; }
.pad-art { position: absolute; inset: 0; z-index: 0; }
.pad-art img { width: 100%; height: 100%; object-fit: cover; opacity: .62;
  -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent 88%); mask-image: linear-gradient(to bottom, #000 25%, transparent 88%); }
.pad-emoji { position: absolute; left: 50%; top: 14%; transform: translateX(-50%); z-index: 1; font-size: clamp(34px, 3.4vw, 46px); line-height: 1;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); transition: transform .15s ease; pointer-events: none; }
.pad.has-art .pad-emoji { font-size: 22px; left: auto; right: 9px; top: 9px; transform: none; opacity: .95; }
.pad:hover .pad-emoji { transform: translateX(-50%) scale(1.08) rotate(-4deg); }
.pad.has-art:hover .pad-emoji { transform: scale(1.1); }
.pad-title { position: relative; z-index: 1; font-weight: 750; font-size: 14px; line-height: 1.18; letter-spacing: -.005em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.pad-meta { position: relative; z-index: 1; margin-top: 3px; font-size: 11.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pad-wave { position: absolute; left: 10px; top: 52%; width: calc(100% - 20px); height: 20%; z-index: 0; opacity: .32; pointer-events: none; }
.pad-wave path { fill: var(--c); }
.pad-prog { position: absolute; left: 0; bottom: 0; height: 4px; width: calc(var(--p) * 100%); background: var(--c); z-index: 3; box-shadow: 0 0 12px var(--c); }
.pad:not(.playing) .pad-prog { width: 0; box-shadow: none; }
.pad.playing { box-shadow: inset 0 0 0 2px var(--c), 0 0 26px color-mix(in srgb, var(--c) 55%, transparent), 0 5px 0 #06070a; }
.pad.playing .pad-wave { opacity: .7; }
.pad.playing .pad-emoji { animation: bop .45s ease-in-out infinite alternate; }
.pad.has-art.playing .pad-emoji { animation: none; }
@keyframes bop { to { transform: translateX(-50%) scale(1.12); } }
.pad-act { position: absolute; z-index: 4; top: 7px; left: 7px; display: flex; gap: 4px; opacity: 0; transition: opacity .12s; }
.pad:hover .pad-act, .pad:focus-within .pad-act { opacity: 1; }
.pad-act a, .pad-act button {
  all: unset; cursor: pointer; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(10, 11, 16, .72); color: var(--text); font-size: 13px; backdrop-filter: blur(6px);
}
.pad-act a:hover, .pad-act button:hover { background: #000; color: var(--yellow); }
.pad-act .fav.on { color: var(--yellow); }
.pad-key { position: absolute; z-index: 4; right: 8px; bottom: 10px; font: 700 11px/1 var(--mono); padding: 3px 5px; border-radius: 5px; background: rgba(0, 0, 0, .55); color: var(--yellow); }
@media (hover: none) { .pad-act { opacity: 1; } .pad-act a, .pad-act button { width: 24px; height: 24px; } }
@media (prefers-reduced-motion: reduce) { .pad, .pad-emoji { transition: none; animation: none !important; } }

/* the last cell of an expandable grid: show more / see all / show less */
.pad-more {
  all: unset; cursor: pointer; box-sizing: border-box; aspect-ratio: 1 / 1.06; border-radius: var(--r);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: var(--bg2); border: 1px dashed var(--line); color: var(--mute); text-align: center; padding: 8px;
  transition: border-color .15s, color .15s, background .15s;
}
.pad-more:hover { border-color: var(--yellow); color: var(--yellow); background: var(--bg3); }
.pad-more:focus-visible { outline: 2px solid var(--yellow); outline-offset: -2px; }
.pad-more .more-ico { font-size: 30px; line-height: 1; font-weight: 700; }
.pad-more .more-lbl { font-size: 12.5px; font-weight: 650; }

.empty { padding: 40px 20px; text-align: center; color: var(--mute); border: 1px dashed var(--line); border-radius: var(--r); }
.empty .big { font-size: 44px; margin-bottom: 6px; }
.loadmore { display: block; margin: 22px auto 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 11px;
  background: var(--bg3); border: 1px solid var(--line); cursor: pointer; font-weight: 650; text-decoration: none; font-size: 14px;
}
.btn:hover { border-color: var(--bg4); background: var(--bg4); }
.btn.primary { background: var(--yellow); color: #111; border-color: var(--yellow); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.small { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
.skel { background: linear-gradient(90deg, var(--bg2), var(--bg3), var(--bg2)); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: var(--r); aspect-ratio: 1 / 1.06; }
@keyframes sk { to { background-position: -200% 0; } }

/* ------------------------------------------------------- collections -- */
.colls { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.coll {
  --c: #7c83ff; position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; text-decoration: none; isolation: isolate;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 45%, #151722), #101118);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 10px 24px rgba(0, 0, 0, .35); transition: transform .15s ease;
}
.coll:hover { transform: translateY(-3px); }
.coll .bg { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(18px) saturate(1.3); opacity: .5; z-index: -1; }
.coll .fg { position: absolute; inset: 10px 10px 58px; width: calc(100% - 20px); height: calc(100% - 68px); object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .5)); }
.coll .emo { position: absolute; inset: 0 0 50px; display: grid; place-items: center; font-size: 56px; }
.coll .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
.coll .name { font-weight: 800; font-size: 15px; line-height: 1.15; }
.coll .cnt { font-size: 12px; color: var(--mute); }
@media (max-width: 640px) { .colls { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); } }

.banner { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: end; margin: 6px 0 18px; }
.banner .art { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--bg3); display: grid; place-items: center; font-size: 64px; }
.banner .art img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(16px); opacity: .6; }
.banner .art img.fg { position: relative; width: 88%; height: 88%; object-fit: contain; }
.banner h1 { margin: 0 0 6px; font-size: clamp(26px, 4vw, 44px); line-height: 1.05; letter-spacing: -.02em; }
.banner .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
@media (max-width: 640px) { .banner { grid-template-columns: 96px 1fr; gap: 14px; } .banner .art { font-size: 44px; } }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 16px; }
.toolbar h1 { margin: 0 auto 0 0; font-size: clamp(22px, 3vw, 32px); letter-spacing: -.01em; }
.sel { height: 38px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); padding: 0 10px; }

/* ------------------------------------------------------------ detail -- */
.detail { --c: var(--yellow); display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(18px, 3vw, 36px); align-items: start; }
@media (max-width: 820px) { .detail { grid-template-columns: 1fr; } }
.cover {
  position: relative; aspect-ratio: 1; border-radius: 22px; overflow: hidden; display: grid; place-items: center; isolation: isolate;
  background: radial-gradient(100% 80% at 50% 0%, color-mix(in srgb, var(--c) 55%, transparent), transparent 70%), linear-gradient(180deg, color-mix(in srgb, var(--c) 22%, #171924), #101118);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 20px 40px rgba(0, 0, 0, .4);
}
.cover img.bg { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; filter: blur(22px) saturate(1.3); opacity: .55; z-index: -1; }
.cover img.fg { width: 84%; height: 84%; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .5)); }
.cover .emo { font-size: 110px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5)); }
.cover .bigplay {
  position: absolute; right: 16px; bottom: 16px; width: 72px; height: 72px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--c); color: #111; font-size: 28px; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
  transition: transform .1s ease;
}
.cover .bigplay:hover { transform: scale(1.06); }
.cover .bigplay:active { transform: scale(.96); }
.d-head h1 { margin: 0; font-size: clamp(26px, 4vw, 42px); line-height: 1.08; letter-spacing: -.02em; overflow-wrap: anywhere; }
.d-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 4px; }
.d-desc { color: var(--mute); margin: 10px 0 0; max-width: 70ch; overflow-wrap: anywhere; }
.player { margin-top: 18px; padding: 14px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--line); }
.player canvas { width: 100%; height: 96px; display: block; cursor: pointer; }
.pl-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.pl-time { font: 13px var(--mono); color: var(--mute); min-width: 110px; }
.pl-row .grow { flex: 1; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { all: unset; cursor: pointer; padding: 6px 9px; font-size: 12.5px; color: var(--mute); }
.seg button:hover { color: var(--text); background: var(--bg3); }
.seg button.on { background: var(--bg4); color: var(--yellow); }
.dl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dl .btn .x { color: var(--dim); font-weight: 500; font-size: 12px; }
.btn.primary .x { color: rgba(0, 0, 0, .6); }

.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 26px; }
.panel { border-radius: 16px; background: var(--bg2); border: 1px solid var(--line); padding: 16px 18px; min-width: 0; }
.panel h3 { margin: 0 0 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.kv dd.txt { font-family: var(--font); font-size: 14px; }
.spec { width: 100%; border-radius: 10px; background: #000; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font: 700 11px/1.6 var(--font); letter-spacing: .04em; text-transform: uppercase; background: var(--bg4); color: var(--mute); }
.badge.lossless, .badge.uncompressed { background: rgba(62, 230, 196, .15); color: var(--mint); }
.badge.lossy { background: rgba(255, 210, 63, .14); color: var(--yellow); }
.meter { height: 6px; border-radius: 3px; background: var(--bg4); overflow: hidden; margin-top: 4px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--yellow), var(--pink)); }

/* ------------------------------------------------------------- music -- */
.music-hero h1 { font-size: clamp(26px, 4.6vw, 50px); }
.pad-badges { position: absolute; z-index: 4; right: 7px; bottom: 8px; display: flex; gap: 4px; }
.pad.has-art .pad-badges { bottom: auto; top: 40px; }
.bdg {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; line-height: 1; padding: 4px 6px;
  border-radius: 7px; background: rgba(10, 11, 16, .72); color: var(--mute); backdrop-filter: blur(6px); white-space: nowrap;
}
.bdg.act { border: 0; cursor: pointer; font: inherit; font-size: 11px; }
.bdg.act:hover { background: var(--yellow); color: #000; }

.tracks { display: grid; gap: 4px; }
.track {
  --c: #7c83ff; --p: 0; position: relative; display: grid; align-items: center; gap: 10px;
  grid-template-columns: 26px 34px 44px minmax(0, 1fr) auto 52px; padding: 6px 10px; border-radius: 12px;
  background: var(--bg2); border: 1px solid transparent;
}
.track:hover { background: var(--bg3); }
.track.current { border-color: color-mix(in srgb, var(--c) 60%, transparent); background: var(--bg3); }
.tr-n { color: var(--dim); font: 12px var(--mono); text-align: right; }
.track.current .tr-n { color: var(--c); }
.tr-play {
  all: unset; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg4); font-size: 12px; color: var(--text);
}
.tr-play:hover, .track.playing .tr-play { background: var(--c); color: #0b0c11; }
.tr-play:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.tr-art { width: 44px; height: 44px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; font-size: 20px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 55%, #1a1c27), #12131a); flex: none; }
.tr-art img { width: 100%; height: 100%; object-fit: cover; }
.tr-meta { min-width: 0; }
.tr-title { display: block; font-weight: 700; font-size: 14.5px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-title:hover { color: var(--yellow); }
.track.current .tr-title { color: var(--c); }
.tr-sub { color: var(--dim); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-tags { display: flex; gap: 6px; }
.tr-dur { color: var(--mute); font: 12.5px var(--mono); text-align: right; }
.tr-prog { position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--p) * 100%); background: var(--c); border-radius: 2px; }
.track:not(.playing) .tr-prog { width: 0; }
@media (max-width: 700px) {
  .track { grid-template-columns: 34px 40px minmax(0, 1fr) 46px; gap: 8px; }
  .tr-n, .tr-tags { display: none; }
  .tr-art { width: 40px; height: 40px; }
}

/* the bar at the bottom: one shared player for tracks */
body.has-bar { padding-bottom: 84px; }
.musicbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; align-items: center; gap: 12px;
  grid-template-columns: 52px minmax(0, 1.3fr) auto minmax(160px, 2fr) auto auto;
  padding: 10px clamp(10px, 2vw, 20px); background: rgba(18, 19, 26, .96); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(0, 0, 0, .45);
}
.mb-art { --c: #7c83ff; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; display: grid; place-items: center;
  font-size: 22px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 55%, #1a1c27), #12131a); }
.mb-art img { width: 100%; height: 100%; object-fit: cover; }
.mb-meta { min-width: 0; }
.mb-title { display: block; font-weight: 750; font-size: 14px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-title:hover { color: var(--yellow); }
.mb-sub { color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-ctrl { display: flex; align-items: center; gap: 6px; }
.mb-btn, .mb-play { all: unset; cursor: pointer; display: grid; place-items: center; border-radius: 50%; color: var(--mute); }
.mb-btn { width: 34px; height: 34px; font-size: 14px; }
.mb-btn:hover { color: var(--text); background: var(--bg4); }
.mb-play { width: 44px; height: 44px; background: var(--yellow); color: #111; font-size: 15px; }
.mb-play:hover { filter: brightness(1.08); }
.mb-btn:focus-visible, .mb-play:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.mb-seek { display: flex; align-items: center; gap: 10px; }
.mb-time { color: var(--dim); font: 12px var(--mono); min-width: 40px; }
.mb-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--bg4); cursor: pointer; overflow: hidden; }
.mb-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--yellow), var(--pink)); }
.mb-bar:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
@media (max-width: 780px) {
  .musicbar { grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 8px; padding: 8px 10px; }
  .mb-seek { grid-column: 1 / -1; }
  .mb-art { width: 44px; height: 44px; }
  body.has-bar { padding-bottom: 118px; }
}

/* video / YouTube overlay */
.ov { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; background: rgba(0, 0, 0, .8); backdrop-filter: blur(4px); }
.ov-box { position: relative; width: min(1100px, 100%); }
.ov-x { position: absolute; top: -14px; right: -6px; z-index: 2; all: unset; cursor: pointer; width: 36px; height: 36px;
  border-radius: 50%; display: grid; place-items: center; background: var(--bg3); color: var(--text); }
.ov-x:hover { background: var(--pink); color: #fff; }
.ov-video, .ov-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; background: #000; display: block; }
.ov-cap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 10px; color: var(--mute); font-size: 14px; }
.cover-video { width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: #000; display: block; }
.d-by { color: var(--mute); margin: 8px 0 0; }

/* ---------------------------------------------------------- licences -- */
.lic-box { display: grid; gap: 8px; margin-bottom: 12px; }
.lic-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lic {
  display: inline-block; padding: 3px 9px; border-radius: 7px; font-weight: 750; font-size: 12.5px;
  background: var(--bg4); color: var(--mute); white-space: nowrap;
}
.lic.free { background: rgba(62, 230, 196, .15); color: var(--mint); }
.lic.restricted { background: rgba(255, 210, 63, .14); color: var(--yellow); }
.lic-est { font-size: 11px; padding: 2px 7px; border-radius: 6px; border: 1px dashed var(--line); color: var(--dim); }
.lic-n { font-size: 11.5px; color: var(--dim); margin-left: 8px; }
.lic-info {
  all: unset; cursor: pointer; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg3); color: var(--mute); font-size: 14px;
}
.lic-info:hover { background: var(--yellow); color: #111; }
.lic-info:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.lic-sum { margin: 0; color: var(--mute); font-size: 13.5px; line-height: 1.45; }
.lic-holder { margin: 0; font-size: 13.5px; }
.lic-holder a { color: var(--blue); }
.lic-stated { margin: 0; color: var(--dim); font-size: 12.5px; overflow-wrap: anywhere; }
.lic-link { color: var(--mute); font-size: 12.5px; }
.perms { display: flex; flex-wrap: wrap; gap: 6px; }
.perm {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 3px 8px; border-radius: 999px;
  background: var(--bg3); color: var(--mute); border: 1px solid var(--line);
}
.perm b { font-size: 12px; }
.perm.ok b { color: var(--mint); }         /* a freedom */
.perm.duty b { color: var(--yellow); }     /* something you must do */
.perm.no b { color: var(--pink); }         /* not allowed */
.perm.unclear b { color: var(--dim); }

.lic-guide { background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 22px clamp(14px, 3vw, 26px); max-height: 86vh; overflow: auto; }
.lic-guide h2 { margin: 0 0 6px; font-size: 22px; }
.lic-guide .sub { display: block; max-width: 78ch; margin: 8px 0; }
.lic-guide .tblwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; margin: 14px 0; }
.lic-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.lic-tbl th { text-align: left; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); padding: 9px 12px; border-bottom: 1px solid var(--line); }
.lic-tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lic-tbl td:first-child { white-space: nowrap; }
.lic-tbl tr:last-child td { border-bottom: 0; }
.lic-tbl tr.on td { background: rgba(255, 210, 63, .06); }
.lic-tbl .lic-sum { margin-bottom: 6px; }
.linkbtn { all: unset; cursor: pointer; color: var(--mute); text-decoration: underline; }
.linkbtn:hover { color: var(--yellow); }
.linkbtn:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* ------------------------------------------------------------- sites -- */
.sites { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.site { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s, transform .15s; }
.site:hover { border-color: var(--bg4); transform: translateY(-2px); }
.site .nm { font-weight: 800; font-size: 16px; display: flex; gap: 8px; align-items: center; }
.site .host { color: var(--dim); font: 12px var(--mono); }
.site p { margin: 0; color: var(--mute); font-size: 14px; }
.site .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.site .t { font-size: 11.5px; padding: 2px 8px; border-radius: 6px; background: var(--bg3); color: var(--mute); }
.site .t.scr { background: rgba(62, 230, 196, .14); color: var(--mint); }

/* ------------------------------------------------------------ footer -- */
.foot { max-width: 1480px; margin: 40px auto 0; padding: 22px clamp(14px, 3vw, 30px) 40px; color: var(--dim); font-size: 13px; border-top: 1px solid var(--line); }
.foot p { margin: 4px 0; max-width: 90ch; }
.foot a { color: var(--mute); }

.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 50; }
.toast { background: var(--bg4); border: 1px solid var(--line); padding: 10px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font-size: 14px; transition: opacity .3s, transform .3s; }
.toast.error { border-color: var(--pink); }
.toast.out { opacity: 0; transform: translateY(8px); }
.kbdhelp { color: var(--dim); font-size: 13px; }
.kbdhelp kbd { font: 12px var(--mono); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; color: var(--mute); }
