:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #121722;
  --muted: #667085;
  --line: #d9dee8;
  --brand: #16325c;
  --brand2: #b58a2b;
  --ok: #157347;
  --warn: #9a6700;
  --bad: #b42318;
  --radius: 16px;
  --fs: 20px;
  --header-h: 64px;
  --sidebar: 320px;
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ui: Inter, system-ui, "Segoe UI", sans-serif;
  --he: "Noto Serif Hebrew", "Noto Sans Hebrew", "Times New Roman", serif;
  --read: Literata, Georgia, serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  width: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  overflow-x: hidden;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--brand2); }

.ico {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: inherit;
  line-height: 0;
}
.ico svg { width: 100%; height: 100%; display: block; }
.ico.md { width: 20px; height: 20px; flex-basis: 20px; }

.app {
  min-height: 100dvh;
  display: block;
  width: 100%;
  padding-left: var(--sidebar);
  box-sizing: border-box;
  transition: padding-left 0.2s ease;
}
.app.nav-collapsed {
  padding-left: 0;
}
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar);
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  border-right: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-top: var(--safe-t);
  padding-bottom: var(--safe-b);
  overflow: hidden;
  z-index: 35;
  transform: translateX(0);
  transition: transform 0.2s ease;
}
/* Ocultar no reduce altura: solo se desliza fuera */
.app.nav-collapsed .sidebar {
  transform: translateX(-100%);
  pointer-events: none;
}
.brand {
  position: relative;
  padding: 10px 10px 8px;
  border-bottom: 1px solid var(--line);
  background: #00153d;
}
.brand-link {
  display: block;
  line-height: 0;
  border-radius: 4px;
  overflow: hidden;
}
.brand-link:focus-visible {
  outline: 2px solid var(--brand2);
  outline-offset: 2px;
}
.brand img {
  width: 100%;
  height: auto;
  display: block;
}
.brand-meta {
  margin: 6px 2px 0;
  color: color-mix(in srgb, #fff 72%, transparent);
  font-size: 0.72rem;
  line-height: 1.35;
}
.search-wrap {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.search {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  outline: none;
}
.search:focus { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }

.filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.chip.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.song-list { overflow: auto; flex: 1; padding: 8px; min-height: 0; }
.song-item {
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 12px;
  background: transparent;
  padding: 11px 12px;
  margin: 2px 0;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 9px;
  align-items: start;
}
.song-item:hover, .song-item.active { background: #eef3fa; }
.num { font-weight: 800; color: var(--brand); }
.song-title { font-weight: 700; line-height: 1.25; }
.meta { font-size: 0.75rem; color: var(--muted); margin-top: 3px; }

.btn {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 12px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 650;
  font-size: 0.86rem;
  text-decoration: none;
  color: inherit;
}
.btn.primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.toolbar-action {
  padding: 8px 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.toolbar-action .ico {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

.main { min-width: 0; display: flex; flex-direction: column; width: 100%; }
.toolbar {
  height: calc(var(--header-h) + var(--safe-t));
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(8px + var(--safe-t)) 12px 8px;
}
.toolbar .spacer { flex: 1; }
.tp-label {
  min-width: 2rem;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand2);
}
.iconbtn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.menu-toggle { display: inline-flex; }
.toolbar-proxies {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none;
}

.content {
  width: 100%;
  padding: 18px clamp(14px, 3vw, 44px) 44px;
}
.song-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.song-head h2 {
  margin: 0 0 5px;
  font-size: clamp(1.45rem, 4vw, 2.2rem);
  color: var(--brand);
  line-height: 1.2;
}
.subtitle { color: var(--muted); font-size: 0.9rem; }
.status {
  font-size: 0.78rem;
  font-weight: 750;
  border-radius: 999px;
  padding: 7px 10px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.status .ico { width: 14px; height: 14px; flex-basis: 14px; }
.status.ok { background: #eaf7ef; color: var(--ok); }
.status.warn { background: #fff5d6; color: var(--warn); }
.status.reject, .status.bad { background: #fdecec; color: var(--bad); }

.song-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 18px;
}
.lyrics-wrap {
  min-width: 0;
  width: 100%;
}
.sidepanels.meta-bottom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.sidepanels.meta-bottom .panel {
  margin-bottom: 0;
}
.meta-ficha .kv {
  grid-template-columns: 96px 1fr;
}
.lyrics {
  font-family: var(--read);
  font-size: var(--fs);
  line-height: 1.65;
  white-space: normal;
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 8px 4px 18px;
}
.lyrics .ly-stanza {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
}
.lyrics .ly-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.lyrics .ly-pair {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0.15rem 0;
}
.lyrics .ly-he,
.lyrics .he,
.hebrew {
  font-family: var(--he), var(--read);
  direction: ltr;
  text-align: left;
  font-weight: 700;
  font-size: 1.12em;
  line-height: 1.45;
  color: var(--ink);
}
.lyrics .ly-he[data-script="he"],
.lyrics .he[data-script="he"] {
  direction: rtl;
  text-align: right;
  font-family: var(--he);
}
.lyrics .ly-es,
.lyrics .es-line {
  font-family: var(--read);
  font-weight: 500;
  font-size: 0.92em;
  line-height: 1.4;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
}
.lyrics .inline-chord {
  color: var(--brand2);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.72em;
  font-weight: 700;
  vertical-align: 0.4em;
  margin-right: 2px;
}
.lyrics .chord-line {
  color: var(--brand2);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.78em;
  font-weight: 700;
}
.lyrics .repeat { color: var(--muted); }

/* Karaoke = vista principal de la letra (misma estructura HE/ES que AMÉN) */
.karaoke-host:not([hidden]) ~ .lyrics#lyricsPlain {
  display: none;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}
.panel h3 {
  font-size: 0.92rem;
  margin: 0 0 10px;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel h3 .ico { width: 18px; height: 18px; }
.kv {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 7px;
  font-size: 0.86rem;
}
.kv b { color: var(--muted); font-weight: 600; }
audio {
  width: 100%;
  border-radius: 999px;
  color-scheme: dark;
}
.notes {
  white-space: pre-wrap;
  font-size: 0.88rem;
  line-height: 1.5;
  font-family: ui-monospace, Consolas, monospace;
}
.score { min-height: 80px; overflow: auto; background: #fff; border-radius: 8px; }
.empty { padding: 40px 18px; text-align: center; color: var(--muted); }
.copyright { font-size: 0.75rem; color: var(--muted); line-height: 1.4; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + var(--safe-b));
  transform: translateX(-50%);
  background: #111827;
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  display: none;
  z-index: 99;
}
.toast.show { display: block; }

.full-screen .sidebar,
.full-screen .toolbar,
.full-screen .song-head,
.full-screen .sidepanels,
.full-screen .lyrics#lyricsPlain,
.full-screen .panel:not(.meta-ficha),
.full-screen .radio-root,
.full-screen .karaoke-hint {
  display: none !important;
}
/* En pantalla completa el índice se puede abrir como overlay */
.full-screen .sidebar.open {
  display: flex !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  z-index: 10050 !important;
  transform: translateX(0) !important;
  pointer-events: auto !important;
  width: min(88vw, 340px) !important;
  box-shadow: 12px 0 30px rgba(0, 0, 0, 0.35);
}
.full-screen,
.full-screen body,
html:fullscreen,
html:-webkit-full-screen {
  background: #17191e !important;
}
.full-screen .app {
  display: block;
  padding: 0 !important;
  margin: 0 !important;
  background: #17191e !important;
  min-height: 100dvh;
}
.full-screen .main {
  padding: 0 !important;
  margin: 0 !important;
  min-height: 100dvh;
  background: #17191e !important;
}
.full-screen .content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
  background: #17191e !important;
  min-height: 100dvh;
}
.full-screen .song-body,
.full-screen .lyrics-wrap {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
  min-height: 100dvh;
  background: #17191e !important;
}
.full-screen .karaoke-host,
.full-screen .karaoke-host.kara-pro,
.karaoke-host:fullscreen,
.karaoke-host:-webkit-full-screen,
.karaoke-host:-moz-full-screen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  width: 100vw !important;
  width: 100dvw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: #17191e !important;
}
.full-screen .karaoke-host.kara-has-bg,
.karaoke-host.kara-has-bg:fullscreen,
.karaoke-host.kara-has-bg:-webkit-full-screen,
.karaoke-host.kara-has-bg:-moz-full-screen {
  background: transparent !important;
}
.full-screen .karaoke-stage.kara-full,
.karaoke-host:fullscreen .karaoke-stage.kara-full,
.karaoke-host:-webkit-full-screen .karaoke-stage.kara-full {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
  padding: 24px 20px 32px;
}
.full-screen .kara-fs-tools,
.karaoke-host:fullscreen .kara-fs-tools,
.karaoke-host:-webkit-full-screen .kara-fs-tools {
  display: inline-flex !important;
}
.full-screen .kara-fs-btn .ico-expand,
.karaoke-host:fullscreen .kara-fs-btn .ico-expand,
.karaoke-host:-webkit-full-screen .kara-fs-btn .ico-expand {
  display: none;
}
.full-screen .kara-fs-btn .ico-collapse,
.karaoke-host:fullscreen .kara-fs-btn .ico-collapse,
.karaoke-host:-webkit-full-screen .kara-fs-btn .ico-collapse {
  display: block !important;
}

@media (max-width: 860px) {
  .app,
  .app.nav-collapsed {
    display: block;
    padding-left: 0;
  }
  .sidebar,
  .app.nav-collapsed .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(88vw, 340px);
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    z-index: 35;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 12px 0 30px rgba(0, 0, 0, 0.18);
    pointer-events: auto;
    border-right: 1px solid var(--line);
    opacity: 1;
    visibility: visible;
    padding-top: var(--safe-t);
    padding-bottom: var(--safe-b);
  }
  .sidebar.open,
  .app.nav-collapsed .sidebar.open {
    transform: translateX(0);
    pointer-events: auto;
  }
  .content { padding: 14px 0 34px; width: 100%; }
  .song-head { padding: 0 14px 13px; }
  .song-body { display: flex; flex-direction: column; margin-top: 14px; }
  .lyrics-wrap { padding: 0 14px; }
  .sidepanels.meta-bottom {
    padding: 0 14px;
    margin-top: 10px;
    grid-template-columns: 1fr;
  }
  .toolbar {
    padding-left: max(8px, var(--safe-l));
    padding-right: max(8px, var(--safe-r));
    flex-wrap: wrap;
    height: auto;
    min-height: calc(var(--header-h) + var(--safe-t));
  }
  .toolbar-action {
    font-size: 0.78rem;
    padding: 7px 10px;
  }
}

@media (max-width: 560px) {
  .toolbar { gap: 5px; }
  .iconbtn { padding: 8px; min-width: 38px; min-height: 38px; }
  .song-head { display: block; }
  .status { display: inline-flex; margin-top: 9px; }
  .toolbar-action span:not(.ico) {
    /* keep short labels */
  }
}

.karaoke-host,
.karaoke-host.kara-pro {
  --kara-bg: #17191e;
  --kara-gold: #ffd54a;
  --kara-white: #ffffff;
  --kara-next: rgba(185, 190, 199, 0.72);
  --kara-past: rgba(138, 144, 153, 0.42);
  --kara-font: "Poppins", system-ui, sans-serif;
  --kara-zoom: 1;
  margin: 0 0 22px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: var(--kara-bg);
  background-color: #17191e;
  color: var(--kara-white);
  overflow: hidden;
  isolation: isolate;
  position: relative;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.28),
    0 2px 0 rgba(255, 255, 255, 0.04) inset;
  min-height: min(62vh, 580px);
  display: flex;
  flex-direction: column;
  font-family: var(--kara-font);
}
.karaoke-host.kara-has-bg {
  background: transparent !important;
  background-color: transparent !important;
}
.karaoke-host.kara-bg-off,
.karaoke-host:not(.kara-has-bg) {
  background: #17191e !important;
  background-color: #17191e !important;
}
.karaoke-host.kara-bg-off .kara-bg-slideshow,
.karaoke-host:not(.kara-has-bg) .kara-bg-slideshow {
  display: none !important;
}
.full-screen .karaoke-host.kara-bg-off,
.full-screen .karaoke-host:not(.kara-has-bg),
.karaoke-host.kara-bg-off:fullscreen,
.karaoke-host:not(.kara-has-bg):fullscreen {
  background: #17191e !important;
}
.kara-bg-slideshow,
.background-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
  background: #2a1f18;
}
/* Fondo solo dentro del karaoke; barra y letras encima */
.karaoke-host.kara-has-bg {
  background: transparent !important;
  background-color: transparent !important;
}
.karaoke-host.kara-has-bg > .karaoke-bar,
.karaoke-host.kara-has-bg > .karaoke-stage,
.karaoke-host.kara-has-bg > .karaoke-hint {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}
.karaoke-host.kara-has-bg > .karaoke-bar {
  background: rgba(20, 22, 26, 0.82);
}
.full-screen .karaoke-host.kara-has-bg,
.karaoke-host.kara-fs.kara-has-bg,
.karaoke-host.kara-has-bg:fullscreen {
  background: transparent !important;
}
.kara-bg-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(10, 12, 16, 0.32) 0%, rgba(10, 12, 16, 0.48) 45%, rgba(10, 12, 16, 0.58) 100%),
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.32));
  pointer-events: none;
}
.background-image {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  top: -5%;
  left: -5%;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 1.2s ease-in-out;
  z-index: 1;
}
.background-image.is-visible {
  opacity: 1 !important;
}
.background-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}
@keyframes fadeInOut {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes horizontalPan {
  0% {
    transform: scale(1.2) translateX(-15%);
  }
  100% {
    transform: scale(1.2) translateX(15%);
  }
}
@keyframes verticalPan {
  0% {
    transform: scale(1.2) translateY(-15%);
  }
  100% {
    transform: scale(1.2) translateY(15%);
  }
}
@keyframes diagonalPan {
  0% {
    transform: scale(1.2) translate(-15%, -15%);
  }
  100% {
    transform: scale(1.2) translate(15%, 15%);
  }
}
@keyframes surveyPan {
  0% {
    transform: scale(1.2) translate(-15%, -15%);
  }
  25% {
    transform: scale(1.2) translate(15%, -15%);
  }
  50% {
    transform: scale(1.2) translate(15%, 15%);
  }
  75% {
    transform: scale(1.2) translate(-15%, 15%);
  }
  100% {
    transform: scale(1.2) translate(-15%, -15%);
  }
}
@keyframes establishingPan {
  0% {
    transform: scale(1.4) translate(0, 0);
  }
  20% {
    transform: scale(1.2) translate(-15%, -15%);
  }
  40% {
    transform: scale(1.2) translate(15%, -15%);
  }
  60% {
    transform: scale(1.2) translate(15%, 15%);
  }
  80% {
    transform: scale(1.2) translate(-15%, 15%);
  }
  100% {
    transform: scale(1) translate(0, 0);
  }
}
@keyframes reactionPan {
  0% {
    transform: scale(1.2) translateX(-20%);
  }
  30% {
    transform: scale(1.2) translateX(20%);
  }
  60% {
    transform: scale(1.2) translateX(-20%);
  }
  100% {
    transform: scale(1.2) translateX(20%);
  }
}
.karaoke-host > .karaoke-bar,
.karaoke-host > .karaoke-stage,
.karaoke-host > .karaoke-hint {
  position: relative;
  z-index: 2;
}
.karaoke-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(20, 22, 26, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
}
.karaoke-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}
.kara-menu-toggle.iconbtn.menu-toggle {
  display: none !important;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  order: -1;
}
.kara-menu-toggle .ico {
  width: 20px;
  height: 20px;
  color: #fff;
}
.kara-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
}
/* body.full-screen (clase en <body>) + :fullscreen del host */
body.full-screen .kara-menu-toggle.iconbtn.menu-toggle,
html.full-screen .kara-menu-toggle.iconbtn.menu-toggle,
.full-screen .karaoke-host .kara-menu-toggle.iconbtn.menu-toggle,
.karaoke-host.kara-fs .kara-menu-toggle.iconbtn.menu-toggle,
.karaoke-host:fullscreen .kara-menu-toggle.iconbtn.menu-toggle,
.karaoke-host:-webkit-full-screen .kara-menu-toggle.iconbtn.menu-toggle,
.karaoke-host:-moz-full-screen .kara-menu-toggle.iconbtn.menu-toggle {
  display: inline-flex !important;
}
.karaoke-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.kara-fs-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.kara-fs-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}
.kara-fs-btn .ico {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
  color: #fff;
}
.kara-fs-btn .ico-collapse {
  display: none;
}
.kara-fs-tools {
  display: none;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.kara-fs-tools .kara-tool {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.kara-fs-tools .kara-tool:hover {
  background: rgba(255, 255, 255, 0.12);
}
.kara-fs-tools .kara-tool .ico {
  width: 18px;
  height: 18px;
  color: #fff;
}
.kara-bg-toggle.kara-tool {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin: 0;
  opacity: 0.55;
}
.kara-bg-toggle.kara-tool.on {
  opacity: 1;
  background: rgba(255, 213, 74, 0.16);
  border-color: rgba(255, 213, 74, 0.45);
  color: #ffd54a;
}
.kara-bg-toggle.kara-tool:hover {
  background: rgba(255, 213, 74, 0.22);
  border-color: rgba(255, 213, 74, 0.5);
  opacity: 1;
}
.kara-bg-toggle.kara-tool .ico {
  width: 18px;
  height: 18px;
  color: inherit;
  pointer-events: none;
}
.kara-fs-tools .kara-tp {
  min-width: 36px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--kara-gold);
  font-variant-numeric: tabular-nums;
}
.karaoke-label {
  font-family: var(--kara-font);
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.88);
  text-transform: uppercase;
}
.kara-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: #ffd54a;
  color: #17191e;
  font-family: var(--kara-font);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(255, 213, 74, 0.25);
}
.kara-play-btn:hover {
  filter: brightness(1.05);
}
.kara-play-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
  box-shadow: none;
}
.kara-play-btn .ico {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
  color: #17191e;
}
.karaoke-badge {
  font-size: 0.66rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}
.karaoke-badge.lrc {
  background: rgba(255, 213, 74, 0.12);
  border-color: rgba(255, 213, 74, 0.35);
  color: #ffe08a;
}
.karaoke-badge.voice {
  background: rgba(255, 213, 74, 0.1);
  border-color: rgba(255, 213, 74, 0.28);
  color: #ffd54a;
}
.karaoke-badge.instrumental {
  background: rgba(120, 140, 180, 0.18);
  border-color: rgba(160, 180, 220, 0.45);
  color: #c5d4f0;
  animation: kara-pulse-wait 1.4s ease-in-out infinite;
}
.karaoke-badge.voice-live {
  background: rgba(80, 180, 120, 0.14);
  border-color: rgba(100, 200, 140, 0.4);
  color: #9be6b0;
}
@keyframes kara-pulse-wait {
  0%,
  100% {
    opacity: 0.75;
  }
  50% {
    opacity: 1;
  }
}
.karaoke-host.kara-instrumental .kara-row.current .kara-w.now {
  animation: none;
  opacity: 0.85;
  filter: saturate(0.7);
}
.karaoke-host.kara-instrumental .kara-underline {
  opacity: 0.35;
  animation: none;
}
.karaoke-bar .chip {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--kara-font);
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
}
.karaoke-bar .chip.active {
  background: var(--kara-gold);
  color: #17191e;
  border-color: var(--kara-gold);
}
.karaoke-stage.kara-full {
  position: relative;
  flex: 1 1 auto;
  min-height: min(52vh, 520px);
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0.85rem;
  padding: 16px clamp(8px, 1.5vw, 20px) 24px;
  background: transparent;
  mask-image: none;
  -webkit-mask-image: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.karaoke-host.kara-has-bg,
.karaoke-host.kara-has-bg.kara-pro {
  min-height: min(72vh, 720px);
}
.full-screen .karaoke-stage.kara-full,
.karaoke-host.kara-fs .karaoke-stage.kara-full,
.karaoke-host:fullscreen .karaoke-stage.kara-full {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
  padding: 24px 20px 32px;
}
.kara-stanza {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.3rem;
  padding: 8px 0 10px;
  border-radius: 0;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.kara-stanza.upcoming {
  opacity: 0.78;
}
.kara-stanza.past {
  opacity: 0.55;
}
.kara-stanza.current {
  opacity: 1;
  background: rgba(12, 14, 18, 0.22);
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 10px clamp(4px, 1vw, 12px) 14px;
  border-radius: 18px;
}
.kara-stanza-label {
  font-family: var(--kara-font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 213, 74, 0.75);
  margin-bottom: 4px;
}
.kara-stanza.past .kara-stanza-label {
  color: rgba(138, 144, 153, 0.7);
}
.kara-stanza.upcoming .kara-stanza-label {
  color: rgba(185, 190, 199, 0.55);
}
.kara-stanza-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.kara-stanza .kara-row {
  width: 100%;
}
.karaoke-stage.kara-full::-webkit-scrollbar {
  width: 8px;
}
.karaoke-stage.kara-full::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}
.kara-wait {
  font-family: var(--kara-font);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kara-next);
  margin-bottom: 12px;
}
.kara-row {
  width: 100%;
  max-width: none;
  text-align: center;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease, background 0.2s ease;
  border-radius: 16px;
  padding: 8px clamp(4px, 1vw, 12px);
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.kara-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}
.kara-row.past {
  color: var(--kara-past);
  opacity: 1;
  background: transparent;
}
.kara-row.past .kara-line {
  font-size: clamp(1.05rem, 2.8vw, 1.55rem);
  font-weight: 700;
  line-height: 1.25;
  text-shadow:
    0 1px 0 #000,
    0 2px 8px rgba(0, 0, 0, 0.55);
}
.kara-row.past .kara-support {
  color: var(--kara-past);
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
}
.kara-row.upcoming {
  color: var(--kara-next);
  background: transparent;
}
.kara-row.upcoming .kara-line {
  font-size: clamp(1.15rem, 3.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  text-shadow:
    0 1px 0 #000,
    0 2px 8px rgba(0, 0, 0, 0.55);
}
.kara-row.upcoming .kara-support {
  color: rgba(185, 190, 199, 0.55);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
}
.kara-row.current {
  color: var(--kara-white);
  padding: 14px clamp(4px, 1vw, 14px) 16px;
  transform: none;
  background: rgba(10, 12, 16, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(3px);
  cursor: default;
}
.kara-support {
  font-family: var(--kara-font);
  font-weight: 700;
  font-size: calc(clamp(1.05rem, 2.6vw, 1.65rem) * var(--kara-zoom, 1));
  line-height: 1.25;
  color: var(--kara-next);
  margin-top: 6px;
  width: 100%;
  text-align: center;
  text-shadow:
    0 1px 0 #000,
    0 2px 6px rgba(0, 0, 0, 0.7),
    0 0 2px #000;
}
.kara-row .kara-line {
  width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}
.kara-row .kara-underline {
  order: 3;
  width: 100%;
}
/* Hebreo cantado: grande = fonética; español pequeño debajo (DOM ya en ese orden) */
.karaoke-host.sung-he .kara-row.current .kara-support {
  color: rgba(230, 235, 245, 0.92);
}
.karaoke-host.sung-he .kara-line.phonetic {
  letter-spacing: 0.015em;
}
.karaoke-host.sung-es .kara-row .kara-support {
  margin-bottom: 6px;
  margin-top: 0;
}
.kara-row.current .kara-line {
  font-family: var(--kara-font);
  font-weight: 800;
  font-size: calc(clamp(2.4rem, 7.2vw, 5.5rem) * var(--kara-zoom, 1));
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow:
    0 0 2px #000,
    0 1px 0 #000,
    0 2px 0 #000,
    0 3px 0 rgba(0, 0, 0, 0.85),
    0 6px 18px rgba(0, 0, 0, 0.55);
  -webkit-text-stroke: 0.6px rgba(0, 0, 0, 0.55);
}
.kara-underline {
  width: min(120px, 28%);
  height: 3px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--kara-gold), transparent);
  opacity: 0.9;
}
.kara-w {
  display: inline;
  transition: color 0.12s ease, text-shadow 0.12s ease;
}
.kara-w.done {
  color: var(--kara-gold);
  text-shadow: 0 0 18px rgba(255, 213, 74, 0.28);
}
.kara-w.now {
  color: var(--kara-gold);
  text-shadow:
    0 0 22px rgba(255, 213, 74, 0.45),
    0 2px 6px rgba(0, 0, 0, 0.7);
}
.kara-w.upcoming {
  color: var(--kara-white);
}
.karaoke-host.karaoke-off .kara-w.now,
.karaoke-host.karaoke-off .kara-w.done {
  color: var(--kara-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.65);
}
.karaoke-hint {
  text-align: center;
  font-family: var(--kara-font);
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(185, 190, 199, 0.45);
  padding: 10px 16px 14px;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  background: rgba(20, 22, 26, 0.55);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
body.radio-playing .lyrics#lyricsPlain {
  opacity: 0.45;
}
.karaoke-host:not([hidden]) ~ .lyrics#lyricsPlain,
body.radio-playing .karaoke-host:not([hidden]) ~ .lyrics#lyricsPlain {
  display: none;
}

@media (max-width: 560px) {
  .karaoke-host.kara-pro {
    min-height: min(58vh, 480px);
    border-radius: 24px;
  }
  .karaoke-stage.kara-focus,
  .karaoke-stage.kara-full {
    min-height: min(48vh, 400px);
    max-height: min(62vh, 520px);
    padding: 12px 6px 18px;
  }
  .kara-row.current {
    border-radius: 14px;
    padding: 10px 4px 12px;
  }
  .kara-row.current .kara-line {
    font-size: calc(clamp(1.75rem, 8.5vw, 3.25rem) * var(--kara-zoom, 1));
  }
  .kara-row.current .kara-support {
    font-size: calc(clamp(1rem, 4.2vw, 1.45rem) * var(--kara-zoom, 1));
  }
  .kara-row.past .kara-line,
  .kara-row.upcoming .kara-line {
    font-size: clamp(1rem, 3.8vw, 1.35rem);
  }
}

.full-screen .kara-row.current .kara-line,
.karaoke-host.kara-fs .kara-row.current .kara-line,
.karaoke-host:fullscreen .kara-row.current .kara-line {
  font-size: calc(clamp(2.8rem, 8vw, 6.5rem) * var(--kara-zoom, 1));
}
.full-screen .kara-row.current .kara-support,
.karaoke-host.kara-fs .kara-row.current .kara-support,
.karaoke-host:fullscreen .kara-row.current .kara-support {
  font-size: calc(clamp(1.25rem, 3.2vw, 2.1rem) * var(--kara-zoom, 1));
}

@media print {
  .sidebar, .toolbar, .sidepanels, .karaoke-host { display: none !important; }
}
