/* public/uxfix.css -- retoques de facilidad de uso (zonas de toque y textos pequeños) en el celular */
html.is-phone .lp-box input { min-height: 44px; width: 96px; font-size: 16px; }
html.is-phone .hint-icon { min-height: 40px; }
html.is-phone .social-action-btn { min-width: 44px; min-height: 44px; }
html.is-phone .btn-secondary, html.is-phone .btn-row button { min-height: 44px; min-width: 44px; }
html.is-phone .lg-chip { min-height: 40px; }
html.is-phone [class*="dl-"], html.is-phone .track-actions button { font-size: max(12.5px, 0.8rem); }
html.is-phone .song-card-exportbtn { font-size: 12.5px !important; }

/* "Tararea tu idea": botón grande y selector de estilo (humtile.js) */
.hm-style { display: grid; gap: 4px; font-size: 12px; font-weight: 700; min-width: 0; margin: 4px 0 8px; }
.hm-style select { width: 100%; min-width: 0; min-height: 46px; font-size: 16px; box-sizing: border-box; }
html.sv-scene-on #humRecordBtn, html.sv-scene-on #humStopBtn { width: 100%; min-height: 76px; border-radius: 999px; font-size: 1.25rem; font-weight: 800; }
html.sv-scene-on #humRecordBtn { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #07070c; border: 0; box-shadow: 0 12px 30px rgb(var(--accent-rgb) / 45%); }
html.sv-scene-on .hum-rec { display: grid; gap: 10px; }
html.sv-scene-on #humGenerateBtn { width: 100%; min-height: 64px; font-size: 1.1rem; }

.hum-icon { font-size: 1.1rem; letter-spacing: -2px; }

/* Listas desplegables (select): el fondo de la lista salia blanco con letras claras y no se leia (ej. "Escala" del Beat Maker).
   Las opciones llevan fondo oscuro y texto claro de la skin. */
select option, select optgroup { background-color: var(--panel-2, #0c0c14); color: var(--text, #f1f2f8); }
select option:checked, select option:hover { background-color: var(--accent, #ff2d95); color: #07070c; }

/* Pie de la app: las tres barras (créditos, enlaces legales, redes) van una debajo de la otra, centradas
   con el resto de la página. Antes, en inglés (textos más largos) se ponían dos juntas en una línea,
   corridas hacia un lado y más anchas que el contenido. */
#appRoot footer { display: flex; flex-direction: column; align-items: center; gap: 8px; }
#appRoot footer p.credit { margin: 0 !important; max-width: min(100%, 1236px); }

/* Barra de la oferta de lanzamiento (arriba de la página de inicio, solo si está encendida) */
.landing-promo { display: block; text-align: center; padding: 10px 16px; font-weight: 700; font-size: .95rem; color: #1a0f08; background: linear-gradient(90deg, #f5a53b, #f0c24a); text-decoration: none; }
.landing-promo[hidden] { display: none; }
.landing-promo:hover { filter: brightness(1.06); }

/* respaldo: campos ocultos segun el destino elegido */
#obBox [hidden]{display:none !important}


/* ===== Tarjetas de "Tus canciones" (cuadricula): botones grandes y ordenados en filas ===== */
/* Antes todo iba en UNA fila y en tarjetas angostas los botones se aplastaban y se tapaban. */
html:not(.layout-suno) .song-card-grid .song-card .song-card-actions,
html.layout-suno .suno-songs.is-grid .song-card-grid .song-card .song-card-actions {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; align-items: stretch;
  padding-top: 12px; margin: 0;
}
/* fila 1: Escuchar, grande, a todo el ancho */
html:not(.layout-suno) .song-card-grid .song-card .song-card-open,
html.layout-suno .suno-songs.is-grid .song-card-grid .song-card .song-card-open {
  grid-column: 1 / -1; width: 100%; margin: 0; padding: 13px 14px; font-size: 1.02rem; font-weight: 700;
  border-radius: 14px; white-space: nowrap; letter-spacing: 0.01em;
}
/* fila 2: los iconos (favorita, IA, voz, compartir, comunidad), repartidos parejo y grandes */
html:not(.layout-suno) .song-card-grid .song-card .sc-group,
html.layout-suno .suno-songs.is-grid .song-card-grid .song-card .sc-group {
  grid-column: 1 / -1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  gap: 6px; padding: 5px; border-radius: 16px;
}
html:not(.layout-suno) .song-card-grid .song-card .sc-group > button,
html.layout-suno .suno-songs.is-grid .song-card-grid .song-card .sc-group > button {
  width: 100%; height: 44px; border-radius: 12px; font-size: 1.25rem;
}
/* fila 3: carpeta y portada (los agrega library.js) */
html:not(.layout-suno) .song-card-grid .song-card .song-card-actions > .lib-item-btn,
html.layout-suno .suno-songs.is-grid .song-card-grid .song-card .song-card-actions > .lib-item-btn {
  grid-column: span 3; height: 44px; padding: 0; margin: 0; border-radius: 12px; font-size: 1.2rem;
  display: grid; place-items: center;
}
/* fila 4: MP3 y WAV grandes, y la papelera al lado */
html:not(.layout-suno) .song-card-grid .song-card .song-card-exportgroup,
html.layout-suno .suno-songs.is-grid .song-card-grid .song-card .song-card-exportgroup {
  grid-column: span 4; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0;
  order: 9; border-radius: 12px;
}
html:not(.layout-suno) .song-card-grid .song-card .song-card-exportgroup .song-card-exportbtn,
html.layout-suno .suno-songs.is-grid .song-card-grid .song-card .song-card-exportgroup .song-card-exportbtn {
  height: 44px; padding: 0 6px; font-size: 0.86rem; font-weight: 600; color: var(--text);
}
html:not(.layout-suno) .song-card-grid .song-card .song-card-delbtn,
html.layout-suno .suno-songs.is-grid .song-card-grid .song-card .song-card-delbtn {
  grid-column: span 2; order: 10; width: 100%; height: 44px; margin: 0; border-radius: 12px; font-size: 1.15rem;
}

/* Barra de promo con X para cerrarla (una vez por sesion) */
.landing-promo.has-x { position: relative; padding-right: 48px; padding-left: 48px; }
.landing-promo .pb-x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font-size: 1rem; line-height: 1; cursor: pointer; background: rgba(26, 15, 8, .14); }
.landing-promo .pb-x:hover { background: rgba(26, 15, 8, .3); }

/* Celular angosto: los nombres de la barra de abajo se cortaban ("Karaok", "Agend"): la letra se ajusta al ancho de la pantalla */
@media (max-width: 760px) {
  #appRoot .tab-bar:not(.subtab-bar) .tab-btn span[data-s]::after { font-size: clamp(8px, 2.45vw, 0.66rem); letter-spacing: -0.01em; }
}
