/* ==========================================================================
   PomoMed — study music + ambience (agent AUDIO)
   - .mu*  : full selector rendered inside the session 🎵 pill panel
   - .mm*  : persistent mini-player (#music-mini) under the start button,
             with its credit line (.mm-credit) right below it
   - .pg-credit* : /creditos.html + /en/credits.html
   Everything in the timer card sits on the coloured mode background, so text
   is white (or --text-muted) on darkened (--shade) fills for AA contrast.
   ========================================================================== */

/* ---------- shared bits ---------- */
.music-panel { text-align: left; }

.mu-eq {
  display: none;
  align-items: flex-end;
  gap: 2px;
  width: 14px;
  height: 14px;
  flex: none;
}
.mu-eq i {
  display: block;
  width: 3px;
  height: 40%;
  border-radius: 1px;
  background: currentColor;
  animation: mu-eq 0.9s ease-in-out infinite alternate;
}
.mu-eq i:nth-child(2) { animation-delay: -0.45s; animation-duration: 0.7s; }
.mu-eq i:nth-child(3) { animation-delay: -0.2s; animation-duration: 1.1s; }
@keyframes mu-eq {
  0% { height: 25%; }
  100% { height: 100%; }
}

.mu-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: mu-spin 0.8s linear infinite;
}
@keyframes mu-spin { to { transform: rotate(360deg); } }

.mu-pill {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 2px 8px;
  border-radius: var(--radius-pill, 999px);
  background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 55%, #f59e0b 100%);
  color: #422006;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* play/pause icon swap shared by the selector and the mini-player */
.mu-play__icon { display: inline-grid; place-items: center; }
.mu-play__icon svg { width: 22px; height: 22px; }
.mu-play__icon--pause { display: none; }
.is-playing .mu-play__icon--play { display: none; }
.is-playing .mu-play__icon--pause { display: inline-grid; }
.is-buffering .mu-play__icon { display: none; }
.is-buffering .mu-spinner { display: block; }

/* ---------- full selector ---------- */
.mu {
  display: grid;
  gap: 12px;
  color: var(--text);
  text-align: left;
}
.mu--status { justify-items: center; text-align: center; padding: 8px 0; }
.mu-status { margin: 0; font-size: 0.9375rem; color: var(--text-muted); }
.mu-retry { color: var(--text); border-color: rgba(255, 255, 255, 0.55); }

.mu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--glass-line, rgba(255, 255, 255, 0.2));
  border-radius: 12px;
  background: var(--shade);
}
.mu-tab {
  appearance: none;
  flex: 1 1 auto;
  min-width: 64px;
  min-height: 40px;
  padding: 4px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color var(--t-fast, 0.16s), color var(--t-fast, 0.16s), box-shadow var(--t-fast, 0.16s);
}
.mu-tab:hover { background: rgba(255, 255, 255, 0.12); }
.mu-tab[aria-selected="true"] {
  background: #ffffff;
  color: var(--mode-bg);
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
body[data-theme="dark"] .mu-tab[aria-selected="true"] { background: #f1f5f9; }

.mu-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mu-track__btn {
  appearance: none;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 6px 12px 6px 8px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: var(--shade);
  color: var(--text);
  font: inherit;
  text-align: left;
  transition: background-color 0.15s, border-color 0.15s;
}
.mu-track__btn:hover { background: rgba(0, 0, 0, 0.24); }
.mu-track.is-current .mu-track__btn {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.24);
}

.mu-track__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--mode-bg);
}
.mu-track__glyph { display: inline-grid; place-items: center; }
.mu-track__glyph svg { width: 15px; height: 15px; }
.mu-track__glyph--pause { display: none; }
.mu-track.is-playing .mu-track__glyph--play { display: none; }
.mu-track.is-playing .mu-eq { display: flex; }
/* While playing, hovering/focusing the row reveals the pause action. */
.mu-track.is-playing .mu-track__btn:hover .mu-eq,
.mu-track.is-playing .mu-track__btn:focus-visible .mu-eq { display: none; }
.mu-track.is-playing .mu-track__btn:hover .mu-track__glyph--pause,
.mu-track.is-playing .mu-track__btn:focus-visible .mu-track__glyph--pause { display: inline-grid; }

.mu-track__main { display: grid; min-width: 0; line-height: 1.25; }
.mu-track__title,
.mu-track__artist {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mu-track__title { font-size: 0.9375rem; font-weight: 700; }
.mu-track__artist { font-size: 0.8125rem; color: var(--text-muted); }
.mu-track__dur {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.mu-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.mu-play,
.mm-btn {
  appearance: none;
  display: inline-grid;
  place-items: center;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: var(--mode-bg);
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, color var(--mode-transition, 0.6s ease);
}
.mu-play {
  width: 48px;
  height: 48px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
}
.mu-play:active { transform: translateY(3px); box-shadow: 0 0 0 rgba(0, 0, 0, 0.2); }
body[data-theme="dark"] .mu-play,
body[data-theme="dark"] .mm-btn { background: #f1f5f9; }

.mu-next {
  appearance: none;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--shade);
  color: var(--text);
  transition: background-color 0.15s, transform 0.08s;
}
.mu-next svg { width: 20px; height: 20px; }
.mu-err { display: grid; justify-items: start; gap: 8px; }
.mu-next:hover { background: rgba(0, 0, 0, 0.26); }
.mu-next:active { transform: scale(0.94); }

.mu-vol {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 4px;
}
.mu-vol__icon { display: inline-grid; flex: none; opacity: 0.95; }
.mu-vol__icon svg { width: 20px; height: 20px; }
.mu-vol__input {
  --fill: 60%;
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 40px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.mu-vol__input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, #ffffff var(--fill), rgba(255, 255, 255, 0.3) var(--fill));
}
.mu-vol__input::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}
.mu-vol__input::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: #ffffff;
}
.mu-vol__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.mu-vol__input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.mu-vol__input:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 8px; }

.mu-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 6px 0;
  color: var(--text);
}
.mu-toggle__text { display: grid; line-height: 1.3; font-size: 0.9375rem; font-weight: 600; }
.mu-toggle__text small { font-size: 0.8125rem; font-weight: 500; color: var(--text-muted); }

.mu-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 12px;
  margin: 0;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8125rem;
}
.mu-foot__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.55);
}
.mu-foot__link:hover { text-decoration-color: currentColor; }
.mu-foot__link--pro { text-decoration: none; }
.mu-foot__link--pro:hover { text-decoration: underline; }

/* ---------- the two-layer mixer ----------
   intro line → [Música layer | Ambiente layer] (side by side when the panel
   is wide, stacked on phones) → mixer bar → pause-on-break → credits/Pro.
   Layers use dark tints only (never white glass) so white text keeps AA. */
.music-panel { container: mu / inline-size; }
.mu-intro {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}
.mu-layers {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}
.mu-layer {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--glass-line, rgba(255, 255, 255, 0.2));
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.1);
  transition: border-color var(--t-med, 0.2s), box-shadow var(--t-med, 0.2s);
}
.mu-layer.is-on {
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 24px -8px rgba(255, 255, 255, 0.4);
}
.mu-layer__head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.mu-layer__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--glass-line, rgba(255, 255, 255, 0.2));
  border-radius: 12px;
  background: var(--shade);
  color: var(--text);
  transition: background-color var(--t-med, 0.2s), color var(--t-med, 0.2s);
}
.mu-layer__icon svg { width: 20px; height: 20px; }
.mu-layer.is-on .mu-layer__icon { border-color: transparent; background: #ffffff; color: var(--mode-bg); }
body[data-theme="dark"] .mu-layer.is-on .mu-layer__icon { background: #f1f5f9; }
.mu-layer__titles { display: grid; min-width: 0; line-height: 1.25; }
.mu-layer__title { margin: 0; font-size: 1rem; font-weight: 800; letter-spacing: 0.01em; color: var(--text); }
.mu-layer__state {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}
.mu-layer.is-on .mu-layer__state { color: var(--text); }
/* the layer's on/off switch (the shared .toggle look); the label is the ≥ 44px target */
.mu-power { justify-content: center; min-width: 52px; min-height: 44px; }
/* The switch knob follows the active skin/mode via --toggle-knob-on (re-resolved on <body> in app.css). */

/* Layer 2: the rain tile */
.mu-tile {
  appearance: none;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 76px;
  margin: 0;
  padding: 10px 12px 10px 10px;
  border: 1.5px dashed rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--t-fast, 0.16s), border-color var(--t-fast, 0.16s), box-shadow var(--t-med, 0.2s), transform 0.08s;
}
.mu-tile:hover { border-color: rgba(255, 255, 255, 0.85); background: rgba(0, 0, 0, 0.12); }
.mu-tile:active { transform: scale(0.98); }
.mu-tile__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--shade);
  color: var(--text);
}
.mu-tile__icon svg { width: 28px; height: 28px; }
.mu-tile__text { display: grid; gap: 2px; min-width: 0; }
.mu-tile__label { font-size: 1.0625rem; font-weight: 800; line-height: 1.2; }
.mu-tile__sub { font-size: 0.8125rem; font-weight: 500; line-height: 1.3; color: var(--text-muted); }
.mu-tile__mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
}
.mu-tile__check { display: none; place-items: center; }
.mu-tile__check svg { width: 15px; height: 15px; }
.mu-tile[aria-pressed="true"] {
  border-style: solid;
  border-color: #ffffff;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14), 0 0 18px rgba(255, 255, 255, 0.2);
}
.mu-tile[aria-pressed="true"] .mu-tile__icon,
.mu-tile[aria-pressed="true"] .mu-tile__mark { border-color: transparent; background: #ffffff; color: var(--mode-bg); }
body[data-theme="dark"] .mu-tile[aria-pressed="true"] .mu-tile__icon,
body[data-theme="dark"] .mu-tile[aria-pressed="true"] .mu-tile__mark { background: #f1f5f9; }
.mu-tile[aria-pressed="true"] .mu-tile__check { display: inline-grid; }
.mu-tile.is-playing .mu-tile__check { display: none; }
.mu-tile.is-playing .mu-eq { display: flex; }
.mu-vol--amb { padding-left: 0; }

/* Mixer bar: both channels at a glance */
.mu-mix {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px 12px 6px;
  border: 1px solid var(--glass-line, rgba(255, 255, 255, 0.2));
  border-radius: 14px;
  background: var(--shade);
}
.mu-mix__now {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
}
.mu-mix__text { min-width: 0; overflow-wrap: anywhere; }
.mu-mix__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}
.mu-mix.is-live .mu-mix__dot {
  background: var(--rhythm-selected, #fcd34d);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rhythm-selected, #fcd34d) 30%, transparent);
}
.mu-mix__chs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 18px; min-width: 0; }
.mu-mix__ch {
  display: grid;
  grid-template-columns: 40px auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.mu-mix__name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 4.6em;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}
.mu-mix__icon { display: inline-grid; }
.mu-mix__icon svg { width: 16px; height: 16px; }
.mu-mix__ch.is-muted .mu-mix__name { text-decoration: line-through; text-decoration-thickness: 2px; }
.mu-mix__vol { display: flex; min-width: 0; }
.mu-mix__vol[hidden] { display: none; }
.mu-mute {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--glass-line, rgba(255, 255, 255, 0.2));
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color var(--t-fast, 0.16s), border-color var(--t-fast, 0.16s);
}
.mu-mute:hover { border-color: var(--glass-line-hover, rgba(255, 255, 255, 0.55)); background: rgba(0, 0, 0, 0.16); }
.mu-mute__on,
.mu-mute__off { display: inline-grid; }
.mu-mute svg { width: 18px; height: 18px; }
.mu-mute__off { display: none; }
.mu-mute[aria-pressed="true"] { border-color: transparent; background: #ffffff; color: var(--mode-bg); }
body[data-theme="dark"] .mu-mute[aria-pressed="true"] { background: #f1f5f9; }
.mu-mute[aria-pressed="true"] .mu-mute__on { display: none; }
.mu-mute[aria-pressed="true"] .mu-mute__off { display: inline-grid; }

/* Wide panel (desktop): the two layers side by side, the list scrolls inside its layer. */
@container mu (min-width: 640px) {
  .mu-layers { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .mu-layer--music .mu-list {
    max-height: 296px;
    margin-right: -4px;
    padding-right: 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
  }
  .mu-mix__chs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.mu-tile:focus-visible,
.mu-mute:focus-visible,
.mm-chip:focus-visible,
.mu-tab:focus-visible,
.mu-track__btn:focus-visible,
.mu-play:focus-visible,
.mu-next:focus-visible,
.mm-btn:focus-visible,
.mm-credit__link:focus-visible,
.mu-foot__link:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--ring) 35%, transparent);
}

/* ---------- mini-player (#music-mini) ----------
   [▶] [♪ Track] + [rain Chuva]: a chip only for each layer in the mix (a layer
   switched off has no chip, so there is no "off" chip style); pressing a chip
   switches its layer off. Solid outline + darker fill. */
.music-mini { margin-top: 18px; }
.mm {
  display: grid;
  grid-template-columns: 40px minmax(0, auto);
  column-gap: 10px;
  align-items: center;
  /* Shrinks to its content (one chip or two) and only caps on wide/narrow screens. */
  width: fit-content;
  max-width: min(440px, 100%);
  margin-inline: auto;
  padding: 6px;
  border: 1px solid var(--glass-line, rgba(255, 255, 255, 0.2));
  border-radius: 14px;
  background: var(--shade);
  color: var(--text);
  text-align: left;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color var(--t-med, 0.2s), box-shadow var(--t-med, 0.2s);
}
.music-mini.is-playing .mm {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 22px rgba(255, 255, 255, 0.1);
}
.mm-btn {
  width: 40px;
  height: 40px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}
.mm-btn .mu-play__icon svg { width: 18px; height: 18px; }
.mm-btn:active { transform: translateY(2px); box-shadow: none; }
.mm-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  min-width: 0;
}
.mm-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 4px 12px 4px 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-pill, 999px);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color var(--t-fast, 0.16s), border-color var(--t-fast, 0.16s);
}
.mm-chip:hover { border-color: #fff; background: rgba(0, 0, 0, 0.28); }
.mm-chip[hidden],
.mm-plus[hidden] { display: none; }
.mm-chip__icon { display: inline-grid; flex: none; }
.mm-chip__icon svg { width: 16px; height: 16px; }
.mm-chip.is-playing .mm-chip__icon { display: none; }
.mm-chip.is-playing .mu-eq { display: flex; }
.mm-chip.is-muted .mm-text,
.mm-chip.is-muted .mm-chip__label { text-decoration: line-through; }
.mm-text { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mm-plus { flex: none; font-size: 0.875rem; font-weight: 800; }

/* Credit line BELOW the player: small, muted, still AA (≥4.5:1 on every mode background). */
.mm-credit {
  display: flex;
  justify-content: center;
  max-width: 440px;
  margin: 2px auto 0;
  font-size: 0.6875rem; /* 11px */
  line-height: 1.3;
}
.mm-credit[hidden] { display: none; }
.mm-credit__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 100%;
  padding: 0 4px;
  color: var(--text); /* full white: at 11px the muted token would dip under 4.5:1 on light skins */
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 2px;
  opacity: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border-radius: 6px;
  transition: color var(--t-fast, 0.16s), text-decoration-color var(--t-fast, 0.16s);
}
/* 40px hit area without changing the compact look */
.mm-credit__link::before { content: ""; position: absolute; inset: -8px -4px; }
.mm-credit__link:hover { text-decoration-color: currentColor; }

/* ---------- motion / forced colours ---------- */
@media (prefers-reduced-motion: reduce) {
  .mu-tab, .mm, .mm-credit__link, .mu-layer, .mu-layer__icon, .mu-tile, .mu-mute, .mm-chip { transition: none; }
  .mu-tile:active { transform: none; }
  .mu-eq i { animation: none; }
  .mu-eq i:nth-child(1) { height: 55%; }
  .mu-eq i:nth-child(2) { height: 100%; }
  .mu-eq i:nth-child(3) { height: 35%; }
  .mu-spinner { animation: none; border-right-color: currentColor; opacity: 0.6; }
}
@media (forced-colors: active) {
  .mu-tab, .mu-track__btn, .mu-play, .mu-next, .mm-btn, .mu-mute { border: 1px solid ButtonText; }
  .mu-layer, .mu-mix { border: 1px solid CanvasText; }
  .mu-tile[aria-pressed="true"], .mm-chip[aria-pressed="true"], .mu-mute[aria-pressed="true"], .mu-layer.is-on { outline: 2px solid Highlight; }
  .mu-tab[aria-selected="true"] { outline: 2px solid Highlight; }
}

/* ==========================================================================
   Credits page (/creditos.html, /en/credits.html) — builds on pages.css
   ========================================================================== */
.pg-credits {
  display: grid;
  gap: 12px;
  margin: 0 0 1.5em;
  padding: 0 !important;
  list-style: none;
}
.pg-credit {
  margin: 0 !important;
  padding: 14px 16px;
  border: 1px solid var(--pg-border);
  border-radius: 12px;
  background: var(--surface-2, #f3f5f7);
  scroll-margin-top: 24px;
}
.pg-credit__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
}
.pg-credit__title { margin: 0 !important; font-size: 1.05rem !important; font-weight: 800; }
.pg-credit__tags { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.pg-credit__tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--pg-border);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pg-muted);
}
.pg-credit__tag--free { border-color: transparent; background: var(--pg-soft); color: var(--pg-accent-strong); }
.pg-credit__tag--pro { border-color: transparent; background: var(--pg-gold-soft); color: var(--pg-gold); }
.pg-credit__tag--pd { border-style: dashed; color: var(--pg-muted); }
.pg-credit__artist { margin: 2px 0 8px !important; color: var(--pg-muted); font-size: 0.9rem; }
.pg-credit__line {
  margin: 0 0 8px !important;
  padding: 8px 10px;
  border-left: 3px solid var(--pg-accent);
  border-radius: 0 8px 8px 0;
  background: var(--surface, #fff);
  font-size: 0.875rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.pg-credit__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  margin: 0 !important;
  font-size: 0.875rem;
}
.pg-credit__links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}
