/* MAIS TUNER 24.29 — Chat das rádios na Central.
   Fundo colorido no espírito do Modo Cinema (cores da marca + capa desfocada),
   fonte NRK Sans, bolhas de vidro e divisor com a capa da música a cada troca. */

.mtc{--mtc-ink:#f5f9ff;--mtc-muted:rgba(235,244,255,.7);--mtc-glass:rgba(255,255,255,.1);--mtc-line:rgba(255,255,255,.14);--mtc-mint:#5fffc0;--mtc-ease:cubic-bezier(.22,1,.36,1);
  position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;min-height:0;color:var(--mtc-ink);
  font-family:"NRK Sans","Reddit Sans",sans-serif;background:#0a1f3d}
.mtc [hidden]{display:none!important}
.mtc button{font:inherit;-webkit-tap-highlight-color:transparent}
.mtc svg{display:block}

/* fundo estilo Modo Cinema */
.mtc-ambient{position:absolute;inset:0;z-index:-1;pointer-events:none;background:var(--chat-brand,linear-gradient(150deg,#1b4f9c,#3d2a8c))}
.mtc-ambient::before{content:'';position:absolute;inset:-40px;background-image:var(--chat-art,none);background-size:cover;background-position:center;filter:blur(42px) saturate(1.7);opacity:.75;transition:background-image .6s ease}
.mtc-ambient::after{content:'';position:absolute;inset:0;
  background:radial-gradient(70% 50% at 0% 0%,rgba(95,255,192,.18),transparent 60%),radial-gradient(70% 55% at 100% 100%,rgba(255,77,140,.2),transparent 60%),
  linear-gradient(180deg,rgba(5,14,32,.5),rgba(5,14,32,.72) 60%,rgba(5,14,32,.86))}

/* topo */
.mtc-head{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 14px 12px 16px;border-bottom:1px solid var(--mtc-line)}
.mtc-logo{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;overflow:hidden;padding:7px;box-sizing:border-box;background:var(--brand-tile-bg,#123a69);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)}
.mtc-logo img{width:100%;height:100%;object-fit:contain}
.mtc-title{min-width:0}
.mtc-title small{display:flex;align-items:center;gap:7px;color:var(--mtc-mint);font-size:10.5px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
/* 24.49: o pulso anima transform/opacity num anel (roda na GPU); antes animava
   box-shadow, que refazia estilo e pintura a cada quadro na tela inicial */
.mtc-live{position:relative;width:7px;height:7px;border-radius:50%;background:#ff4d5e}
.mtc-live::after{content:'';position:absolute;inset:0;border-radius:50%;background:rgba(255,77,94,.6);animation:mtcPulse 1.8s ease-out infinite}
@keyframes mtcPulse{0%{transform:scale(1);opacity:.6}70%,100%{transform:scale(3);opacity:0}}
.mtc-title strong{display:block;margin-top:2px;font-size:18px;font-weight:850;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mtc-icon{display:grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid var(--mtc-line);border-radius:50%;background:var(--mtc-glass);color:var(--mtc-ink);cursor:pointer}
.mtc-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

/* mensagens */
.mtc-list{flex:1;min-height:0;margin:0;padding:12px 14px 8px;list-style:none;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.25) transparent}
.mtc-msg{display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;margin-top:10px;animation:mtcIn .32s var(--mtc-ease) both}
.mtc-msg.is-cont{margin-top:3px}
.mtc-msg.is-cont .mtc-av{visibility:hidden;height:0}
@keyframes mtcIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.mtc-av{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#fff center/cover no-repeat;box-shadow:0 6px 14px -8px rgba(0,0,0,.8),0 0 0 2px rgba(255,255,255,.18)}
.mtc-av.is-initial{background:hsl(var(--av-h,200) 65% 45%);color:#fff;font-size:15px;font-weight:850}
.mtc-bubble{position:relative;justify-self:start;max-width:100%;padding:8px 12px 9px;border-radius:6px 18px 18px 18px;background:var(--mtc-glass);border:1px solid var(--mtc-line);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.mtc-msg.is-cont .mtc-bubble{border-radius:18px}
.mtc-bubble header{display:flex;align-items:baseline;gap:8px;margin-bottom:2px}
.mtc-bubble header strong{font-size:12.5px;font-weight:850}
.mtc-bubble time{color:var(--mtc-muted);font-size:10.5px;font-weight:700}
.mtc-bubble p{margin:0;font-size:14.5px;line-height:1.4;overflow-wrap:anywhere}
.mtc-msg.is-mine{grid-template-columns:minmax(0,1fr)}
.mtc-msg.is-mine .mtc-bubble{justify-self:end;border-radius:18px 6px 18px 18px;border-color:transparent;background:linear-gradient(135deg,#5fffc0,#36cae7);color:#03253b}
.mtc-msg.is-mine .mtc-bubble time{color:rgba(3,37,59,.65)}
.mtc-del{position:absolute;left:-30px;top:50%;display:grid;place-items:center;width:24px;height:24px;margin-top:-12px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:var(--mtc-ink);opacity:0;cursor:pointer;transition:opacity .2s ease}
.mtc-del svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mtc-msg.is-mine:hover .mtc-del,.mtc-msg.is-mine:focus-within .mtc-del{opacity:1}
@media (hover:none){.mtc-del{opacity:.55}}

/* divisor da música */
.mtc-song{display:flex;align-items:center;gap:10px;margin:16px 0 4px;padding:7px 12px 7px 7px;border-radius:16px;background:rgba(0,0,0,.22);border:1px solid var(--mtc-line)}
.mtc-song img,.mtc-song i{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:10px;object-fit:cover;background:rgba(255,255,255,.1)}
.mtc-song i svg{width:18px;height:18px;fill:none;stroke:var(--mtc-mint);stroke-width:2}
.mtc-song span{display:flex;flex-direction:column;min-width:0}
.mtc-song small{color:var(--mtc-mint);font-size:9.5px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.mtc-song strong{font-size:13.5px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mtc-song em{color:var(--mtc-muted);font-size:12px;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.mtc-empty{display:flex;flex-direction:column;align-items:center;gap:8px;margin:auto;padding:30px 18px;text-align:center}
.mtc-empty-ico{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:var(--mtc-glass)}
.mtc-empty-ico svg{width:26px;height:26px;fill:none;stroke:var(--mtc-mint);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.mtc-empty strong{font-size:17px;font-weight:850}
.mtc-empty p{margin:0;max-width:30ch;color:var(--mtc-muted);font-size:13.5px;line-height:1.45}
.mtc-list:has(.mtc-empty){display:flex}

/* música ligada ao comentário */
.mtc-now{display:flex;align-items:center;gap:9px;margin:0 14px;padding:7px 10px 7px 7px;border-radius:14px;background:rgba(0,0,0,.25)}
.mtc-now-art{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:8px;overflow:hidden;background:rgba(255,255,255,.12)}
.mtc-now-art img{width:100%;height:100%;object-fit:cover}
.mtc-now-art svg{width:15px;height:15px;fill:none;stroke:var(--mtc-mint);stroke-width:2}
.mtc-now-copy{display:flex;flex-direction:column;min-width:0}
.mtc-now-copy small{color:var(--mtc-muted);font-size:10.5px;font-weight:700}
.mtc-now-copy strong{font-size:12.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mtc-error{margin:8px 14px 0;color:#ffd453;font-size:12.5px;font-weight:700}

/* composição */
.mtc-form{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px 12px 12px}
.mtc-me{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:none;cursor:pointer}
.mtc-me .mtc-me-av{width:36px!important;height:36px!important;min-width:36px!important;max-width:36px!important;min-height:36px!important;max-height:36px!important;border-radius:50%;box-shadow:0 0 0 2px var(--mtc-mint)!important;font-size:14px!important}
.mtc-me .mtc-me-av.is-anon{display:grid;place-items:center;background:rgba(255,255,255,.18);color:#fff;font-weight:900;box-shadow:0 0 0 2px rgba(255,255,255,.35)!important}
.mtc-me .mtc-me-av svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}
.mtc-input{position:relative;display:block;min-width:0}
.mtc-input input{width:100%;height:46px;padding:0 44px 0 16px;border:1px solid var(--mtc-line);border-radius:999px;background:rgba(255,255,255,.12);color:var(--mtc-ink);
  font:600 15px "NRK Sans","Reddit Sans",sans-serif;box-sizing:border-box;outline:none;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.mtc-input input::placeholder{color:var(--mtc-muted)}
.mtc-input input:focus{border-color:var(--mtc-mint);box-shadow:0 0 0 3px rgba(95,255,192,.22)}
.mtc-count{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#ffd453;font-size:11px;font-weight:800}
.mtc-send{display:grid;place-items:center;width:46px;height:46px;padding:0;border:0;border-radius:50%;background:linear-gradient(135deg,#5fffc0,#36cae7);color:#03253b;cursor:pointer;box-shadow:0 10px 22px -12px #36cae7;transition:transform .2s var(--mtc-ease)}
.mtc-send:active{transform:scale(.9)}
.mtc-send:disabled{opacity:.55}
.mtc-send svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.mtc-login{margin:10px 12px 12px;min-height:46px;border:0;border-radius:999px;background:linear-gradient(135deg,#5fffc0,#36cae7);color:#03253b;font-weight:850!important;font-size:14.5px!important;cursor:pointer}

/* ================================================================ na Central (site) */
.mtc-dock-host{display:none}
.mtc-bar{display:none}
@media (min-width:1100px){
  .hero .hero-panel.has-chat{position:relative;padding-right:calc(22px + min(400px,32%) + 24px)!important}
  .hero .hero-panel.has-chat>.mtc-dock-host{display:block;position:absolute;top:14px;right:14px;bottom:14px;width:min(400px,32%);z-index:2}
  .mtc-dock-host .mtc{height:100%;border-radius:20px;box-shadow:0 24px 50px -30px rgba(0,0,0,.9),inset 0 0 0 1px rgba(255,255,255,.08)}
  .hero .hero-panel.has-chat .hero-panel-head{margin-right:0}
  /* 24.33: chat destacável — a Central se reorganiza quando ele sai da coluna */
  .hero .hero-panel.has-chat{transition:padding-right .45s cubic-bezier(.22,1,.36,1)}
  .hero .hero-panel.has-chat.chat-undocked{padding-right:22px!important}
  body>.mtc-dock-host.is-floating{display:block;position:fixed;right:auto;bottom:auto;z-index:1120;animation:mtcPop .28s cubic-bezier(.22,1,.36,1)}
  body>.mtc-dock-host.is-floating .mtc{height:100%}
  .mtc-dock-host.is-floating .mtc{border-radius:22px;box-shadow:0 40px 90px -28px rgba(0,0,0,.95),0 0 0 1px rgba(255,255,255,.16)}
  .mtc-dock-host[hidden]{display:none!important}
  .mtc-mode-dock .mtc-head{cursor:grab;user-select:none;-webkit-user-select:none;touch-action:none}
  .mtc-dock-tools{display:flex;gap:6px;margin-left:auto}
  .mtc-dock-tools .mtc-icon{width:36px;height:36px}
  .hero .hero-panel>.mtc-dock-slot{display:grid;place-items:center;position:absolute;top:14px;right:14px;bottom:14px;width:min(400px,32%);z-index:1;border:2px dashed rgba(95,255,192,.55);border-radius:20px;background:rgba(4,14,36,.72);color:#bdfde6;font:800 15px/1.3 "NRK Sans","Reddit Sans",sans-serif;text-align:center;padding:20px;opacity:0;pointer-events:none;transition:opacity .2s ease,background .2s ease,border-color .2s ease}
  .hero .hero-panel.chat-dragging.chat-undocked>.mtc-dock-slot{opacity:1}
  .hero .hero-panel>.mtc-dock-slot.is-hot{background:rgba(25,120,90,.55);border-color:#5fffc0;color:#fff}
  .mtc-dock-host.is-floating .mtc-resize{display:block;position:absolute;right:6px;bottom:6px;z-index:4;width:18px;height:18px;cursor:nwse-resize;border-radius:0 0 14px 0;
    background:linear-gradient(135deg,transparent 0 45%,rgba(255,255,255,.55) 45% 52%,transparent 52% 66%,rgba(255,255,255,.55) 66% 73%,transparent 73%)}
  .hero .hero-panel.chat-closed .mtc-reopen{display:inline-flex}
  .mtc-reopen{align-items:center;gap:8px;margin-left:12px;min-height:34px;padding:0 14px 0 11px;border:1px solid rgba(95,255,192,.45);border-radius:999px;background:rgba(95,255,192,.1);color:#dffff2;font:800 13px/1 "NRK Sans","Reddit Sans",sans-serif;cursor:pointer;position:relative;transition:background .2s ease}
  .mtc-reopen:hover{background:rgba(95,255,192,.2)}
  .mtc-reopen svg{width:18px;height:18px;fill:none;stroke:#5fffc0;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
  .mtc-reopen .mtc-badge{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#ff4d5e;color:#fff;font-size:10.5px;font-weight:900;line-height:18px;text-align:center;box-sizing:border-box}
  html.mtc-dragging,html.mtc-dragging *{cursor:grabbing!important;user-select:none!important}
  html.mtc-resizing,html.mtc-resizing *{cursor:nwse-resize!important;user-select:none!important}
  html.mtc-dragging .mtc-dock-host.is-floating{transition:none}
}
@keyframes mtcPop{from{opacity:.4;transform:scale(.96)}to{opacity:1;transform:none}}
.mtc-dock-slot,.mtc-resize,.mtc-reopen{display:none}
@media (max-width:1099px){
  .hero .hero-panel.has-chat>.mtc-bar{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:44px minmax(0,1fr) 28px;align-items:center;gap:12px;width:100%;
    margin:12px 0 10px;padding:11px 12px;border:1px solid rgba(255,255,255,.14);border-radius:18px;color:#fff;text-align:left;cursor:pointer;
    background:radial-gradient(80% 140% at 0% 0%,rgba(95,255,192,.22),transparent 60%),radial-gradient(80% 140% at 100% 100%,rgba(255,77,140,.22),transparent 60%),linear-gradient(135deg,#123a69,#2a1f6b);
    font-family:"NRK Sans","Reddit Sans",sans-serif;box-shadow:0 16px 34px -24px rgba(0,0,0,.9)}
  .mtc-bar-ico{position:relative;display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:rgba(255,255,255,.14)}
  .mtc-bar-ico svg{width:22px;height:22px;fill:none;stroke:#5fffc0;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
  .mtc-badge{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#ff4d5e;color:#fff;font-size:10.5px;font-weight:900;line-height:18px;text-align:center;box-sizing:border-box}
  .mtc-bar-copy{display:flex;flex-direction:column;min-width:0}
  .mtc-bar-copy strong{font-size:15px;font-weight:850}
  .mtc-bar-copy small{color:rgba(235,244,255,.75);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mtc-bar-go svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
}
html.mt-app .hero .mtc-bar{display:none!important}

/* ================================================================ tela cheia / gaveta */
.mtc-sheet{position:fixed;inset:0;z-index:1320;visibility:hidden;pointer-events:none}
.mtc-sheet.show{visibility:visible;pointer-events:auto}
.mtc-sheet-backdrop{position:absolute;inset:0;background:rgba(2,10,22,.55);opacity:0;transition:opacity .3s ease}
.mtc-sheet.show .mtc-sheet-backdrop{opacity:1}
.mtc-sheet-panel{position:absolute;inset:0;display:flex;transform:translateY(100%);transition:transform .45s cubic-bezier(.22,1,.36,1)}
.mtc-sheet.show .mtc-sheet-panel{transform:none}
.mtc-sheet .mtc{flex:1;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
@media (min-width:900px){
  .mtc-sheet-panel{left:auto;width:min(460px,100%);top:12px;bottom:12px;right:12px;transform:translateX(110%)}
  .mtc-sheet .mtc{border-radius:24px;box-shadow:0 30px 70px -30px rgba(0,0,0,.9)}
}
html.mtc-open{overflow:hidden}
html.anim-none .mtc *,html.anim-none .mtc-sheet-panel{animation:none!important;transition:none!important}
@media (prefers-reduced-motion:reduce){.mtc *,.mtc-sheet-panel{animation:none!important;transition:none!important}}
.mtc{text-align:left}
html.mtc-open :is(.sr-weather-trigger,#externalBtn,.pwa-install-card){display:none!important}

/* dentro da "Sua central": sem fundo nem topo próprios (a central já tem os dois) */
.mtc.mtc-mode-embed{background:transparent;height:100%}
.mtc.mtc-mode-embed .mtc-ambient,.mtc.mtc-mode-embed .mtc-head{display:none}
.mtc.mtc-mode-embed .mtc-list{padding-top:4px}
/* 24.35: denunciar comentário de outra pessoa (bandeirinha ao lado do balão) */
.mtc-msg:not(.is-mine) .mtc-bubble{max-width:calc(100% - 30px)}
.mtc-report{position:absolute;right:-30px;top:50%;display:grid;place-items:center;width:24px;height:24px;margin-top:-12px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.1);color:var(--mtc-muted);opacity:0;cursor:pointer;transition:opacity .2s ease,color .2s ease}
.mtc-report svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mtc-msg:hover .mtc-report,.mtc-msg:focus-within .mtc-report{opacity:1}
.mtc-report:hover,.mtc-report:focus-visible{color:#ff8a8a}
@media (hover:none){.mtc-report{opacity:.45}}
/* 24.37: selos de ouvinte ao lado do nome */
.mtc-bubble header .mt-badge-chip{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:6px;background:rgba(255,255,255,.12);font-size:12px;line-height:1}
.mtc-msg.is-mine .mtc-bubble header .mt-badge-chip{background:rgba(3,37,59,.12)}

/* 24.42: enquete ao vivo, presa no topo do chat */
.mtc-poll-slot:empty{display:none}
.mtc-poll-slot{flex:none;padding:10px 14px 0}
.mtc-poll{padding:12px;border:1px solid rgba(95,255,192,.3);border-radius:18px;background:linear-gradient(145deg,rgba(95,255,192,.12),rgba(255,255,255,.04));font-family:"NRK Sans","Reddit Sans",sans-serif}
.mtc-poll.is-closed{border-color:rgba(255,255,255,.12);background:rgba(255,255,255,.04)}
.mtc-poll header{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#5fffc0;font-size:11.5px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
.mtc-poll.is-closed header{color:#93abc8}
.mtc-poll-x{padding:4px 10px;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:none;color:#fff;font:800 12px "NRK Sans","Reddit Sans",sans-serif;cursor:pointer;text-transform:none;letter-spacing:0}
.mtc-poll-q{display:block;margin:7px 0 10px;color:#fff;font-size:16px;font-weight:850;line-height:1.25}
.mtc-poll-opts{display:grid;gap:7px}
.mtc-poll-opt{min-height:40px;padding:0 14px;border:1px solid rgba(255,255,255,.2);border-radius:12px;background:rgba(255,255,255,.07);color:#fff;font:800 14px "NRK Sans","Reddit Sans",sans-serif;text-align:left;cursor:pointer}
.mtc-poll-opt:active{transform:scale(.99)}
.mtc-poll-res{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:38px;padding:0 12px;overflow:hidden;border-radius:12px;background:rgba(255,255,255,.06);color:#fff;font-size:14px;font-weight:750;isolation:isolate}
.mtc-poll-res::before{content:'';position:absolute;inset:0 auto 0 0;z-index:-1;width:var(--p,0%);background:rgba(95,255,192,.22);transition:width .5s ease}
.mtc-poll-res.is-mine::before{background:rgba(95,255,192,.38)}
.mtc-poll-res.is-win{box-shadow:inset 0 0 0 1.5px #5fffc0}
.mtc-poll-res b{font-variant-numeric:tabular-nums}
.mtc-poll-total{display:block;margin-top:8px;color:#93abc8;font-size:12px;font-weight:700}
.mtc-poll-new{width:100%;min-height:38px;border:1px dashed rgba(95,255,192,.45);border-radius:12px;background:none;color:#5fffc0;font:800 13.5px "NRK Sans","Reddit Sans",sans-serif;cursor:pointer}
.mtc-poll.is-form{display:grid;gap:7px}
.mtc-poll.is-form input,.mtc-poll.is-form select{min-height:38px;padding:0 12px;border:1px solid rgba(255,255,255,.18);border-radius:10px;background:rgba(3,14,30,.55);color:#fff;font:600 14px "NRK Sans","Reddit Sans",sans-serif}
.mtc-poll-row{display:grid;grid-template-columns:auto 1fr;gap:8px}
.mtc-poll-go{min-height:38px;border:0;border-radius:10px;background:#5fffc0;color:#062033;font:900 14px "NRK Sans","Reddit Sans",sans-serif;cursor:pointer}
html[data-site-theme="light"] .mtc-poll-q,html[data-site-theme="light"] .mtc-poll-res,html[data-site-theme="light"] .mtc-poll-opt{color:#0d2640}
