/* ══════════════════════════════════════════════════════════════════
   MBAE — páginas de biografía
   Cada una es una ventana del escritorio que hace de navegador: barra
   de direcciones arriba y, dentro, una página con la estética de quien
   la firma. Son homenajes, no clones: la estructura y la paleta vienen
   de aquellos sitios, los nombres y las marcas son de amapola.
   ══════════════════════════════════════════════════════════════════ */

/* ── La ventana-navegador ──────────────────────────────────────────*/
.win--browser { width: min(900px, calc(100vw - 24px)); }
.win--browser .win-body {
  padding: 0;
  height: min(600px, calc(var(--pantalla-h) - 190px));
  background: #fff;
}
.ie-bar {
  flex: none; display: flex; align-items: center; gap: 6px;
  padding: 4px 6px;
  background: var(--xp-face);
  border-bottom: 1px solid var(--xp-border);
  font-size: 11px; color: var(--xp-text-soft);
}
.ie-nav { display: flex; gap: 2px; }
.ie-nav button {
  width: 22px; height: 20px; cursor: default;
  border: 1px solid transparent; border-radius: 3px;
  background: none; color: var(--xp-text-soft); font-size: 11px; line-height: 1;
}
.ie-nav button:hover { border-color: var(--xp-border); background: rgba(255,255,255,0.6); }
.ie-url {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 5px;
  padding: 2px 6px;
  background: #fff;
  border: 1px solid var(--xp-border-dark);
  box-shadow: inset 1px 1px 0 rgba(0,0,0,0.12);
  font-size: 11px; color: #333;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ie-url img { width: 12px; height: 12px; flex: none; }

/* la página misma: se desplaza dentro de la ventana */
.bio-page {
  height: 100%; overflow: auto;
  container-type: inline-size;
  font-size: 12px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.bio-page a { text-decoration: none; }
.bio-page a:hover { text-decoration: underline; }
.bio-page img { display: block; }

/* lo que falta por escribir va marcado, no inventado */
.bio-page .todo {
  color: inherit; opacity: 0.62;
  border-bottom: 1px dotted currentColor;
  font-style: italic;
}

/* ══════════════════════════════════════════════════════════════════
   KZA — KzaLeak
   Estructura de portal de vídeo crudo de 2014 sobre base oscura.
   Las capas van, de arriba abajo: salpicadura extra · texto · cristal
   roto · sangre cubriendo la pantalla. Las dos de abajo son capas de
   fondo del contenedor con desplazamiento, así que quedan clavadas al
   marco en vez de recortarse a mitad de la página como antes.
   ══════════════════════════════════════════════════════════════════ */
.bio-page--kza {
  --kz-red: #c1121a;
  --kz-red-hot: #ff2b2b;
  --kz-blood: url("/assets/mbae/tex/blood-wash.webp");
  position: relative;
  background:
    linear-gradient(180deg, rgba(8,7,8,0.74), rgba(8,7,8,0.84)),
    url("/assets/mbae/tex/glass-shatter.webp") 74% 26% / 118% auto no-repeat,
    url("/assets/mbae/tex/blood-spray.webp") center / cover no-repeat,
    radial-gradient(ellipse at 28% -10%, #3a0508 0%, #12080a 46%, #060607 100%);
  background-blend-mode: normal, screen, normal, normal;
  color: #e8e6e4;
  font-family: "Tahoma", Verdana, Geneva, sans-serif;
}
/* atenúa las dos capas de fondo sin tocar el texto */
.kz-glass { display: none; }
/* la salpicadura que va POR ENCIMA del texto: como el cuerpo se
   desplaza dentro de .win-body, cuelga de ahí para no recortarse */
#win-kza .win-body { position: relative; }
#win-kza .win-body::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: url("/assets/mbae/tex/blood-spray.webp") 18% 12% / 78% auto no-repeat;
  opacity: 0.20; mix-blend-mode: screen;
}
.kz-splatter {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: url("/assets/mbae/tex/blood-spray.webp") right -12% top 30% / 62% auto no-repeat;
  opacity: 0.16; mix-blend-mode: screen;
}
.bio-page--kza > *:not(.kz-glass):not(.kz-splatter) { position: relative; z-index: 2; }

/* Todo lo rojo del sitio es sangre, no un plano de color */
.kz-sitenav, .kz-safe, .kz-ticker, .kz-nav button[aria-selected="true"],
.kz-box-head, .kz-tile-tag {
  background-image: var(--kz-blood);
  background-size: cover; background-position: center;
  background-blend-mode: multiply;
  background-color: var(--kz-red);
}

/* ── Barra negra superior ──────────────────────────────────────────*/
.kz-topbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
  padding: 8px 14px;
  background: rgba(0,0,0,0.78);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 11px;
}
.kz-brand { display: block; line-height: 0; flex: none; }
.kz-brand img {
  height: clamp(24px, 3.2cqw, 38px); width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.7));
}
.kz-topbar-links { display: flex; align-items: center; gap: 8px; color: #8d8a87; }
.kz-topbar-links a { color: #dcdcdc; text-decoration: underline; }
.kz-topbar-links i { font-style: normal; color: #5a5754; }
.kz-btn {
  margin-left: auto;
  background: #fff; color: #0a0a0b; border: 0;
  padding: 6px 15px; cursor: pointer;
  font: inherit; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  transition: background 140ms ease, color 140ms ease;
}
.kz-btn:hover { background: var(--kz-red-hot); color: #fff; }
.kz-btn.is-on { background: var(--kz-red); color: #fff; }
.kz-safe { color: #fff; padding: 4px 10px;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.11em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}

/* ── Barra roja de pestañas del sitio ──────────────────────────────*/
.kz-sitenav {
  display: flex; align-items: flex-end; flex-wrap: wrap; gap: 2px;
  padding: 0 12px; border-bottom: 2px solid #000;
}
.kz-sitenav a {
  padding: 9px 18px; color: #fff; font-weight: 700; font-size: 12px;
  border-radius: 4px 4px 0 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.kz-sitenav a.is-on {
  background: #101012; color: #fff;
  box-shadow: inset 0 2px 0 var(--kz-red-hot);
}
.kz-sitenav a:not(.is-on):hover { background: rgba(0,0,0,0.28); text-decoration: none; }
.kz-search { margin-left: auto; display: flex; gap: 4px; padding: 5px 0; }
.kz-search input {
  border: 1px solid rgba(0,0,0,0.45); background: rgba(0,0,0,0.28); color: #fff;
  padding: 4px 7px; font: inherit; font-size: 11px; width: 128px;
}
.kz-search input::placeholder { color: rgba(255,255,255,0.5); }
.kz-search button {
  background: #101012; color: #fff; border: 0; padding: 4px 13px;
  font: inherit; font-size: 11px; font-weight: 700; cursor: pointer;
}
.kz-search button:hover { background: #000; }

/* ── Fila de categorías ────────────────────────────────────────────*/
.kz-cats {
  display: flex; flex-wrap: wrap; gap: 0 6px;
  padding: 7px 14px; background: rgba(0,0,0,0.55);
  border-bottom: 2px solid var(--kz-red);
  font-size: 11px;
}
.kz-cats a { color: #b8b4b1; }
.kz-cats a:hover { color: #fff; }
.kz-cats a:not(:last-child)::after { content: " |"; color: #4d4a47; }

/* ── Cinta que corre ───────────────────────────────────────────────*/
.kz-ticker { overflow: hidden; color: #fff; padding: 6px 0; border-bottom: 2px solid #000; }
.kz-ticker-run {
  display: flex; gap: 22px; white-space: nowrap; width: max-content;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.18em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  animation: kzRun 26s linear infinite;
}
@keyframes kzRun { to { transform: translateX(-50%); } }

/* ── La hoja: contenido + lateral ──────────────────────────────────*/
.kz-sheet {
  display: grid; grid-template-columns: minmax(0,1fr) 216px; gap: 20px;
  padding: 18px 16px 22px; align-items: start;
}

/* El mismo tope que .tb-wrap en MbaeTube: maximizar la ventana revela
   más fondo a los lados, no estira la hoja. Las barras de arriba y la
   franja de la tienda siguen a todo lo ancho —así eran los portales,
   cromo de orilla a orilla y el contenido en una columna—, así que el
   tope va por dentro de la tienda, no sobre ella. */
.kz-sheet, .kz-foot,
.kz-shop-head, .kz-tiles {
  max-width: 900px; margin-left: auto; margin-right: auto;
}
.kz-name {
  margin: 0; line-height: 0.86;
  font-family: "SKID", Impact, sans-serif;
  font-size: clamp(38px, 7cqw, 66px);
  color: #fff; letter-spacing: 0.01em;
  text-shadow: 3px 3px 0 var(--kz-red), 6px 6px 0 rgba(0,0,0,0.6);
}
.kz-tag {
  margin: 10px 0 0; font-size: 10.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: #cbc7c4;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}
.kz-lede {
  margin: 12px 0 16px; font-size: 12.5px; line-height: 1.65;
  color: #ddd9d6; max-width: 62ch;
  text-shadow: 0 1px 5px rgba(0,0,0,0.95);
}

/* El retrato, tratado como material de archivo */
.kz-hero-art {
  position: relative; overflow: hidden;
  height: 250px; display: grid; place-items: center;
  background: radial-gradient(ellipse at center, #1c1c1e, #000 72%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.55), 0 14px 36px rgba(0,0,0,0.75);
}
.kz-hero-art img {
  width: 172px; height: 172px; object-fit: cover;
  image-rendering: pixelated;
  filter: grayscale(0.5) contrast(1.18) brightness(1.06);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.16), 0 8px 26px rgba(0,0,0,0.85);
  transition: filter 220ms ease, transform 220ms ease;
}
.kz-hero-art:hover img { filter: grayscale(0) contrast(1.3) brightness(1.1); transform: scale(1.04); }
.kz-hero-art::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    url("/assets/mbae/tex/glass-scratch.webp") center / cover,
    repeating-linear-gradient(180deg, rgba(0,0,0,0.28) 0 1px, transparent 1px 3px);
  background-blend-mode: screen, normal;
  opacity: 0.45;
}
.kz-rec {
  position: absolute; left: 10px; top: 9px; z-index: 3;
  display: flex; align-items: center; gap: 5px;
  font-size: 9.5px; letter-spacing: 0.18em; color: #fff; text-shadow: 0 1px 4px #000;
}
.kz-rec i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--kz-red-hot);
  box-shadow: 0 0 9px var(--kz-red-hot); animation: kzBlink 1.3s steps(1) infinite;
}
@keyframes kzBlink { 50% { opacity: 0.15; } }
.kz-tc {
  position: absolute; right: 10px; bottom: 9px; z-index: 3;
  font-size: 10px; font-variant-numeric: tabular-nums; color: #fff;
  text-shadow: 0 1px 4px #000;
}
.kz-meters {
  position: absolute; left: 10px; bottom: 9px; z-index: 3;
  display: flex; gap: 3px; align-items: flex-end; height: 22px;
}
.kz-meter {
  width: 15px; height: 100%; display: block; position: relative;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
}
.kz-meter i {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: calc(var(--v, 40) * 1%);
  background: linear-gradient(180deg, var(--kz-red-hot), var(--kz-red));
  transition: height 380ms cubic-bezier(.3,.9,.3,1);
}

/* Enlaces reales a los perfiles, donde LiveLeak ponía los contadores */
.kz-share { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 0; }
.kz-share a {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  padding: 4px 12px 4px 5px; font-size: 11px; color: #cfccc9;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.kz-share a:hover { background: rgba(193,18,26,0.34); border-color: var(--kz-red); color: #fff; text-decoration: none; }
.kz-share img { width: 20px; height: 20px; }

/* ── Pestañas de contenido ─────────────────────────────────────────*/
.kz-nav { display: flex; flex-wrap: wrap; margin: 18px 0 0; border-bottom: 2px solid var(--kz-red); }
.kz-nav button {
  background: none; border: 0; cursor: pointer;
  padding: 9px 20px; font: inherit; font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; color: #8d8a87;
  transition: color 140ms ease, background 140ms ease;
}
.kz-nav button:hover { color: #fff; background: rgba(193,18,26,0.22); }
.kz-nav button[aria-selected="true"] { color: #fff; }

.kz-panel { padding: 15px 2px 4px; font-size: 12.5px; line-height: 1.7; color: #cfccc9; }
.kz-panel[hidden] { display: none; }
.kz-panel p { margin: 0 0 11px; max-width: 66ch; }
.kz-quote {
  border-left: 3px solid var(--kz-red); padding-left: 12px;
  color: #fff; font-size: 14px; font-style: italic;
}
/* La tabla, con el aire de un «Item Info» */
.kz-facts { border-collapse: collapse; font-size: 12px; }
.kz-facts th {
  text-align: left; vertical-align: top; padding: 4px 16px 4px 0;
  color: #fff; font-weight: 700; white-space: nowrap;
}
.kz-facts td { padding: 4px 0; color: #b8b4b1; }
.kz-facts a { color: var(--kz-red-hot); }
.kz-hitrow {
  display: flex; align-items: center; gap: 10px; margin-top: 16px !important;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #7e7b78;
}
.kz-hits { display: flex; gap: 2px; }
.kz-hits i {
  background: #000; color: var(--kz-red-hot); border: 1px solid #2a2a2a;
  padding: 2px 5px; font-style: normal; font-size: 12px;
  font-variant-numeric: tabular-nums; text-shadow: 0 0 7px var(--kz-red-hot);
}
.kz-links { display: flex; flex-wrap: wrap; gap: 8px; }
.kz-link {
  border: 1px solid rgba(255,255,255,0.22); color: #fff;
  padding: 8px 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}
.kz-link:hover { background: var(--kz-red); border-color: var(--kz-red); text-decoration: none; transform: translateY(-1px); }

.kz-notice {
  margin-top: 18px; border: 2px solid var(--kz-red); padding: 11px 13px;
  text-align: center; font-size: 11.5px; color: #cfccc9;
  background: rgba(0,0,0,0.45);
}
.kz-notice a { color: var(--kz-red-hot); font-weight: 700; }

/* ── Columna lateral ───────────────────────────────────────────────*/
.kz-box { border: 1px solid rgba(255,255,255,0.13); margin-bottom: 13px; background: rgba(0,0,0,0.45); }
.kz-box-head {
  color: #fff; padding: 5px 9px; font-size: 11px; font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.kz-box-body { padding: 8px; }
.kz-rel {
  display: flex; gap: 8px; padding: 6px 0; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.kz-rel:last-child { border-bottom: 0; }
.kz-rel img {
  width: 54px; height: 40px; object-fit: cover; flex: none; background: #000;
  filter: grayscale(0.45); transition: filter 200ms ease;
}
.kz-rel:hover img { filter: none; }
.kz-rel span { font-size: 11px; color: var(--kz-red-hot); line-height: 1.35; }
.kz-sidelinks { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; }
.kz-sidelinks a { color: var(--kz-red-hot); }
.kz-ads { font-size: 11px; color: #7e7b78; line-height: 1.6; }

/* ── La tienda ─────────────────────────────────────────────────────*/
.kz-shop { padding: 16px 16px 20px; background: rgba(0,0,0,0.55); border-top: 2px solid var(--kz-red); }
.kz-shop-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 13px; }
.kz-shop-head b {
  font-family: "SKID", Impact, sans-serif; font-size: 24px; color: #fff;
  letter-spacing: 0.03em; text-shadow: 2px 2px 0 var(--kz-red);
}
.kz-shop-head span { font-size: 10px; letter-spacing: 0.2em; color: #8d8a87; }
.kz-tiles { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.kz-tile { display: block; }
.kz-tile-link { display: block; color: #e8e6e4; }
.kz-tile-url {
  display: block; text-align: center; font-size: 9px; letter-spacing: 0.1em;
  color: #8d8a87; margin-bottom: 6px;
}
.kz-tile-art {
  display: block; position: relative; aspect-ratio: 1; overflow: hidden;
  background: #000; border: 1px solid rgba(255,255,255,0.14);
}
.kz-tile-art img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.5) contrast(1.1);
  transition: filter 200ms ease, transform 260ms ease;
}
.kz-tile:hover .kz-tile-art img { filter: none; transform: scale(1.06); }
.kz-tile-tag {
  position: absolute; left: 0; top: 0; color: #fff; padding: 2px 7px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
}
.kz-tile b {
  display: block; margin: 7px 0 3px; font-size: 11.5px; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kz-tile:hover b { color: var(--kz-red-hot); }

.kz-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding: 12px 16px 18px; font-size: 10px; letter-spacing: 0.1em;
  color: #6d6a67; border-top: 1px solid rgba(255,255,255,0.08);
}

/* ── Estrellas (las usan las tres plantillas) ──────────────────────*/
.kz-stars, .tb-stars, .nv-stars { display: inline-flex; gap: 1px; }
.bp-star {
  background: none; border: 0; padding: 0 1px; cursor: pointer;
  font-size: 12px; line-height: 1; color: rgba(160,160,160,0.4);
  transition: color 120ms ease, transform 120ms ease;
}
.bp-star:hover { transform: scale(1.25); }
.bp-star.is-on { color: var(--kz-red-hot, #ffcc33); }
.tb-stars .bp-star.is-on, .nv-stars .bp-star.is-on { color: var(--tb-accent, #ffcc33); }
.is-voted .bp-star.is-on { animation: kzPop 420ms ease; }
@keyframes kzPop { 40% { transform: scale(1.5) rotate(-8deg); } }

@media (prefers-reduced-motion: reduce) {
  .kz-ticker-run { animation: none; }
  .kz-rec i { animation: none; }
}

/* ══════════════════════════════════════════════════════════════════
   QWERTY y EDEL — canal de vídeo de 2009. Mismo esqueleto, dos pieles.
   ══════════════════════════════════════════════════════════════════ */
.bio-page--tube {
  --tb-page: #b9cfe2;
  --tb-pattern: rgba(255,255,255,0.35);
  --tb-chrome: #ffffff;
  --tb-chrome-text: #333333;
  --tb-head: #7ea832;
  --tb-head-text: #ffffff;
  --tb-panel: #5b87a8;
  --tb-panel-alt: #4d7691;
  --tb-text: #f2f6f9;
  --tb-soft: #cfe0ec;
  --tb-link: #ffffff;
  --tb-accent: #ffcc33;
  --tb-line: rgba(255,255,255,0.22);
  background:
    repeating-linear-gradient(135deg, var(--tb-pattern) 0 2px, transparent 2px 9px),
    var(--tb-page);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--tb-text);
}
.bio-page--tube.is-dark {
  --tb-page: #0c0d10;
  --tb-pattern: rgba(255,255,255,0.045);
  --tb-chrome: #16181d;
  --tb-chrome-text: #b9bec6;
  --tb-head: #8a6a1e;
  --tb-head-text: #ffeab8;
  --tb-panel: #1a1d23;
  --tb-panel-alt: #14161b;
  --tb-text: #d9d6cd;
  --tb-soft: #8f8d86;
  --tb-link: #e8c274;
  --tb-accent: #d9a441;
  --tb-line: rgba(255,255,255,0.09);
}

.tb-top {
  display: flex; align-items: center; gap: 12px; padding: 7px 12px;
  background: var(--tb-chrome); color: var(--tb-chrome-text); font-size: 11px;
  border-bottom: 1px solid rgba(0,0,0,0.18);
}
.tb-logo { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 15px; }
.tb-logo img { width: 22px; height: 22px; }
.tb-logo b { background: var(--tb-head); color: var(--tb-head-text); padding: 1px 6px; border-radius: 3px; }
.tb-top a { color: var(--tb-chrome-text); }
.tb-top nav { display: flex; gap: 9px; }
.tb-top .tb-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tb-top input {
  border: 1px solid rgba(0,0,0,0.3); padding: 2px 6px; font: inherit; font-size: 11px; width: 120px;
  background: var(--tb-chrome); color: var(--tb-chrome-text);
}

.tb-banner {
  margin: 10px 12px; padding: 14px 18px;
  background: linear-gradient(90deg, var(--tb-panel), var(--tb-panel-alt));
  border: 1px solid var(--tb-line);
  display: flex; align-items: center; gap: 16px;
}
.tb-banner img { width: 64px; height: 64px; border: 2px solid var(--tb-line); flex: none; object-fit: cover; }
.tb-banner h2 { margin: 0; font-size: 22px; color: var(--tb-accent); letter-spacing: 0.02em; }
.tb-banner p { margin: 3px 0 0; font-size: 11.5px; color: var(--tb-soft); }

.tb-tabs {
  margin: 0 12px; padding: 6px 11px; display: flex; gap: 16px; flex-wrap: wrap;
  background: var(--tb-panel-alt);
  border: 1px solid var(--tb-line);
  font-size: 11px;
}
.tb-tabs a { color: var(--tb-soft); }
.tb-tabs a.is-on { color: var(--tb-accent); font-weight: 700; }

.tb-grid {
  display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 12px;
  padding: 12px; align-items: start;
}
.tb-box { border: 1px solid var(--tb-line); margin-bottom: 12px; }
.tb-box-head {
  background: var(--tb-head); color: var(--tb-head-text);
  padding: 4px 8px; font-size: 11.5px; font-weight: 700;
  display: flex; justify-content: space-between; gap: 8px;
}
.tb-box-head a { color: var(--tb-head-text); font-weight: 400; font-size: 10.5px; }
.tb-box-head .tb-count { color: var(--tb-head-text); font-weight: 400; font-size: 10.5px; opacity: 0.85; }
.tb-box-body { background: var(--tb-panel); padding: 9px; }
.tb-box-body a { color: var(--tb-link); }

.tb-profile { display: flex; gap: 9px; }
.tb-profile img { width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--tb-line); flex: none; }
.tb-profile .tb-name { font-size: 13px; font-weight: 700; color: var(--tb-accent); margin: 0 0 3px; }
.tb-fields { font-size: 11px; line-height: 1.6; }
.tb-fields b { color: var(--tb-soft); font-weight: 400; }
.tb-fields span { color: var(--tb-text); }
.tb-fields .tb-row { display: flex; gap: 5px; }
.tb-quote {
  margin: 9px 0 0; padding-top: 8px; border-top: 1px solid var(--tb-line);
  font-size: 11.5px; color: var(--tb-soft); font-style: italic;
}
.tb-links { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; }
.tb-links a { color: var(--tb-link); }
.tb-links a[aria-disabled="true"] { color: var(--tb-soft); opacity: 0.6; cursor: default; }
.tb-links a[aria-disabled="true"]:hover { text-decoration: none; }

.tb-activity { display: flex; flex-direction: column; gap: 9px; font-size: 11px; }
.tb-act { display: flex; gap: 7px; }
.tb-act img { width: 40px; height: 30px; object-fit: cover; flex: none; border: 1px solid var(--tb-line); }
.tb-act b { color: var(--tb-accent); font-weight: 700; display: block; }
.tb-act span { color: var(--tb-soft); }

/* el reproductor destacado */
.tb-player { background: #000; aspect-ratio: 16/9; position: relative; overflow: hidden; }
.tb-player img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.tb-caption {
  background: var(--tb-panel-alt); padding: 7px 9px; font-size: 11px; color: var(--tb-soft);
  border: 1px solid var(--tb-line); border-top: 0;
}
.tb-caption b { color: var(--tb-text); display: block; font-size: 12px; }

.tb-videos { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.tb-vid { font-size: 10.5px; color: var(--tb-soft); }
.tb-thumb { position: relative; background: #000; aspect-ratio: 4/3; overflow: hidden; }
.tb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tb-thumb span {
  position: absolute; right: 3px; bottom: 3px;
  background: rgba(0,0,0,0.78); color: #fff; padding: 0 3px; font-size: 9.5px;
}
.tb-vid b { display: block; margin-top: 4px; color: var(--tb-link); font-size: 11px; font-weight: 700; }
.tb-stars { color: var(--tb-accent); letter-spacing: 1px; font-size: 10px; }

.tb-comments { display: flex; flex-direction: column; }
.tb-comment {
  display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--tb-line); font-size: 11.5px;
}
.tb-comment:last-child { border-bottom: 0; }
.tb-comment img { width: 34px; height: 34px; object-fit: cover; flex: none; border: 1px solid var(--tb-line); }
.tb-comment b { color: var(--tb-link); }
.tb-comment .tb-when { color: var(--tb-soft); font-size: 10.5px; }
.tb-comment p { margin: 2px 0 0; color: var(--tb-text); }

/* silueta gris genérica: la usan tanto los comentarios publicados
   como el bloque de Suscriptores. No son fotos de nadie —lo dice el
   propio dibujo— así que no hay nada que fingir. */
.tb-avatar-blank, .tb-avatar-ph {
  background-color: var(--tb-panel-alt);
  background-image:
    radial-gradient(circle at 50% 37%, var(--tb-soft) 0 17%, transparent 18%),
    radial-gradient(ellipse 46% 34% at 50% 108%, var(--tb-soft) 0 100%, transparent 100%);
  background-repeat: no-repeat;
  opacity: 0.85;
}

/* ── Suscriptores: cuadrícula de siluetas + el contador real ──────*/
.tb-subs-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.tb-avatar-ph {
  width: 44px; height: 44px; flex: none;
  border: 1px solid var(--tb-line);
}
.tb-subs-count {
  margin-top: 8px; font-size: 11px; color: var(--tb-soft);
}
.tb-subs-count b { color: var(--tb-text); }

/* ── El bloque de canal deja de estirarse cuando la ventana crece:
   el contenido se queda en una columna fija, como YouTube de 2010 —
   maximizar la ventana revela más fondo a los lados, no más ancho. ─*/
.tb-wrap { max-width: 900px; margin: 0 auto; }

/* ── Capas nuevas de la plantilla de canal ────────────────────────*/
.tb-banner { position: relative; }
.tb-banner-text { min-width: 0; }
.tb-banner-cta { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.tb-subs { font-size: 11px; color: var(--tb-soft); }
.tb-subs b { color: var(--tb-text); }
.tb-hits {
  position: absolute; right: 10px; top: 10px; display: flex; gap: 2px;
}
.tb-hits i {
  background: rgba(0,0,0,0.55); color: var(--tb-accent);
  border: 1px solid var(--tb-line); padding: 1px 4px;
  font-style: normal; font-size: 10px; font-variant-numeric: tabular-nums;
}

/* el reproductor: ahora responde */
.tb-player.is-playing img { animation: tbBreathe 6s ease-in-out infinite; }
@keyframes tbBreathe { 50% { transform: scale(1.025); } }
.tb-player img { transition: transform 400ms ease; }
.tb-scan {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,0.28) 0 1px, transparent 1px 3px);
  transition: opacity 300ms ease;
}
.tb-player.is-playing .tb-scan { opacity: 1; }


/* ══════════════════════════════════════════════════════════════════
   La barra del reproductor de 2009
   El PNG es la barra entera; lo interactivo se coloca encima en
   porcentajes medidos contra el arte (2946×114, proporción 25.84),
   igual que el skin del Winamp. Al asset se le borró el «0:00 / 2:09»
   que traía grabado, para poner ahí el contador de verdad.
   ══════════════════════════════════════════════════════════════════ */
.tb-player-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  aspect-ratio: 25.84;
  background: url("/assets/mbae/ui/playbar.webp") center / 100% 100% no-repeat;
  container-type: inline-size;
}
/* El dibujo trae la pausa. Al estar parado, se tapa con el degradado
   propio de la barra —muestreado del PNG— y se pinta el triángulo. */
.tb-play {
  position: absolute; left: 0.5%; top: 4%; width: 4.2%; height: 92%;
  background: none; border: 0; padding: 0; cursor: pointer; font-size: 0;
}
.tb-play::before, .tb-play::after {
  content: ""; position: absolute;
  transition: opacity 120ms ease;
}
.tb-play::before {                       /* el parche que tapa la pausa */
  inset: 0;
  background: linear-gradient(180deg, #c5c5c5 0%, #f2f2f2 25%, #c4c4c4 50%, #d7d7d7 75%, #d0d0d0 100%);
}
.tb-play::after {                        /* el triángulo */
  left: 34%; top: 50%; width: 34%; aspect-ratio: 0.86;
  transform: translateY(-50%);
  background: #3f3f3f;
  clip-path: polygon(0 0, 0 100%, 100% 50%);
}
.tb-player.is-playing .tb-play::before,
.tb-player.is-playing .tb-play::after { opacity: 0; }
.tb-play:hover::after { background: #000; }
.tb-play:focus-visible { outline: 2px solid #6a9fd4; outline-offset: 1px; }

/* El carril arranca donde acaba la perilla en reposo */
.tb-seek {
  position: absolute; left: 6.53%; width: 63.4%; top: 30%; height: 40%;
  cursor: pointer;
}
.tb-seek::before {          /* zona de clic más alta que el carril */
  content: ""; position: absolute; left: 0; right: 0; top: -140%; bottom: -140%;
}
.tb-seek i {
  position: absolute; left: 0; top: 26%; height: 48%; width: 0;
  background: linear-gradient(180deg, #cfcfcf, #a8a8a8);
  border-radius: 1px;
}
.tb-knob {
  position: absolute; top: 50%; left: 0; width: 4.02%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fdfdfd, #d2d2d2 52%, #9a9a9a 78%, #6f6f6f);
  box-shadow: 0 1px 2px rgba(0,0,0,0.45);
  pointer-events: none;
}
.tb-seek:focus-visible { outline: 2px solid #6a9fd4; outline-offset: 4px; }

/* Donde estaba el tiempo grabado */
.tb-clock {
  position: absolute; left: 70.2%; width: 9.4%; top: 50%;
  transform: translateY(-50%);
  text-align: center; color: #3d3d3d;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(7px, 2.4cqw, 13px); line-height: 1;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* El vídeo deja sitio a la barra */
.tb-player { aspect-ratio: auto; padding-bottom: 3.87%; background: #000; }
.tb-player > img { height: auto; aspect-ratio: 16/9; }

/* miniaturas con vida */
.tb-vid .tb-thumb img { transition: transform 300ms ease, filter 300ms ease; }
.tb-vid:hover .tb-thumb img { transform: scale(1.08); filter: brightness(1.12); }
.tb-vid:hover b { text-decoration: underline; }
.tb-vid { display: block; }

/* comentarios que se pueden escribir */
.tb-post { display: flex; gap: 6px; margin-bottom: 10px; }
.tb-post textarea {
  flex: 1; min-width: 0; resize: vertical; font: inherit; font-size: 11.5px;
  padding: 5px 7px; background: var(--tb-panel-alt); color: var(--tb-text);
  border: 1px solid var(--tb-line);
}
.tb-post textarea::placeholder { color: var(--tb-soft); opacity: 0.75; }
.tb-post button {
  background: var(--tb-head); color: var(--tb-head-text); border: 0; cursor: pointer;
  padding: 0 14px; font: inherit; font-size: 11px; font-weight: 700; border-radius: 3px;
  align-self: stretch;
}
.tb-post button:hover { filter: brightness(1.12); }
.tb-empty { margin: 0; font-size: 11.5px; color: var(--tb-soft); }
.tb-avatar-blank {
  width: 34px; height: 34px; flex: none; border: 1px solid var(--tb-line);
  background: var(--tb-panel-alt);
}
/* ══════════════════════════════════════════════════════════════════
   nava.exe — CHILTEPÍN STUDIO
   No es una página metida en un navegador: es un DAW, y ahora sí con
   la cara del FL Studio viejo: gris metálico, bisel en absolutamente
   todo (claro arriba-izquierda, oscuro abajo-derecha), pantallas LCD
   hundidas, pasos granates y el mixer abajo moviéndose solo. El
   chiltepín ocupa el lugar del logo redondo naranja.
   Por eso esta ventana no lleva barra de direcciones.
   ══════════════════════════════════════════════════════════════════ */
.win--daw { width: min(940px, calc(100vw - 24px)); }
.win--daw .win-body {
  padding: 0; overflow: hidden;
  height: min(620px, calc(var(--pantalla-h) - 190px));
  background: #585858;
  border-color: #2e2e2e;
  display: flex; flex-direction: column;
}

.daw a { text-decoration: none; color: inherit; }
.daw a:hover { text-decoration: none; }
.daw {
  --dw-face:   #6e6e6e;   /* gris de la carcasa */
  --dw-face-2: #5e5e5e;   /* paneles */
  --dw-deep:   #2b2b2b;   /* lo hundido: rejillas, playlist */
  --dw-line:   #333;
  --dw-edge:   #9c9c9c;   /* filo claro del bisel */
  --dw-text:   #ebebeb;
  --dw-dim:    #b3b3b3;
  --dw-lcd:    #8dff7e;   /* verde de pantalla */
  --dw-hot:    #ff8a1e;   /* naranja FL */
  --dw-step:   #6b3f3c;   /* granate de los pasos */
  font-family: "Tahoma", Verdana, Geneva, sans-serif;
  color: var(--dw-text);
  font-size: 11px;
  background: var(--dw-face);
}

/* El bisel es LA textura de FL: se repite tantas veces que vale la
   pena tenerlo en una sola declaración. */
.daw-bevel,
.daw-menubar, .daw-toolbar, .daw-transport,
.daw-tool-group, .daw-news, .daw-panel,
.daw-ch-name, .daw-mode button, .daw-mix-strip {
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.26),
    inset -1px -1px 0 rgba(0,0,0,0.42);
}
/* …y su inverso para lo hundido (pantallas, rejillas, listas) */
.daw-sunken,
.daw-lcd, .daw-tempo, .daw-rack-body, .daw-pl-body,
.daw-browser-list, .daw-track, .daw-mix-meter, .daw-doc-body {
  box-shadow:
    inset 1px 1px 0 rgba(0,0,0,0.5),
    inset -1px -1px 0 rgba(255,255,255,0.14);
}

/* ── Menú ──────────────────────────────────────────────────────────*/
.daw-menubar {
  flex: none; display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
  padding: 3px 6px;
  background: linear-gradient(180deg, #787878, #656565);
  border-bottom: 1px solid var(--dw-line);
}
.daw-logo { display: block; line-height: 0; margin-right: 7px; }
.daw-logo svg { width: 19px; height: 19px; display: block; }
/* el chiltepín respira: es lo único vivo de la barra */
.daw-logo svg .chp-body { transform-origin: 50% 60%; animation: chp-pulse 3.4s ease-in-out infinite; }
@keyframes chp-pulse {
  0%, 100% { transform: scale(1); filter: none; }
  50%      { transform: scale(1.06); filter: drop-shadow(0 0 4px rgba(255,90,40,0.75)); }
}
.daw-menu-item {
  padding: 2px 7px; font-size: 10.5px; letter-spacing: 0.04em;
  color: #1d1d1d; cursor: default;
  text-shadow: 0 1px 0 rgba(255,255,255,0.32);
}
.daw-menu-item:hover { background: #3f6b9c; color: #fff; text-shadow: none; }

/* ── Barra de herramientas: los bloques de iconos del FL viejo ─────*/
.daw-toolbar {
  flex: none; display: flex; align-items: stretch; gap: 5px; flex-wrap: wrap;
  padding: 4px 6px;
  background: linear-gradient(180deg, #757575, #616161);
  border-bottom: 1px solid var(--dw-line);
}
.daw-tool-group {
  display: flex; align-items: center; gap: 3px;
  padding: 3px 5px;
  background: linear-gradient(180deg, #6f6f6f, #5c5c5c);
}
/* cada "icono" es un cuadrito biselado con un glifo: no finge ser un
   PNG que no tengo, pero a 22px da exactamente el ruido visual que la
   barra de FL necesita para leerse como barra de FL */
.daw-tool {
  width: 21px; height: 19px; flex: none;
  display: grid; place-items: center;
  font-size: 10px; line-height: 1; color: #f0f0f0;
  background: linear-gradient(180deg, #4a5a6b, #33404e);
  border: 1px solid #2a333d;
  text-shadow: 0 1px 1px rgba(0,0,0,0.6);
  cursor: default;
}
.daw-tool--warm { background: linear-gradient(180deg, #7a5238, #543425); border-color: #3a2418; }
.daw-tool--lit  { background: linear-gradient(180deg, #d8862f, #a75d18); border-color: #6d3a0c; color: #fff8ee; }
.daw-tool:hover { filter: brightness(1.25); }
.daw-news {
  flex: 1; min-width: 150px; display: flex; align-items: center; gap: 7px;
  padding: 3px 8px;
  background: linear-gradient(180deg, #6f6f6f, #5c5c5c);
  color: #2a2a2a; font-size: 10.5px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
}
.daw-news::before {
  content: ""; width: 13px; height: 13px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #bfe6ff, #3f7fae 70%, #1e4a6b);
  box-shadow: inset -1px -1px 2px rgba(0,0,0,0.4);
}
.daw-news b { margin-left: auto; font-weight: 400; color: #4a4a4a; }

.daw-hint {
  flex: none; padding: 3px 10px;
  background: var(--dw-deep); border-bottom: 1px solid #1e1e1e;
  font-size: 10.5px; color: var(--dw-lcd);
  font-family: "Courier New", monospace;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.6);
}

/* ── Transporte ────────────────────────────────────────────────────*/
.daw-transport {
  flex: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 6px 8px;
  background: linear-gradient(180deg, #737373, #5f5f5f);
  border-bottom: 1px solid var(--dw-line);
}
.daw-lcd, .daw-tempo {
  display: flex; align-items: baseline; gap: 6px;
  padding: 4px 9px;
  background: #10160f;
  border: 1px solid #05080a;
}
.daw-lcd-label, .daw-tempo-label {
  font-size: 8px; letter-spacing: 0.16em; color: #4e7a4a;
}
.daw-lcd-time {
  font-family: "Courier New", monospace; font-size: 17px; letter-spacing: 0.06em;
  color: var(--dw-lcd); text-shadow: 0 0 9px rgba(120,255,110,0.5);
  font-variant-numeric: tabular-nums;
}
.daw-tempo { cursor: ns-resize; }
.daw-tempo-val {
  font-family: "Courier New", monospace; font-size: 17px;
  color: var(--dw-lcd); text-shadow: 0 0 8px rgba(120,255,110,0.45);
  font-variant-numeric: tabular-nums;
}
.daw-tempo-dec { font-family: "Courier New", monospace; font-size: 11px; color: rgba(141,255,126,0.5); }
.daw-tempo:focus-visible { outline: 2px solid var(--dw-lcd); outline-offset: 2px; }

.daw-controls { display: flex; align-items: center; gap: 4px; }
.daw-tp {
  position: relative; width: 27px; height: 23px; flex: none;
  background: linear-gradient(180deg, #6f6f6f, #565656);
  border: 1px solid #2f2f2f; cursor: pointer;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.28), inset -1px -1px 0 rgba(0,0,0,0.4);
}
.daw-tp:hover { filter: brightness(1.18); }
.daw-tp:active { box-shadow: inset 0 2px 4px rgba(0,0,0,0.55); }
.daw-tp::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.daw-tp--play::before {
  width: 0; height: 0; border-left: 10px solid #d8ffd0;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
  margin-left: 2px;
}
.daw-tp--play[aria-pressed="true"] { background: linear-gradient(180deg, #57a86d, #2f7346); }
.daw-tp--play[aria-pressed="true"]::before { border-left-color: #f2fff2; }
.daw-tp--stop::before { width: 10px; height: 10px; background: #dcdcdc; }
.daw-tp--rec::before { width: 11px; height: 11px; border-radius: 50%; background: #9c5a52; }
.daw-tp--rec[aria-pressed="true"]::before { background: #ff3b30; box-shadow: 0 0 9px #ff3b30; }
.daw-tp:focus-visible { outline: 2px solid var(--dw-lcd); outline-offset: 2px; }

.daw-mode { display: flex; margin-left: 3px; }
.daw-mode button {
  padding: 3px 8px; font: inherit; font-size: 9.5px; letter-spacing: 0.1em;
  border: 1px solid #2f2f2f; background: linear-gradient(180deg, #6d6d6d, #565656);
  color: #dcdcdc; cursor: pointer;
}
.daw-mode button.is-on {
  background: linear-gradient(180deg, #ffa845, var(--dw-hot));
  color: #241004; text-shadow: 0 1px 0 rgba(255,255,255,0.3);
}

.daw-meters { display: flex; flex-direction: column; gap: 3px; }
.daw-meter { display: flex; align-items: center; gap: 6px; font-size: 8.5px; letter-spacing: 0.12em; color: #2e2e2e; text-shadow: 0 1px 0 rgba(255,255,255,0.3); }
.daw-meter b { width: 24px; font-weight: 400; }
.daw-track {
  width: 76px; height: 9px; background: #14180f; border: 1px solid #0a0d08;
  overflow: hidden;
}
.daw-track i {
  display: block; height: 100%;
  background: repeating-linear-gradient(90deg, var(--dw-lcd) 0 3px, transparent 3px 5px);
  transition: width 400ms ease;
}
.daw-master { margin-left: auto; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.daw-master b { font-size: 8px; letter-spacing: 0.16em; color: #2e2e2e; font-weight: 400; text-shadow: 0 1px 0 rgba(255,255,255,0.3); }
.daw-fader {
  display: block; width: 88px; height: 13px; position: relative;
  background: linear-gradient(180deg, #3a3a3a, #4c4c4c);
  border: 1px solid #2b2b2b;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}
.daw-fader i {
  position: absolute; top: -2px; bottom: -2px; width: 9px;
  left: calc(var(--v) * 1%); transform: translateX(-50%);
  background: linear-gradient(180deg, #cfcfcf, #7d7d7d);
  border: 1px solid #2f2f2f;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.5);
}

/* ── Cuerpo ────────────────────────────────────────────────────────*/
.daw-body { flex: 1; min-height: 0; display: flex; }

/* Navegador: el árbol de carpetas del FL viejo. Las cuatro secciones
   del texto viven aquí, como carpetas —igual que el lateral de
   MbaeTube—, y debajo cuelga el contenido real del disco duro. */
.daw-browser {
  width: 176px; flex: none; display: flex; flex-direction: column;
  background: var(--dw-face-2); border-right: 1px solid var(--dw-line);
}
.daw-browser-head {
  flex: none; display: flex; align-items: center; gap: 5px;
  padding: 3px 6px; font-size: 10px; color: #1d1d1d;
  background: linear-gradient(180deg, #7b7b7b, #666);
  border-bottom: 1px solid var(--dw-line);
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
}
.daw-browser-head::after {
  content: "▾"; margin-left: auto; font-size: 9px; opacity: 0.7;
}
.daw-browser-list {
  flex: 1; min-height: 0; overflow-y: auto;
  background: #4f4f4f; padding: 2px 0;
}
.daw-browser button {
  display: flex; align-items: center; gap: 6px; width: 100%;
  padding: 3px 8px; font: inherit; font-size: 11px; text-align: left;
  background: none; border: 0; color: #ededed; cursor: pointer;
}
.daw-browser button i {
  width: 13px; height: 11px; flex: none;
  background: linear-gradient(180deg, #f0c96a, #c48f2a);
  border: 1px solid #7d5a12;
  border-radius: 1px 2px 1px 1px;
  position: relative;
}
.daw-browser button i::before {
  content: ""; position: absolute; left: 0; top: -3px; width: 6px; height: 3px;
  background: linear-gradient(180deg, #f0c96a, #d5a53f);
  border: 1px solid #7d5a12; border-bottom: 0; border-radius: 1px 1px 0 0;
}
.daw-browser button:hover { background: rgba(255,255,255,0.09); }
.daw-browser button[aria-selected="true"] { background: #3f6b9c; color: #fff; }

/* los archivos "del disco": chrome, no información de nadie */
.daw-browser-files { border-top: 1px solid rgba(0,0,0,0.28); margin-top: 3px; padding-top: 3px; }
.daw-browser-files span {
  display: flex; align-items: center; gap: 6px;
  padding: 2px 8px; font-size: 10.5px; color: #cfcfcf;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.daw-browser-files span::before {
  content: ""; width: 11px; height: 11px; flex: none;
  background: linear-gradient(180deg, #b9c6d6, #8496ab);
  border: 1px solid #55636f;
}

.daw-work {
  flex: 1; min-width: 0; overflow-y: auto; padding: 7px;
  display: flex; flex-direction: column; gap: 7px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 120px),
    var(--dw-face);
}
.daw-panel { background: var(--dw-face-2); border: 1px solid var(--dw-line); }
.daw-panel-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 3px 7px; font-size: 10.5px; font-weight: 700; color: #1d1d1d;
  background: linear-gradient(180deg, #7b7b7b, #676767);
  border-bottom: 1px solid var(--dw-line);
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
}
.daw-panel-meta { font-weight: 400; color: #3c3c3c; font-size: 9.5px; }

/* ── Channel rack ──────────────────────────────────────────────────*/
.daw-rack-body {
  padding: 7px; display: flex; flex-direction: column; gap: 4px;
  background: #565656;
}
.daw-ruler, .daw-ch { display: grid; grid-template-columns: 22px 22px 66px 1fr; gap: 6px; align-items: center; }
.daw-ruler { display: flex; padding-left: 122px; gap: 3px; }
.daw-ruler i {
  flex: 1; font-style: normal; font-size: 8.5px; color: #8e8e8e;
  border-left: 1px solid rgba(0,0,0,0.35); padding-left: 2px;
}
.daw-ruler i:nth-child(4n+1) { border-left-color: rgba(255,255,255,0.3); color: #e0e0e0; }

.daw-ch-name {
  padding: 3px 7px; font-size: 10.5px; text-align: center;
  background: linear-gradient(180deg, #767676, #5f5f5f);
  border: 1px solid #2f2f2f; color: #f0f0f0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.daw-steps { display: flex; gap: 3px; }
.daw-step {
  flex: 1; height: 23px; min-width: 0; cursor: pointer;
  background: linear-gradient(180deg, #4e3936, #3a2926);
  border: 1px solid #241a18;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.12);
  transition: filter 90ms ease, background 90ms ease;
}
.daw-step.is-beat { background: linear-gradient(180deg, #6b4f4a, #4a3532); }
.daw-step:hover { filter: brightness(1.25); }
.daw-step[aria-pressed="true"] {
  background: linear-gradient(180deg, #ffb04a, #e2761b);
  border-color: #8a4408;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.45), 0 0 6px rgba(255,140,40,0.35);
}
.daw-step.is-now {
  outline: 1px solid var(--dw-lcd);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.3), 0 0 8px rgba(141,255,126,0.5);
}
.daw-step:focus-visible { outline: 2px solid var(--dw-lcd); outline-offset: 1px; }

.daw-knob {
  width: 20px; height: 20px; flex: none; border-radius: 50%; cursor: ns-resize;
  position: relative; border: 1px solid #2a2a2a;
  background:
    radial-gradient(circle at 38% 30%, #8f8f8f, #4c4c4c 68%, #3a3a3a);
  box-shadow: inset 0 -2px 3px rgba(0,0,0,0.45), inset 0 2px 2px rgba(255,255,255,0.22);
}
.daw-knob i {
  position: absolute; left: 50%; top: 2px; width: 2px; height: 7px;
  background: var(--dw-lcd); border-radius: 1px;
  transform-origin: 50% 8px;
  transform: translateX(-50%) rotate(calc((var(--v) - 50) * 2.7deg));
  box-shadow: 0 0 4px rgba(141,255,126,0.65);
  transition: transform 140ms ease;
}
.daw-knob:focus-visible { outline: 2px solid var(--dw-lcd); outline-offset: 2px; }
.daw-rack-note { margin: 0; padding: 0 7px 7px; font-size: 10px; color: #cbcbcb; background: #565656; }

/* ── Playlist ──────────────────────────────────────────────────────*/
.daw-pl-body {
  padding: 7px; display: flex; flex-direction: column; gap: 4px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.055) 0 1px, transparent 1px 44px),
    var(--dw-deep);
}
.daw-clip {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid rgba(0,0,0,0.55);
  padding: 3px 8px 3px 3px; color: #17110d; font-size: 10.5px; font-weight: 700;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.4), inset -1px -1px 0 rgba(0,0,0,0.25);
  transition: transform 140ms ease, filter 140ms ease;
}
.daw-clip img { width: 26px; height: 26px; object-fit: cover; flex: none; }
.daw-clip:hover { transform: translateX(3px); filter: brightness(1.08); text-decoration: none; }
.daw-clip--0 { background: linear-gradient(180deg, #8fd6a8, #5fae7c); width: 88%; }
.daw-clip--1 { background: linear-gradient(180deg, #f0c98a, #cfa055); width: 72%; margin-left: 6%; }
.daw-clip--2 { background: linear-gradient(180deg, #e2a0a0, #bb6f6f); width: 54%; margin-left: 12%; }
.daw-clip--3 { background: linear-gradient(180deg, #a9b8e8, #7684c0); width: 40%; margin-left: 30%; }

/* ── Mixer: la fila de faders de abajo. Se mueve sola mientras el
   secuenciador corre —es el "meneo"— y se queda quieta al parar. ───*/
.daw-mix-body {
  display: flex; gap: 3px; padding: 7px; overflow-x: auto;
  background: #4e4e4e;
}
.daw-mix-strip {
  width: 30px; flex: none; display: flex; flex-direction: column;
  align-items: center; gap: 5px; padding: 5px 2px 4px;
  background: linear-gradient(180deg, #6a6a6a, #585858);
}
.daw-mix-strip--master { width: 36px; background: linear-gradient(180deg, #7a6a55, #5f5348); }
.daw-mix-strip--send   { background: linear-gradient(180deg, #5c6470, #4b525c); }
.daw-mix-strip--off    { opacity: 0.72; }
.daw-mix-meter {
  width: 12px; height: 58px; position: relative; overflow: hidden;
  background: #14180f; border: 1px solid #0a0d08;
}
.daw-mix-meter i {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--h, 20%);
  background: linear-gradient(180deg, #ff6a3d 0 14%, #ffd23d 14% 38%, #7dff9a 38% 100%);
  transition: height 120ms linear;
}
/* el nombre va acostado, como en las tiras del mixer de verdad, pero
   con sitio de sobra para que no se corte a media palabra */
.daw-mix-name {
  flex: none; height: 42px; width: 100%;
  display: flex; align-items: flex-start; justify-content: center;
  font-size: 8px; color: #dcdcdc; letter-spacing: 0.02em;
  writing-mode: vertical-rl; text-orientation: mixed;
  overflow: hidden; white-space: nowrap;
}
.daw-mix-strip--master .daw-mix-name { color: #ffd9a8; font-weight: 700; }

/* ── Documento ─────────────────────────────────────────────────────*/
.daw-doc-body {
  padding: 11px 13px; font-size: 12.5px; line-height: 1.7; color: #e2e2e2;
  background: #4f4f4f;
}
.daw-doc-body[hidden] { display: none; }
.daw-doc-body p { margin: 0 0 11px; max-width: 64ch; }
.daw-quote {
  font-family: "Courier New", monospace; color: var(--dw-lcd);
  border-left: 3px solid var(--dw-hot); padding-left: 11px;
  text-shadow: 0 0 7px rgba(141,255,126,0.35);
}
.daw-facts { border-collapse: collapse; font-size: 12px; }
.daw-facts th {
  text-align: left; vertical-align: top; padding: 4px 18px 4px 0;
  color: #b0b0b0; font-weight: 400; white-space: nowrap;
  text-transform: uppercase; font-size: 10px; letter-spacing: 0.12em;
}
.daw-facts td { padding: 4px 0; color: var(--dw-text); }
.daw-facts a { color: var(--dw-lcd); }
.daw-ok { color: var(--dw-lcd); text-shadow: 0 0 8px rgba(141,255,126,0.5); font-weight: 700; }
.daw-hits { display: inline-flex; gap: 2px; }
.daw-hits i {
  background: #10160f; color: var(--dw-lcd); border: 1px solid #05080a;
  padding: 1px 4px; font-style: normal; font-size: 11px;
  font-variant-numeric: tabular-nums;
}
/* las carátulas no crecen sin freno al maximizar: se quedan del
   tamaño de una miniatura de navegador, que es lo que son */
.daw-files {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(0, 186px));
  justify-content: start;
}
.daw-file {
  display: block; text-align: center; color: var(--dw-text); padding: 7px;
  border: 1px solid transparent;
  transition: border-color 140ms ease, background 140ms ease;
}
.daw-file:hover { border-color: var(--dw-edge); background: rgba(255,255,255,0.07); text-decoration: none; }
.daw-file img {
  width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 6px;
  border: 1px solid #2f2f2f;
  filter: saturate(0.75); transition: filter 200ms ease;
}
.daw-file:hover img { filter: none; }
.daw-file-name { display: block; font-size: 11px; font-weight: 700; }
.daw-file-meta { display: block; font-size: 9.5px; color: var(--dw-dim); margin-bottom: 3px; }
.daw-links { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; }
.daw-links a { color: var(--dw-lcd); }

@media (prefers-reduced-motion: reduce) {
  .daw-step, .daw-knob i, .daw-track i, .daw-mix-meter i { transition: none; }
  .daw-logo svg .chp-body { animation: none; }
}

/* Las estrellas viven fuera del enlace: un botón dentro de un <a> no es
   marcado válido y, peor, puntuar te llevaba a otra página. */
.kz-tile-link, .tb-vid-link { display: block; color: inherit; }
.kz-tile { display: block; }
.tb-vid  { display: block; }


/* ══════════════════════════════════════════════════════════════════
   Assets reales
   Los logos de MbaeTube y KzaLeak, los botones de suscripción y las
   texturas de vidrio, sangre, papel y fósforo sustituyen lo que yo
   dibujaba con CSS o generaba por código. La diferencia está en lo que
   ninguna fórmula da: bisel, refracción, grano y translucidez.
   ══════════════════════════════════════════════════════════════════ */

/* La barra superior del canal se queda clara en los dos temas: así era
   YouTube en 2009 —cabecera blanca, canal oscuro— y además el logo trae
   la palabra "Mbae" en gris oscuro, que sobre negro no se leería. */
.bio-page--tube.is-dark { --tb-chrome: #f4f4f2; --tb-chrome-text: #333; }
.bio-page--tube .tb-top input { background: #fff; color: #333; }
.tb-logo { display: block; line-height: 0; flex: none; }
.tb-logo img { height: 26px; width: auto; display: block; }

/* El gráfico ES el botón, con sus dos estados */
.tb-sub {
  width: 132px; height: 43px; padding: 0; border: 0;
  background: url("/assets/mbae/ui/subscribe.webp") center / contain no-repeat;
  box-shadow: none; border-radius: 0; font-size: 0; cursor: pointer;
  transition: filter 120ms ease, transform 120ms ease;
}
.tb-sub:hover { filter: brightness(1.07) saturate(1.08); }
.tb-sub:active { transform: translateY(1px); }
.tb-sub.is-on {
  background-image: url("/assets/mbae/ui/subscribed.webp");
  background-color: transparent; box-shadow: none;
}
.tb-sub.is-on:hover { filter: brightness(0.97); }

/* Iconos sociales de la época */
.soc { display: flex; gap: 7px; margin-top: 9px; }
.soc a { display: block; line-height: 0; opacity: 0.55; transition: opacity 140ms ease, transform 140ms ease; }
.soc a:hover { opacity: 1; transform: translateY(-2px); }
.soc img { width: 26px; height: 26px; }

.kz-share { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 0; }
.kz-share a {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  padding: 4px 11px 4px 5px; font-size: 10.5px; color: #cfccc9;
  letter-spacing: 0.04em;
  transition: background 140ms ease, border-color 140ms ease;
}
.kz-share a:hover { background: rgba(193,18,26,0.32); border-color: var(--kz-red); text-decoration: none; }
.kz-share img { width: 18px; height: 18px; }
.kz-share b { color: #fff; font-variant-numeric: tabular-nums; }

/* QWERTY: papel de verdad en vez de rayas de CSS */
.bio-page--tube:not(.is-dark) {
  background:
    linear-gradient(180deg, rgba(120,150,175,0.30), rgba(90,125,155,0.42)),
    url("/assets/mbae/tex/paper.webp") center / 900px auto repeat;
}
/* EDEL conserva el negro y le suma el grano del papel */
.bio-page--tube.is-dark {
  background:
    linear-gradient(180deg, rgba(10,11,13,0.94), rgba(8,9,11,0.97)),
    url("/assets/mbae/tex/paper.webp") center / 900px auto repeat;
}

/* nava.exe: la rejilla de fósforo es un macro real, no un degradado */
.bio-page--nava::before {
  background:
    url("/assets/mbae/tex/crt-grid.webp") center / 5px auto repeat,
    repeating-linear-gradient(180deg, rgba(0,0,0,0.20) 0 1px, transparent 1px 3px);
  opacity: 0.5; mix-blend-mode: overlay;
}
/* Los LCD del DAW llevan la rejilla de fósforo real */
.daw-lcd, .daw-tempo {
  background:
    url("/assets/mbae/tex/crt-grid.webp") center / 4px auto repeat,
    #0b1a12;
  background-blend-mode: overlay;
}

/* ── Angosto: las dos plantillas pasan a una columna ───────────────*/
@media (max-width: 720px) {
  .win--browser { width: min(420px, calc(100vw - 16px)); }
  .win--browser .win-body { height: min(560px, calc(var(--pantalla-h) - 170px)); }
  .ie-bar { display: none; }
  .tb-grid, .kz-sheet { grid-template-columns: minmax(0,1fr); }
  .kz-tiles { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .kz-hero-art { height: 190px; }
  .kz-hero-art img { width: 130px; height: 130px; }
  .kz-nav, .kz-cats { overflow-x: auto; flex-wrap: nowrap; }
  .kz-shop-head { flex-wrap: wrap; }
  .kz-sitenav a { padding: 8px 12px; font-size: 11px; }
  .kz-search { margin-left: 0; width: 100%; }
  .kz-search input { flex: 1; width: auto; }
  .kz-name { font-size: 44px; }
  /* el lateral pasa debajo, y sus cajas en dos columnas para no alargar */
  .kz-side { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; align-items: start; }
  .kz-side .kz-box { margin-bottom: 0; }
  .tb-top .tb-right { margin-left: 0; }
  .win--daw { width: min(420px, calc(100vw - 16px)); }
  .win--daw .win-body { height: min(580px, calc(var(--pantalla-h) - 170px)); }
  .daw-body { flex-direction: column; }
  /* el árbol se encoge a una fila de pestañas: los .wav son utilería y
     en pantalla angosta se comerían la ventana entera */
  .daw-browser { width: auto; flex: none; border-right: 0; border-bottom: 1px solid var(--dw-line); }
  .daw-browser-head, .daw-browser-files { display: none; }
  .daw-browser-list { overflow: visible; padding: 0; background: var(--dw-face-2); box-shadow: none; }
  .daw-browser-list [role="tablist"] { display: flex; overflow-x: auto; }
  .daw-browser button { width: auto; white-space: nowrap; }
  .daw-mix-body { padding: 5px; }
  .daw-files { grid-template-columns: repeat(auto-fill, minmax(0, 132px)); }
  .daw-transport { gap: 8px; }
  .daw-master, .daw-meters { margin-left: 0; }
  .daw-ruler { display: none; }
  .daw-ch { grid-template-columns: 22px 56px 1fr; }
  .daw-ch .daw-knob:nth-of-type(2) { display: none; }
  .daw-step { height: 30px; }
  .daw-files { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tb-videos { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tb-top nav, .tb-top input { display: none; }
}
