/* =========================================================
   ENTI-UB Brand Hub · estilos
   Para adaptar a la marca: cambiad las variables de :root
   ========================================================= */
:root {
  /* ---- tema oscuro (por defecto) ---- */
  --accent: #88247b;          /* morado ENTI */
  --on-accent: #ffffff;       /* texto encima del color principal */
  --accent-ink: #e08fd4;      /* el morado, aclarado para textos sobre fondo oscuro */
  --wave-played: #c05ab3;
  --bg: #0d0d0f;
  --surface: #151518;
  --surface-2: #1c1c21;
  --hover: #23232a;
  --line: #2a2a31;
  --line-strong: #3d3d46;
  --text: #f1f0ec;
  --text-2: var(--text-2);
  --muted: #9a99a3;
  --faint: #6b6a74;
  --ok: #4fd18b;
  --warn: #f2c14e;
  --danger: #ff7b72;
  --tag-ink: #eab0e1;
  --wave: #4b4b55;
  --wave-empty: #2c2c33;
  --mood-l: 74%;
  --shadow: rgba(0, 0, 0, .55);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --radius: 14px;
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}
/* ---- tema claro ---- */
:root[data-theme="light"] {
  --accent-ink: #88247b;
  --wave-played: #88247b;
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #f0eee9;
  --hover: #e8e6e0;
  --line: #e2dfd8;
  --line-strong: #c9c5bc;
  --text: #16161a;
  --text-2: #303036;
  --muted: #5d5c64;
  --faint: #8b8a92;
  --ok: #1d9a58;
  --warn: #b5850a;
  --danger: #d0362b;
  --tag-ink: #88247b;
  --wave: #b9b6ae;
  --wave-empty: #e2dfd8;
  --mood-l: 34%;
  --shadow: rgba(20, 20, 26, .35);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
main { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 32px 28px 64px; outline: none; }
.loading, .empty { color: var(--muted); padding: 48px 0; text-align: center; }
.mono { font-family: var(--mono); font-size: .86em; letter-spacing: -.01em; }

/* ---------- banner + barra superior ---------- */
.proto-banner {
  background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--accent) 16%, var(--bg)) 0 10px, color-mix(in srgb, var(--accent) 10%, var(--bg)) 10px 20px);
  color: var(--tag-ink); text-align: center; font-size: 12.5px; padding: 6px 12px; letter-spacing: .02em;
}
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px;
  padding: 14px 28px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -.01em; }
.brand-mark { display: flex; width: 24px; height: 27px; color: var(--accent); flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { text-decoration: none; color: var(--muted); padding: 7px 12px; border-radius: 999px; font-size: 14px; transition: .15s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.ui-toggle, .theme-toggle {
  display: flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px 6px 9px; cursor: pointer; color: var(--muted); font-size: 13px;
}
.ui-toggle svg, .theme-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.ui-toggle svg .wave { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ui-toggle[aria-pressed="true"] { color: var(--text); border-color: var(--line-strong); }
.ui-toggle[aria-pressed="true"] svg { color: var(--accent-ink); }
.ui-toggle[aria-pressed="false"] svg .wave { opacity: .15; }

.top-tools { display: flex; gap: 8px; align-items: center; }
.theme-toggle { padding: 6px 9px; }
.theme-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle:hover, .ui-toggle:hover { color: var(--text); border-color: var(--line-strong); }
.theme-toggle .moon { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .moon { display: inline; }

/* ---------- elementos comunes ---------- */
.eyebrow { font: 600 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--accent-ink); margin: 0 0 14px; }
h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 16px; font-weight: 700; }
h2 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 6px; }
h3 { font-size: 16px; margin: 0 0 6px; }
.lead { color: var(--muted); font-size: 17px; max-width: 620px; margin: 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface-2); text-decoration: none; cursor: pointer;
  font-size: 14px; font-weight: 550; transition: .15s;
}
.btn:hover { border-color: var(--line-strong); background: var(--hover); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.back { color: var(--muted); text-decoration: none; font-size: 14px; display: inline-block; margin-bottom: 18px; }
.back:hover { color: var(--text); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  font-size: 12px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap;
}
.chip.mood { color: hsl(var(--h) 75% var(--mood-l)); background: hsl(var(--h) 60% 50% / .12); border-color: hsl(var(--h) 60% 50% / .28); }
.chip.mood::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.test { color: var(--tag-ink); border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.status.revision::before { background: var(--warn); }
.status.aprobado::before { background: var(--ok); }

/* ---------- inicio ---------- */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; padding: 28px 0 56px; }
.hero-player {
  background: radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--accent) 10%, var(--surface)) 0%, var(--surface) 55%); border: 1px solid var(--line);
  border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 18px;
}
.hero-player .row { display: flex; align-items: center; gap: 18px; }
.big-play {
  width: 76px; height: 76px; flex: none; border-radius: 50%; border: none; background: var(--accent); cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 0 0 0 var(--accent-soft); transition: box-shadow .3s, transform .15s;
}
.big-play:hover { transform: scale(1.04); box-shadow: 0 0 0 10px var(--accent-soft); }
.big-play svg { width: 30px; height: 30px; fill: var(--on-accent); }
.hero-player .wave-wrap { height: 92px; }
.hero-player small { color: var(--muted); }
.stats { display: flex; gap: 32px; margin-top: 28px; }
.stat b { display: block; font: 600 26px/1 var(--mono); letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: 13px; }
.sections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 56px; }
.section-card {
  text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: .2s; display: flex; flex-direction: column; gap: 8px; min-height: 150px;
}
.section-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.section-card p { color: var(--muted); margin: 0; font-size: 14px; flex: 1; }
.section-card .go { color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.cat-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 40px; }
.cat-strip a { text-decoration: none; }
.cat-strip .chip { font-size: 13px; padding: 7px 13px; color: var(--text); }
.cat-strip .chip b { color: var(--faint); font-weight: 500; font-family: var(--mono); font-size: 11.5px; }
.cat-strip a:hover .chip { border-color: var(--accent); }

/* ---------- biblioteca ---------- */
.lib { display: grid; grid-template-columns: 270px 1fr; gap: 32px; align-items: start; }
.filters { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; padding-right: 6px; scrollbar-width: thin; }
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.filters-head h2 { font-size: 15px; margin: 0; }
.link-btn { background: none; border: none; color: var(--accent-ink); cursor: pointer; font-size: 13px; padding: 0; }
.link-btn:disabled { color: var(--faint); cursor: default; }
.fgroup { border-top: 1px solid var(--line); padding: 14px 0; }
.fgroup > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.fgroup > summary::-webkit-details-marker { display: none; }
.fgroup > summary::after { content: "+"; font: 400 16px var(--mono); color: var(--faint); }
.fgroup[open] > summary::after { content: "−"; }
.fgroup .opts { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.fgroup .opts.wrap { flex-direction: row; flex-wrap: wrap; gap: 6px; }
.opt { display: flex; align-items: center; gap: 9px; padding: 5px 6px; border-radius: 7px; cursor: pointer; font-size: 14px; user-select: none; }
.opt:hover { background: var(--surface-2); }
.opt input { appearance: none; width: 15px; height: 15px; border: 1.5px solid var(--line-strong); border-radius: 4px; margin: 0; flex: none; display: grid; place-items: center; }
.opt input:checked { background: var(--accent); border-color: var(--accent); }
.opt input:checked::after { content: ""; width: 7px; height: 4px; border: 2px solid var(--on-accent); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.opt .n { margin-left: auto; color: var(--faint); font: 11.5px var(--mono); }
.opt.zero { opacity: .38; }
.opt .dot { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--h) 75% 62%); flex: none; }
.pill-opt { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 5px 11px; cursor: pointer; font: 13px var(--mono); color: var(--muted); }
.pill-opt[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.pill-opt.zero { opacity: .38; }
.mood-desc { color: var(--faint); font-size: 12px; margin-left: 2px; }

.range { margin-top: 12px; }
.range-vals { display: flex; justify-content: space-between; font: 12.5px var(--mono); color: var(--text); margin-bottom: 8px; }
.dual { position: relative; height: 22px; }
.dual .track { position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 4px; background: var(--line); }
.dual .fill { position: absolute; top: 9px; height: 4px; border-radius: 4px; background: var(--accent); }
.dual input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; appearance: none; height: 22px; }
.dual input::-webkit-slider-thumb { appearance: none; pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--text); border: 3px solid var(--accent); cursor: grab; }
.dual input::-moz-range-thumb { pointer-events: auto; width: 12px; height: 12px; border-radius: 50%; background: var(--text); border: 3px solid var(--accent); cursor: grab; }
.dual input::-moz-range-track { background: none; }

.lib-top { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.search { flex: 1; min-width: 220px; position: relative; }
.search input {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px 11px 38px; color: var(--text); font-size: 14.5px; outline: none;
}
.search input:focus { border-color: var(--line-strong); }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; stroke: var(--faint); fill: none; stroke-width: 2; }
select.sort { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 10px 12px; font-size: 14px; }
.filters-btn { display: none; }
.result-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; min-height: 26px; }
.result-meta .count { color: var(--muted); font-size: 13.5px; margin-right: 6px; }
.active-chip { cursor: pointer; }
.active-chip:hover { border-color: var(--accent); color: var(--text); }
.active-chip::after { content: "×"; margin-left: 2px; font-size: 14px; line-height: 1; }

.rows { display: flex; flex-direction: column; gap: 8px; }
.row-card {
  display: grid; grid-template-columns: 46px minmax(180px, 1.15fr) minmax(140px, 1.4fr) auto; gap: 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px 12px 12px; transition: border-color .15s, background .15s;
}
.row-card:hover { border-color: var(--line-strong); }
.row-card.playing { border-color: var(--accent); background: linear-gradient(90deg, var(--accent-soft), var(--surface) 40%); }
.play-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface-2); cursor: pointer;
  display: grid; place-items: center; transition: .15s;
}
.play-btn:hover { border-color: var(--accent); }
.play-btn svg { width: 16px; height: 16px; fill: var(--text); }
.playing .play-btn { background: var(--accent); border-color: var(--accent); }
.playing .play-btn svg { fill: var(--on-accent); }
.row-title { min-width: 0; }
.row-title a { text-decoration: none; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-title a:hover { color: var(--accent-ink); }
.row-title .sub { color: var(--muted); font-size: 12.5px; display: flex; gap: 10px; align-items: center; margin-top: 3px; flex-wrap: wrap; }
.row-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.wave-wrap { position: relative; height: 44px; cursor: pointer; }
.wave-wrap canvas { width: 100%; height: 100%; display: block; }
.wave-wrap .t { position: absolute; right: 0; bottom: -16px; font: 10.5px var(--mono); color: var(--faint); }
.row-data { display: grid; grid-template-columns: repeat(3, auto); gap: 2px 16px; text-align: right; }
.row-data span { font: 12.5px var(--mono); color: var(--text); }
.row-data label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }

/* ---------- ficha ---------- */
.detail-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 24px; }
.detail-head h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 10px; }
.detail-head .tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.player-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; gap: 20px; align-items: center; margin-bottom: 28px; }
.player-panel .wave-wrap { flex: 1; height: 110px; }
.player-panel .big-play { width: 64px; height: 64px; }
.player-panel .big-play svg { width: 24px; height: 24px; }
.detail-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel + .panel { margin-top: 16px; }
.panel h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.panel p { margin: 0; }
.use { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.use div { border-radius: 10px; padding: 14px; background: var(--surface-2); }
.use .yes h3 { color: var(--ok); } .use .no h3 { color: var(--danger); }
.specs { width: 100%; border-collapse: collapse; }
.specs td { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.specs tr:last-child td { border: 0; }
.specs td:first-child { color: var(--muted); width: 44%; }
.downloads { display: flex; gap: 10px; flex-wrap: wrap; }
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 12px; }
.mini {
  display: flex; align-items: center; gap: 12px; text-decoration: none; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px;
}
.mini:hover { border-color: var(--line-strong); }
.mini .play-btn { width: 36px; height: 36px; }
.mini .play-btn svg { width: 12px; height: 12px; }
.mini small { color: var(--muted); display: block; font-size: 12px; }
.mini.playing { border-color: var(--accent); }
.mini.playing .play-btn { background: var(--accent); border-color: var(--accent); }
.mini.playing .play-btn svg { fill: var(--on-accent); }

/* ---------- guía ---------- */
.guide { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.toc { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px; }
.toc a { text-decoration: none; color: var(--muted); font-size: 14px; padding: 7px 10px; border-radius: 8px; display: flex; gap: 10px; }
.toc a:hover { background: var(--surface-2); color: var(--text); }
.toc a span { font: 11.5px var(--mono); color: var(--faint); padding-top: 2px; }
.gsec { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px 30px; margin-bottom: 16px; scroll-margin-top: 90px; }
.gsec header { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 12px; }
.gsec .num { font: 12px var(--mono); color: var(--accent-ink); }
.gsec .resumen { color: var(--muted); margin: 0 0 16px; }
.gsec .body { color: var(--text-2); }
.gsec .body h3 { margin: 18px 0 6px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.gsec .body ul { padding-left: 20px; margin: 8px 0; }
.gsec .body li { margin: 4px 0; }
.gsec.pending .body { opacity: .7; border-left: 2px dashed var(--line-strong); padding-left: 16px; }
.pending-tag { font: 11px var(--mono); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 12%, var(--surface)); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }

/* ---------- marca ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 28px 0 22px; }
.tab { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 15px; cursor: pointer; font-size: 14px; color: var(--muted); }
.tab b { font: 500 11.5px var(--mono); color: var(--faint); margin-left: 4px; }
.tab[aria-selected="true"] { color: var(--text); border-color: var(--line-strong); background: var(--surface-2); }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.asset { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.asset .preview { aspect-ratio: 4/3; background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0/20px 20px; display: grid; place-items: center; }
.asset .preview img { max-width: 80%; max-height: 80%; object-fit: contain; }
.asset .swatch { aspect-ratio: 4/3; }
.asset .info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.asset .info p { color: var(--muted); font-size: 13.5px; margin: 0; }
.asset .files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.asset .files a { font-size: 12.5px; padding: 6px 10px; }
.placeholder {
  border: 1.5px dashed var(--line-strong); border-radius: 18px; padding: 48px 28px; text-align: center; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.placeholder svg { width: 40px; height: 40px; stroke: var(--faint); fill: none; stroke-width: 1.5; }
.placeholder h3 { color: var(--text); font-size: 17px; margin: 0; }
.placeholder p { margin: 0; max-width: 460px; }
.placeholder .ghosts { display: grid; grid-template-columns: repeat(4, 90px); gap: 10px; margin-top: 18px; }
.placeholder .ghosts i { height: 64px; border-radius: 10px; background: var(--surface-2); }

/* ---------- pie ---------- */
.footer { border-top: 1px solid var(--line); padding: 20px 28px; display: flex; justify-content: space-between; color: var(--faint); font-size: 13px; }
.footer-admin { color: var(--faint); }
.footer-admin:hover { color: var(--text); }

/* ---------- móvil ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .sections { grid-template-columns: 1fr; }
  .lib { grid-template-columns: 1fr; }
  .filters {
    position: fixed; inset: 0 30% 0 0; max-height: none; z-index: 40; background: var(--bg); padding: 20px;
    border-right: 1px solid var(--line); transform: translateX(-102%); transition: transform .25s;
  }
  .filters.open { transform: none; box-shadow: 0 0 0 100vmax var(--shadow); }
  .filters-btn { display: inline-flex; }
  .row-card { grid-template-columns: 46px 1fr; }
  .row-card .wave-wrap { grid-column: 1 / -1; order: 3; }
  .row-card .row-data { grid-column: 1 / -1; text-align: left; order: 4; }
  .detail-grid, .guide { grid-template-columns: 1fr; }
  .toc { position: static; }
  .use { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  main { padding: 22px 16px 48px; }
  .topbar { padding: 12px 16px; gap: 12px; flex-wrap: wrap; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .ui-toggle-label { display: none; }
  .filters { inset: 0 12% 0 0; }
  .player-panel { flex-direction: column; align-items: stretch; }
  .placeholder .ghosts { grid-template-columns: repeat(2, 90px); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- idiomas + utilidades ---------- */
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang-switch button { background: none; border: 0; border-radius: 999px; padding: 4px 9px; font: 600 11.5px var(--mono); color: var(--muted); cursor: pointer; letter-spacing: .04em; }
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.page-title { font-size: clamp(30px, 4vw, 44px); }
.fgroup.nested { border: 0; padding-bottom: 0; }
.row-data .dots-off { color: var(--line-strong); }
.nav a { white-space: nowrap; }
.ph-note { font-size: 13px; color: var(--faint); }
.tab { text-decoration: none; }
@media (max-width: 640px) { .top-tools { margin-left: auto; } }
