/* VolumeIQ website - same design language as the extension popup (Amber Classic theme). */
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("/fonts/space-grotesk-v22-latin-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-v23-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-v23-latin-600.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("/fonts/jetbrains-mono-v24-latin-500.woff2") format("woff2"); }

:root {
  --f-ui: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-display: "Space Grotesk", "IBM Plex Sans", sans-serif;
  --f-num: "JetBrains Mono", ui-monospace, monospace;

  --bg-deep: #04040a;
  --bg-base: #070712;
  --bg-mid: #0d0d1f;

  --glass-1: rgba(255, 255, 255, 0.03);
  --glass-2: rgba(255, 255, 255, 0.055);
  --glass-3: rgba(255, 255, 255, 0.09);
  --glass-4: rgba(255, 255, 255, 0.13);

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-normal: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  --acc: #eab308;
  --acc-h: #fbbf24;
  --acc-dim: rgba(234, 179, 8, 0.10);
  --acc-bdr: rgba(234, 179, 8, 0.25);
  --acc-glow: rgba(234, 179, 8, 0.20);
  --acc-glow-s: rgba(234, 179, 8, 0.35);

  --grn: #22d3a0;
  --red: #ef4444;
  --red-soft: #f87171;

  --t1: rgba(255, 255, 255, 0.92);
  --t2: rgba(255, 255, 255, 0.62);
  --t3: rgba(255, 255, 255, 0.38);

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.45), 0 1px 4px rgba(0, 0, 0, 0.30);
  --shadow-lifted: 0 8px 40px rgba(0, 0, 0, 0.60), 0 2px 8px rgba(0, 0, 0, 0.40);

  --blur-sm: blur(8px);
  --blur-md: blur(16px);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--t1);
  font: 400 16px/1.65 var(--f-ui);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(120, 80, 255, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 25%, rgba(234, 179, 8, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse 50% 70% at 50% 90%, rgba(34, 211, 160, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 100% 100% at 50% 50%, var(--bg-mid) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  background-color: var(--bg-deep);
}
/* decorative blurred orbs, like the popup background */
body::before, body::after {
  content: ""; position: fixed; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(70px); opacity: 0.6;
}
body::before { width: 420px; height: 420px; top: -140px; left: -100px; background: radial-gradient(circle, rgba(139, 92, 246, 0.20) 0%, transparent 70%); }
body::after { width: 340px; height: 340px; bottom: -80px; right: -60px; background: radial-gradient(circle, rgba(234, 179, 8, 0.14) 0%, transparent 70%); }

h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; margin: 0 0 0.55em; letter-spacing: -0.01em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
a { color: var(--acc-h); text-underline-offset: 3px; }
a:hover { color: #fde68a; }
:focus-visible { outline: 2px solid rgba(234, 179, 8, 0.7); outline-offset: 3px; border-radius: 6px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.10); border-radius: 8px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); margin-inline: auto; }
.wide { width: min(1260px, 100% - 40px); margin-inline: auto; }
main { flex: 1; padding: 40px 0 80px; }

/* ── header / footer ─────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--border-subtle); background: rgba(7, 7, 18, 0.72); -webkit-backdrop-filter: var(--blur-md); backdrop-filter: var(--blur-md); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--t1); text-decoration: none; font: 700 1.2rem var(--f-display); }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 18px var(--acc-glow); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--t2); text-decoration: none; padding: 7px 14px; border-radius: var(--r-pill); font-size: 0.92rem; transition: color 120ms var(--ease), background 120ms var(--ease); }
.nav a:hover { color: var(--t1); background: var(--glass-2); }
.nav a[aria-current="page"] { color: var(--acc-h); background: var(--acc-dim); }
.site-footer { border-top: 1px solid var(--border-subtle); padding: 24px 0; color: var(--t3); font-size: 0.88rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--t2); }

/* ── buttons / chips ─────────────────────────────────────────────────────────── */
.eyebrow { display: inline-block; font: 500 0.72rem var(--f-num); letter-spacing: 0.16em; text-transform: uppercase; color: var(--acc-h); background: var(--acc-dim); border: 1px solid var(--acc-bdr); border-radius: var(--r-pill); padding: 5px 13px; margin-bottom: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border-strong); background: var(--glass-2); color: var(--t1); font: 600 0.98rem var(--f-ui); padding: 12px 22px; border-radius: var(--r-md); cursor: pointer; text-decoration: none; transition: transform 120ms var(--ease), background 120ms var(--ease), border-color 120ms var(--ease), box-shadow 120ms var(--ease); }
.btn:hover { background: var(--glass-3); border-color: rgba(255, 255, 255, 0.3); color: var(--t1); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--acc-h), var(--acc)); border-color: var(--acc); color: #1a1405; box-shadow: 0 0 26px var(--acc-glow); }
.btn-primary:hover { background: linear-gradient(135deg, #fde68a, var(--acc-h)); border-color: var(--acc-h); color: #1a1405; box-shadow: 0 0 34px var(--acc-glow-s); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; border-radius: var(--r-sm); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── landing: hero + live demo ───────────────────────────────────────────────── */
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 48px; align-items: start; padding: 24px 0 8px; }
.hero-copy .lead { font-size: 1.15rem; color: var(--t2); max-width: 560px; margin-bottom: 26px; }
.try-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 10px; counter-reset: step; max-width: 560px; }
.try-list li { counter-increment: step; display: flex; gap: 12px; align-items: flex-start; color: var(--t2); font-size: 0.97rem; }
.try-list li::before { content: counter(step); flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 500 0.78rem var(--f-num); color: var(--acc-h); background: var(--acc-dim); border: 1px solid var(--acc-bdr); margin-top: 1px; }
.try-list strong { color: var(--t1); }

.demo { position: relative; }
.demo-window { border: 1px solid var(--border-strong); border-radius: 18px; background: rgba(10, 10, 20, 0.8); box-shadow: var(--shadow-lifted), 0 0 60px rgba(234, 179, 8, 0.07); overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--border-subtle); background: rgba(255, 255, 255, 0.025); }
.demo-dots { display: flex; gap: 6px; }
.demo-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.demo-tabs { display: flex; gap: 6px; flex: 1; min-width: 0; overflow: hidden; }
.demo-tab { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 150px; padding: 4px 10px; border-radius: 8px; font-size: 0.74rem; color: var(--t3); background: transparent; white-space: nowrap; }
.demo-tab[aria-current="true"] { color: var(--t1); background: var(--glass-3); }
.demo-tab i { font: normal 700 0.62rem var(--f-ui); width: 15px; height: 15px; border-radius: 4px; display: grid; place-items: center; color: #111; flex-shrink: 0; }
.demo-tab span { overflow: hidden; text-overflow: ellipsis; }
.demo-ext { position: relative; flex-shrink: 0; }
.demo-ext img { width: 22px; height: 22px; border-radius: 6px; display: block; }
.demo-badge { position: absolute; top: -7px; right: -9px; min-width: 20px; padding: 0 4px; border-radius: 8px; font: 500 0.6rem/15px var(--f-num); text-align: center; color: #fff; background: #3ba4ff; box-shadow: 0 0 8px rgba(0, 0, 0, 0.5); }
.demo-badge[hidden] { display: none; }
.demo-badge.mut { background: var(--red-soft); }
.demo-badge.hot { background: #f59e0b; }
.demo-stage { position: relative; height: 600px; }
.demo-stage iframe { position: absolute; left: 0; top: 0; width: 480px; height: 600px; border: 0; background: transparent; transform-origin: 0 0; }
.demo-start { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(4, 4, 10, 0.78); -webkit-backdrop-filter: var(--blur-sm); backdrop-filter: var(--blur-sm); border: 0; color: var(--t1); font: 600 1rem var(--f-ui); cursor: pointer; transition: opacity 200ms var(--ease); }
.demo-start .play { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; color: #1a1405; background: linear-gradient(135deg, var(--acc-h), var(--acc)); box-shadow: 0 0 40px var(--acc-glow-s); padding-left: 5px; transition: transform 160ms var(--spring); }
.demo-start:hover .play { transform: scale(1.08); }
.demo-start small { color: var(--t2); font-weight: 400; }
.demo-start[hidden] { display: none; }
.demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.demo-foot .meta { max-width: 340px; }
.demo-toast { position: absolute; left: 50%; bottom: 62px; transform: translateX(-50%); z-index: 3; background: rgba(15, 12, 28, 0.94); border: 1px solid var(--acc-bdr); color: var(--t1); font-size: 0.82rem; padding: 8px 14px; border-radius: 12px; box-shadow: var(--shadow-card); pointer-events: none; }
.demo-toast[hidden] { display: none; }

/* ── cards ───────────────────────────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; margin: 36px 0; }
.card { background: var(--glass-1); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 22px; -webkit-backdrop-filter: var(--blur-sm); backdrop-filter: var(--blur-sm); box-shadow: var(--shadow-card); transition: border-color 160ms var(--ease), transform 160ms var(--ease), background 160ms var(--ease); }
.card:hover { border-color: var(--acc-bdr); background: var(--glass-2); transform: translateY(-2px); }
.card h3 { color: var(--t1); }
.card p { color: var(--t2); margin: 0; font-size: 0.96rem; }
.card .ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px; color: var(--acc-h); background: var(--acc-dim); border: 1px solid var(--acc-bdr); font: 500 0.95rem var(--f-num); }
.section { margin-top: 56px; }
.prose h2 { margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose, .prose p, .prose li { color: rgba(255, 255, 255, 0.78); }
.meta { color: var(--t3); font-size: 0.9rem; }

/* ── changelog ───────────────────────────────────────────────────────────────── */
.release { border-left: 2px solid var(--acc-bdr); padding: 4px 0 4px 22px; margin: 0 0 36px; }
.release h2 { margin-bottom: 0.25em; }
.badge { display: inline-block; font: 500 0.7rem var(--f-num); letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: var(--r-pill); background: rgba(34, 211, 160, 0.10); border: 1px solid rgba(34, 211, 160, 0.25); color: var(--grn); margin-left: 8px; vertical-align: middle; }

/* ── feedback form ───────────────────────────────────────────────────────────── */
.form-card { background: var(--glass-1); border: 1px solid var(--border-subtle); border-radius: var(--r-xl); padding: clamp(20px, 4vw, 34px); -webkit-backdrop-filter: var(--blur-md); backdrop-filter: var(--blur-md); box-shadow: var(--shadow-card); }
.field { margin-bottom: 22px; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 7px; }
.optional { color: var(--t3); font: 400 0.8rem var(--f-ui); margin-left: 8px; }
input[type="text"], input[type="password"], textarea, select {
  width: 100%; background: rgba(0, 0, 0, 0.35); color: var(--t1); border: 1px solid var(--border-normal); border-radius: var(--r-sm);
  padding: 11px 13px; font: 400 1rem var(--f-ui); transition: border-color 120ms var(--ease), box-shadow 120ms var(--ease);
}
textarea { min-height: 112px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.18); }
::placeholder { color: var(--t3); }
.stars { display: flex; gap: 6px; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label { margin: 0; cursor: pointer; font-size: 2.4rem; line-height: 1; color: rgba(255, 255, 255, 0.18); transition: color 120ms var(--ease), transform 160ms var(--spring), text-shadow 120ms var(--ease); }
.stars label:hover { transform: scale(1.18); }
.stars label.on { color: var(--acc-h); text-shadow: 0 0 16px var(--acc-glow-s); }
.stars input:focus-visible + label { outline: 2px solid var(--acc); border-radius: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { color: var(--t3); font-size: 0.86rem; }
.status { min-height: 1.5em; margin-top: 14px; }
.status.err, .err { color: var(--red-soft); }
.thanks { text-align: center; padding: 20px 0; }
.thanks .big { font-size: 3rem; color: var(--grn); }
[hidden] { display: none !important; }
.langbar { display: flex; justify-content: flex-end; align-items: center; margin-bottom: 14px; }
.langbar select { width: auto; padding: 7px 10px; font-size: 0.9rem; }
fieldset.plain { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
fieldset.plain legend { padding: 0; }

/* ── admin ───────────────────────────────────────────────────────────────────── */
.adminbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; flex-wrap: wrap; }
.adminbar .toolbar { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.stat { background: var(--glass-1); border: 1px solid var(--border-subtle); border-radius: var(--r-md); padding: 14px 16px; }
.stat b { display: block; font: 700 1.6rem var(--f-display); }
.stat span { color: var(--t3); font-size: 0.82rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.chip { border: 1px solid var(--border-normal); background: var(--glass-1); color: var(--t1); border-radius: var(--r-pill); padding: 4px 12px; font: 400 0.85rem var(--f-ui); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: #1a1405; }
.chip small { color: inherit; opacity: 0.7; margin-left: 5px; font-family: var(--f-num); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 14px 0; }
.toolbar label { display: flex; align-items: center; gap: 6px; color: var(--t2); font-size: 0.9rem; }
.toolbar select, .toolbar input[type="text"], .toolbar input[type="password"] { width: auto; padding: 7px 10px; font-size: 0.9rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
th { color: var(--t3); font: 500 0.72rem var(--f-num); text-transform: uppercase; letter-spacing: 0.08em; }
tr.spam td { opacity: 0.45; }
.tag { display: inline-block; background: var(--glass-2); border: 1px solid var(--border-subtle); border-radius: 6px; padding: 1px 8px; font: 500 0.72rem var(--f-num); margin: 0 4px 4px 0; }
.sev-high { color: var(--red-soft); font-weight: 600; }
.sev-medium { color: var(--acc-h); }
details summary { cursor: pointer; color: var(--t3); font-size: 0.85rem; }
details pre { white-space: pre-wrap; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border-subtle); padding: 10px; border-radius: 8px; font: 400 0.85rem var(--f-ui); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: var(--r-md); background: var(--glass-1); }

/* ── responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-split { grid-template-columns: 1fr; gap: 36px; }
  .demo { width: min(520px, 100%); margin-inline: auto; }
}
@media (max-width: 560px) {
  .stars label { font-size: 2rem; }
  .nav a { padding: 6px 9px; }
  .demo-tabs .demo-tab:nth-child(n+2) { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; } }

/* demo frame polish */
.demo-stage iframe { left: 50%; margin-left: -240px; transform-origin: 50% 0; }
.demo-tab i.c1 { background: #60a5fa; }
.demo-tab i.c2 { background: #eab308; }
.demo-tab i.c3 { background: #22d3a0; }
/* demo track chooser */
.demo-tracks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.demo-tracks-label { font: 500 0.72rem var(--f-num); letter-spacing: 0.12em; text-transform: uppercase; color: var(--t3); margin-right: 4px; }
.chip-btn { border: 1px solid var(--border-normal); background: var(--glass-1); color: var(--t2); border-radius: var(--r-pill); padding: 5px 14px; font: 600 0.84rem var(--f-ui); cursor: pointer; transition: color 120ms var(--ease), background 120ms var(--ease), border-color 120ms var(--ease), box-shadow 120ms var(--ease); }
.chip-btn:hover { color: var(--t1); border-color: var(--border-strong); background: var(--glass-2); }
.chip-btn[aria-pressed="true"] { color: #1a1405; background: linear-gradient(135deg, var(--acc-h), var(--acc)); border-color: var(--acc); box-shadow: 0 0 18px var(--acc-glow); }
/* ── language menu, hidden-until-translated, sprite ─────────────────────────── */
.i18n-pending body { visibility: hidden; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.header-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.lang-select { width: auto; max-width: 150px; padding: 6px 28px 6px 10px; font-size: 0.88rem; border-radius: var(--r-pill); background-color: var(--glass-2); }

/* ── demo tab strip ─────────────────────────────────────────────────────────── */
.demo-bar { gap: 8px; padding: 8px; }
.demo-tabs { display: flex; gap: 6px; flex: 1; min-width: 0; overflow: hidden; }
.demo-tab { flex: 1 1 0; min-width: 0; max-width: none; display: flex; align-items: center; gap: 6px; padding: 5px 6px 5px 7px; border-radius: 10px; border: 1px solid transparent; font-size: 0.74rem; color: var(--t3); background: transparent; transition: background 140ms var(--ease), color 140ms var(--ease), border-color 140ms var(--ease); }
.demo-tab[aria-current="true"] { background: var(--glass-3); color: var(--t1); border-color: var(--border-normal); }
.tab-fav { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; flex-shrink: 0; }
.fav-video { color: #60a5fa; background: rgba(96, 165, 250, 0.16); }
.fav-music { color: var(--acc-h); background: rgba(234, 179, 8, 0.16); }
.fav-news { color: var(--grn); background: rgba(34, 211, 160, 0.16); }
.ic { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.tab-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab-btn { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; display: grid; place-items: center; flex-shrink: 0; color: var(--t2); background: transparent; cursor: pointer; transition: background 120ms var(--ease), color 120ms var(--ease), opacity 120ms var(--ease); }
.tab-btn:hover { background: var(--glass-3); color: var(--t1); }
.tab-btn .ic { width: 13px; height: 13px; }
.ic-play, .ic-pause { fill: currentColor; }
.ic-pause { stroke-width: 3; fill: none; }
.ic-off, .ic-play { display: none; }
.demo-tab.is-muted .ic-on { display: none; }
.demo-tab.is-muted .ic-off { display: block; }
.demo-tab.is-muted .tab-audio { color: var(--red-soft); }
.demo-tab.is-paused .ic-pause { display: none; }
.demo-tab.is-paused .ic-play { display: block; }
.demo-tab.is-paused .tab-title { opacity: 0.55; }
.demo-tab.is-paused .tab-audio { opacity: 0.35; }
.demo-tab.is-audible .tab-audio { color: var(--acc-h); }
.demo-tab.is-audible .wave { animation: tabWave 1.1s ease-in-out infinite; }
.demo-tab.is-audible .w2 { animation-delay: 0.25s; }
@keyframes tabWave { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@media (max-width: 560px) { .demo-tab .tab-title { display: none; } .demo-tab { flex: 0 0 auto; } }
/* tab strip: more room for the two tabs that have media */
.demo-tab[data-tab="103"] { flex: 0.62 1 0; }
.demo-tab { gap: 5px; padding: 5px 5px 5px 6px; }
.tab-fav { width: 18px; height: 18px; }
.tab-fav .ic { width: 12px; height: 12px; }
.tab-btn { width: 20px; height: 20px; }
.tab-btn .ic { width: 12px; height: 12px; }
/* ── custom language menu (matches the popup's glass look) ───────────────────── */
select option { background: #12121c; color: rgba(255, 255, 255, 0.92); }   /* any native select list: never white */
.lang-menu { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--border-normal); background: var(--glass-2); color: var(--t1); font: 600 0.86rem var(--f-ui); cursor: pointer; transition: border-color 140ms var(--ease), background 140ms var(--ease), box-shadow 140ms var(--ease); }
.lang-btn:hover { border-color: var(--border-strong); background: var(--glass-3); }
.lang-menu.open .lang-btn { border-color: var(--acc-bdr); box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.12); }
.lang-ic { width: 16px; height: 16px; fill: none; stroke: var(--acc-h); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.lang-chev { width: 14px; height: 14px; stroke: var(--t2); transition: transform 160ms var(--ease); }
.lang-menu.open .lang-chev { transform: rotate(180deg); }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; margin: 0; padding: 8px; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); gap: 2px; width: min(340px, calc(100vw - 32px)); max-height: min(70vh, 420px); overflow: auto; background: rgba(13, 13, 31, 0.97); -webkit-backdrop-filter: var(--blur-md); backdrop-filter: var(--blur-md); border: 1px solid var(--border-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-lifted), 0 0 40px rgba(234, 179, 8, 0.06); outline: none; animation: langIn 140ms var(--ease); }
.lang-list li { padding: 8px 12px; border-radius: 10px; color: var(--t2); font-size: 0.9rem; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-list li.active { background: var(--glass-3); color: var(--t1); }
.lang-list li[aria-selected="true"] { color: var(--acc-h); background: var(--acc-dim); }
.lang-list li[aria-selected="true"].active { background: rgba(234, 179, 8, 0.18); }
@keyframes langIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 420px) { .lang-list { grid-template-columns: 1fr; } }
/* ── tab strip v3: five tabs, the active one expands (title + mute + play), the others stay compact ───────────── */
.demo-bar { gap: 8px; padding: 8px; }
.demo-tabs { display: flex; gap: 4px; flex: 1; min-width: 0; overflow: hidden; }
.demo-tab { flex: 0 0 auto; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 10px; border: 1px solid transparent; font-size: 0.74rem; color: var(--t3); background: transparent; cursor: pointer; transition: background 140ms var(--ease), color 140ms var(--ease), border-color 140ms var(--ease); }
.demo-tab:hover { background: var(--glass-2); color: var(--t2); }
.demo-tab:focus-visible { outline: 2px solid rgba(234, 179, 8, 0.7); outline-offset: 1px; }
.demo-tab[aria-selected="true"] { flex: 1 1 0; background: var(--glass-3); color: var(--t1); border-color: var(--border-normal); cursor: default; }
.demo-tab:not([aria-selected="true"]) .tab-title,
.demo-tab:not([aria-selected="true"]) .tab-audio { display: none; }
.tab-fav { transition: box-shadow 160ms var(--ease); }
.fav-cyber { color: #38bdf8; background: rgba(56, 189, 248, 0.16); }
.fav-lofi { color: var(--acc-h); background: rgba(234, 179, 8, 0.16); }
.fav-epic { color: #a78bfa; background: rgba(167, 139, 250, 0.16); }
.fav-funk { color: var(--grn); background: rgba(34, 211, 160, 0.16); }
.fav-rock { color: #fb7185; background: rgba(251, 113, 133, 0.16); }
.demo-tab.is-audible .tab-fav { box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.35); animation: favPulse 1.4s ease-in-out infinite; }
@keyframes favPulse { 0%, 100% { box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.15); } 50% { box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.5); } }
.demo-tab.is-paused .tab-fav { opacity: 0.6; }
@media (max-width: 560px) { .demo-tab[aria-selected="true"] .tab-title { display: none; } .demo-tab[aria-selected="true"] { flex: 0 0 auto; } }
/* inactive tabs never grow (an older per-tab rule used to widen tab 3) */
.demo-tab[data-tab]:not([aria-selected="true"]) { flex: 0 0 auto; }