/* Editor de canciones */
.ed { margin: -10px 0 0; }
.ed-top, .ed-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; }
.ed-top { border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.ed-title b { font-size: 22px; letter-spacing: -.02em; } .ed-title span { color: var(--n7); }
.ed-dirty { background: var(--warn); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; }
.ed-time { font-size: 18px; min-width: 86px; }
.ed-ck { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ed-ck input { accent-color: var(--red); }
.ed-sep { width: 1px; height: 26px; background: var(--n3); margin: 0 4px; }
.ed-mini { display: block; width: 100%; height: 34px; border: 2px solid var(--ink); border-bottom: 0; cursor: pointer; }
.ed-wrap { border: 2px solid var(--ink); background: #fff; line-height: 0; position: relative; }
.ed-hb { position: absolute; left: 10px; right: 10px; bottom: 90px; line-height: 1.4; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--paper, #fff); border: 2px solid var(--ink); padding: 8px 10px; font-size: 14px; box-shadow: 4px 4px 0 var(--ink); }
.ed-hb[hidden] { display: none; }
.ed-wrap canvas { display: block; user-select: none; }
.ed-under { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; align-items: start; }
.ed-kara { background: var(--ink); color: #9b9797; padding: 14px 18px; min-height: 92px; font-weight: 800; }
.ed-kara .k1 { font-size: 26px; color: #f3f2f2; letter-spacing: -.01em; min-height: 34px; }
.ed-kara .k2 { font-size: 18px; margin-top: 6px; min-height: 24px; }
.ed-kara span.done { color: var(--red); } .ed-kara span.on { color: #fff; text-decoration: underline 3px var(--red); } .ed-kara span.gold.done { color: #e8a900; }
.ed-kara .k2 span { color: #9b9797 !important; text-decoration: none !important; }
.ed-info { background: var(--paper); border: 2px solid var(--ink); padding: 12px 14px; font-size: 14px; min-height: 92px; }
.ed-low { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ed-phr { max-height: 300px; overflow: auto; border: 2px solid var(--ink); background: var(--paper); }
.ed-p { padding: 6px 10px; border-bottom: 1px solid var(--n2); cursor: pointer; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-p:hover { background: var(--n1); } .ed-p .mono { color: var(--n7); margin-right: 8px; }
.ed-help { font-size: 13px; line-height: 1.7; color: var(--n7); } .ed-help b { color: var(--ink); }
.ed-inp { position: absolute; z-index: 60; border: 2px solid var(--red); padding: 4px 6px; font: 600 14px Archivo, sans-serif; width: 140px; background: #fff; }
.ed-sc { position: relative; padding: 4px 8px; font-size: 13px; background: var(--n2); margin-bottom: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ed-sc span { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(31, 157, 85, .25); }
.ed-sc b { position: relative; margin-right: 6px; } .ed-sc { z-index: 0; }
@media (max-width: 1000px) { .ed-under, .ed-low { grid-template-columns: 1fr; } }

/* Diálogo y vista como en el juego */
.ed-dlg { position: fixed; inset: 0; background: rgba(32,30,29,.5); z-index: 70; display: grid; place-items: center; }
.ed-dlg > div { background: var(--bg); border: 2px solid var(--ink); padding: 20px; width: min(460px, 92vw); }
.ed-dlg h3 { font-weight: 300; font-size: 24px; letter-spacing: -.03em; margin-bottom: 6px; }
.ed-pv { position: fixed; inset: 0; background: rgba(32,30,29,.75); z-index: 65; display: grid; place-items: center; padding: 20px; }
.ed-pv[hidden] { display: none; }
.ed-pv-box { background: var(--ink); border: 2px solid var(--ink); width: min(1280px, 100%); }
.ed-pv-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; color: #fff; }
.ed-pv-bar .btn.sm:not(.dark) { background: transparent; color: #fff; border-color: #fff; }
.ed-pv-tv { position: relative; aspect-ratio: 16 / 9; background: #000; }
.ed-pv-tv iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ed-pv-load { position: absolute; inset: 0; display: grid; place-items: center; color: #9b9797; font-weight: 600; }

/* Modo sencillo: frases a la izquierda, la frase grande con sus palabras y botones */
.ed-main { display: grid; grid-template-columns: 1fr; gap: 14px; }
.ed.sencillo .ed-main { grid-template-columns: 300px minmax(0, 1fr); }
.ed .smp { display: none; }
.ed.sencillo .smp { display: block; }
.ed.sencillo .adv, .ed.sencillo .adv-g { display: none; }
.ed-right { min-width: 0; }
.ed-sl { max-height: 640px; overflow: auto; border: 2px solid var(--ink); background: var(--paper); }
.ed-sp { padding: 8px 10px; border-bottom: 1px solid var(--n2); cursor: pointer; font-size: 14px; line-height: 1.3; }
.ed-sp .mono { display: block; font-size: 11px; color: var(--n7); }
.ed-sp:hover { background: var(--n1); }
.ed-sp.on { background: var(--ink); color: #fff; } .ed-sp.on .mono { color: #bbb; }
.ed-star { color: var(--gold, #e8a900); }
.ed-sh { border: 2px solid var(--ink); border-bottom: 0; background: var(--paper); padding: 10px 12px; }
.ed-sh .row { gap: 6px; }
.ed-words { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.ed-w { border: 2px solid var(--ink); background: #fff; font: 800 20px/1.1 Archivo, sans-serif; padding: 6px 10px; cursor: pointer; }
.ed-w:hover { background: var(--n1); }
.ed-w.oro { background: #e8a900; border-color: #e8a900; }
.ed-w.sel { outline: 3px solid var(--red); outline-offset: 1px; }
.ed-sb { border: 2px solid var(--ink); border-top: 0; background: var(--paper); padding: 10px 12px; min-height: 52px; }
.ed-sb .row { gap: 6px; }
/* Tiempos de la frase (empieza / acaba en segundos) y lo que dice la voz */
.ed-tiempos { gap: 12px; align-items: center; margin: 2px 0 8px; flex-wrap: wrap; }
.ed-tiempos label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.ed-tiempos input.inp { width: 92px; text-align: right; font-size: 16px; padding: 4px 6px; }
.ed-voz { color: var(--n7); margin: 0 0 10px; min-height: 18px; line-height: 1.45; } .ed-voz b { color: var(--ink); }
.ed-voz .ok { color: #1f9d55; font-weight: 700; } .ed-voz .warn { color: #c77700; font-weight: 700; }
.ed-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--n3); vertical-align: 0; box-sizing: border-box; }
.ed-dot.ok { background: #1f9d55; } .ed-dot.warn { background: #e8a900; } .ed-dot.no { background: transparent; border: 1px solid #9b9797; }
.ed-sp.on .ed-dot.no { border-color: #bbb; }
@media (max-width: 1100px) { .ed.sencillo .ed-main { grid-template-columns: 1fr; } .ed-sl { max-height: 220px; } }
