:root{
  --panel:#0f1117;
  --panel-2:#151924;
  --panel-3:#1d2330;
  --text:#f7f8fb;
  --muted:#9ba4b5;
  --line:rgba(255,255,255,.11);
  --accent:#e9ff13;
  --stage:#020205;
  --danger:#ff4d6d;
  --ok:#60e89a;
  --menu-bg:#070707;
  --cascade-1:#e9ff13;
  --cascade-2:#101010;
  --cascade-delay:95ms;
  --cascade-duration:620ms;
  --menu-opacity:.92;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0;background:#090b10;color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}
body{overflow:hidden}
button,input,select,textarea{font:inherit}
button,a{border:0;border-radius:12px;background:linear-gradient(180deg,#303849,#202736);color:#fff;padding:10px 13px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.18s ease}
button:hover,a:hover{transform:translateY(-1px);filter:brightness(1.12)}
button:active,a:active{transform:translateY(0)}
.ghost-btn{background:transparent;border:1px solid var(--line);color:var(--muted)}
.app-shell{height:100vh;display:grid;grid-template-columns:430px 1fr;background:#06080d}
.control-panel{height:100vh;overflow:auto;padding:18px;display:flex;flex-direction:column;gap:14px;background:linear-gradient(180deg,#10141d,#0a0d14);border-right:1px solid var(--line)}
.control-panel.compact{width:76px;overflow:hidden}.control-panel.compact>*:not(.panel-header){display:none}.app-shell.panel-closed{grid-template-columns:76px 1fr}
.panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 2px 4px}
.panel-header h1{margin:0;font-size:24px;letter-spacing:-.04em}.eyebrow{margin:0 0 5px;color:var(--accent);font-size:11px;text-transform:uppercase;letter-spacing:.15em;font-weight:900}
.panel-card{background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.025));border:1px solid var(--line);border-radius:20px;padding:14px;box-shadow:0 12px 36px rgba(0,0,0,.22)}
.project-hub-card{border-color:rgba(233,255,19,.26);background:linear-gradient(180deg,rgba(233,255,19,.065),rgba(255,255,255,.025))}.project-on-air{margin:0 0 10px;padding:10px 11px;border-radius:12px;border:1px solid var(--line);background:#090c13;color:var(--muted);font-size:12px;font-weight:850;letter-spacing:.02em}.project-on-air[data-state="live"]{border-color:rgba(77,224,144,.45);color:#85f0b5;background:rgba(32,126,77,.12)}.project-live-actions{display:grid;grid-template-columns:1.25fr 1fr;margin:10px 0}.project-live-actions button{width:100%}.election-project-action{display:grid;gap:7px;margin-top:12px;padding:11px;border:1px dashed rgba(233,255,19,.3);border-radius:13px;background:rgba(0,0,0,.16)}.election-project-action span{font-size:11px;color:var(--muted);text-align:center}.project-hub-status{padding:9px 10px;border-radius:11px;background:#090c13;border:1px solid var(--line)}.project-hub-status[data-state="success"]{color:#85f0b5;border-color:rgba(77,224,144,.3)}.project-hub-status[data-state="error"]{color:#ff9e9e;border-color:rgba(255,85,85,.35)}.project-hub-status[data-state="loading"]{color:#f0dc85;border-color:rgba(240,220,133,.3)}
.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.section-title h2{margin:0;font-size:15px}.section-title span{font-size:11px;color:var(--muted)}
.sticky-section-title{position:sticky;top:-14px;background:#10141d;z-index:3;padding:8px 0;margin-top:-8px}
label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--muted);font-weight:750;margin:10px 0}input,select,textarea{width:100%;border:1px solid var(--line);background:#090c13;color:var(--text);border-radius:12px;padding:10px;outline:none}input[type=color]{height:42px;padding:4px}input[type=range]{padding:0}textarea{min-height:92px;resize:vertical}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.button-row{display:flex;gap:8px;flex-wrap:wrap}.button-stack{display:flex;flex-direction:column;gap:8px}.tiny button,.tiny a{font-size:12px;padding:8px 10px;border-radius:10px}.hint{font-size:12px;line-height:1.4;color:var(--muted);margin:10px 0 0}
.stage-wrap{height:100vh;padding:18px;display:flex;flex-direction:column;gap:12px;min-width:0}.stage-toolbar{display:flex;align-items:center;justify-content:space-between;background:#10141d;border:1px solid var(--line);border-radius:16px;padding:10px 12px;color:var(--muted)}
.stage-frame{flex:1;min-height:0;display:grid;place-items:center;background:radial-gradient(circle at center,#151924,#050609 70%);border:1px solid var(--line);border-radius:22px;overflow:hidden}.broadcast-stage{width:1920px;height:1080px;position:relative;background:transparent;transform-origin:center center;overflow:hidden}.embed-body{background:transparent;overflow:hidden}.embed-stage{width:100vw;height:100vh;transform:none!important;background:transparent}
.menu-card{position:absolute;left:64px;top:80px;width:520px;height:920px;border-radius:34px;overflow:hidden;border:1px solid rgba(255,255,255,.12);box-shadow:0 30px 80px rgba(0,0,0,.45);background:var(--menu-bg)}
.embed-stage .menu-card{left:3.4vw;top:7.4vh;width:min(32vw,560px);height:85vh}.menu-bg-layer{position:absolute;inset:0;background-color:var(--menu-bg);opacity:var(--menu-opacity);background-size:cover;background-position:center}.menu-bg-layer::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,.54))}.menu-content{position:relative;z-index:2;height:100%;display:flex;flex-direction:column;padding:28px}.menu-title{margin:0 0 24px;font-size:44px;line-height:.98;text-transform:uppercase;letter-spacing:-.05em;font-weight:950;min-height:88px}.menu-title .letter{display:inline-block;opacity:0;will-change:transform,opacity,filter}.menu-list{display:flex;flex-direction:column;gap:12px;min-height:0;overflow:hidden;padding-right:2px}.menu-list.scroll-enabled{overflow-y:auto;padding-right:8px}.menu-list.scroll-enabled::-webkit-scrollbar{width:6px}.menu-list.scroll-enabled::-webkit-scrollbar-thumb{background:rgba(255,255,255,.28);border-radius:999px}.menu-item{height:64px;min-height:64px;position:relative;border-radius:18px;overflow:hidden;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:12px;padding:8px 14px;color:#fff;text-align:left;isolation:isolate;opacity:1;transform:translateZ(0)}.menu-item::before,.menu-item::after{content:"";position:absolute;inset:0;z-index:1;transform:translateX(-103%)}.menu-item::before{background:var(--cascade-1)}.menu-item::after{background:var(--cascade-2)}.menu-item.animate::before{animation:cascadeSweep var(--cascade-duration) cubic-bezier(.7,0,.15,1) forwards;animation-delay:calc(var(--i) * var(--cascade-delay))}.menu-item.animate::after{animation:cascadeSweep var(--cascade-duration) cubic-bezier(.7,0,.15,1) forwards;animation-delay:calc((var(--i) * var(--cascade-delay)) + (var(--cascade-duration) * .44))}.menu-item-text{position:relative;z-index:3;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;min-width:0;opacity:0;transform:translateY(10px);filter:blur(8px)}.menu-item.show-text .menu-item-text{animation:textAfterCascade .36s ease forwards}.menu-avatar{position:relative;z-index:3;width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,rgba(255,255,255,.26),rgba(255,255,255,.05));border:1px solid rgba(255,255,255,.18);display:grid;place-items:center;font-weight:950;color:#fff;overflow:hidden;flex:none}.menu-avatar img{width:100%;height:100%;object-fit:cover}.meta-pill{font-size:16px;font-weight:950;color:var(--accent);white-space:nowrap;line-height:1}.item-name{font-size:20px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1}.item-extra{font-size:14px;font-weight:850;color:rgba(255,255,255,.76);white-space:nowrap}.menu-item.empty{opacity:.52}.menu-item.empty .item-name{color:rgba(255,255,255,.55)}
@keyframes cascadeSweep{0%{transform:translateX(-103%)}45%{transform:translateX(0)}100%{transform:translateX(103%)}}@keyframes textAfterCascade{to{opacity:1;transform:translateY(0);filter:blur(0)}}
.menu-title.lettersBounce .letter{animation:letterBounce .78s cubic-bezier(.2,1.6,.25,1) forwards;animation-delay:calc(var(--l) * 45ms)}@keyframes letterBounce{0%{opacity:0;transform:translateY(54px) scale(.68);filter:blur(5px)}55%{opacity:1;transform:translateY(-18px) scale(1.1);filter:blur(0)}78%{transform:translateY(6px) scale(.98)}100%{opacity:1;transform:translateY(0) scale(1)}}
.menu-title.blurReveal .letter{animation:blurReveal .75s ease forwards;animation-delay:calc(var(--l) * 28ms)}@keyframes blurReveal{from{opacity:0;filter:blur(18px);transform:scale(1.28)}to{opacity:1;filter:blur(0);transform:scale(1)}}
.menu-title.slideUp .letter{animation:slideUp .58s ease forwards;animation-delay:calc(var(--l) * 32ms)}@keyframes slideUp{from{opacity:0;transform:translateY(44px)}to{opacity:1;transform:translateY(0)}}
.menu-title.scalePop .letter{animation:scalePop .55s cubic-bezier(.2,1.8,.3,1) forwards;animation-delay:calc(var(--l) * 32ms)}@keyframes scalePop{from{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}
.menu-title.wipeSide .letter{animation:wipeSide .62s cubic-bezier(.2,.9,.3,1) forwards;animation-delay:calc(var(--l) * 26ms)}@keyframes wipeSide{from{opacity:0;clip-path:inset(0 100% 0 0);transform:translateX(-24px)}to{opacity:1;clip-path:inset(0);transform:translateX(0)}}
.menu-title.rotateKick .letter{animation:rotateKick .72s cubic-bezier(.16,1.5,.24,1) forwards;animation-delay:calc(var(--l) * 34ms);transform-origin:bottom center}@keyframes rotateKick{from{opacity:0;transform:rotate(-18deg) translateY(30px) scale(.8)}to{opacity:1;transform:rotate(0) translateY(0) scale(1)}}
.carousel-overlay{position:absolute;inset:0;z-index:20;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.16);backdrop-filter:blur(2px)}.carousel-overlay.active{display:flex}.carousel-shell{position:absolute;right:72px;top:80px;width:1200px;height:920px;border-radius:36px;background:rgba(5,5,9,.76);border:1px solid rgba(255,255,255,.16);box-shadow:0 30px 90px rgba(0,0,0,.45);overflow:hidden}.embed-stage .carousel-shell{right:3.6vw;top:7.4vh;width:60vw;height:85vh}.carousel-close{position:absolute;z-index:3;right:24px;top:22px;background:rgba(0,0,0,.62);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2)}.carousel-media{position:absolute;inset:0;display:grid;place-items:center}.carousel-media img,.carousel-media video{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain}.carousel-empty{font-size:32px;color:rgba(255,255,255,.7);font-weight:900}.carousel-range{position:absolute;left:50%;transform:translateX(-50%);bottom:68px;width:min(620px,70%);accent-color:var(--accent)}.carousel-indicator{position:absolute;left:50%;bottom:28px;transform:translateX(-50%);display:flex;align-items:center;gap:8px;background:rgba(0,0,0,.56);border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:8px 12px}.dot{width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.32)}.dot.active{width:28px;background:var(--accent)}.pill-count{font-size:12px;font-weight:950;color:#fff;margin-right:4px}
.item-editors{display:flex;flex-direction:column;gap:10px}.item-editor{background:rgba(255,255,255,.04);border:1px solid var(--line);border-radius:16px;padding:10px}.item-editor.compact .editor-extra{display:none}.item-editor-head{display:grid;grid-template-columns:28px 1fr auto;gap:8px;align-items:center}.drag-index{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.1);font-size:12px;color:var(--muted);font-weight:900}.mini-title{font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.media-count{font-size:11px;background:#0a0d14;border:1px solid var(--line);border-radius:999px;padding:5px 8px;color:var(--muted)}.editor-grid{display:grid;grid-template-columns:74px 1fr 1fr 1fr;gap:8px}.editor-grid label{margin:6px 0}.media-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.media-chip{font-size:11px;padding:5px 7px;border:1px solid var(--line);border-radius:999px;background:#0a0d14;color:var(--muted)}.danger-btn{background:linear-gradient(180deg,#552436,#361520)}
.anim-dialog{width:min(900px,92vw);border:1px solid var(--line);background:#0d111a;color:var(--text);border-radius:22px;padding:0;box-shadow:0 30px 90px rgba(0,0,0,.55)}.anim-dialog::backdrop{background:rgba(0,0,0,.55);backdrop-filter:blur(5px)}.anim-dialog header{display:flex;justify-content:space-between;align-items:center;padding:18px;border-bottom:1px solid var(--line)}.anim-dialog h2{margin:0}.anim-grid{padding:18px;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.anim-card{min-height:112px;background:rgba(255,255,255,.04);border:1px solid var(--line);border-radius:16px;padding:12px;display:flex;flex-direction:column;justify-content:space-between}.anim-card strong{font-size:18px}.anim-preview{font-size:24px;font-weight:950;letter-spacing:-.03em;color:var(--accent)}
@media(max-width:1100px){body{overflow:auto}.app-shell{grid-template-columns:1fr;height:auto}.control-panel{height:auto}.stage-wrap{height:auto;min-height:70vh}.grid-4{grid-template-columns:1fr 1fr}.anim-grid{grid-template-columns:1fr}.stage-frame{min-height:60vh}.broadcast-stage{transform:scale(.45)}}

/* ===== Ajuste visual: 11 jogadores visíveis, menu nítido e carrossel limpo ===== */
.stage-frame{background:radial-gradient(circle at center,#10131c,#030407 72%)}
.menu-card{left:56px;top:56px;width:560px;height:968px;border-radius:34px;background:var(--menu-bg)}
.carousel-shell{right:56px;top:56px;width:1218px;height:968px;border-radius:34px}
.embed-stage .menu-card{left:3vw;top:5.2vh;width:min(31vw,560px);height:89.6vh}
.embed-stage .carousel-shell{right:3vw;top:5.2vh;width:61.5vw;height:89.6vh}
.menu-content{padding:28px;height:100%;display:flex;flex-direction:column}
.menu-title{font-size:46px;min-height:62px;margin:0 0 18px;filter:none!important;text-shadow:0 2px 18px rgba(0,0,0,.38)}
.menu-list{flex:1;gap:9px;overflow:hidden;min-height:0;padding-right:0}
.menu-list.scroll-enabled{overflow-y:auto;padding-right:8px;scrollbar-gutter:stable}
.menu-item{height:57px;min-height:57px;border-radius:16px;grid-template-columns:42px minmax(0,1fr);gap:10px;padding:6px 12px;background:rgba(255,255,255,.075)}
.menu-avatar{width:40px;height:40px;font-size:14px}
.menu-item-text{grid-template-columns:auto minmax(0,1fr) auto;gap:8px;filter:none;transform:none;opacity:0}
.menu-item.show-text .menu-item-text{opacity:1!important;transform:none!important;filter:none!important;animation:none!important}
.meta-pill{font-size:14px;min-width:0;max-width:72px;overflow:hidden;text-overflow:ellipsis}
.item-name{font-size:18px;letter-spacing:-.02em}
.item-extra{font-size:13px;max-width:90px;overflow:hidden;text-overflow:ellipsis}
.carousel-overlay{background:transparent!important;backdrop-filter:none!important;pointer-events:none}.carousel-overlay.active{display:block}.carousel-shell{pointer-events:auto}.carousel-empty{font-size:30px}.carousel-range.is-hidden,.carousel-indicator.is-hidden{display:none!important}
@media(max-height:760px){.embed-stage .menu-card{top:3vh;height:94vh}.embed-stage .carousel-shell{top:3vh;height:94vh}.menu-content{padding:22px}.menu-title{font-size:38px;min-height:52px;margin-bottom:14px}.menu-item{height:48px;min-height:48px}.menu-avatar{width:34px;height:34px}.item-name{font-size:15px}.meta-pill{font-size:12px}.item-extra{font-size:11px}.menu-list{gap:7px}}

/* Upload restaurado e sempre visível nos cards */
.file-btn{border:0;border-radius:10px;background:linear-gradient(180deg,#303849,#202736);color:#fff;padding:8px 10px;cursor:pointer;text-decoration:none;display:inline-flex!important;align-items:center;justify-content:center;gap:8px;transition:.18s ease;font-size:12px;margin:0;white-space:nowrap}.file-btn:hover{transform:translateY(-1px);filter:brightness(1.12)}
.quick-media-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:max-content}.mini-upload{padding:6px 8px;font-size:11px;border-radius:9px}.item-editor-head{grid-template-columns:28px minmax(0,1fr) auto!important}.item-editor.compact .quick-media-actions{display:flex}.item-editor.compact{padding:8px 10px}.item-editor.compact .mini-title{font-size:13px}.item-editor.compact .media-count{display:inline-flex}
@media(max-width:520px){.quick-media-actions{flex-wrap:wrap;justify-content:flex-start}.item-editor-head{grid-template-columns:28px 1fr!important}.quick-media-actions{grid-column:2 / -1}.editor-grid{grid-template-columns:1fr 1fr}}


/* ===== AJUSTE SOLICITADO: preview limpo, menu à esquerda e imagem sem desfoque ===== */
.stage-wrap{
  height:100vh!important;
  padding:0!important;
  gap:0!important;
  display:block!important;
  min-width:0!important;
  background:#02040a!important;
}
.stage-toolbar{
  display:none!important;
}
.stage-frame{
  height:100vh!important;
  width:100%!important;
  min-height:0!important;
  display:block!important;
  overflow:auto!important;
  border:0!important;
  border-radius:0!important;
  padding:0!important;
  background:#02040a!important;
  -webkit-font-smoothing:antialiased;
  text-rendering:geometricPrecision;
}
.broadcast-stage:not(.embed-stage){
  transform:none!important;
  transform-origin:left top!important;
  margin:0!important;
}
.menu-card{
  left:36px!important;
  top:56px!important;
}
.embed-stage .menu-card{
  left:3vw!important;
  top:5.2vh!important;
}
.menu-card,
.menu-title,
.menu-list,
.menu-item,
.menu-avatar,
.menu-item-text,
.carousel-shell,
.carousel-media img,
.carousel-media video{
  filter:none!important;
}
@media(max-width:1100px){
  .stage-wrap{height:100vh!important;min-height:100vh!important;}
  .stage-frame{height:100vh!important;min-height:0!important;}
  .broadcast-stage:not(.embed-stage){transform:none!important;}
}


/* ===== Autoplay + acordeão de controles, sem opções duplicadas ===== */
.check-label{
  flex-direction:row!important;
  align-items:center;
  gap:10px;
  background:#090c13;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px;
  margin:10px 0;
}
.check-label input{width:auto;margin:0;accent-color:var(--accent)}
.accordion-card{transition:border-color .18s ease, background .18s ease}
.accordion-card>.section-title{cursor:pointer;margin-bottom:12px}
.accordion-toggle{
  width:28px;
  height:28px;
  padding:0!important;
  border-radius:9px;
  font-size:13px;
  line-height:1;
  flex:0 0 auto;
}
.accordion-card.is-collapsed{padding-bottom:10px;background:rgba(255,255,255,.025)}
.accordion-card.is-collapsed>.section-title{margin-bottom:0}
.accordion-card.is-collapsed>.section-title .accordion-toggle{transform:rotate(-90deg)}
.accordion-card.is-collapsed>:not(.section-title){display:none!important}
.item-editor .editor-extra .file-btn{display:none!important}
.carousel-media video{background:#000}
.item-editor-head{cursor:pointer}
.item-editor:not(.compact) .item-editor-head{cursor:default}
.item-editor.compact:hover{border-color:rgba(233,255,19,.36);background:rgba(233,255,19,.035)}

/* ===== Ajuste final: background controlado + linhas por esporte ===== */
.menu-card[data-bg-mode="transparent"]{background:transparent!important;box-shadow:none}
.menu-card[data-bg-mode="solid"]{background:var(--menu-bg)!important}
.menu-card[data-bg-mode="image"]{background:transparent!important}
.menu-card[data-bg-mode="transparent"] .menu-bg-layer{background:transparent!important;background-image:none!important;opacity:1!important}
.menu-card[data-bg-mode="solid"] .menu-bg-layer{background:var(--menu-bg)!important;background-image:none!important;opacity:1!important}
.menu-card[data-bg-mode="image"] .menu-bg-layer{opacity:1!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important}
.menu-card[data-bg-mode="transparent"] .menu-bg-layer::after,
.menu-card[data-bg-mode="image"] .menu-bg-layer::after{display:none!important}
.menu-card[data-bg-mode="solid"] .menu-bg-layer::after{display:block!important;background:linear-gradient(180deg,rgba(0,0,0,.10),rgba(0,0,0,.36))}
.menu-item{grid-template-columns:42px minmax(0,1fr)!important}
.menu-item-text.football-row{grid-template-columns:minmax(34px,auto) minmax(0,1fr) minmax(74px,auto)!important}
.menu-item-text.racing-row{grid-template-columns:42px minmax(0,1fr) minmax(72px,auto)!important}
.jersey-number{display:inline-grid;place-items:center;min-width:32px;height:28px;border-radius:8px;background:rgba(233,255,19,.12);border:1px solid rgba(233,255,19,.24);color:var(--accent);font-size:16px;font-weight:950;line-height:1;white-space:nowrap}
.item-position{font-size:13px;font-weight:900;color:rgba(255,255,255,.70);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right}
.season-points{font-size:13px;font-weight:950;color:rgba(255,255,255,.76);white-space:nowrap;text-align:right;overflow:hidden;text-overflow:ellipsis}
.team-logo{width:36px;height:36px;border-radius:10px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.16);display:grid;place-items:center;overflow:hidden;color:var(--accent);font-size:10px;font-weight:950;line-height:1;text-align:center;padding:2px;white-space:nowrap}
.team-logo img{width:100%;height:100%;object-fit:contain;display:block}
.menu-avatar{background:linear-gradient(135deg,rgba(255,255,255,.20),rgba(255,255,255,.04))}
.item-editor .racing-editor-grid{grid-template-columns:90px 1fr 1fr 86px}
.item-editor .football-editor-grid{grid-template-columns:90px 1fr 1fr 96px}
@media(max-height:760px){.jersey-number{height:24px;font-size:13px}.team-logo{width:30px;height:30px;border-radius:8px}.item-position,.season-points{font-size:11px}.menu-item-text.racing-row{grid-template-columns:34px minmax(0,1fr) minmax(58px,auto)!important}.menu-item-text.football-row{grid-template-columns:minmax(30px,auto) minmax(0,1fr) minmax(58px,auto)!important}}


/* ===== Ajuste solicitado: foto sem numeração automática ===== */
.menu-avatar.is-empty{
  color:transparent!important;
  background:rgba(255,255,255,.08)!important;
}
.menu-avatar.is-empty::before{
  content:"";
  width:18px;
  height:18px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.30);
  box-shadow:0 12px 0 -7px rgba(255,255,255,.30);
}
.menu-item-text.football-row{grid-template-columns:minmax(32px,auto) minmax(0,1fr) minmax(72px,auto)!important}
.jersey-number::before{content:""!important;display:none!important}


/* ===== Controle de espaçamento entre botões ===== */
:root{--button-gap:9px;--button-height:57px}
.range-readout{display:inline-flex;align-items:center;justify-content:center;min-width:52px;align-self:flex-start;margin-top:2px;padding:4px 8px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid var(--line);color:var(--accent);font-size:11px;font-weight:900}
.menu-list{gap:var(--button-gap)!important}
.menu-item{height:var(--button-height)!important;min-height:var(--button-height)!important}
@media(max-height:760px){.menu-list{gap:var(--button-gap)!important}.menu-item{height:var(--button-height)!important;min-height:var(--button-height)!important}}


/* ===== Ajuste: menu com a mesma altura da imagem/carrossel ===== */
:root{
  --layout-top:128px;
  --layout-height:684px;
  --layout-menu-left:36px;
  --layout-menu-width:560px;
  --layout-carousel-right:56px;
  --layout-carousel-width:1216px;
}
.stage-frame{
  background:#02040a!important;
}
.broadcast-stage:not(.embed-stage) .menu-card{
  left:var(--layout-menu-left)!important;
  top:var(--layout-top)!important;
  width:var(--layout-menu-width)!important;
  height:var(--layout-height)!important;
}
.broadcast-stage:not(.embed-stage) .carousel-shell{
  right:var(--layout-carousel-right)!important;
  top:var(--layout-top)!important;
  width:var(--layout-carousel-width)!important;
  height:var(--layout-height)!important;
}
.carousel-overlay{
  background:transparent!important;
  backdrop-filter:none!important;
}
.carousel-shell{
  background:#000!important;
}
.carousel-media{
  inset:0!important;
  background:#000!important;
}
.carousel-close{
  z-index:12!important;
  top:22px!important;
  right:22px!important;
  background:rgba(0,0,0,.62)!important;
  border:1px solid rgba(255,255,255,.26)!important;
  box-shadow:0 10px 30px rgba(0,0,0,.35)!important;
}
.carousel-range{
  z-index:12!important;
  bottom:62px!important;
  width:min(660px,62%)!important;
  filter:drop-shadow(0 4px 10px rgba(0,0,0,.75));
}
.carousel-indicator{
  z-index:12!important;
  bottom:22px!important;
  background:rgba(0,0,0,.62)!important;
  backdrop-filter:blur(10px);
}
.menu-content{
  padding:24px 28px!important;
}
.menu-title{
  min-height:58px!important;
  margin-bottom:16px!important;
  font-size:42px!important;
}
.menu-list{
  flex:1 1 auto!important;
  min-height:0!important;
}
.menu-avatar{
  width:38px!important;
  height:38px!important;
}
.menu-item{
  border-radius:15px!important;
  padding:6px 12px!important;
  gap:10px!important;
}
.item-name{
  font-size:18px!important;
}
.jersey-number{
  height:26px!important;
  min-width:30px!important;
  font-size:15px!important;
}
.item-position,.season-points{
  font-size:12px!important;
}
.embed-stage{
  --embed-carousel-width:61.5vw;
  --embed-layout-height:min(76vh, calc(var(--embed-carousel-width) * .5625));
  --embed-layout-top:calc((100vh - var(--embed-layout-height)) / 2);
}
.embed-stage .menu-card{
  left:3vw!important;
  top:var(--embed-layout-top)!important;
  width:min(31vw,560px)!important;
  height:var(--embed-layout-height)!important;
}
.embed-stage .carousel-shell{
  right:3vw!important;
  top:var(--embed-layout-top)!important;
  width:var(--embed-carousel-width)!important;
  height:var(--embed-layout-height)!important;
}
@media(max-height:760px){
  :root{--layout-top:54px;--layout-height:calc(100vh - 108px)}
  .menu-title{font-size:34px!important;min-height:42px!important;margin-bottom:10px!important}
  .menu-content{padding:18px!important}
}

/* Logo único ao lado do nome */
.name-with-logo{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
  overflow:hidden;
}
.menu-item-logo{
  width:38px;
  height:38px;
  border-radius:9px;
  object-fit:contain;
  padding:2px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  flex:0 0 auto;
  box-shadow:0 4px 12px rgba(0,0,0,.24);
}
.name-with-logo .item-name{
  min-width:0;
  flex:1 1 auto;
}
@media(max-height:760px){
  .menu-item-logo{width:34px;height:34px;border-radius:8px}
  .name-with-logo{gap:7px}
}

/* ===== Entrada dos textos sincronizada com a cascata individual =====
   O nome entra junto da cadência da cascata do próprio botão, sem a espera longa. */
.menu-item.animate .menu-item-text{
  opacity:0!important;
  transform:translateX(-8px) scale(.99)!important;
  filter:blur(4px)!important;
  animation:none!important;
}
.menu-item.animate.text-cascade-in .menu-item-text{
  animation:itemTextCascadeIn .28s cubic-bezier(.12,1.05,.22,1) forwards!important;
}
.menu-item.show-text .menu-item-text,
.menu-item.text-cascade-in .menu-item-text{
  visibility:visible!important;
}
@keyframes itemTextCascadeIn{
  0%{opacity:0;transform:translateX(-8px) scale(.99);filter:blur(4px)}
  72%{opacity:1;transform:translateX(1px) scale(1.004);filter:blur(0)}
  100%{opacity:1;transform:translateX(0) scale(1);filter:blur(0)}
}

/* ===== Atualização: logo no topo direito + background geral ===== */
:root{--stage-bg:#02040a;--stage-opacity:1;--menu-emblem-scale:1}
.subsection-divider{height:1px;background:var(--line);margin:16px 0 12px;opacity:.8}.compact-title{margin-bottom:8px!important}.file-btn input{display:none!important}
.broadcast-stage{background:transparent!important;isolation:isolate}.stage-bg-layer{position:absolute;inset:0;z-index:0;pointer-events:none;background-size:cover;background-position:center;background-repeat:no-repeat;opacity:var(--stage-opacity)}
.broadcast-stage[data-bg-mode="transparent"]{background:transparent!important}.broadcast-stage[data-bg-mode="transparent"] .stage-bg-layer{background-image:none!important;opacity:1!important}
.broadcast-stage[data-bg-mode="solid"]{background:var(--stage-bg)!important}.broadcast-stage[data-bg-mode="solid"] .stage-bg-layer{background-image:none!important;opacity:1!important}
.broadcast-stage[data-bg-mode="image"]{background:var(--stage-bg)!important}.broadcast-stage[data-bg-mode="image"] .stage-bg-layer{opacity:var(--stage-opacity)!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important}
.menu-card,.carousel-overlay{z-index:2}.menu-card{isolation:isolate}.menu-top-emblem{position:absolute;top:22px;right:24px;z-index:4;width:62px;height:62px;border-radius:18px;display:grid;place-items:center;overflow:hidden;background:rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.18);box-shadow:0 12px 34px rgba(0,0,0,.24);backdrop-filter:blur(8px)}
.menu-top-emblem[hidden]{display:none!important}.menu-top-emblem img{width:100%;height:100%;object-fit:contain;padding:7px;display:block;transform:scale(var(--menu-emblem-scale,1));transform-origin:center;transition:transform .18s ease}.menu-content{padding-right:96px}.menu-list{padding-right:0}.menu-title{padding-right:0}.embed-stage .menu-top-emblem{top:22px;right:22px;width:58px;height:58px;border-radius:16px}
@media(max-height:760px){.menu-top-emblem{top:14px;right:16px;width:48px;height:48px;border-radius:14px}.menu-content{padding-right:76px}}


/* ===== Correção: nomes sempre carregados nos botões ===== */
.menu-item.name-loaded .menu-item-text,
.menu-item.show-text .menu-item-text{
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
  filter:none!important;
}
.menu-item.name-loaded .item-name,
.menu-item.name-loaded .name-with-logo{
  opacity:1!important;
  visibility:visible!important;
}

/* ===== Scroll automático quando os botões saem da área visível ===== */
.menu-list{
  position:relative;
  flex:1 1 auto!important;
  min-height:0!important;
  overflow:hidden!important;
  overscroll-behavior:contain;
}
.menu-list.scroll-enabled{
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding-right:8px!important;
  scrollbar-gutter:stable;
  -webkit-overflow-scrolling:touch;
}
.menu-list.scroll-enabled::-webkit-scrollbar{width:7px}
.menu-list.scroll-enabled::-webkit-scrollbar-track{background:rgba(255,255,255,.06);border-radius:999px}
.menu-list.scroll-enabled::-webkit-scrollbar-thumb{background:rgba(255,255,255,.36);border-radius:999px;border:1px solid rgba(0,0,0,.25)}
.menu-list.scroll-enabled{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.36) rgba(255,255,255,.06)}
.menu-list.scroll-fade-top{box-shadow:inset 0 18px 18px -18px rgba(0,0,0,.95)}
.menu-list.scroll-fade-bottom{box-shadow:inset 0 -18px 18px -18px rgba(0,0,0,.95)}
.menu-list.scroll-fade-top.scroll-fade-bottom{box-shadow:inset 0 18px 18px -18px rgba(0,0,0,.95), inset 0 -18px 18px -18px rgba(0,0,0,.95)}
.advanced-links{border:1px solid rgba(255,255,255,.1);border-radius:14px;padding:10px 12px;background:rgba(255,255,255,.035);margin:8px 0}
.advanced-links summary{cursor:pointer;color:#b9c4d6;font-weight:850;font-size:13px;list-style:none}
.advanced-links summary::-webkit-details-marker{display:none}
.advanced-links[open] summary{margin-bottom:10px;color:#fff}

/* ===== Fluxo simplificado: projeto, menus, fundos e telas ===== */
.startup-notice{display:flex;flex-direction:column;gap:5px;padding:12px 14px;border:1px solid rgba(255,190,73,.48);border-radius:15px;background:rgba(255,170,45,.11);color:#ffe3aa;font-size:12px;line-height:1.4}
.startup-notice[hidden]{display:none!important}.startup-notice strong{font-size:13px;color:#fff}.startup-notice span{color:#d7c7a7}
.control-group{padding:16px 0;border-top:1px solid var(--line)}.control-group.first-group{padding-top:2px;border-top:0}.control-group h3{margin:0;color:#fff;font-size:14px;letter-spacing:-.01em}.group-help{margin:5px 0 10px;color:var(--muted);font-size:11px;line-height:1.4}
.action-grid{display:grid;gap:8px}.two-actions{grid-template-columns:1fr 1fr}.action-grid>*{width:100%;min-height:42px}.primary-action{background:linear-gradient(180deg,#dff213,#93a500)!important;color:#101300!important;font-weight:950!important}.wide-action{width:100%;min-height:46px}.project-save-row{margin-top:14px}.project-save-row button{width:100%}
.simple-details{margin-top:12px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.025);padding:11px 12px}.simple-details summary{cursor:pointer;list-style:none;color:#c4ccda;font-size:12px;font-weight:900}.simple-details summary::-webkit-details-marker{display:none}.simple-details summary::after{content:"+";float:right;color:var(--accent);font-size:16px;line-height:1}.simple-details[open] summary::after{content:"−"}.simple-details[open] summary{margin-bottom:10px;color:#fff}
.import-status[data-state="success"],.sync-status[data-state="success"]{color:var(--ok)}.import-status[data-state="error"],.sync-status[data-state="error"]{color:#ff9aac}
.sync-intro{margin:0 0 10px;color:var(--muted);font-size:12px;line-height:1.45}.sync-status{margin:9px 0 12px;padding:9px 10px;border-radius:11px;background:#090c13;border:1px solid var(--line);color:var(--muted);font-size:11px;line-height:1.4}.screen-actions{display:grid;gap:9px}.screen-action-card{display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#090c13}.screen-action-card>div:first-child{display:flex;flex-direction:column;gap:3px}.screen-action-card strong{font-size:14px}.screen-action-card span{color:var(--muted);font-size:11px}.screen-action-card .button-row{display:grid;grid-template-columns:1fr 1fr}.sync-advanced{margin-top:10px}
@media(max-width:520px){.two-actions,.screen-action-card .button-row{grid-template-columns:1fr}.project-workspace-card .grid-2{grid-template-columns:1fr}}


/* ===== Melhorias de layout: menu mais estreito, carrossel maior e tela cheia ===== */
:root{
  --layout-top:128px;
  --layout-height:684px;
  --layout-menu-left:36px;
  --layout-menu-width:460px;
  --layout-carousel-right:48px;
  --layout-carousel-width:1340px;
}
.broadcast-stage:not(.embed-stage) .menu-card{
  left:var(--layout-menu-left)!important;
  top:var(--layout-top)!important;
  width:var(--layout-menu-width)!important;
  height:var(--layout-height)!important;
}
.broadcast-stage:not(.embed-stage) .carousel-shell{
  right:var(--layout-carousel-right)!important;
  top:var(--layout-top)!important;
  width:var(--layout-carousel-width)!important;
  height:var(--layout-height)!important;
}
.embed-stage{
  --embed-carousel-width:66vw;
  --embed-menu-width:25.5vw;
  --embed-layout-height:min(76vh, calc(var(--embed-carousel-width) * .5625));
  --embed-layout-top:calc((100vh - var(--embed-layout-height)) / 2);
}
.embed-stage .menu-card{
  left:2.8vw!important;
  top:var(--embed-layout-top)!important;
  width:var(--embed-menu-width)!important;
  height:var(--embed-layout-height)!important;
}
.embed-stage .carousel-shell{
  right:2.8vw!important;
  top:var(--embed-layout-top)!important;
  width:var(--embed-carousel-width)!important;
  height:var(--embed-layout-height)!important;
}
.carousel-range,
.carousel-indicator{
  display:none!important;
}
.carousel-media{
  cursor:pointer;
}
.carousel-media::after{
  content:"Clique para avançar";
  position:absolute;
  left:50%;
  bottom:22px;
  transform:translateX(-50%);
  padding:7px 12px;
  border-radius:999px;
  background:rgba(0,0,0,.48);
  color:rgba(255,255,255,.72);
  font-size:12px;
  font-weight:850;
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease;
}
.carousel-shell:hover .carousel-media::after{
  opacity:1;
}
.fullscreen-toggle{
  position:absolute;
  z-index:70;
  left:calc(var(--layout-menu-left) + var(--layout-menu-width) + 40px + (var(--layout-carousel-width) / 2));
  top:calc(var(--layout-top) + var(--layout-height) - 62px);
  transform:translateX(-50%);
  height:42px;
  padding:0 16px!important;
  border-radius:999px!important;
  background:rgba(0,0,0,.64)!important;
  border:1px solid rgba(255,255,255,.26)!important;
  color:#fff!important;
  font-size:14px;
  font-weight:850;
  backdrop-filter:blur(10px);
  box-shadow:0 10px 28px rgba(0,0,0,.32);
}
.fullscreen-toggle[hidden]{display:none!important}
.fullscreen-toggle.is-fullscreen{
  background:rgba(233,255,19,.16)!important;
  border-color:rgba(233,255,19,.42)!important;
  color:var(--accent)!important;
}
.embed-stage .fullscreen-toggle{
  left:calc(3vw + min(31vw,560px) + 3.4vw + (var(--embed-carousel-width) / 2));
  top:calc(var(--embed-layout-top) + var(--embed-layout-height) - 58px);
  right:auto;
  transform:translateX(-50%);
}
.stage-frame:fullscreen,
.embed-body:fullscreen,
html:fullscreen{
  background:#02040a!important;
}
.stage-frame:fullscreen .broadcast-stage:not(.embed-stage){
  margin:0 auto!important;
}
@media(max-height:760px){
  :root{--layout-top:54px;--layout-height:calc(100vh - 108px);--layout-menu-width:420px;--layout-carousel-width:calc(100vw - 520px)}
  .fullscreen-toggle{
    left:calc(var(--layout-menu-left) + var(--layout-menu-width) + 40px + (var(--layout-carousel-width) / 2));
    top:calc(var(--layout-top) + var(--layout-height) - 52px);
    right:auto;
    height:36px;
    padding:0 12px!important;
    font-size:12px;
  }
}


/* ===== Modo Encher tela acionado pelo botão inferior =====
   O carrossel só ocupa 100% do stage quando a classe carousel-full-active é acionada pelo botão. */
.broadcast-stage.carousel-full-active .carousel-overlay.active,
.embed-stage.carousel-full-active .carousel-overlay.active{
  position:absolute!important;
  inset:0!important;
  z-index:60!important;
  display:block!important;
  background:#000!important;
  backdrop-filter:none!important;
  pointer-events:auto!important;
}
.broadcast-stage.carousel-full-active .carousel-shell,
.embed-stage.carousel-full-active .carousel-shell,
.stage-frame:fullscreen .broadcast-stage.carousel-full-active .carousel-shell{
  position:absolute!important;
  inset:0!important;
  left:0!important;
  right:auto!important;
  top:0!important;
  bottom:auto!important;
  width:100%!important;
  height:100%!important;
  border-radius:0!important;
  border:0!important;
  background:#000!important;
  box-shadow:none!important;
}
.broadcast-stage.carousel-full-active .carousel-media,
.embed-stage.carousel-full-active .carousel-media{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  background:#000!important;
}
.broadcast-stage.carousel-full-active .carousel-media img,
.broadcast-stage.carousel-full-active .carousel-media video,
.embed-stage.carousel-full-active .carousel-media img,
.embed-stage.carousel-full-active .carousel-media video{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  background:#000!important;
}
.broadcast-stage.carousel-full-active .carousel-close,
.embed-stage.carousel-full-active .carousel-close{
  z-index:90!important;
  top:24px!important;
  right:24px!important;
  left:auto!important;
}
.broadcast-stage.carousel-full-active .fullscreen-toggle,
.embed-stage.carousel-full-active .fullscreen-toggle{
  z-index:95!important;
  top:auto!important;
  left:50%!important;
  right:auto!important;
  bottom:24px!important;
  transform:translateX(-50%)!important;
  height:44px!important;
  padding:0 18px!important;
  border-radius:999px!important;
  background:rgba(0,0,0,.68)!important;
  border:1px solid rgba(255,255,255,.28)!important;
  color:#fff!important;
  box-shadow:0 14px 34px rgba(0,0,0,.45)!important;
}
.broadcast-stage.carousel-full-active .fullscreen-toggle::before,
.embed-stage.carousel-full-active .fullscreen-toggle::before{
  content:'⛶';
  margin-right:8px;
  font-size:15px;
  line-height:1;
}
.broadcast-stage.carousel-full-active .fullscreen-toggle.is-fullscreen,
.embed-stage.carousel-full-active .fullscreen-toggle.is-fullscreen{
  background:rgba(233,255,19,.18)!important;
  border-color:rgba(233,255,19,.52)!important;
  color:var(--accent)!important;
}
@media(max-height:760px){
  .broadcast-stage.carousel-full-active .fullscreen-toggle,
  .embed-stage.carousel-full-active .fullscreen-toggle{
    bottom:14px!important;
    height:38px!important;
    padding:0 14px!important;
    font-size:12px!important;
  }
}
.carousel-media::after{
  display:none!important;
}

/* ===== Ajuste solicitado: fechar como X e botão Encher tela alinhado à direita ===== */
.carousel-close{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border-radius:50%!important;
  font-size:30px!important;
  line-height:1!important;
  font-weight:850!important;
  color:#fff!important;
}
.fullscreen-toggle{
  left:auto!important;
  right:calc(var(--layout-carousel-right) + 24px)!important;
  top:calc(var(--layout-top) + var(--layout-height) - 62px)!important;
  transform:none!important;
}
.embed-stage .fullscreen-toggle{
  left:auto!important;
  right:calc(3.6vw + 24px)!important;
  top:calc(var(--embed-layout-top) + var(--embed-layout-height) - 58px)!important;
  transform:none!important;
}
.broadcast-stage.carousel-full-active .fullscreen-toggle,
.embed-stage.carousel-full-active .fullscreen-toggle{
  left:auto!important;
  right:24px!important;
  bottom:24px!important;
  transform:none!important;
}
@media(max-height:760px){
  .fullscreen-toggle{
    left:auto!important;
    right:calc(var(--layout-carousel-right) + 18px)!important;
    transform:none!important;
  }
  .broadcast-stage.carousel-full-active .fullscreen-toggle,
  .embed-stage.carousel-full-active .fullscreen-toggle{
    right:14px!important;
    bottom:14px!important;
    transform:none!important;
  }
}


/* ===== Foto animada vinculada ao botão selecionado ===== */
.menu-selected-photo{
  position:absolute;
  left:var(--layout-menu-left);
  top:var(--layout-top);
  width:var(--layout-menu-width);
  height:var(--layout-height);
  z-index:19;
  pointer-events:none;
  display:grid;
  place-items:center;
  padding:24px;
  opacity:0;
  transform:translateX(-36px) scale(.96);
  filter:blur(10px);
}
.menu-selected-photo[hidden]{display:none!important}
.menu-selected-photo img{
  max-width:104%;
  max-height:104%;
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
  filter:drop-shadow(0 34px 48px rgba(0,0,0,.60));
}
.menu-selected-photo.active{
  animation:menuSelectedPhotoIn .48s cubic-bezier(.12,1.08,.22,1) forwards;
}
.menu-selected-photo.leaving{
  animation:menuSelectedPhotoOut .34s cubic-bezier(.7,0,.2,1) forwards;
}
.embed-stage .menu-selected-photo{
  left:2.8vw!important;
  top:var(--embed-layout-top)!important;
  width:var(--embed-menu-width)!important;
  height:var(--embed-layout-height)!important;
  padding:2.2vw;
}
.broadcast-stage.carousel-full-active .menu-selected-photo,
.embed-stage.carousel-full-active .menu-selected-photo{
  display:none!important;
}
@keyframes menuSelectedPhotoIn{
  0%{opacity:0;transform:translateX(-40px) scale(.94);filter:blur(12px)}
  66%{opacity:1;transform:translateX(8px) scale(1.018);filter:blur(0)}
  100%{opacity:1;transform:translateX(0) scale(1);filter:blur(0)}
}
@keyframes menuSelectedPhotoOut{
  0%{opacity:1;transform:translateX(0) scale(1);filter:blur(0)}
  100%{opacity:0;transform:translateX(-34px) scale(.96);filter:blur(8px)}
}
@media(max-height:760px){
  .menu-selected-photo{padding:16px}
}

/* ===== Ajuste: foto selecionada preenchendo o campo do menu ===== */
.menu-card.menu-photo-open .menu-title,
.menu-card.menu-photo-open .menu-top-emblem,
.menu-card.menu-photo-open .menu-list{
  opacity:0!important;
  visibility:hidden!important;
}
.menu-selected-photo{
  padding:0!important;
  overflow:hidden!important;
  border-radius:38px!important;
  background:var(--menu-bg,#070707)!important;
  place-items:stretch!important;
}
.menu-selected-photo-fill{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:hidden;
  border-radius:inherit;
}
.menu-selected-photo-fill img,
.menu-selected-photo > img{
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center top!important;
  display:block!important;
  filter:none!important;
}
.menu-selected-photo-label{
  position:absolute;
  right:18px;
  top:50%;
  transform:translateY(-50%);
  z-index:3;
  max-width:calc(100% - 36px);
  padding:9px 13px;
  border-radius:6px;
  background:rgba(12,18,28,.88);
  border:1px solid rgba(255,255,255,.58);
  color:#fff;
  font-size:20px;
  font-weight:850;
  line-height:1.05;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  box-shadow:0 14px 30px rgba(0,0,0,.36);
}
.embed-stage .menu-selected-photo{
  padding:0!important;
}
.embed-stage .menu-selected-photo-label{
  right:1.1vw;
  font-size:clamp(13px,1.08vw,20px);
}
@media(max-height:760px){
  .menu-selected-photo{padding:0!important}
  .menu-selected-photo-label{font-size:16px;right:12px;padding:7px 10px}
}

/* ===== Ajuste solicitado: texto da foto centralizado no canto inferior ===== */
.menu-selected-photo-label{
  left:50%!important;
  right:auto!important;
  top:auto!important;
  bottom:22px!important;
  transform:translateX(-50%)!important;
  max-width:calc(100% - 48px)!important;
  text-align:center!important;
}
.embed-stage .menu-selected-photo-label{
  left:50%!important;
  right:auto!important;
  bottom:2.1vh!important;
  transform:translateX(-50%)!important;
  max-width:calc(100% - 5vw)!important;
  text-align:center!important;
}
@media(max-height:760px){
  .menu-selected-photo-label{
    left:50%!important;
    right:auto!important;
    bottom:12px!important;
    transform:translateX(-50%)!important;
    max-width:calc(100% - 28px)!important;
    text-align:center!important;
  }
}


/* ===== Menus múltiplos navegáveis no mesmo projeto ===== */
.menu-switcher{
  position:absolute;
  z-index:8;
  left:calc(var(--layout-menu-left, 36px) - 22px);
  top:calc(var(--layout-top, 128px) + 34px);
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height:calc(var(--layout-height, 684px) - 68px);
  overflow-y:auto;
  padding:6px 4px 6px 0;
  scrollbar-width:none;
}
.menu-switcher::-webkit-scrollbar{display:none}
.menu-switch-btn{
  width:48px;
  min-height:54px;
  border-radius:14px 0 0 14px!important;
  padding:7px 5px!important;
  background:rgba(0,0,0,.50)!important;
  border:1px solid rgba(255,255,255,.18)!important;
  border-right:0!important;
  color:#fff!important;
  box-shadow:0 12px 26px rgba(0,0,0,.28);
  backdrop-filter:blur(10px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  opacity:.78;
}
.menu-switch-btn span{font-size:12px;font-weight:950;line-height:1;letter-spacing:-.03em;color:var(--accent)}
.menu-switch-btn small{max-width:42px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:9px;font-weight:850;line-height:1;color:rgba(255,255,255,.72)}
.menu-switch-btn.active{
  opacity:1;
  background:linear-gradient(180deg,rgba(233,255,19,.22),rgba(0,0,0,.64))!important;
  border-color:rgba(233,255,19,.45)!important;
}
.embed-stage .menu-switcher{
  left:calc(2.8vw - 18px);
  top:calc(var(--embed-layout-top) + 28px);
  max-height:calc(var(--embed-layout-height) - 56px);
}
.embed-stage .menu-switch-btn{width:44px;min-height:50px;border-radius:13px 0 0 13px!important}
.menu-library-list{display:flex;flex-direction:column;gap:8px;margin:10px 0 12px}
.library-menu-btn{
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  text-align:left;
  align-items:center;
  border:1px solid var(--line)!important;
  background:#090c13!important;
  border-radius:12px!important;
  padding:10px 12px!important;
}
.library-menu-btn strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#fff}
.library-menu-btn span{font-size:11px;color:var(--muted);white-space:nowrap}
.library-menu-btn.active{border-color:rgba(233,255,19,.55)!important;box-shadow:inset 0 0 0 1px rgba(233,255,19,.16)}

.template-list{display:flex;flex-direction:column;gap:8px;margin:10px 0 12px;max-height:240px;overflow:auto;padding-right:2px}
.template-btn{
  width:100%;
  display:flex!important;
  flex-direction:column;
  align-items:flex-start!important;
  gap:4px!important;
  text-align:left!important;
  border:1px solid var(--line)!important;
  background:#090c13!important;
  border-radius:12px!important;
  padding:10px 12px!important;
}
.template-btn strong{font-size:14px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.template-btn span{font-size:11px;color:var(--muted);line-height:1.35}
.template-btn.active{border-color:rgba(233,255,19,.55)!important;box-shadow:inset 0 0 0 1px rgba(233,255,19,.16)}
.template-empty{border:1px dashed var(--line);border-radius:12px;padding:12px;color:var(--muted);font-size:12px;text-align:center;background:rgba(255,255,255,.025)}
@media(max-height:760px){
  .menu-switcher{top:calc(var(--layout-top, 54px) + 22px);max-height:calc(var(--layout-height, 620px) - 44px);gap:6px}
  .menu-switch-btn{width:42px;min-height:46px}
}

/* ===== Ajuste das abas laterais: esconder com 1 menu, texto vertical e atrás do menu ===== */
.menu-switcher.is-hidden,
.menu-switcher[hidden]{
  display:none!important;
}
.menu-switcher{
  z-index:1!important;
  left:calc(var(--layout-menu-left, 36px) - 46px)!important;
  top:calc(var(--layout-top, 128px) + 34px)!important;
  padding:6px 0!important;
  pointer-events:auto;
}
.menu-card{
  z-index:2!important;
}
.menu-switch-btn{
  width:52px!important;
  min-height:104px!important;
  border-radius:16px 0 0 16px!important;
  padding:12px 6px 12px 5px!important;
  display:grid!important;
  place-items:center!important;
  gap:0!important;
  background:rgba(0,0,0,.54)!important;
  border:1px solid rgba(255,255,255,.18)!important;
  border-right:0!important;
  box-shadow:0 16px 32px rgba(0,0,0,.32)!important;
}
.menu-switch-btn .switch-vertical-label,
.menu-switch-btn small{
  writing-mode:vertical-rl!important;
  transform:rotate(180deg)!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  max-height:88px!important;
  max-width:none!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:.02em!important;
  color:#fff!important;
  text-align:center!important;
}
.menu-switch-btn span:not(.switch-vertical-label){
  display:none!important;
}
.menu-switch-btn.active .switch-vertical-label,
.menu-switch-btn.active small{
  color:var(--accent)!important;
}
.embed-stage .menu-switcher{
  z-index:1!important;
  left:calc(3vw - 42px)!important;
  top:calc(var(--embed-layout-top) + 30px)!important;
  max-height:calc(var(--embed-layout-height) - 60px)!important;
}
.embed-stage .menu-switch-btn{
  width:50px!important;
  min-height:98px!important;
  border-radius:15px 0 0 15px!important;
}
@media(max-height:760px){
  .menu-switcher{top:calc(var(--layout-top, 54px) + 22px)!important;left:calc(var(--layout-menu-left, 36px) - 42px)!important}
  .menu-switch-btn{width:48px!important;min-height:82px!important}
  .menu-switch-btn .switch-vertical-label,
  .menu-switch-btn small{max-height:70px!important;font-size:10px!important}
}


/* ===== Ajuste anti-piscar da foto sobre o menu ===== */
.menu-selected-photo{
  will-change:opacity,transform;
  backface-visibility:hidden;
  transform:translate3d(-36px,0,0) scale(.96);
  contain:layout paint style;
}
.menu-selected-photo.preparing{
  opacity:0!important;
  animation:none!important;
  pointer-events:none!important;
}
.menu-selected-photo-fill,
.menu-selected-photo-fill img{
  backface-visibility:hidden;
  transform:translateZ(0);
}
.menu-selected-photo.active:not(.leaving){
  pointer-events:none!important;
}
@keyframes menuSelectedPhotoIn{
  0%{opacity:0;transform:translate3d(-40px,0,0) scale(.94);filter:blur(10px)}
  66%{opacity:1;transform:translate3d(8px,0,0) scale(1.018);filter:blur(0)}
  100%{opacity:1;transform:translate3d(0,0,0) scale(1);filter:blur(0)}
}
@keyframes menuSelectedPhotoOut{
  0%{opacity:1;transform:translate3d(0,0,0) scale(1);filter:blur(0)}
  100%{opacity:0;transform:translate3d(-34px,0,0) scale(.96);filter:blur(7px)}
}


/* ===== Controles individuais de vídeo no carrossel ===== */
.media-chip-row{display:inline-flex;align-items:center;gap:7px;border-radius:12px;max-width:100%}
.media-chip-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:220px}
.media-loop-toggle{display:inline-flex;align-items:center;gap:4px;margin:0;padding:2px 6px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(255,255,255,.06);font-size:10px;color:#dce3f0;line-height:1;cursor:pointer}
.media-loop-toggle input{width:12px;height:12px;margin:0;accent-color:#E2FF10}
.media-remove-btn{width:20px;height:20px;padding:0;border-radius:999px;display:inline-grid;place-items:center;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);color:#fff;font-size:14px;line-height:1;cursor:pointer}
.media-remove-btn:hover{background:rgba(255,80,110,.22);border-color:rgba(255,80,110,.45)}

/* ===== Correção: embeds/iframes dentro do carrossel local ===== */
.carousel-media iframe,
.carousel-media .carousel-embed-frame{
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  border:0!important;
  display:block;
  background:transparent;
}
.carousel-shell:has(.carousel-embed-frame){background:rgba(0,0,0,.72)}
.media-chip.is-embed .media-chip-name::before{
  content:"</>";
  font-weight:950;
  margin-right:6px;
  color:var(--accent);
}

/* ===== Controle touch: evita travamento no iPad ao não carregar iframe/vídeo no /g ===== */
.touch-control-placeholder{
  width:min(720px, calc(100% - 48px));
  min-height:260px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:32px;
  border-radius:28px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(8,10,18,.86);
  color:#fff;
  text-align:center;
  box-shadow:0 24px 80px rgba(0,0,0,.35);
}
.touch-control-placeholder strong{font-size:clamp(22px,3vw,42px);line-height:1.05;}
.touch-control-placeholder span{font-size:clamp(18px,2vw,28px);font-weight:900;color:#e9ff13;}
.touch-control-placeholder small{max-width:100%;font-size:clamp(12px,1.3vw,17px);color:rgba(255,255,255,.82);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.touch-control-placeholder em{max-width:560px;font-style:normal;font-size:clamp(12px,1.1vw,15px);color:rgba(255,255,255,.62);}

/* ===== iPad/Safari: controle com preview seguro ===== */
.touch-control-preview{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  background:rgba(0,0,0,.88);
  color:#fff;
  overflow:hidden;
}
.touch-control-preview-head{
  position:relative;
  z-index:3;
  min-height:74px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 22px;
  background:linear-gradient(180deg,rgba(0,0,0,.72),rgba(0,0,0,.35));
  border-bottom:1px solid rgba(255,255,255,.12);
}
.touch-control-preview-head strong{font-size:14px;font-weight:950;color:#E2FF10;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap}
.touch-control-preview-head span{font-size:20px;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:28vw}
.touch-control-preview-head small{font-size:12px;color:rgba(255,255,255,.76);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1}
.touch-control-preview-body{
  position:relative;
  flex:1;
  min-height:0;
  display:grid;
  place-items:center;
  background:#000;
}
.touch-control-preview-body img,
.touch-control-preview-body video,
.touch-control-preview-body iframe{
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  border:0!important;
  background:#000;
}
.touch-embed-gate{
  width:min(720px,calc(100% - 48px));
  min-height:260px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:32px;
  border-radius:28px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(8,10,18,.9);
  text-align:center;
  box-shadow:0 24px 80px rgba(0,0,0,.35);
}
.touch-embed-gate strong{font-size:clamp(22px,3vw,38px);line-height:1.05}
.touch-embed-gate span{font-size:clamp(14px,1.8vw,22px);font-weight:900;color:#E2FF10;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.touch-embed-gate small{max-width:560px;font-size:clamp(12px,1.2vw,16px);color:rgba(255,255,255,.68);line-height:1.35}
.touch-embed-gate button{height:44px;border-radius:999px;padding:0 18px;background:#E2FF10;color:#07090f;border:0;font-weight:950;box-shadow:0 12px 34px rgba(0,0,0,.35)}
.touch-embed-frame{background:#000!important}
@media(max-width:900px){
  .touch-control-preview-head{min-height:64px;padding:10px 14px;gap:8px;flex-wrap:wrap;align-content:center}
  .touch-control-preview-head strong{font-size:11px}
  .touch-control-preview-head span{font-size:16px;max-width:42vw}
  .touch-control-preview-head small{font-size:11px;flex-basis:100%}
}

/* ===== Cadastro e preview de embed no carrossel ===== */
.embed-add-btn{background:rgba(226,255,16,.13);border:1px solid rgba(226,255,16,.32);color:var(--accent)}
.embed-dialog{width:min(1080px,94vw);max-height:92vh;border:1px solid var(--line);background:#0d111a;color:var(--text);border-radius:24px;padding:0;box-shadow:0 30px 100px rgba(0,0,0,.68)}
.embed-dialog::backdrop{background:rgba(0,0,0,.68);backdrop-filter:blur(7px)}
.embed-dialog form{margin:0}
.embed-dialog header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;border-bottom:1px solid var(--line)}
.embed-dialog header h2{margin:0;font-size:22px}
.embed-dialog header .eyebrow{margin-bottom:4px}
.embed-dialog header button{width:42px;height:42px;padding:0;border-radius:50%;font-size:28px;line-height:1}
.embed-dialog-grid{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(420px,1.1fr);gap:18px;padding:20px}
.embed-dialog-fields{min-width:0}
.embed-dialog-fields textarea{min-height:180px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;line-height:1.45}
.embed-dialog-fields code{color:var(--accent)}
.embed-dialog-status{min-height:42px;margin:12px 0;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.035);color:var(--muted);font-size:12px;line-height:1.4}
.embed-dialog-status[data-state="error"]{border-color:rgba(255,77,109,.42);color:#ff9aad;background:rgba(255,77,109,.08)}
.embed-dialog-status[data-state="success"]{border-color:rgba(96,232,154,.38);color:var(--ok);background:rgba(96,232,154,.07)}
.embed-dialog-status[data-state="loading"]{border-color:rgba(226,255,16,.32);color:var(--accent)}
.embed-dialog .primary-btn{background:var(--accent);color:#080a0f;font-weight:950}
.embed-dialog-preview{position:relative;min-height:400px;display:grid;place-items:center;overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#020305;color:var(--muted);font-size:13px}
.embed-dialog-preview iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000}
.carousel-media.has-embed{cursor:default}
.carousel-shell.contains-embed .carousel-indicator:not(.is-hidden){display:flex!important;z-index:6;bottom:18px}
.broadcast-stage.carousel-full-active .carousel-media iframe,
.embed-stage.carousel-full-active .carousel-media iframe{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;border:0!important;background:#000!important}
@media(max-width:820px){
  .embed-dialog{width:96vw;max-height:96vh}
  .embed-dialog-grid{grid-template-columns:1fr;overflow:auto;max-height:calc(96vh - 80px)}
  .embed-dialog-preview{min-height:280px}
}

/* ===== Carrossel v15: miniaturas, contador e voltar/avançar ===== */
.carousel-navigation{
  position:absolute;
  z-index:12;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  width:min(760px,calc(100% - 150px));
  display:grid;
  gap:8px;
  padding:9px 11px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:18px;
  background:rgba(0,0,0,.68);
  backdrop-filter:blur(12px);
  box-shadow:0 12px 34px rgba(0,0,0,.34);
}
.carousel-navigation[hidden]{display:none!important}
.carousel-thumbnails{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:48px;
  max-width:100%;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scrollbar-width:thin;
}
.carousel-thumbnails[hidden]{display:none!important}
.carousel-navigation.viewer-without-thumbnails{gap:0;padding:7px 10px;width:min(560px,calc(100% - 180px))}
.carousel-thumbnail{
  position:relative;
  width:70px;
  min-width:70px;
  height:44px;
  padding:0!important;
  overflow:hidden;
  border-radius:9px!important;
  border:2px solid transparent!important;
  background:#141820!important;
  color:#fff!important;
}
.carousel-thumbnail.active{
  border-color:var(--accent)!important;
  box-shadow:0 0 0 2px rgba(226,255,16,.16);
}
.carousel-thumbnail img{width:100%;height:100%;object-fit:cover;display:block}
.carousel-thumbnail-icon{width:100%;height:100%;display:grid;place-items:center;font-weight:950;color:var(--accent)}
.carousel-thumbnail-number{position:absolute;right:3px;bottom:3px;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:rgba(0,0,0,.78);color:#fff;font-size:10px;font-weight:950;display:grid;place-items:center}
.carousel-navigation-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px}
.carousel-nav-btn{height:34px;padding:0 12px!important;border-radius:999px!important;background:rgba(255,255,255,.1)!important;border:1px solid rgba(255,255,255,.18)!important;font-size:12px;font-weight:900}
.carousel-nav-btn:disabled{opacity:.35;cursor:not-allowed;transform:none!important;filter:none!important}
.carousel-counter{text-align:center;color:#fff;font-size:12px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.broadcast-stage.carousel-full-active .carousel-navigation,
.embed-stage.carousel-full-active .carousel-navigation{bottom:22px;width:min(880px,calc(100% - 190px));z-index:94}
.broadcast-stage.carousel-full-active .fullscreen-toggle,
.embed-stage.carousel-full-active .fullscreen-toggle{bottom:22px!important}
@media(max-height:760px){
  .carousel-navigation{bottom:10px;width:min(680px,calc(100% - 130px));padding:6px 8px;gap:5px}
  .carousel-thumbnails{min-height:38px}
  .carousel-thumbnail{width:58px;min-width:58px;height:36px}
  .carousel-nav-btn{height:30px;padding:0 9px!important;font-size:11px}
}
@media(max-width:720px){
  .carousel-navigation{width:calc(100% - 24px);bottom:12px}
  .carousel-navigation-row{grid-template-columns:1fr 1fr}
  .carousel-counter{grid-column:1 / -1;grid-row:1}
}

/* Miniaturas no editor do item */
.media-list{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px!important}
.media-chip-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:7px!important;padding:7px!important;border-radius:12px!important}
.media-preview-button{min-width:0;padding:0!important;background:transparent!important;display:grid!important;grid-template-columns:56px minmax(0,1fr);gap:8px!important;justify-content:start!important;text-align:left;border-radius:8px!important}
.media-chip-thumbnail{width:56px;height:38px;display:block;object-fit:cover;border-radius:7px;background:#05070b;border:1px solid rgba(255,255,255,.12)}
.media-chip-placeholder{display:grid;place-items:center;color:var(--accent);font-weight:950}
.media-chip-name{max-width:none!important;align-self:center}
.media-chip-row .media-loop-toggle{grid-column:1 / 2;justify-self:start}
.media-chip-row .media-remove-btn{grid-column:2;grid-row:1;align-self:start}

/* ===== Menu v17: sem numeração visível e com logo único ampliado ===== */
.menu-item-text.football-row,
.menu-item-text.racing-row,
.menu-item-text.generic-row{
  grid-template-columns:minmax(0,1fr) minmax(0,auto)!important;
  gap:10px!important;
}
.name-with-logo{width:100%}
.jersey-number,.meta-pill,.team-logo,.menu-flag{display:none!important}
@media(max-height:760px){
  .menu-item-text.football-row,
  .menu-item-text.racing-row,
  .menu-item-text.generic-row{grid-template-columns:minmax(0,1fr) minmax(0,auto)!important}
}

/* ===== Editor v17: Foto, Logo, Carrossel e Embed dentro do item ===== */
.item-editor-head{grid-template-columns:28px minmax(0,1fr) auto!important}
.quick-media-actions{
  grid-column:1 / -1;
  width:100%;
  min-width:0!important;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
  padding-top:8px;
  border-top:1px solid rgba(255,255,255,.08);
}
.quick-media-actions .mini-upload{width:100%;min-width:0;white-space:nowrap}
.item-editor.compact .quick-media-actions{display:grid!important}
@media(max-width:520px){
  .quick-media-actions{grid-template-columns:repeat(2,minmax(0,1fr));grid-column:1 / -1}
}
.durable-save-status{padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.035)}
.durable-save-status[data-state="loading"],.durable-save-status[data-state="pending"]{color:var(--accent)}
.durable-save-status[data-state="success"]{color:var(--ok);border-color:rgba(96,232,154,.28)}
.durable-save-status[data-state="error"]{color:#ff8ca0;border-color:rgba(255,77,109,.32)}
.readiness-status{padding:10px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.035)}
.readiness-status[data-state="loading"]{color:var(--accent)}
.readiness-status[data-state="success"]{color:var(--ok);border-color:rgba(96,232,154,.32)}
.readiness-status[data-state="error"]{color:#ff8ca0;border-color:rgba(255,77,109,.36)}

/* ===== Usabilidade v1.8: painel fixo, preview responsivo e cor por botão ===== */
:root{
  --operator-panel-width:430px;
  --operator-panel-collapsed-width:76px;
  --preview-scale:1;
}
html,body{
  width:100%;
  height:100%;
  overflow:hidden!important;
}
.app-shell{
  width:100vw!important;
  height:100vh!important;
  height:100dvh!important;
  grid-template-columns:var(--operator-panel-width) minmax(0,1fr)!important;
  overflow:hidden!important;
}
.control-panel{
  width:var(--operator-panel-width)!important;
  min-width:var(--operator-panel-width)!important;
  max-width:var(--operator-panel-width)!important;
  height:100vh!important;
  height:100dvh!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  flex:none!important;
}
.control-panel.compact{
  width:var(--operator-panel-collapsed-width)!important;
  min-width:var(--operator-panel-collapsed-width)!important;
  max-width:var(--operator-panel-collapsed-width)!important;
}
.app-shell.panel-closed{
  grid-template-columns:var(--operator-panel-collapsed-width) minmax(0,1fr)!important;
}
.stage-wrap{
  width:100%!important;
  min-width:0!important;
  height:100vh!important;
  height:100dvh!important;
  overflow:hidden!important;
}
.stage-frame{
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  background:radial-gradient(circle at center,#111622,#02040a 72%)!important;
  contain:layout paint size;
}
.broadcast-stage:not(.embed-stage){
  --layout-top:128px;
  --layout-height:684px;
  --layout-menu-left:36px;
  --layout-menu-width:460px;
  --layout-carousel-right:48px;
  --layout-carousel-width:1340px;
  flex:0 0 auto!important;
  margin:0!important;
  transform:scale(var(--preview-scale,1))!important;
  transform-origin:center center!important;
  will-change:transform;
}
.broadcast-stage:not(.embed-stage) .menu-content{padding:24px 28px!important}
.broadcast-stage:not(.embed-stage) .menu-title{
  min-height:58px!important;
  margin-bottom:16px!important;
  font-size:42px!important;
}
.broadcast-stage:not(.embed-stage) .menu-top-emblem{
  top:22px!important;
  right:24px!important;
  width:62px!important;
  height:62px!important;
}
.menu-item{
  background:var(--item-button-color,rgba(255,255,255,.075))!important;
  color:var(--item-text-color,#fff)!important;
  transition:filter .18s ease,border-color .18s ease!important;
}
.menu-item.custom-button-color .item-name,
.menu-item.custom-button-color .item-position,
.menu-item.custom-button-color .season-points,
.menu-item.custom-button-color .item-extra{
  color:var(--item-text-color,#fff)!important;
}
.item-color-control{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:8px;
  margin:4px 0 10px;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.035);
}
.item-color-control label{margin:0}
.item-color-control input[type="color"]{height:36px;cursor:pointer}
.item-color-control button{height:36px;padding:0 10px;font-size:11px;white-space:nowrap}
@media(max-width:1100px){
  body{overflow:hidden!important}
  .app-shell{
    grid-template-columns:var(--operator-panel-width) minmax(0,1fr)!important;
    height:100dvh!important;
  }
  .control-panel{height:100dvh!important}
  .stage-wrap{height:100dvh!important;min-height:0!important}
  .stage-frame{height:100%!important;min-height:0!important}
  .broadcast-stage:not(.embed-stage){transform:scale(var(--preview-scale,1))!important}
}
@media(max-width:520px){
  .item-color-control{grid-template-columns:1fr}
  .item-color-control button{width:100%}
}

/* ===== v2.0.3: preload real e controles touch sempre acessíveis ===== */
.embed-preload-pool{
  position:fixed;
  left:-10000px;
  top:0;
  width:2px;
  height:2px;
  overflow:hidden;
  opacity:.001;
  pointer-events:none;
  z-index:-1;
  contain:strict;
}
.embed-preload-pool iframe{display:block!important;width:2px!important;height:2px!important;border:0!important}

.embed-reload-control{
  position:absolute;
  left:14px;
  bottom:14px;
  z-index:6;
  min-height:34px;
  padding:7px 12px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:999px;
  background:rgba(0,0,0,.68);
  color:#fff;
  font-size:11px;
  font-weight:900;
  line-height:1;
  cursor:pointer;
  opacity:.72;
  backdrop-filter:blur(8px);
}
.embed-reload-control:hover,
.embed-reload-control:focus-visible{opacity:1;border-color:rgba(255,255,255,.5)}
.embed-body:not(.touch-control-page) .embed-reload-control{display:none!important}

.embed-load-status{
  position:absolute;
  inset:0;
  z-index:1;
  display:grid;
  place-items:center;
  padding:24px;
  color:rgba(255,255,255,.78);
  background:#02040a;
  font-size:14px;
  font-weight:850;
  text-align:center;
  pointer-events:none;
}
.carousel-media iframe,
.touch-control-preview-body iframe{position:relative;z-index:2}

@media (pointer:coarse), (max-width:1100px){
  .embed-stage.carousel-full-active .carousel-close{
    position:absolute!important;
    display:grid!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
    z-index:120!important;
    top:calc(14px + env(safe-area-inset-top,0px))!important;
    right:calc(14px + env(safe-area-inset-right,0px))!important;
    left:auto!important;
    width:48px!important;
    height:48px!important;
    min-width:48px!important;
    touch-action:manipulation;
  }
  .embed-stage.carousel-full-active .fullscreen-toggle{
    position:absolute!important;
    display:inline-flex!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
    z-index:121!important;
    top:calc(14px + env(safe-area-inset-top,0px))!important;
    right:calc(74px + env(safe-area-inset-right,0px))!important;
    bottom:auto!important;
    left:auto!important;
    min-height:48px!important;
    max-width:calc(100vw - 108px)!important;
    touch-action:manipulation;
  }
}


/* ===== v2.2.0: WEBM explícito e canal alpha ===== */
.carousel-shell.contains-webm,
.carousel-media.is-webm,
.carousel-media.is-webm video,
.touch-control-preview-body.is-webm,
.touch-control-preview-body.is-webm video{
  background:transparent!important;
}
.broadcast-stage.carousel-full-active .carousel-shell.contains-webm,
.embed-stage.carousel-full-active .carousel-shell.contains-webm,
.broadcast-stage.carousel-full-active .carousel-media.is-webm,
.embed-stage.carousel-full-active .carousel-media.is-webm,
.broadcast-stage.carousel-full-active .carousel-media.is-webm video,
.embed-stage.carousel-full-active .carousel-media.is-webm video{
  background:transparent!important;
}
.carousel-media video[data-media-format="webm"]{
  background-color:transparent!important;
}

.bandgraph-secure-context-error{max-width:760px;padding:28px 32px;border:1px solid rgba(255,190,80,.4);border-radius:18px;background:rgba(60,39,8,.88);color:#ffe6ad;font-size:24px;line-height:1.45;text-align:center;font-weight:650}.bandgraph-secure-context-error strong{display:block;margin-bottom:8px;color:#fff3d4;font-size:28px}.bandgraph-secure-context-error code{display:inline-block;padding:2px 7px;border-radius:7px;background:rgba(0,0,0,.38);color:#fff;font-size:.9em}


/* ===== v2.3.1: embed interativo no controlador touch ===== */
.touch-control-page .carousel-media.has-interactive-embed{
  cursor:default!important;
  touch-action:auto!important;
  overflow:hidden!important;
  -webkit-user-select:none;
  user-select:none;
}
.touch-control-page .carousel-shell.contains-interactive-embed{
  touch-action:auto!important;
  overscroll-behavior:contain;
}
.touch-control-page{
  --controller-carousel-dock-height:136px;
}
.touch-control-page .touch-control-preview:not(.touch-control-preview--interactive-embed){
  box-sizing:border-box;
  padding-bottom:var(--controller-carousel-dock-height);
}
.touch-control-page .touch-control-preview--interactive-embed{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  display:block!important;
  overflow:hidden!important;
  background:#000!important;
  touch-action:auto!important;
}
.touch-control-page .touch-control-preview--interactive-embed .interactive-embed-surface{
  position:absolute!important;
  top:0!important;
  right:0!important;
  bottom:var(--controller-carousel-dock-height)!important;
  left:0!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  display:block!important;
  overflow:hidden!important;
  background:#000!important;
  touch-action:auto!important;
}
.touch-control-page .interactive-embed-surface .carousel-embed-frame,
.touch-control-page .carousel-media.has-interactive-embed iframe.interactive-embed-frame{
  position:absolute!important;
  inset:0!important;
  z-index:4!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  max-width:none!important;
  max-height:none!important;
  border:0!important;
  background:#000!important;
  pointer-events:auto!important;
  touch-action:auto!important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
.touch-control-page .carousel-navigation.operator-carousel-controls{
  display:grid!important;
  visibility:visible!important;
  pointer-events:auto!important;
  z-index:60!important;
  left:50%!important;
  right:auto!important;
  bottom:max(10px,env(safe-area-inset-bottom))!important;
  width:min(820px,calc(100% - 24px))!important;
  max-height:calc(var(--controller-carousel-dock-height) - 16px);
  padding:8px 10px!important;
  gap:6px!important;
  background:rgba(4,6,10,.94)!important;
  border-color:rgba(226,255,16,.32)!important;
  box-shadow:0 14px 42px rgba(0,0,0,.58)!important;
}
.touch-control-page .carousel-navigation.operator-carousel-controls::before{
  content:attr(data-controller-label);
  display:block;
  min-width:0;
  color:#fff;
  font-size:11px;
  font-weight:950;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.touch-control-page .carousel-navigation.operator-carousel-controls .carousel-thumbnails{
  justify-content:flex-start;
  min-height:42px;
}
.touch-control-page .carousel-shell.contains-interactive-embed .carousel-indicator,
.touch-control-page .carousel-shell.contains-interactive-embed .carousel-range{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
@media(max-height:760px){
  .touch-control-page{--controller-carousel-dock-height:112px}
  .touch-control-page .carousel-navigation.operator-carousel-controls::before{display:none}
}
@media(max-width:720px){
  .touch-control-page{--controller-carousel-dock-height:154px}
  .touch-control-page .carousel-navigation.operator-carousel-controls{bottom:max(6px,env(safe-area-inset-bottom))!important}
  .touch-control-page .carousel-navigation.operator-carousel-controls .carousel-navigation-row{grid-template-columns:1fr 1fr}
  .touch-control-page .carousel-navigation.operator-carousel-controls .carousel-counter{grid-column:1 / -1;grid-row:1}
}

.touch-control-page .carousel-shell.contains-interactive-embed .embed-load-status{
  z-index:3!important;
}
.touch-control-page .carousel-shell.contains-interactive-embed .embed-reload-control{
  left:14px!important;
  bottom:14px!important;
  z-index:40!important;
}
.touch-control-page .carousel-shell.contains-interactive-embed .carousel-close{
  z-index:42!important;
}
.touch-control-page .carousel-shell.contains-interactive-embed ~ .fullscreen-toggle,
.touch-control-page .broadcast-stage:has(.carousel-shell.contains-interactive-embed) .fullscreen-toggle{
  z-index:43!important;
}

/* ===== v2.4.0: consolidação de UX, carrossel e tablet ===== */
/* Editor: ordenação preservando o objeto e título individual de cada mídia. */
.item-editor-head{grid-template-columns:28px minmax(0,1fr) auto auto!important;column-gap:6px!important}
.item-order-actions{display:flex;align-items:center;gap:4px;justify-self:end}
.item-order-actions button,.media-order-actions button{width:30px;height:30px;min-width:30px;padding:0!important;border-radius:8px!important;font-size:14px;font-weight:950;display:grid;place-items:center}
.item-order-actions button:disabled,.media-order-actions button:disabled{opacity:.28;cursor:not-allowed;transform:none!important;filter:none!important}
.media-list{grid-template-columns:1fr!important}
.media-chip-row{grid-template-columns:minmax(0,1fr) auto!important;align-items:start!important}
.media-tab-title-field{grid-column:1 / -1;display:grid!important;gap:4px!important;font-size:12px!important;font-weight:850!important;color:var(--muted)}
.media-tab-title-field input{width:100%;height:38px!important;min-width:0;padding:0 9px!important;font-size:14px!important;font-weight:700!important}
.media-order-actions{grid-column:1 / 2;display:flex;align-items:center;gap:6px;justify-self:start}
.media-order-actions span{min-width:22px;text-align:center;font-size:11px;font-weight:950;color:var(--muted)}
.media-chip-row .media-loop-toggle{grid-column:2!important;grid-row:auto!important;align-self:center;justify-self:end}

/* Rótulos do carrossel. */
.carousel-thumbnail-label{position:absolute;left:4px;right:24px;bottom:3px;z-index:2;min-width:0;padding:3px 5px;border-radius:5px;background:rgba(0,0,0,.72);color:#fff;font-size:11px;font-weight:900;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;pointer-events:none}
.carousel-thumbnail-number{top:3px!important;right:3px!important;bottom:auto!important;z-index:3}

/* A saída /v é limpa: nenhum controle operacional sobre a imagem no ar. */
.viewer-page .fullscreen-toggle,.viewer-page .carousel-close{display:none!important;visibility:hidden!important;pointer-events:none!important}

/* Controlador touch/tablet. */
.touch-control-page{
  --controller-menu-left:56px;
  --controller-side-width:clamp(238px,22vw,310px);
  --controller-carousel-dock-height:176px;
}
.touch-control-page .embed-stage{
  --embed-layout-top:max(8px,env(safe-area-inset-top));
  --embed-layout-height:calc(100vh - max(12px,env(safe-area-inset-top)) - max(14px,env(safe-area-inset-bottom)) - 8px);
}
.touch-control-page .touch-control-preview-head{min-height:56px;padding:9px 16px}

/* Abas laterais sempre fora do menu e clicáveis. */
.touch-control-page .embed-stage .menu-switcher{
  left:6px!important;
  top:calc(var(--embed-layout-top) + 18px)!important;
  max-height:calc(var(--embed-layout-height) - 36px)!important;
  z-index:16!important;
  pointer-events:auto!important;
  overflow-x:visible!important;
}
.touch-control-page .embed-stage .menu-switch-btn{
  width:58px!important;
  min-height:110px!important;
  position:relative;
  z-index:17!important;
  pointer-events:auto!important;
  touch-action:manipulation!important;
  border-radius:18px 0 0 18px!important;
}
.touch-control-page .embed-stage .menu-switch-btn .switch-vertical-label,
.touch-control-page .embed-stage .menu-switch-btn small{font-size:12px!important;max-height:96px!important}

/* Menu e foto preservam largura suficiente para leitura no tablet. */
.touch-control-page .embed-stage .menu-card,
.touch-control-page .embed-stage .menu-selected-photo{
  left:var(--controller-menu-left)!important;
  width:var(--controller-side-width)!important;
}
.touch-control-page .embed-stage .menu-card{z-index:2!important}
.touch-control-page .embed-stage .menu-selected-photo{
  top:calc(var(--embed-layout-top) + 20px)!important;
  height:calc(var(--embed-layout-height) - 40px)!important;
  padding:0!important;
  border-radius:28px!important;
}
.touch-control-page .embed-stage .menu-selected-photo-label{font-size:19px!important;padding:8px 14px!important;bottom:16px!important}

/* Preview ocupa o restante da tela sem cobrir a navegação. */
.touch-control-page .embed-stage .carousel-shell{
  left:calc(var(--controller-menu-left) + var(--controller-side-width) + 24px)!important;
  right:12px!important;
  top:calc(var(--embed-layout-top) + 8px)!important;
  width:auto!important;
  height:calc(var(--embed-layout-height) - 16px)!important;
  border-radius:30px!important;
}
.touch-control-page .fullscreen-toggle{
  top:calc(var(--embed-layout-top) + 12px)!important;
  right:86px!important;
  left:auto!important;
  bottom:auto!important;
  z-index:101!important;
}
.touch-control-page .embed-stage .carousel-close{top:12px!important;right:16px!important;z-index:102!important}

/* Dock do carrossel: quatro itens visíveis e arraste horizontal nativo. */
.touch-control-page .carousel-navigation.operator-carousel-controls{
  left:12px!important;
  right:12px!important;
  bottom:max(10px,env(safe-area-inset-bottom))!important;
  transform:none!important;
  width:auto!important;
  padding:10px 10px 12px!important;
  gap:8px!important;
  border-radius:22px!important;
  z-index:95!important;
}
.touch-control-page .carousel-navigation.operator-carousel-controls::before{font-size:13px!important;line-height:1.2!important}
.touch-control-page .carousel-navigation.operator-carousel-controls .carousel-thumbnails{
  justify-content:flex-start!important;
  gap:10px!important;
  min-height:92px!important;
  padding:2px 2px 4px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-x!important;
  scroll-snap-type:x proximity;
  scrollbar-width:none;
}
.touch-control-page .carousel-navigation.operator-carousel-controls .carousel-thumbnails::-webkit-scrollbar{display:none}
.touch-control-page .carousel-navigation.operator-carousel-controls .carousel-thumbnail{
  width:calc((100% - 25px)/3.5)!important;
  min-width:calc((100% - 25px)/3.5)!important;
  height:88px!important;
  border-radius:14px!important;
  scroll-snap-align:start;
}
.touch-control-page .carousel-navigation.operator-carousel-controls .carousel-thumbnail-label{
  left:6px!important;
  right:6px!important;
  bottom:6px!important;
  font-size:15px!important;
  line-height:1.12!important;
  padding:5px 7px!important;
  border-radius:8px!important;
}
.touch-control-page .carousel-navigation.operator-carousel-controls .carousel-thumbnail-number{min-width:22px!important;height:22px!important;font-size:11px!important}
.touch-control-page .carousel-navigation.operator-carousel-controls .carousel-navigation-row{grid-template-columns:auto minmax(0,1fr) auto!important;gap:10px!important}
.touch-control-page .carousel-navigation.operator-carousel-controls .carousel-nav-btn{height:42px!important;padding:0 18px!important;font-size:14px!important}
.touch-control-page .carousel-navigation.operator-carousel-controls .carousel-counter{font-size:14px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}

/* Embed interativo nunca fica por baixo do dock do carrossel. */
.touch-control-page .carousel-shell.contains-interactive-embed .carousel-media{padding-bottom:calc(var(--controller-carousel-dock-height) + 8px)!important}
.touch-control-page .carousel-shell.contains-interactive-embed .interactive-embed-surface,
.touch-control-page .carousel-shell.contains-interactive-embed .carousel-embed-frame,
.touch-control-page .carousel-shell.contains-interactive-embed .carousel-media iframe.interactive-embed-frame{inset:0 0 calc(var(--controller-carousel-dock-height) + 8px) 0!important}

/* Saída de tela cheia fica sempre disponível no controlador. */
.touch-control-page .broadcast-stage.carousel-full-active .fullscreen-toggle,
.touch-control-page .embed-stage.carousel-full-active .fullscreen-toggle{
  position:fixed!important;
  top:max(12px,env(safe-area-inset-top))!important;
  right:max(84px,calc(env(safe-area-inset-right) + 84px))!important;
  bottom:auto!important;
  left:auto!important;
  transform:none!important;
  display:flex!important;
  visibility:visible!important;
  align-items:center!important;
  pointer-events:auto!important;
  z-index:2147483000!important;
  height:44px!important;
  padding:0 16px!important;
  font-size:14px!important;
}
.touch-control-page .broadcast-stage.carousel-full-active .fullscreen-toggle::before,
.touch-control-page .embed-stage.carousel-full-active .fullscreen-toggle::before{content:'↙';margin-right:8px;font-size:15px;line-height:1}
.touch-control-page .broadcast-stage.carousel-full-active .carousel-close,
.touch-control-page .embed-stage.carousel-full-active .carousel-close{top:12px!important;right:16px!important;z-index:111!important}

@media(max-height:760px){
  .touch-control-page .touch-control-preview-head{min-height:46px;padding:6px 12px}
}
@media(max-width:1180px){
  .touch-control-page{--controller-side-width:clamp(220px,22vw,280px);--controller-carousel-dock-height:164px}
  .touch-control-page .carousel-navigation.operator-carousel-controls .carousel-thumbnail{width:calc((100% - 18px)/3.5)!important;min-width:calc((100% - 18px)/3.5)!important;height:78px!important}
  .touch-control-page .carousel-navigation.operator-carousel-controls .carousel-thumbnail-label{font-size:13px!important}
}
@media(max-width:960px){
  .touch-control-page{--controller-menu-left:54px;--controller-side-width:210px;--controller-carousel-dock-height:154px}
  .touch-control-page .embed-stage .carousel-shell{left:calc(var(--controller-menu-left) + var(--controller-side-width) + 18px)!important;right:8px!important}
  .touch-control-page .carousel-navigation.operator-carousel-controls .carousel-thumbnail{width:calc((100% - 12px)/3.5)!important;min-width:calc((100% - 12px)/3.5)!important;height:72px!important}
  .touch-control-page .carousel-navigation.operator-carousel-controls .carousel-thumbnail-label{font-size:12px!important}
  .touch-control-page .carousel-navigation.operator-carousel-controls .carousel-nav-btn{height:38px!important;padding:0 14px!important;font-size:13px!important}
  .touch-control-page .broadcast-stage.carousel-full-active .fullscreen-toggle,
  .touch-control-page .embed-stage.carousel-full-active .fullscreen-toggle{right:76px!important;height:40px!important;font-size:13px!important}
}


/* v2.4.1 - separação definitiva entre controlador e viewer */
.touch-control-page .fullscreen-toggle:not([hidden]){
  display:flex!important;
  visibility:visible!important;
  pointer-events:auto!important;
}
.viewer-page .carousel-navigation,
.viewer-page .carousel-indicator,
.viewer-page .carousel-range{
  display:none!important;
}


/* ===== v2.4.2: menu lateral mais largo no tablet =====
   Objetivo: ganhar leitura no menu sem mexer nos ajustes já feitos.
   O preview perde um pouco de largura e o dock passa a exibir ~3,5 miniaturas. */


/* ===== v2.4.3: swipe-only no tablet + saída fullscreen fora do stage ===== */
/* No tablet, navegação do carrossel é por toque/arraste nas miniaturas. */
.touch-control-page .carousel-navigation.operator-carousel-controls .carousel-nav-btn{
  display:none!important;
}
.touch-control-page .carousel-navigation.operator-carousel-controls .carousel-navigation-row{
  grid-template-columns:minmax(0,1fr)!important;
}
.touch-control-page .carousel-navigation.operator-carousel-controls .carousel-counter{
  grid-column:1!important;
  text-align:center!important;
}

/* Botão de saída é um portal direto no body, portanto não é recortado por iframe/stage. */
.touch-fullscreen-exit{
  position:fixed!important;
  top:auto!important;
  bottom:calc(var(--controller-carousel-dock-height) + 14px + env(safe-area-inset-bottom))!important;
  right:max(14px,calc(env(safe-area-inset-right) + 14px))!important;
  z-index:2147483647!important;
  min-height:46px!important;
  padding:0 18px!important;
  border-radius:999px!important;
  border:1px solid rgba(255,255,255,.36)!important;
  background:rgba(0,0,0,.82)!important;
  color:#fff!important;
  box-shadow:0 12px 34px rgba(0,0,0,.5)!important;
  backdrop-filter:blur(12px)!important;
  -webkit-backdrop-filter:blur(12px)!important;
  font-size:14px!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  pointer-events:auto!important;
  touch-action:manipulation!important;
  -webkit-tap-highlight-color:transparent!important;
}
.touch-fullscreen-exit::before{
  content:'↙';
  margin-right:8px;
  font-size:16px;
  line-height:1;
}
.touch-fullscreen-exit[hidden]{display:none!important}
.viewer-page .touch-fullscreen-exit{display:none!important}

/* Evita duplicidade: no fullscreen do tablet o botão interno fica oculto e o portal assume. */
.touch-control-page .broadcast-stage.carousel-full-active .fullscreen-toggle,
.touch-control-page .embed-stage.carousel-full-active .fullscreen-toggle{
  display:none!important;
}


/* ===== v2.4.4: saída fullscreen alinhada ao Atualizar =====
   No tablet, o Atualizar fica 14px acima do dock no lado esquerdo.
   O Sair da tela cheia usa o mesmo eixo vertical no lado direito. */


/* v2.4.7 — botão sem foto usa toda a largura para o texto. */
.menu-item.no-photo{grid-template-columns:minmax(0,1fr)!important;}
.menu-item.no-photo .menu-item-text{grid-column:1/-1;width:100%;}
