:root{color-scheme:dark;--bg:#09090b;--panel:#111113;--panel2:#161618;--gold:#ffd600;--muted:#a3a3aa;--line:#262629;--text:#f5f5f4}
*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--bg);color:var(--text);font:14px/1.45 Arial,Helvetica,sans-serif}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:3px}[hidden]{display:none!important}
.topbar{border-bottom:1px solid var(--line);background:#0d0d0f}.top-inner{max-width:1100px;margin:auto;min-height:68px;padding:12px 26px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px}.brand-icon{display:grid;place-items:center;width:38px;height:38px;background:var(--gold);border-radius:9px;color:#111;font-size:24px;font-weight:900}.brand b,.brand small{display:block}.brand b{font-size:15px;letter-spacing:.4px;line-height:1.1}.brand small{font-size:8px;letter-spacing:1.7px;color:#a6a6aa;margin-top:4px}.lab-tag{font-size:10px;letter-spacing:1.1px;color:#a6a6aa;display:flex;align-items:center;gap:7px}.lab-tag i{width:6px;height:6px;background:var(--gold);border-radius:50%;box-shadow:0 0 9px #ffd60077}
main{max-width:1100px;margin:auto;padding:26px}.hero{border:1px solid #3d3520;border-radius:18px;background:radial-gradient(ellipse at 90% 20%,#33280d 0%,transparent 53%),linear-gradient(115deg,#191715,#101012 66%);position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:center;padding:36px 38px;min-height:220px;gap:20px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.65px;color:#c3af61}.hero .eyebrow{color:var(--gold)}.hero .eyebrow span{font-size:18px;vertical-align:middle;margin-right:5px}.hero h1{font-size:clamp(35px,6vw,64px);line-height:1.04;letter-spacing:-2.6px;margin:9px 0 9px;font-weight:900}.hero h1 span{color:var(--gold)}.hero p{color:#b9b7b1;font-size:15px;margin:0 0 20px}.hero-tags{display:flex;flex-wrap:wrap;gap:6px}.hero-tags span{border:1px solid #49412a;border-radius:5px;padding:5px 8px;color:#d0c4a1;font-size:10px;font-weight:700}.master-mark{flex:0 0 155px;min-width:130px;text-align:center;border-left:1px solid #5d4a1d;padding:10px 0 10px 22px;color:#d6b959}.master-mark span,.master-mark small{display:block;font-size:8px;letter-spacing:2.1px;font-weight:800}.master-mark b{display:block;font-size:72px;font-weight:900;line-height:1.1;letter-spacing:-5px;color:var(--gold)}
.catalog{margin-top:33px}.catalog-head{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-bottom:16px}.catalog-head h2{font-size:25px;letter-spacing:-.5px;margin:5px 0 2px}.catalog-head p{margin:0;color:var(--muted);font-size:13px}.connection{font-size:11px;color:#aaa9a4;align-self:center;text-align:right}.toolbar{display:flex;align-items:center;gap:12px;margin-bottom:13px}.search{display:flex;gap:9px;align-items:center;color:#8d8d94;background:var(--panel2);border:1px solid #2a2a2e;border-radius:8px;flex:1;padding:0 12px;min-height:42px}.search:focus-within{border-color:#b7a137}.search input{border:0;outline:0!important;background:transparent;color:var(--text);width:100%;min-width:0;padding:8px 0}.search input::placeholder{color:#888890}.filters{display:flex;gap:5px;border:1px solid var(--line);background:var(--panel);padding:4px;border-radius:8px}.filter{border:0;background:transparent;color:#aaaab0;font-size:12px;font-weight:700;padding:8px 13px;border-radius:5px}.filter.active{background:var(--gold);color:#101012}.filter:hover:not(.active){color:#fff;background:#242426}
.table{overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.table-head{display:flex;justify-content:space-between;padding:12px 20px;border-bottom:1px solid var(--line);color:#8c8c94;font-size:10px;font-weight:700;letter-spacing:1px}.song-row{display:flex;gap:13px;align-items:center;min-height:73px;padding:12px 19px;border-bottom:1px solid #232326;transition:background .15s}.song-row:last-child{border-bottom:0}.song-row:hover{background:#1b1a17}.song-row>div{flex:1;min-width:0}.song-row strong{display:block;font-size:14px;font-weight:700;line-height:1.35;overflow-wrap:anywhere}.song-row small{display:block;color:#9999a3;font-size:12px;margin-top:5px;overflow-wrap:anywhere}.music{display:grid;place-items:center;flex-shrink:0;width:43px;height:43px;border:1px solid #473d20;border-radius:8px;background:linear-gradient(140deg,#332b14,#1b1915);color:var(--gold);font-size:19px}.play-small{border:1px solid #514722;background:#2a2513;color:var(--gold);border-radius:7px;font-weight:800;min-height:37px;padding:7px 12px;display:flex;align-items:center;gap:7px;flex-shrink:0}.play-small:after{content:"Escuchar";font-size:12px}.play-small:hover{background:var(--gold);color:#111;border-color:var(--gold)}#empty{padding:28px 12px;color:var(--muted);text-align:center}.catalog-foot{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:#888890;padding:11px 2px}footer{border-top:1px solid var(--line);margin-top:26px;padding:16px 0;color:#85858b;font-size:10px;display:flex;justify-content:space-between;gap:10px}
dialog{border:1px solid #353126;background:var(--panel);color:var(--text);max-width:740px;width:calc(100% - 24px);padding:0;border-radius:14px;box-shadow:0 28px 90px #000b;overflow:hidden}dialog::backdrop{background:#000c}.modal-top{display:flex;align-items:center;gap:12px;padding:15px 16px;border-bottom:1px solid #282621}.modal-icon{display:grid;place-items:center;width:37px;height:37px;border:1px solid #55472a;background:#282213;color:var(--gold);border-radius:8px;font-size:20px}.modal-top>div{flex:1;min-width:0}.modal-kicker{color:#c2ab54;font-size:8px;font-weight:800;letter-spacing:1.5px}.modal-top h2{font-size:17px;line-height:1.4;margin:2px 0 1px}.modal-top small{font-size:12px;color:var(--muted)}.modal-top button{background:#262629;color:#dedee0;border:1px solid #333337;border-radius:50%;width:34px;height:34px;font-size:21px;line-height:1;flex-shrink:0}.modal-top button:hover{color:var(--gold);border-color:var(--gold)}.screen-wrap{aspect-ratio:16/9;background:#09090b;position:relative}.screen-wrap canvas{position:absolute;top:10%;left:16.25%;width:67.5%;height:80%;object-fit:contain}.screen-wrap canvas[hidden],#overlay[hidden]{display:none}#overlay{position:absolute;inset:0;width:100%;border:0;background:#09090bf2;color:var(--gold);font-size:14px;font-weight:800}.controls{background:var(--panel2);display:flex;gap:11px;align-items:center;padding:10px 14px;color:#eee;border-top:1px solid #282629;border-bottom:1px solid #282629}.controls button{color:#0b0b0c;background:var(--gold);border:0;border-radius:50%;width:35px;height:35px;font-size:15px;flex-shrink:0}.controls button:disabled{opacity:.45}.controls input{accent-color:var(--gold);min-width:0;cursor:pointer}.controls .volume-icon{color:#d1b842;font-size:16px}#seek{flex:1}#volume{width:74px}#clock{font-size:11px;white-space:nowrap;color:#ccc;font-variant-numeric:tabular-nums}.details{padding:13px 16px;color:#96969e;font-size:11px}.details #state{color:#e8cd56;font-size:13px;font-weight:700;margin-bottom:4px}.details #state.error{color:#ff8787}.details #details{line-height:1.5}.modal-brand{margin-top:12px;padding-top:9px;border-top:1px solid #252527;color:#b3a45e;font-size:9px;letter-spacing:1.5px;font-weight:700}.modal-brand span{color:#666}
@media(max-width:600px){.top-inner{padding:10px 15px;min-height:58px}main{padding:16px 12px}.hero{padding:25px 18px;border-radius:12px;min-height:168px;gap:8px}.hero h1{font-size:clamp(31px,8vw,48px);letter-spacing:-1.6px}.hero p{font-size:13px;margin-bottom:15px}.hero-tags span{font-size:9px;padding:4px 5px}.master-mark{flex:0 0 70px;min-width:0;padding-left:8px}.master-mark b{font-size:43px;letter-spacing:-3px}.master-mark span,.master-mark small{font-size:6px;letter-spacing:.7px}.catalog{margin-top:25px}.catalog-head{align-items:start}.catalog-head h2{font-size:20px}.catalog-head p{font-size:11px}.connection{font-size:10px;max-width:112px}.toolbar{flex-wrap:wrap;gap:8px}.search{min-width:100%;min-height:40px}.filters{width:100%}.filter{flex:1}.table-head{padding:10px 12px}.song-row{gap:10px;padding:11px;min-height:66px}.song-row strong{font-size:13px}.song-row small{font-size:11px}.play-small{width:35px;height:35px;padding:0;justify-content:center;border-radius:50%}.play-small:after{display:none}.music{width:36px;height:36px;font-size:16px}.catalog-foot{font-size:10px}footer{flex-wrap:wrap}.controls{gap:6px;padding:9px 8px}.controls button{width:31px;height:31px}#volume{width:42px}#clock{font-size:10px}.modal-top{padding:12px}.modal-icon{width:32px;height:32px}.modal-top h2{font-size:15px}.details{padding:11px 12px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* MASTER ROYAL: one animated stage behind the transparent CDG canvas. */
.screen-wrap{isolation:isolate;overflow:hidden;background:#0b0718}
.screen-wrap:before,.screen-wrap:after{content:"";position:absolute;pointer-events:none;z-index:0}
.screen-wrap:before{inset:-24%;background:radial-gradient(ellipse at 79% 22%,#492076 0%,#24143e 35%,#0b0718 70%);animation:royal-light 18s ease-in-out infinite alternate;will-change:transform}
.screen-wrap:after{inset:0 -12% -10%;opacity:.57;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 360'%3E%3Cg fill='none' stroke='%239d59de' stroke-width='.8' opacity='.45'%3E%3Cpath d='M-40 267 Q145 145 320 270 T700 200'/%3E%3Cpath d='M-40 280 Q145 157 320 281 T700 211'/%3E%3Cpath d='M-40 293 Q145 169 320 292 T700 222'/%3E%3Cpath d='M-40 306 Q145 181 320 303 T700 233'/%3E%3Cpath d='M-40 319 Q145 193 320 314 T700 244'/%3E%3Cpath d='M-40 332 Q145 205 320 325 T700 255'/%3E%3Cpath d='M-40 345 Q145 217 320 336 T700 266'/%3E%3C/g%3E%3C/svg%3E") center/100% 100% no-repeat;animation:royal-wave 22s ease-in-out infinite alternate;will-change:transform}
.screen-wrap canvas{z-index:1;background:transparent}#overlay{z-index:2}
@keyframes royal-light{from{transform:translate3d(-3%,-2%,0) scale(1)}to{transform:translate3d(3%,2%,0) scale(1.07)}}
@keyframes royal-wave{from{transform:translate3d(-3%,1%,0)}to{transform:translate3d(3%,-4%,0)}}
@media(prefers-reduced-motion:reduce){.screen-wrap:before,.screen-wrap:after{animation:none;will-change:auto}}

/* MP4 uses the native video across the MASTER stage; no CDG filter. */
#video-demo{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:1;background:#09090b}#video-demo[hidden]{display:none}
@media(max-width:600px){.filters .filter{padding:8px 7px}}

/* RESTOBAR UI — conserva exactamente el hero negro/dorado original. */
.hero-copy{min-width:0;flex:1}
.hero-actions{gap:8px;margin-top:26px}
.hero-actions button{border:1px solid #65542a;border-radius:5px;padding:7px 10px;background:#241e11;color:#f0d36f;font-size:10px;font-weight:800;letter-spacing:.08px}
.hero-actions button:hover,.hero-actions button.active{background:#ffdc39;color:#191713;border-color:#ffdc39}
.hero .master-mark b{font-size:clamp(48px,5.4vw,70px);letter-spacing:-4px}
.hero .master-mark small{font-size:9px;letter-spacing:1.35px}
.restobar-message{font-size:11px;color:#eed78a;min-height:0;margin-top:8px;max-width:460px}
.restobar-message:empty{display:none}
#master-catalog{margin-top:22px}
#master-catalog>.connection[hidden]{display:none!important}
#restobar-ad-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#09090b;z-index:3}
#restobar-ad-video[hidden]{display:none}
#restobar-ad-unlock{position:absolute;top:45%;left:50%;transform:translate(-50%,-50%);z-index:9;border:1px solid #b5a052;border-radius:7px;padding:12px 18px;font-weight:800;background:#161215e8;color:#ffdc53}
#restobar-logo-overlay{position:absolute;z-index:6;left:84%;top:17%;width:18%;max-height:42%;height:auto;object-fit:contain;transform:translate(-50%,-50%);touch-action:none;cursor:grab;user-select:none;-webkit-user-drag:none;filter:drop-shadow(0 1px 3px #0009)}
#restobar-logo-overlay:active{cursor:grabbing}
#restobar-logo-settings-button{position:absolute;z-index:7;left:8px;bottom:8px;min-height:26px;background:#111b;color:#ffe17b;border:1px solid #8e7941;padding:5px 8px;border-radius:5px;font-size:11px;font-weight:700}
#restobar-logo-settings{position:absolute;z-index:8;left:8px;bottom:38px;background:#111e;color:#fff;border:1px solid #766636;border-radius:7px;padding:9px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;max-width:calc(100% - 16px);font-size:11px}
#restobar-logo-settings label{display:flex;align-items:center;gap:6px}
#restobar-logo-settings input{accent-color:#ffda31;width:85px;cursor:pointer}
#restobar-logo-hide-settings{border:0;background:#333;color:#eee;border-radius:3px;padding:3px 7px}
#restobar-fullscreen{position:absolute;z-index:7;right:8px;bottom:8px;border:1px solid #7b693a;background:#151515c9;color:#ffdf70;border-radius:5px;padding:3px 8px;font-size:16px;line-height:1.2}
.screen-wrap:fullscreen{width:100vw;height:100vh;aspect-ratio:auto;background:#000}
.screen-wrap:fullscreen #restobar-logo-overlay{max-height:40%}
@media(max-width:600px){
.hero{min-height:190px}
.hero-actions{margin-top:16px;gap:5px}
.hero-actions button{font-size:8px;padding:6px 5px}
.hero .master-mark{flex-basis:92px;padding-left:10px}
.hero .master-mark b{font-size:46px;letter-spacing:-3px}
.hero .master-mark small{font-size:8px;letter-spacing:.5px}
#restobar-logo-settings{font-size:10px;gap:6px}
#restobar-logo-settings input{width:65px}
}

/* Restobar logos: editable in-player; local-only PNG/WebP upload & persistent browser settings. */
#restobar-logo-settings{
  width:min(520px,calc(100% - 16px));
  padding:10px 35px 10px 10px;
  display:flex;flex-direction:column;align-items:stretch;gap:8px;
  max-height:min(220px,calc(100% - 52px));overflow:auto;
}
#restobar-logo-settings .restobar-logo-sliders,
#restobar-logo-settings .restobar-logo-buttons{
 display:flex;align-items:center;gap:9px;flex-wrap:wrap
}
#restobar-logo-settings .restobar-logo-sliders label{flex:1;min-width:145px;justify-content:space-between}
#restobar-logo-settings .restobar-logo-sliders input{width:70px}
#restobar-logo-settings .restobar-logo-buttons button{
 background:#28241a;color:#f7da75;border:1px solid #67562e;
 border-radius:5px;font-size:11px;font-weight:700;padding:6px 9px;
}
#restobar-logo-settings .restobar-logo-buttons button:hover{background:#42351b}
#restobar-logo-feedback{color:#cdc7ad;font-size:10px;line-height:1.25}
#restobar-logo-hide-settings{position:absolute;right:7px;top:7px}
@media(max-width:600px){
 #restobar-logo-settings{max-height:min(220px,calc(100% - 42px));bottom:36px}
 #restobar-logo-settings .restobar-logo-sliders label{min-width:125px}
 #restobar-logo-settings .restobar-logo-buttons button{font-size:10px;padding:6px 7px}
}


/* PACK 4 / RESTOBAR — compact premium editor, not an overlay on karaoke lyrics. */
#dialog{
 max-height:calc(100dvh - 20px);
 overflow-y:auto;
 overscroll-behavior:contain;
}
#dialog #restobar-logo-settings{
 position:relative;
 left:auto;right:auto;top:auto;bottom:auto;
 transform:none;
 box-sizing:border-box;
 display:flex;
 flex-direction:column;
 align-items:stretch;
 gap:10px;
 width:100%;
 max-width:none;max-height:none;
 margin:0;padding:13px 17px 12px;
 border:0;border-top:1px solid #4a391a;border-radius:0;
 background:linear-gradient(160deg,#211c14 0%,#161515 50%,#141315 100%);
 color:#f3f1e7;
 overflow:visible;
 box-shadow:inset 0 1px #57421c44;
 font-size:12px;
}
#dialog #restobar-logo-settings[hidden]{display:none!important}
#dialog .restobar-logo-panel-head{
 display:flex;align-items:center;justify-content:space-between;gap:10px;
 padding:0;
}
#dialog .restobar-logo-panel-head>div{display:flex;flex-direction:column;gap:1px}
#dialog .restobar-logo-eyebrow{
 color:#bca15b;font-weight:800;font-size:9px;letter-spacing:1.2px;line-height:1.2;
}
#dialog .restobar-logo-panel-head strong{
 font-size:14px;line-height:1.3;letter-spacing:-.15px;font-weight:750;
}
#dialog #restobar-logo-hide-settings{
 position:static;flex:0 0 auto;
 width:25px;height:25px;padding:0;
 background:#2d2a2a;color:#cbc8c4;border:1px solid #45403c;
 border-radius:6px;font-size:18px;line-height:1.1;
}
#dialog #restobar-logo-hide-settings:hover{background:#51442c;color:#fff}
#dialog #restobar-logo-settings .restobar-logo-sliders{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;
 align-items:start;width:100%;
}
#dialog #restobar-logo-settings .restobar-logo-sliders label{
 display:flex;flex-direction:column;align-items:stretch;justify-content:start;
 gap:6px;min-width:0;font-size:11px;font-weight:650;color:#d4d1cd;
}
#dialog .restobar-logo-slider-head{
 display:flex;align-items:center;justify-content:space-between;gap:8px;
}
#dialog .restobar-logo-slider-head output{
 font-size:11px;font-weight:800;font-variant-numeric:tabular-nums;color:#ffe071;
}
#dialog #restobar-logo-settings .restobar-logo-sliders input{
 width:100%;height:14px;margin:0;accent-color:#ffd600;cursor:pointer;
}
#dialog #restobar-logo-settings .restobar-logo-buttons{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 width:100%;gap:9px;align-items:stretch;
}
#dialog #restobar-logo-settings .restobar-logo-buttons button{
 min-height:33px;width:100%;padding:7px 8px;
 border:1px solid #786131;border-radius:6px;
 background:#2b251a;color:#f6dd97;
 font-size:11px;font-weight:800;letter-spacing:0;
 white-space:normal;line-height:1.2;
}
#dialog #restobar-logo-settings .restobar-logo-buttons button:first-child{
 color:#17140a;background:#ffcf32;border-color:#ffcf32;
}
#dialog #restobar-logo-settings .restobar-logo-buttons button:hover{
 filter:brightness(1.12);background:#493a1d;
}
#dialog #restobar-logo-settings .restobar-logo-buttons button:first-child:hover{
 background:#ffe27a;
}
#dialog .restobar-logo-local-note{
 display:flex;align-items:start;gap:7px;color:#a9a59b;
 font-size:10px;line-height:1.45;margin-top:0;min-width:0;
}
#dialog .restobar-logo-local-note span:first-child{
 color:#e1bf54;font-size:8px;margin-top:2px;
}
#dialog #restobar-logo-feedback{font-size:10px;line-height:1.4;color:#bfbab2;overflow-wrap:anywhere}
#restobar-logo-settings-button{border-radius:5px;bottom:8px}
@media(max-width:600px){
 #dialog #restobar-logo-settings{
   padding:11px 12px 10px;gap:9px;
 }
 #dialog #restobar-logo-settings .restobar-logo-sliders{gap:12px}
 #dialog #restobar-logo-settings .restobar-logo-buttons{gap:8px}
 #dialog .restobar-logo-panel-head strong{font-size:13px}
 #dialog #restobar-logo-settings .restobar-logo-buttons button{font-size:10px;padding:6px 7px}
}
@media(max-width:340px){
 #dialog #restobar-logo-settings .restobar-logo-sliders{grid-template-columns:1fr;gap:7px}
}
/* Settings can still be used while the video stage itself is fullscreen. */
#restobar-screen:fullscreen #restobar-logo-settings{
 position:absolute;z-index:8;left:12px;bottom:48px;right:auto;top:auto;
 width:min(450px,calc(100% - 24px));max-height:min(280px,70vh);
 border:1px solid #6a542a;border-radius:10px;overflow-y:auto;
 background:#151317ed;
 box-shadow:0 12px 32px #000a;
}

/* Restobar: only the optional Avisos de Mesa switch remains on the premium header. */
.restobar-switch-wrap{margin-top:24px;display:flex;align-items:center}
#toggle-table-ads.restobar-ads-switch{
 display:inline-flex;align-items:center;justify-content:space-between;gap:11px;
 min-width:238px;min-height:43px;padding:9px 10px 9px 13px;
 border:1px solid #6c5b30;border-radius:7px;
 color:#f1d57e;background:linear-gradient(120deg,#302716,#1c1b1a);
 font-weight:800;letter-spacing:.35px;font-size:11px;
}
#toggle-table-ads .restobar-ads-title{line-height:1.1;text-align:left}
#toggle-table-ads .restobar-ads-status{
 color:#18130b;background:#ffd400;border-radius:3px;
 padding:4px 5px;font-size:8px;line-height:1;letter-spacing:.1px;
}
#toggle-table-ads .restobar-switch-track{
 position:relative;display:inline-flex;align-items:center;flex:0 0 35px;
 width:35px;height:20px;background:#e2b526;border-radius:20px;
 padding:3px;transition:background .2s;
}
#toggle-table-ads .restobar-switch-thumb{
 display:block;width:14px;height:14px;border-radius:50%;background:#141414;
 margin-left:15px;box-shadow:0 1px 3px #0006;transition:margin .18s,background .18s;
}
#toggle-table-ads[aria-checked="false"]{
 background:#201e1b;color:#aca59a;border-color:#51493b;
}
#toggle-table-ads[aria-checked="false"] .restobar-ads-status{
 background:#343434;color:#e3dfd8;
}
#toggle-table-ads[aria-checked="false"] .restobar-switch-track{background:#514d47}
#toggle-table-ads[aria-checked="false"] .restobar-switch-thumb{
 margin-left:0;background:#ddd9d2;
}
#toggle-table-ads:hover{border-color:#d4ad42}
#dialog .details{display:none!important}
@media(max-width:600px){
 .restobar-switch-wrap{margin-top:14px}
 #toggle-table-ads.restobar-ads-switch{min-width:0;gap:8px;min-height:38px;padding:6px 8px;font-size:9px}
 #toggle-table-ads .restobar-ads-status{font-size:7px;padding:4px}
 #toggle-table-ads .restobar-switch-track{flex-basis:32px;width:32px}
 #toggle-table-ads .restobar-switch-thumb{margin-left:12px}
}
