/* Página "Mis frases" (pages/my-phrases.html): "Hoy toca repasar" arriba, filtros y la lista debajo, y el repaso
   ocupando la página mientras dura. Colores del sistema de diseño (--ds-*, --lp-*). */
.mp .mp-section {
  padding-top: 108px; /* la cabecera del sitio es fija */
}

.mp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Título y cupo ---------- */
.mp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.mp .mp-head h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--lp-navy, #0f2a5c);
  text-shadow: none;
}

.mp-summary {
  margin: 2px 0 0;
  font-size: 0.95rem;
  color: var(--ds-muted, #5b6678);
}

.mp-summary:empty {
  display: none;
}

/* Cupo del plan gratis: contador compacto junto al título */
.mp-quota {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1.5px solid var(--ds-line-strong, #cbd5e1);
  border-radius: 999px;
  background: var(--ds-blue-soft, #eaf1ff);
  font-size: 0.9rem;
  font-weight: 700;
}

.mp-quota-title {
  white-space: nowrap;
}

.mp-quota-bar {
  width: 56px;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

body.active .mp-quota-bar {
  background: rgba(255, 255, 255, 0.22);
}

.mp-quota-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--ds-blue, #1d4ed8);
  transition: width 0.3s ease;
}

.mp-quota.is-full .mp-quota-bar span {
  background: #dc2626;
}

.mp-quota-note {
  margin: -6px 0 16px;
  font-size: 0.9rem;
  color: var(--ds-muted, #5b6678);
}

.mp-loading {
  text-align: center;
  padding: 40px 16px;
  color: var(--ds-muted, #5b6678);
}

.mp-empty {
  text-align: center;
  padding: 40px 16px;
}

.mp-empty > i {
  font-size: 2.5rem;
  color: var(--ds-blue, #1d4ed8);
}

/* ---------- Hoy toca repasar ---------- */
.mp-today {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  align-items: center;
  gap: 16px 24px;
  padding: 22px 26px;
  margin-bottom: 22px;
  border: 1px solid var(--ds-line, #e2e8f0);
  border-radius: 20px;
  background: var(--ds-blue-soft, #eaf1ff);
}

.mp .mp-today-title {
  margin: 0 0 4px;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--lp-navy, #0f2a5c);
}

.mp-today-title:focus {
  outline: none;
}

.mp-today-note {
  margin: 0;
  color: var(--ds-muted, #5b6678);
}

.mp-today-note:empty {
  display: none;
}

.mp-goal {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ds-muted, #5b6678);
}

.mp-goal-steps {
  display: inline-flex;
  gap: 5px;
}

.mp-goal-steps i {
  width: 22px;
  height: 6px;
  border-radius: 4px;
  background: var(--ds-line-strong, #cbd5e1);
}

.mp-goal-steps i.is-on {
  background: var(--ds-orange, #f59e0b);
}

.mp .mp-start {
  margin-top: 16px;
}

.mp-today-scene svg {
  display: block;
  width: 100%;
  height: auto;
}

.mp-scene-sun {
  fill: #fde68a;
}

body.active .mp-scene-sun {
  fill: #fbbf24;
  opacity: 0.8;
}

/* ---------- Listas, libro, búsqueda, traducciones y velocidad ---------- */
.mp-tools {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.mp-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.mp-chips::-webkit-scrollbar {
  display: none;
}

.mp-chip {
  flex: none;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border: 1.5px solid var(--ds-line-strong, #cbd5e1);
  border-radius: 999px;
  background: var(--ds-surface, #fff);
  color: inherit;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.mp-chip:hover {
  border-color: var(--ds-blue, #1d4ed8);
}

.mp-chip[aria-pressed="true"] {
  border-color: var(--ds-blue, #1d4ed8);
  background: var(--ds-blue, #1d4ed8);
  color: var(--ds-surface, #fff);
}

.mp-chip-count {
  font-size: 0.8rem;
  font-weight: 800;
  opacity: 0.7;
}

.mp-tools-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mp-filter-btn,
.mp-tool-btn {
  min-height: 38px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1.5px solid var(--ds-line-strong, #cbd5e1);
  border-radius: 10px;
  background: var(--ds-surface, #fff);
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.mp-filter-btn.is-filtered,
.mp-tool-btn[aria-pressed="true"] {
  border-color: var(--ds-blue, #1d4ed8);
  background: var(--ds-blue-soft, #eaf1ff);
  color: var(--ds-blue, #1d4ed8);
}

.mp-filter-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-filter-caret {
  font-size: 0.8rem;
  transition: transform 0.15s ease;
}

.mp-filter-btn[aria-expanded="true"] .mp-filter-caret {
  transform: rotate(180deg);
}

.mp-search {
  flex: 1 1 180px;
  min-width: 0;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1.5px solid var(--ds-line-strong, #cbd5e1);
  border-radius: 10px;
  background: var(--ds-surface, #fff);
  color: var(--ds-muted, #5b6678);
}

.mp-search:focus-within {
  border-color: var(--ds-blue, #1d4ed8);
}

.mp-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ds-ink, #1f2937);
  font: inherit;
  font-size: 0.95rem;
}

.mp-filter,
.mp-speed-wrap {
  position: relative;
}

.mp-filter-menu,
.mp-speed-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  padding: 8px;
  border: 1.5px solid var(--ds-line-strong, #cbd5e1);
  border-radius: 14px;
  background: var(--ds-surface, #fff);
  color: var(--ds-ink, #1f2937);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.mp-filter-menu {
  width: min(320px, calc(100vw - 32px));
  max-height: min(70vh, 460px);
  overflow-y: auto;
}

.mp-speed-menu {
  left: auto;
  right: 0;
}

.mp-filter-group {
  display: grid;
  gap: 2px;
}

.mp-filter-option {
  min-height: 42px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.mp-filter-option:hover,
.mp-filter-option:focus-visible {
  background: var(--ds-blue-soft, #eaf1ff);
}

.mp-filter-option[aria-pressed="true"] {
  background: var(--ds-blue-soft, #eaf1ff);
  color: var(--ds-blue, #1d4ed8);
  font-weight: 700;
}

.mp-filter-check {
  width: 1em;
  visibility: hidden;
}

.mp-filter-option[aria-pressed="true"] .mp-filter-check {
  visibility: visible;
}

.mp-filter-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-speed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mp-speed-label {
  margin-right: 2px;
  font-size: 0.85rem;
  color: var(--ds-muted, #5b6678);
}

.mp-speed-btn,
.mp-repeat {
  min-height: 36px;
  padding: 4px 12px;
  border: 1.5px solid var(--ds-line-strong, #cbd5e1);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
  white-space: nowrap;
  cursor: pointer;
}

.mp-speed-btn[aria-pressed="true"],
.mp-repeat.is-active {
  border-color: var(--ds-blue, #1d4ed8);
  background: var(--ds-blue, #1d4ed8);
  color: var(--ds-surface, #fff);
  font-weight: 700;
}

.mp-list-empty {
  text-align: center;
  padding: 24px 16px;
  color: var(--ds-muted, #5b6678);
}

/* ---------- Lista de frases ---------- */
.mp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.mp-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--ds-surface, #fff);
  border: 1px solid var(--ds-line, #e2e8f0);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.mp-item-text {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.mp-item-text p {
  margin: 0;
}

.mp-item-en {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
}

.mp-item-es {
  margin-top: 4px !important;
  color: var(--ds-muted, #5b6678);
}

.mp-item-reveal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 2px 0;
  border: 0;
  border-bottom: 1.5px dashed var(--ds-line-strong, #cbd5e1);
  background: transparent;
  color: var(--ds-muted, #5b6678);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.mp-item-reveal:hover,
.mp-item-reveal:focus-visible {
  color: var(--ds-blue, #1d4ed8);
  border-bottom-color: var(--ds-blue, #1d4ed8);
}

.mp-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ds-muted, #5b6678);
}

.mp-item-source a {
  color: inherit;
  text-decoration: none;
}

.mp-item-source a:hover,
.mp-item-source a:focus-visible {
  color: var(--ds-blue, #1d4ed8);
  text-decoration: underline;
}

.mp-level {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.mp-level:hover,
.mp-level:focus-visible,
.mp-level[aria-expanded="true"] {
  color: var(--ds-blue, #1d4ed8);
}

.mp-level-help {
  font-size: 0.85em;
  opacity: 0.8;
}

.mp-level-hint {
  margin: 8px 0 0 !important;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--ds-blue-soft, #eaf1ff);
  font-size: 0.85rem;
  color: var(--ds-ink, #1f2937);
}

.mp-level-bars {
  display: inline-flex;
  gap: 2px;
}

.mp-level-bars i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--ds-line-strong, #cbd5e1);
}

.mp-level-bars i.is-on {
  background: var(--ds-blue, #1d4ed8);
}

.mp-level.is-done .mp-level-bars i.is-on {
  background: #16a34a;
}

.mp-due {
  white-space: nowrap;
}

.mp-due.is-due {
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff3dc;
  color: #92400e;
  font-weight: 800;
}

body.active .mp-due.is-due {
  background: rgba(251, 191, 36, 0.14);
  color: #fbbf24;
}

.mp-tag-later {
  white-space: nowrap;
}

.mp-item-actions {
  position: relative;
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.mp-icon-btn {
  width: 44px;
  height: 44px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--ds-blue, #1d4ed8);
  border-radius: 50%;
  background: transparent;
  color: var(--ds-blue, #1d4ed8);
  font-size: 1.1rem;
  cursor: pointer;
}

.mp-icon-btn:hover,
.mp-icon-btn:focus-visible {
  background: var(--ds-blue-soft, #eaf1ff);
}

.mp-icon-btn-solid {
  background: var(--ds-blue, #1d4ed8);
  color: var(--ds-surface, #fff);
}

.mp-icon-btn-solid:hover,
.mp-icon-btn-solid:focus-visible {
  background: var(--ds-blue-dark, #1e3a8a);
  color: #fff;
}

.mp-icon-btn-quiet {
  border-color: var(--ds-line-strong, #cbd5e1);
  color: var(--ds-muted, #5b6678);
}

.mp-icon-btn-small {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

.mp-fav.is-on {
  border-color: var(--ds-orange, #f59e0b);
  color: var(--ds-orange-dark, #b45309);
}

body.active .mp-fav.is-on {
  color: var(--ds-orange, #fbbf24);
}

.mp-icon-btn.is-active {
  border-color: var(--ds-blue, #1d4ed8);
  background: var(--ds-blue, #1d4ed8);
  color: var(--ds-surface, #fff);
}

/* Menú "⋯" de una frase */
.mp-item-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 15;
  width: 230px;
  padding: 6px;
  border: 1px solid var(--ds-line, #e2e8f0);
  border-radius: 12px;
  background: var(--ds-surface, #fff);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.mp-menu-item {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ds-ink, #1f2937);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.mp-menu-item i {
  color: var(--ds-muted, #5b6678);
}

.mp-menu-item:hover,
.mp-menu-item:focus-visible {
  background: var(--ds-blue-soft, #eaf1ff);
  outline: none;
}

.mp-menu-item.is-danger {
  margin-top: 4px;
  border-top: 1px solid var(--ds-line, #e2e8f0);
  border-radius: 0 0 8px 8px;
  color: #dc2626;
}

.mp-menu-item.is-danger i {
  color: inherit;
}

body.active .mp-menu-item.is-danger {
  color: #f87171;
}

.mp-sync {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ds-muted, #5b6678);
}

/* ---------- Repaso: ocupa la página mientras dura ---------- */
#mp-content.is-reviewing > :not(#mp-review) {
  display: none;
}

.mp-review {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.mp-review-top {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 0.9rem;
}

.mp-review-bar {
  flex: 1;
  height: 8px;
  border-radius: 6px;
  background: var(--ds-line, #e2e8f0);
  overflow: hidden;
}

.mp-review-bar span {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: var(--ds-blue, #1d4ed8);
  transition: width 0.3s ease;
}

.mp-review-progress {
  margin: 0;
  white-space: nowrap;
  color: var(--ds-muted, #5b6678);
}

.mp-review-goal {
  justify-content: center;
  margin: 0;
}

.mp-review-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 24px 20px;
  text-align: center;
  background: var(--ds-surface, #fff);
  border: 1px solid var(--ds-line, #e2e8f0);
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.mp-review-source {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ds-muted, #5b6678);
}

.mp-review-source:empty {
  display: none;
}

.mp-review-en {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.35;
  font-weight: 700;
}

.mp-review-es {
  width: 100%;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--ds-line, #e2e8f0);
  font-size: 1.2rem;
}

.mp-review-audio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.mp-review-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.mp-review .mp-review-actions .pg-btn {
  flex: 1 1 0;
  max-width: 260px;
}

.mp-book-link {
  justify-self: center;
  font-size: 0.9rem;
  color: var(--ds-muted, #5b6678);
  text-decoration: underline;
}

/* Palabras pulsables y panel de significado */
.mp-word {
  padding: 0;
  margin: 0;
  border: 0;
  border-bottom: 1.5px dotted rgba(0, 0, 0, 0.35);
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

body.active .mp-word {
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.mp-word:hover,
.mp-word:focus-visible,
.mp-word.is-open {
  background: var(--ds-blue-soft, #eaf1ff);
  outline: none;
}

.mp-gloss {
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  text-align: left;
  border-radius: 12px;
  background: var(--ds-blue-soft, #eaf1ff);
  font-size: 1rem;
  font-weight: 400;
}

.mp-gloss-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mp-gloss-body {
  margin: 6px 0 0;
}

.mp-gloss-root,
.mp-gloss-note {
  color: var(--ds-muted, #5b6678);
}

.mp-gloss-note {
  margin: 6px 0 0;
  font-size: 0.8rem;
}

.mp-gloss-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.85rem;
  text-decoration: underline;
  color: inherit;
}

/* Recorrido de bienvenida (primera visita): un consejo a la vez, centrado */
.mp-tour {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(92vw, 400px);
  height: fit-content;
  padding: 32px 28px 24px;
  border: 1px solid var(--ds-line, #e2e8f0);
  border-radius: 20px;
  background: #fff;
  color: #1f1f1f;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

body.active .mp-tour {
  background: #1f2430;
  color: #f2f2f2;
}

.mp-tour::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.mp-tour-icon {
  display: block;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--ds-blue, #1d4ed8);
}

.mp-tour-title {
  margin: 14px 0 8px;
  font-size: 1.4rem;
}

.mp-tour-text {
  margin: 0;
  font-size: 1rem;
  opacity: 0.85;
}

.mp-tour-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}

/* El botón usa .pg-btn-primary, que toma su color de variables --lp-* definidas solo dentro de la landing:
   en este diálogo no existen y el botón quedaba blanco sobre blanco. */
.mp-tour .pg-btn-primary {
  background: #1d4ed8;
  border-color: #1e3a8a;
  color: #fff;
}

.mp-tour .pg-btn-primary:hover {
  background: #1e40af;
}

body.active .mp-tour .pg-btn-primary {
  background: #60a5fa;
  border-color: #3b82f6;
  color: #0b1220;
}

body.active .mp-tour .pg-btn-primary:hover {
  background: #93c5fd;
}

.mp-tour-dots {
  display: flex;
  gap: 8px;
}

.mp-tour-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(128, 128, 128, 0.4);
}

.mp-tour-dots span.is-active {
  background: var(--ds-blue, #1d4ed8);
}

.mp-review[hidden],
.mp-review-actions [hidden],
.mp-quota[hidden],
.mp-quota-note[hidden],
.mp-filter[hidden],
.mp-filter-menu[hidden],
.mp-speed-menu[hidden],
.mp-item-menu[hidden],
.mp-goal[hidden],
.mp-start[hidden],
.mp-sync[hidden],
.mp-list-empty[hidden],
.mp-item-es[hidden] {
  display: none;
}

/* Botones sin color propio del repaso ("Otra vez"): mismo fondo que la tarjeta en claro y en oscuro */
.mp-review .pg-btn:not(.pg-btn-primary) {
  border-color: var(--ds-line-strong, #cbd5e1);
  background: var(--ds-surface, #fff);
  color: var(--ds-ink, #1f2937);
}

/* Filtros: en el ordenador, chips de listas a la vista y el botón solo para el libro */
@media (min-width: 561px) {
  .mp-filter-phone,
  .mp-filter-list,
  .mp-filter.is-one-book {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mp-today-scene * {
    animation: none !important;
  }
}

/* ---------- Pantallas pequeñas ---------- */
@media (max-width: 1120px) {
  .mp .mp-section {
    padding-top: 104px;
  }
}

@media (max-width: 560px) {
  .mp .mp-section {
    padding-top: 96px;
    padding-bottom: 48px;
  }

  .mp-today {
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
  }

  .mp .mp-today-title {
    font-size: 1.2rem;
  }

  .mp-today-note {
    font-size: 0.92rem;
  }

  .mp-today-scene {
    align-self: start;
  }

  /* El botón ocupa todo el ancho, debajo del texto y del dibujo */
  .mp .mp-start {
    grid-column: 1 / -1;
    width: 100%;
  }

  .mp-today-text {
    display: contents;
  }

  .mp-today-title,
  .mp-today-note,
  .mp-goal {
    grid-column: 1;
  }

  .mp-today-title {
    grid-row: 1;
  }

  .mp-today-scene {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .mp .mp-start {
    margin-top: 2px;
  }

  /* En el móvil, un solo botón con flechita ("Todas · 5 ▾") abre listas y libros en lugar de cuatro chips */
  .mp-chips,
  .mp-filter-book-icon,
  .mp-filter-btn:not(.is-filtered) .mp-filter-label,
  .mp-filter.is-one-book .mp-filter-books {
    display: none;
  }

  .mp-filter-btn .mp-filter-label::before {
    content: "· ";
  }

  .mp-filter-btn {
    max-width: 200px;
  }

  .mp-filter-list {
    white-space: nowrap;
  }

  .mp-filter-btn.has-list {
    border-color: var(--ds-blue, #1d4ed8);
    background: var(--ds-blue-soft, #eaf1ff);
    color: var(--ds-blue, #1d4ed8);
  }

  .mp-filter-heading {
    margin: 6px 8px 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ds-muted, #5b6678);
  }

  /* Filtro, ojo y velocidad en una sola línea; el buscador solo en pantallas grandes */
  .mp-search {
    display: none;
  }

  .mp-tools-row {
    flex-wrap: nowrap;
  }

  .mp-filter {
    flex: 1 1 auto;
    min-width: 0;
  }

  .mp-filter-btn {
    width: 100%;
    max-width: none;
  }

  .mp-filter-list {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mp-filter-caret {
    margin-left: auto;
  }

  .mp-show-es,
  .mp-speed-wrap {
    flex: none;
  }

  /* El menú de filtros sale desde abajo, a todo el ancho, y se desplaza por dentro: así no queda cortado */
  .mp-filter-menu {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10002;
    width: auto;
    max-height: 80vh;
    max-height: 80dvh;
    padding: 12px max(12px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    border-width: 1px 0 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 0 0 100vmax rgba(15, 23, 42, 0.45);
    overscroll-behavior: contain;
  }

  .mp-tool-btn span:not(#mp-speed-current) {
    display: none;
  }

  .mp-item {
    padding: 12px;
    gap: 10px;
  }

  .mp-item-en {
    font-size: 1.02rem;
  }

  .mp-item-listen {
    width: 40px;
    height: 40px;
  }

  .mp-item-actions {
    flex-direction: column;
  }

  .mp-review-card {
    padding: 20px 14px;
  }

  .mp-review-en {
    font-size: 1.3rem;
  }

  .mp-speed {
    flex-wrap: wrap;
    justify-content: center;
  }
}
