/* Glostik Tabs — neon glowstick theme */
:root {
  --bg: #07060d;
  --bg2: #110f1c;
  --panel: #161328;
  --line: #2a2546;
  --text: #ece9ff;
  --muted: #9a94bd;
  --green: #39ff14;
  --pink: #ff2fd1;
  --cyan: #19e6ff;
  --yellow: #ffe94a;
  --orange: #ff8a1f;
  --red: #ff4466;
  --radius: 12px;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', 'Courier New', monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font: 16px/1.55 var(--sans);
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(255,47,209,.14), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(25,230,255,.12), transparent 60%),
    radial-gradient(700px 600px at 50% 120%, rgba(57,255,20,.08), transparent 60%),
    var(--bg);
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; padding-bottom: 3rem; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-shadow: 0 0 8px var(--cyan); }
.wrap { width: min(1150px, 100% - 2rem); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5rem; }

/* Glow text */
.glow, .glow-sm {
  font-family: Monoton, var(--sans); font-weight: 400; letter-spacing: .06em;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--pink), var(--yellow), var(--green));
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 6px rgba(255,47,209,.55)) drop-shadow(0 0 14px rgba(25,230,255,.35));
  animation: hue 10s linear infinite;
}
.logo .glow, .glow-sm { animation: none; }
@keyframes hue { to { background-position: 300% 0; } }
@media (prefers-reduced-motion: reduce) { .glow, .glow-sm { animation: none; } html { scroll-behavior: auto; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10;
  background: rgba(7,6,13,.75); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 1rem; padding: .7rem 0; }
.logo { display: flex; align-items: baseline; gap: .4rem; font-size: 1.5rem; }
.logo small { font: 600 .8rem var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .2em; }
.logo:hover { text-shadow: none; }
.nav-search { flex: 1; max-width: 360px; margin-left: auto; }
.nav-links { display: flex; gap: 1rem; font-weight: 600; }
.nav-links a { color: var(--text); }
.nav-links a:hover { color: var(--green); text-shadow: 0 0 8px var(--green); }

/* Forms */
input, select, textarea {
  width: 100%; background: var(--bg2); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: .6rem .75rem; font: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,47,209,.2); }
textarea.mono { font-family: var(--mono); font-size: 14px; line-height: 1.45; white-space: pre; overflow-x: auto; tab-size: 2; }
.btn {
  display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; border: 0; border-radius: 999px;
  padding: .55rem 1.1rem; font: 700 .9rem var(--sans); color: #0a0814;
  background: linear-gradient(90deg, var(--green), var(--cyan)); box-shadow: 0 0 14px rgba(57,255,20,.35);
  transition: transform .1s, box-shadow .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 22px rgba(25,230,255,.55); text-shadow: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn.danger { background: transparent; color: var(--red); border: 1px solid rgba(255,68,102,.4); box-shadow: none; }
.btn.danger:hover { background: rgba(255,68,102,.12); }
.btn.sm { padding: .3rem .7rem; font-size: .8rem; }
.btn.on { background: linear-gradient(90deg, var(--pink), var(--orange)); }
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; }
.form .check { display: flex; align-items: center; gap: .5rem; }
.form .check input { width: auto; }
.form-actions { display: flex; gap: .6rem; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.grid .span2 { grid-column: span 2; }
.inline { display: inline; }

/* Flash */
.flash { margin: 1rem 0; padding: .75rem 1rem; border-radius: 8px; background: rgba(57,255,20,.1); border: 1px solid rgba(57,255,20,.4); }
.flash.error { background: rgba(255,68,102,.1); border-color: rgba(255,68,102,.5); }

/* Hero */
.hero { text-align: center; padding: 3.5rem 0 2rem; }
.hero h1 { font-size: clamp(3rem, 11vw, 7rem); margin: 0; }
.tagline { color: var(--muted); font-size: 1.15rem; margin: .5rem 0 0; }

/* List layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2rem; align-items: start; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: .6rem; margin-bottom: .8rem; }
.tab-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.tab-card {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text);
  transition: border-color .2s, box-shadow .2s, transform .1s;
}
.tab-card:hover { border-color: var(--pink); box-shadow: 0 0 18px rgba(255,47,209,.25); transform: translateX(3px); text-shadow: none; }
.tab-card h3 { font-size: 1.1rem; margin: 0; }
.tab-card p { margin: .1rem 0 0; font-size: .9rem; }
.badges { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }
.badge {
  font: 700 .72rem var(--sans); text-transform: uppercase; letter-spacing: .05em; padding: .25rem .55rem;
  border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: transparent; cursor: default;
}
button.badge { cursor: pointer; }
.type-chords  { color: var(--cyan);   border-color: rgba(25,230,255,.45); }
.type-tab     { color: var(--pink);   border-color: rgba(255,47,209,.45); }
.type-bass    { color: var(--orange); border-color: rgba(255,138,31,.45); }
.type-ukulele { color: var(--yellow); border-color: rgba(255,233,74,.45); }
.diff-beginner     { color: var(--green);  border-color: rgba(57,255,20,.45); }
.diff-intermediate { color: var(--yellow); border-color: rgba(255,233,74,.45); }
.diff-advanced     { color: var(--red);    border-color: rgba(255,68,102,.45); }
.empty { padding: 3rem 1rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.sidebar { display: grid; gap: 1rem; position: sticky; top: 80px; }
.sidebar h4 { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--green); }
.popular { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.popular li { display: flex; justify-content: space-between; gap: .5rem; }

/* Tab page */
.tab-page { padding-top: 1.5rem; }
.back { font-weight: 600; font-size: .9rem; }
.tab-head h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin-top: .6rem; }
.meta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.meta div { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .4rem .8rem; }
.meta dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.meta dd { margin: 0; font-weight: 700; }
.toolbar {
  position: sticky; top: 62px; z-index: 5; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; align-items: center;
  padding: .7rem 1rem; margin: 1rem 0; background: rgba(22,19,40,.97);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.tool { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); }
.tool output { min-width: 2.2ch; text-align: center; font-weight: 700; color: var(--text); }
.tool input[type=range] { width: 90px; padding: 0; accent-color: var(--pink); }
.notes { padding: .8rem 1rem; border-left: 3px solid var(--yellow); background: rgba(255,233,74,.06); border-radius: 0 8px 8px 0; margin-bottom: 1rem; }
.tab-body {
  font-family: var(--mono); font-size: 15px; line-height: 1.5; white-space: pre; overflow-x: auto;
  background: #0c0a16; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin: 0;
  box-shadow: inset 0 0 40px rgba(25,230,255,.04);
}
.tab-body .ch { color: var(--green); font-weight: 700; text-shadow: 0 0 6px rgba(57,255,20,.5); }
.tab-body .sec { color: var(--pink); font-weight: 700; }
.tab-body.hide-chords .chordline { visibility: hidden; }
.tab-body.hide-chords .ch { display: none; }
.video { margin-top: 2rem; }
.video-frame { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* About */
.prose { max-width: 720px; padding-top: 2rem; }
.prose h1 { font-size: clamp(2rem, 6vw, 3.4rem); }

/* Admin */
.auth { max-width: 440px; margin: 3rem auto; }
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin: 2rem 0 1rem; }
.admin-head > div { display: flex; flex-wrap: wrap; gap: .5rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stats .panel { display: grid; }
.stats b { font-size: 1.8rem; color: var(--green); text-shadow: 0 0 10px rgba(57,255,20,.4); }
.stats span { color: var(--muted); font-size: .85rem; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--radius); overflow: hidden; }
.admin-table th, .admin-table td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--bg2); }
.admin-table .actions { white-space: nowrap; text-align: right; }
.snippets { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: -.5rem; }

/* YouTube button + promos */
:root { --yt: #ff0033; }
.btn.yt { background: var(--yt); color: #fff; box-shadow: 0 0 14px rgba(255,0,51,.45); }
.btn.yt:hover { box-shadow: 0 0 22px rgba(255,0,51,.7); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.2rem; }
.prose .hero-actions { justify-content: flex-start; }
.nav-links { align-items: center; }
.nav-links a.active { color: var(--green); }
.topbar { background: linear-gradient(90deg, rgba(255,0,51,.18), rgba(255,47,209,.12)); border-bottom: 1px solid var(--line); }
.promo { display: flex; align-items: center; gap: 1rem; color: var(--text); border-radius: var(--radius); }
.promo:hover { text-shadow: none; }
.promo-text { display: grid; gap: .1rem; flex: 1; min-width: 0; }
.promo-text span:not(.promo-yt) { color: var(--muted); font-size: .9rem; }
.promo-yt { font: 800 .7rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--yt); }
.promo-thumb { width: 160px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.promo-bar { padding: .45rem 0; font-size: .9rem; }
.promo-bar .promo-thumb { width: 72px; }
.promo-bar .promo-yt { display: none; }
.promo-card { flex-direction: column; align-items: stretch; padding: 1rem; background: var(--panel); border: 1px solid rgba(255,0,51,.4); box-shadow: 0 0 18px rgba(255,0,51,.15); }
.promo-card .promo-thumb { width: 100%; }
.promo-card .btn { justify-content: center; }
.promo-wide { margin: 1.5rem 0; padding: 1rem 1.2rem; background: var(--panel); border: 1px solid rgba(255,0,51,.4); }
.promo:hover.promo-card, .promo:hover.promo-wide { border-color: var(--yt); box-shadow: 0 0 26px rgba(255,0,51,.3); }
.more-tabs { margin-top: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips .badge { cursor: pointer; font-size: .8rem; }

/* Music page */
.small-hero { padding: 2.5rem 0 1rem; }
.small-hero h1 { font-size: clamp(2.5rem, 9vw, 5rem); }
.music-block { margin: 2rem 0; }
.music-block h2 { font-size: 1.4rem; }
.music-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.music-grid iframe { width: 100%; border: 0; border-radius: var(--radius); background: var(--panel); }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.video-player { margin: 1rem 0; }
.video-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.video-grid li { display: grid; gap: .4rem; align-content: start; }
.video-card { all: unset; cursor: pointer; display: grid; gap: .35rem; padding: .5rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); transition: border-color .2s, box-shadow .2s; }
.video-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.video-card .vt { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.video-card:hover, .video-grid li.playing .video-card { border-color: var(--pink); box-shadow: 0 0 16px rgba(255,47,209,.25); }
.video-card:focus-visible { outline: 2px solid var(--cyan); }
.video-grid .badge { justify-self: start; cursor: pointer; }

/* Admin extras */
.admin-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.5rem; padding: .4rem; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; width: fit-content; }
.admin-nav a { padding: .4rem .9rem; border-radius: 999px; color: var(--text); font-weight: 600; font-size: .9rem; }
.admin-nav a.active { background: linear-gradient(90deg, var(--green), var(--cyan)); color: #0a0814; }
.admin-nav a:hover { text-shadow: none; background: rgba(255,255,255,.06); }
.admin-nav a.active:hover { background: linear-gradient(90deg, var(--green), var(--cyan)); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem 1.2rem; margin: 0; display: grid; gap: .9rem; }
legend { font-weight: 800; color: var(--green); padding: 0 .4rem; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.span-all { grid-column: 1 / -1; }
input[type=color] { height: 42px; padding: .2rem; cursor: pointer; }
.ok { color: var(--green); } .warn { color: var(--yellow); }
.builder { gap: 1.5rem; }
.sticky-save { position: sticky; bottom: 0; padding: .8rem 0; background: linear-gradient(transparent, var(--bg) 40%); }
.install { max-width: 720px; margin: 2rem auto; }
.install h1 { font-size: 2rem; }
.checks { list-style: none; padding: 0; display: grid; gap: .2rem; font-size: .9rem; }
.checks .ok { color: var(--green); } .checks .bad { color: var(--red); }
code { font-family: var(--mono); background: var(--bg2); padding: .1rem .35rem; border-radius: 4px; }

/* Organized browsing */
.crumbs { margin: 1.5rem 0 .3rem; font-size: .9rem; color: var(--muted); }
.crumbs a { font-weight: 600; }
.page-title { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: .2rem 0 1rem; }
.inst-pills, .cat-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.inst-pills { justify-content: center; margin-bottom: 1.8rem; }
.inst-pills a, .cat-pills a {
  padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  color: var(--text); font-weight: 700; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.cat-pills a { padding: .35rem .85rem; font-size: .85rem; }
.inst-pills a small, .cat-pills a small { color: var(--muted); font-weight: 600; margin-left: .2rem; }
.inst-pills a:hover, .cat-pills a:hover { border-color: var(--cyan); text-shadow: none; }
.inst-pills a.on, .cat-pills a.on { border-color: var(--pink); box-shadow: 0 0 14px rgba(255,47,209,.3); background: linear-gradient(90deg, rgba(255,47,209,.15), rgba(25,230,255,.12)); }
.tab-section { margin: 1.2rem 0 2.2rem; }
.tab-section .section-head { border-bottom: 1px solid var(--line); padding-bottom: .4rem; margin-bottom: .9rem; }
.tab-section h2 { font-size: 1.35rem; margin: 0; }
.tab-section h2 small { font-size: .85rem; font-weight: 600; }
.section-band h2 { color: var(--green); text-shadow: 0 0 10px rgba(57,255,20,.35); }
.collection { margin-bottom: 1.3rem; }
.collection-title { display: flex; align-items: baseline; gap: .5rem; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; color: var(--cyan); margin-bottom: .6rem; }
.collection-title small { letter-spacing: 0; }
.collection-title .see-all { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: .85rem; }
.tab-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .6rem; }
.tab-grid .tab-card { height: 100%; flex-wrap: wrap; padding: .85rem 1rem; }
.tab-grid .tab-card h3 { font-size: 1rem; }
.tab-grid .badges { width: 100%; justify-content: flex-start; padding-left: 2.4rem; }
.tc-main { flex: 1; min-width: 0; }
.inst-icon { font-size: 1.4rem; width: 1.9rem; text-align: center; flex-shrink: 0; }
.type-drums { color: #b388ff; border-color: rgba(179,136,255,.45); }
.prev-next { display: flex; justify-content: space-between; gap: 1rem; margin: 1.2rem 0; flex-wrap: wrap; }
.prev-next .btn { white-space: normal; }

/* Drum tabs */
.drum-key { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; font-size: .85rem; color: var(--muted);
  padding: .7rem 1rem; margin-bottom: 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.drum-key b { color: var(--text); }
.drum-key i { font-style: normal; font-family: var(--mono); font-weight: 700; margin-right: .25rem; }
.drum-key .sep { flex-basis: 100%; height: 0; }
.dk-cym, .tab-body .dcym { color: var(--yellow); }
.dk-drum, .tab-body .ddrum { color: var(--pink); font-weight: 700; }
.dk-ghost, .tab-body .dghost { color: var(--muted); }
.tab-body .dlabel { color: var(--cyan); font-weight: 700; }
.tab-body .dcount { color: var(--muted); }

/* Featured release spotlight */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 2rem;
  margin: 1.6rem 0 1rem; padding: 1.5rem 2rem; border-radius: 22px; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 25% 50%, rgba(255,75,31,.22), transparent 70%), linear-gradient(135deg, #1a0d1f, #0d0a1a 60%);
  border: 1px solid rgba(255,90,40,.35); box-shadow: 0 0 40px rgba(255,75,31,.15); }
.feature-art { position: relative; display: grid; place-items: center; border-radius: 16px; aspect-ratio: 1 / 1; max-width: 420px; width: 100%; justify-self: center; }
.feature-art.facade { background: transparent; cursor: pointer; }
.feature-art iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; align-self: center; }
.feature-art:has(iframe) { aspect-ratio: auto; max-width: none; }
.feature .planet { width: 100%; height: auto; display: block; }
.feature-art.has-img { aspect-ratio: auto; max-width: none; }
.feature-art.has-img img { position: static; width: 100%; height: auto; display: block; border-radius: 14px; opacity: 1; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.feature-art.has-img .facade-play { position: absolute; }
.image-field img { max-width: 360px; width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; margin-bottom: .6rem; }
.feature .surface { animation: spin-surface 40s linear infinite; }
@keyframes spin-surface { to { transform: translateX(-240px); } }
.feature .stars circle { animation: twinkle 3s ease-in-out infinite; }
.feature .stars circle:nth-child(2n) { animation-delay: -1.5s; }
@keyframes twinkle { 50% { opacity: .25; } }
.feature .window { animation: lights 4s ease-in-out infinite; }
.feature .village g:nth-child(4n) .window { animation-delay: -2s; }
@keyframes lights { 50% { opacity: .55; } }
.feature-art .facade-play { position: absolute; }
.feature-kicker { margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; font-size: .85rem; color: #ff8a5a; }
.feature-title { font-size: clamp(3.2rem, 9vw, 6.5rem); margin: .1rem 0 .3rem; line-height: 1; }
.feature-title .glow { background: linear-gradient(90deg, #ff4b1f, #ff9a5a, var(--pink), #ff4b1f); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 8px rgba(255,75,31,.6)) drop-shadow(0 0 18px rgba(255,47,209,.3)); }
.feature-text { color: var(--muted); font-size: 1.1rem; margin: 0 0 1rem; max-width: 34ch; }
.countdown { display: flex; gap: .6rem; margin: 0 0 1.1rem; }
.countdown span { display: grid; place-items: center; min-width: 4.2rem; padding: .45rem .4rem; border-radius: 10px; background: rgba(0,0,0,.35); border: 1px solid var(--line); font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.countdown small { font-size: .65rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.feature-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.feature-links .feature-main { font-size: 1rem; padding: .7rem 1.4rem; }
.btn.spotify { background: #1ed760; color: #0a0814; box-shadow: 0 0 14px rgba(30,215,96,.4); }
.btn.apple { background: #fa2d48; color: #fff; box-shadow: 0 0 14px rgba(250,45,72,.4); }
.btn.other { background: linear-gradient(90deg, #ff4b1f, var(--pink)); color: #fff; }
.home-tagline { text-align: center; margin: 0 0 1.4rem; }
.feature-compact { grid-template-columns: 220px minmax(0, 1fr); padding: 1rem 1.5rem; margin-top: 0; }
.feature-compact .feature-art { max-width: 220px; }
.feature-compact .feature-title { font-size: clamp(2.4rem, 7vw, 4rem); }
/* top strip */
.feature-strip { background: linear-gradient(90deg, rgba(255,75,31,.28), rgba(255,47,209,.16)); }
.mini-planet { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; background: radial-gradient(circle at 35% 32%, #ff9a5a, #e2461d 45%, #5c1206 85%); box-shadow: 0 0 10px rgba(255,75,31,.7); }
@media (prefers-reduced-motion: reduce) { .feature .surface, .feature .stars circle, .feature .window { animation: none; } }

/* Bulk actions (admin) */
.bulk-bar { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); width: min(760px, calc(100% - 2rem)); z-index: 50; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0;
  padding: .7rem 1rem; background: #1d1934; border: 1px solid var(--pink); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,.6), 0 0 18px rgba(255,47,209,.25); }
.bulk-bar[hidden] { display: none; }
.bulk-spacer { height: 7rem; }
.bulk-bar > span { margin-right: auto; }
.admin-table .cb { width: 2.2rem; padding-right: 0; }
.pick { width: 18px; height: 18px; accent-color: var(--pink); cursor: pointer; vertical-align: middle; }
.select-all { display: inline-flex; align-items: center; gap: .5rem; margin: .4rem 0 0; font-size: .9rem; color: var(--muted); }
.select-all input { width: 18px; height: 18px; accent-color: var(--pink); }

/* Harp tabs */
.type-harp { color: #7dffcf; border-color: rgba(125,255,207,.45); }
.hk-blow, .tab-body .hblow { color: var(--cyan); font-weight: 700; }
.hk-draw, .tab-body .hdraw { color: var(--orange); font-weight: 700; }
.tab-body .hbend { text-decoration: underline wavy; text-underline-offset: 3px; }

/* Admin organization */
.admin-filters { grid-template-columns: 2fr 1fr 1fr auto; margin: 1rem 0; }
.admin-section { display: flex; align-items: center; gap: .6rem; margin: 2rem 0 .7rem; font-size: 1.25rem; }
.admin-section .btn { margin-left: auto; }
.collection-row td { background: rgba(25,230,255,.06); color: var(--cyan); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; padding: .45rem .9rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 1.5rem 0; color: var(--muted); font-size: .85rem; text-align: center; }
.site-footer p { margin: .3rem 0; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.2rem; margin-bottom: .8rem; font-weight: 600; }
.glow-sm { font-size: 1rem; }

/* Responsive */
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .filters { grid-template-columns: 1fr 1fr auto; }
  .filters input[type=search] { grid-column: 1 / -1; }
  .grid { grid-template-columns: 1fr 1fr; }
  .music-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
/* Show/hide helpers */
.sub-mobile, .search-mobile, .show-sm { display: none; }
.layout > *, main { min-width: 0; }

/* Collapsible panels (drum/harp key, tab help) */
details > summary { cursor: pointer; font-weight: 700; color: var(--text); list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: ' ▾'; color: var(--muted); }
details[open] > summary::after { content: ' ▴'; }
details.drum-key > summary { flex-basis: 100%; }
details.drum-key:not([open]) { padding: .55rem 1rem; }
.help > summary { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--green); }
.help[open] > summary { margin-bottom: .5rem; }

/* Click-to-load players: just a thumbnail until tapped */
.facade { cursor: pointer; background: #000; display: grid; place-items: center; }
.facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.facade-play { position: relative; z-index: 1; width: 72px; height: 50px; border: 0; border-radius: 14px; background: var(--yt); color: #fff; font-size: 1.4rem; cursor: pointer; box-shadow: 0 4px 24px rgba(0,0,0,.5); }
.facade:hover .facade-play { transform: scale(1.06); }
.live-facade { background: radial-gradient(circle at 50% 40%, rgba(83,252,24,.18), #000 70%); }
.facade-label { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: .9rem; }

/* Desktop-only eye candy (keeps phones fast and smooth) */
@media (min-width: 901px) {
  body { background-attachment: fixed; }
  .site-header { backdrop-filter: blur(10px); }
}

/* ---------- Phones ---------- */
@media (max-width: 700px) {
  /* Lighter effects */
  .glow, .glow-sm { animation: none; filter: drop-shadow(0 0 5px rgba(255,47,209,.5)); }
  body { background: radial-gradient(500px 300px at 0% 0%, rgba(255,47,209,.12), transparent 70%), var(--bg); }

  /* Header: logo + Subscribe on top, one swipeable row of links below, not sticky */
  .site-header { position: static; background: var(--bg); }
  .nav { display: grid; grid-template-columns: 1fr auto; gap: .5rem .75rem; padding: .6rem 0 .3rem; }
  .logo { font-size: 1.3rem; }
  .nav-search, .sub-desktop { display: none; }
  .sub-mobile { display: inline-flex; }
  .topbar ~ .site-header .sub-mobile { display: none; }   /* the promo strip already has a Subscribe button */
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .search-mobile { display: inline; }
  .nav-links { grid-column: 1 / -1; overflow-x: auto; flex-wrap: nowrap; gap: .25rem; margin: 0 -1rem; padding: 0 1rem .4rem; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; padding: .45rem .7rem; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: .92rem; }
  .nav-links a.active { border-color: var(--green); }

  /* Promo strip: one slim line */
  .promo-bar { padding: .35rem 0; font-size: .85rem; }
  .promo-bar .promo-thumb, .promo-bar .promo-text span:not(.promo-yt) { display: none; }
  .promo-bar b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* Hero */
  .hero { padding: 1rem 0 .6rem; }
  .hero h1 { font-size: clamp(2.2rem, 12vw, 3.2rem); }
  .tagline { font-size: .95rem; margin-top: .2rem; }
  .hero-actions { flex-wrap: nowrap; margin-top: .8rem; }
  .hero-actions .btn { flex: 1 1 0; justify-content: center; font-size: .85rem; padding: .55rem .6rem; }

  /* Featured release: art on top, compact text below */
  .feature, .feature-compact { grid-template-columns: 1fr; gap: .4rem; padding: 1rem 1rem 1.2rem; margin: .8rem 0 .6rem; text-align: center; border-radius: 18px; }
  .feature-art { max-width: 230px; }
  .feature-art.has-img { max-width: none; }
  .feature-compact .feature-art { max-width: 170px; }
  .feature-compact .feature-art.has-img { max-width: none; }
  .feature-text { margin: 0 auto .9rem; font-size: 1rem; }
  .countdown { justify-content: center; }
  .countdown span { min-width: 3.6rem; font-size: 1.3rem; }
  .feature-links { justify-content: center; }
  .feature-links .btn { flex: 1 1 auto; justify-content: center; }
  .home-tagline { font-size: .9rem; margin-bottom: 1rem; }

  /* Pills: one swipeable row instead of a tall stack */
  .inst-pills, .cat-pills { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin-left: -1rem; margin-right: -1rem; padding: 0 1rem .3rem; scrollbar-width: none; }
  .inst-pills::-webkit-scrollbar, .cat-pills::-webkit-scrollbar { display: none; }
  .inst-pills a, .cat-pills a { white-space: nowrap; flex-shrink: 0; }
  .inst-pills { margin-bottom: 1rem; }

  /* Lists */
  .filters { grid-template-columns: 1fr 1fr auto; }
  .filters input[type=search] { grid-column: 1 / -1; }
  .tab-list .tab-card { flex-direction: column; align-items: flex-start; }
  .tab-grid { grid-template-columns: 1fr; }
  .tab-grid .tab-card { padding: .75rem .85rem; }
  .tab-card:hover { transform: none; }
  .badges { justify-content: flex-start; }
  .tab-section { margin: .8rem 0 1.6rem; }
  .collection-title { font-size: .85rem; }
  .sidebar { gap: .8rem; }

  /* Tab page: compact, swipeable toolbar that sticks to the top while you play */
  .tab-head h1 { font-size: 1.6rem; }
  .meta { gap: .4rem; }
  .meta div { padding: .3rem .6rem; }
  .toolbar { top: 0; flex-wrap: nowrap; overflow-x: auto; gap: .9rem; padding: .5rem .75rem; margin: .8rem -1rem; border-radius: 0; border-left: 0; border-right: 0; scrollbar-width: none; }
  .toolbar::-webkit-scrollbar { display: none; }
  .tool { flex-shrink: 0; }
  .tool > span { font-size: .75rem; }
  .tab-body { padding: .9rem; margin: 0 -1rem; border-radius: 0; border-left: 0; border-right: 0; }
  .prev-next { flex-direction: column; }
  .prev-next .btn { justify-content: center; }
  .notes { font-size: .92rem; }

  /* Bigger touch targets */
  .btn.sm { min-height: 36px; padding: .35rem .8rem; }
  .toolbar .btn.sm { min-width: 40px; justify-content: center; }

  /* Music page */
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .video-card .vt { font-size: .85rem; }
  .music-grid iframe.spotify { height: 352px; }

  /* Forms & admin */
  .grid, .grid2 { grid-template-columns: 1fr; }
  .grid .span2 { grid-column: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .promo-wide { flex-direction: column; align-items: stretch; }
  .promo-wide .promo-thumb { width: 100%; }
  .admin-nav { border-radius: var(--radius); }
  .admin-filters { grid-template-columns: 1fr 1fr; }
  .admin-filters input { grid-column: 1 / -1; }
  .admin-section { flex-wrap: wrap; }
}

/* Print: just the tab */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .toolbar, .back, .video, .btn, .topbar, .promo, .more-tabs { display: none !important; }
  .tab-body { background: #fff; color: #000; border: 0; box-shadow: none; white-space: pre-wrap; font-size: 11pt; }
  .tab-body .ch, .tab-body .sec, .tab-body span { color: #000 !important; text-shadow: none; }
  .drum-key { border: 1px solid #ccc; background: #fff; color: #000; }
  .prev-next, .crumbs { display: none; }
  .meta div { border: 1px solid #ccc; background: #fff; }
}
