.icono { display: block; flex: none; filter: brightness(0) invert(1); }
.red-herramienta { border: 0; cursor: pointer; }
.red-herramienta .icono { width: 16px; height: 16px; }
.hoja-pie { flex: none; padding: 12px 18px max(18px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.1); }
.hoja-letra { -webkit-user-select: text; user-select: text; }
.accion { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.08); color: #fff; font: inherit; font-size: .875rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.accion:hover { background: rgba(255,255,255,.16); }
.accion:disabled { opacity: .4; cursor: default; }
.accion .icono { width: 19px; height: 19px; }
.accion-primaria { width: 100%; background: #fff; color: #1d1d1f; border-color: transparent; }
.accion-primaria:hover { background: #eee; }
.accion-primaria .icono { filter: none; }
.hoja.hoja-social { height: auto; max-height: 80dvh; }
.social-contenido { min-height: 0; overflow-y: auto; touch-action: pan-y; overscroll-behavior: contain; padding: 22px 20px max(26px, env(safe-area-inset-bottom)); }
.compartir-mensaje { font-size: 1.25rem; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; margin-bottom: 22px; }
.social-acciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.social-estado { min-height: 0; font-size: .8125rem; line-height: 1.4; color: rgba(255,255,255,.7); overflow-wrap: anywhere; }
.social-estado:not(:empty) { margin-top: 12px; }
.sitios-lista { display: flex; flex-direction: column; }
.sitio { display: flex; align-items: center; gap: 14px; padding: 18px 0; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.12); }
.sitio:first-child { padding-top: 0; }
.sitio:last-child { border: 0; padding-bottom: 0; }
.sitio-texto { flex: 1; min-width: 0; }
.sitio strong { display: block; font-size: 1.125rem; }
.sitio small { display: block; margin-top: 4px; color: rgba(255,255,255,.6); font-size: .8125rem; overflow-wrap: anywhere; }
.sitio .icono { width: 20px; height: 20px; }
.card-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; flex: none; margin: 14px 18px 0; padding: 4px; border-radius: 8px; background: rgba(0,0,0,.25); }
.card-tabs button { min-height: 38px; border: 0; border-radius: 5px; background: transparent; color: rgba(255,255,255,.65); font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.card-tabs button[aria-selected="true"] { background: rgba(255,255,255,.18); color: #fff; }
.card-cuerpo { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; overscroll-behavior: contain; padding: 18px; }
.fragmento-cabecera { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.65); font-size: .8125rem; }
.fragmento-cabecera output { margin-left: auto; font-variant-numeric: tabular-nums; }
.accion-limpiar { background: transparent; border: 0; color: #fff; font: inherit; font-size: .8125rem; min-height: 36px; padding: 0 4px; cursor: pointer; }
.fragmento-elegido { margin: 10px 0 20px; padding: 14px 0; border-block: 1px solid rgba(255,255,255,.14); font-size: 1.125rem; font-weight: 600; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.fragmento-elegido:empty { display: none; }
.fragmento-lineas { display: flex; flex-direction: column; gap: 6px; }
.verso { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; border: 1px solid transparent; border-radius: 8px; background: transparent; color: rgba(255,255,255,.65); padding: 12px; font: inherit; font-weight: 600; line-height: 1.5; cursor: pointer; }
.verso span { overflow-wrap: anywhere; min-width: 0; }
.verso::before { content: ""; width: 18px; height: 18px; margin-top: 3px; flex: none; border: 1px solid rgba(255,255,255,.35); border-radius: 4px; }
.verso[aria-pressed="true"] { background: rgba(255,255,255,.13); color: #fff; border-color: rgba(255,255,255,.2); }
.verso[aria-pressed="true"]::before { background: #fff url("vendor/icons/check.svg") center / 14px no-repeat; }
.verso:disabled { opacity: .3; cursor: default; }
.card-vista { display: flex; align-items: center; justify-content: center; padding: 16px 18px; overflow: hidden; }
#lyricsCanvas { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; aspect-ratio: 4 / 5; border-radius: 8px; box-shadow: 0 12px 32px rgba(0,0,0,.3); }
.card-exportar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.card-pie .social-estado:not(:empty) { margin: 0 0 10px; }
.historia-vista { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: hidden; }
#historiaCanvas { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; aspect-ratio: 9 / 16; border-radius: 8px; box-shadow: 0 12px 32px rgba(0,0,0,.3); }
.historia-acciones { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 46px; gap: 8px; }
.historia-acciones .accion { padding: 10px 6px; gap: 6px; font-size: .8125rem; }
.hoja-historia .social-estado:not(:empty) { margin: 0 0 10px; }
@media (max-width: 600px) and (max-height: 680px) {
  .player .portada { width: min(100%, max(132px, calc(100svh - 430px))); margin-inline: auto; }
}
@media (max-width: 360px) {
  .header .creditos { gap: 6px; font-size: .8125rem; }
  .social-acciones { grid-template-columns: 1fr; }
  .card-exportar { gap: 6px; }
  .card-exportar .accion { padding-inline: 8px; font-size: .8125rem; }
}
