/* Widgets da sinalização digital (player da TV): ver widgets.js. */
.widget { position: relative; overflow: hidden; background: #15171a; color: #fff; border: 1px solid var(--tile-line); }
.w-body { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 6px 10px; gap: 2px; }
.w-clock .w-time { font-size: clamp(16px, min(17cqw, 30cqh), 360px); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.w-clock .w-date { font-size: clamp(10px, min(5.5cqw, 9cqh), 80px); opacity: .8; }
.w-clock .w-date::first-letter { text-transform: uppercase; }
.widget { container-type: size; }
.w-weather .w-temp { font-size: clamp(18px, min(22cqw, 30cqh), 300px); font-weight: 700; line-height: 1; }
.w-weather .w-icon { font-size: clamp(18px, min(24cqw, 32cqh), 320px); line-height: 1; }
.w-weather .w-row { display: flex; align-items: center; gap: .3em; }
.w-weather .w-sub { font-size: clamp(11px, min(5.5cqw, 9cqh), 72px); opacity: .85; }
.w-text .w-body { padding: 4px 12px; }
.w-text .w-msg { font-weight: 600; line-height: 1.15; white-space: pre-wrap; word-break: break-word; }
.w-text.scroll .w-body { justify-content: center; align-items: stretch; overflow: hidden; }
.w-text.scroll .w-msg { white-space: nowrap; display: inline-block; padding-left: 100%; animation: wmarquee var(--speed, 18s) linear infinite; }
@keyframes wmarquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.w-web iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
/* Som esperando um toque (o navegador não deixou tocar sozinho): aviso discreto no canto da tela. */
html.w-sound-wait body::after { content: "🔇 Toque na tela ou aperte uma tecla do controle para ouvir o som"; position: fixed; left: 12px; bottom: 12px;
  z-index: 50; padding: 6px 12px; border-radius: 16px; background: rgba(0, 0, 0, .55); color: rgba(255, 255, 255, .85); font: 13px/1.4 system-ui, sans-serif;
  pointer-events: none; }
.w-radio .w-ctl { display: flex; gap: 10px; align-items: center; text-align: left; pointer-events: auto; max-width: 100%; }
.w-radio .w-info { min-width: 0; }
.w-radio .w-title { font-weight: 600; font-size: clamp(12px, 3cqmin, 30px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-radio .w-st { display: flex; align-items: center; gap: 6px; min-height: 12px; font-size: 11px; color: rgba(255,255,255,.6); }
.w-radio .w-play { flex: none; width: clamp(26px, 9cqmin, 44px); height: clamp(26px, 9cqmin, 44px); padding: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.85);
  transition: background .15s, border-color .15s, color .15s; }
.w-radio .w-play:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.45); color: #fff; }
.w-radio .w-play:disabled { opacity: .35; }
.w-radio .w-play svg { width: 55%; height: 55%; }
.w-radio .w-eq { display: none; align-items: flex-end; gap: 2px; height: 10px; }
.w-radio .playing .w-eq { display: inline-flex; }
.w-radio .w-eq i { width: 2px; height: 100%; background: rgba(255,255,255,.55); border-radius: 1px; transform-origin: bottom;
  animation: weq 1s ease-in-out infinite; }
.w-radio .w-eq i:nth-child(2) { animation-delay: -.4s; } .w-radio .w-eq i:nth-child(3) { animation-delay: -.7s; }
@keyframes weq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .w-radio .w-eq i { animation: none; transform: scaleY(.6); } }
/* QR Code: quadrado no maior tamanho que cabe, legenda embaixo. */
.w-qr .w-body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2cqmin; padding: 3cqmin; }
.w-qr svg { flex: 1; min-height: 0; width: 100%; height: 100%; }
.w-qr .w-cap { flex: none; font-weight: 600; font-size: clamp(10px, min(7cqw, 9cqh), 64px); text-align: center; line-height: 1.15; }
/* Relógio de ponteiros e nome embaixo. */
.w-clock.analog .w-body { gap: 2cqmin; padding: 4cqmin; }
.w-analog { flex: 1; min-height: 0; width: 100%; }
.w-analog .face { fill: rgba(255, 255, 255, .06); stroke: currentColor; stroke-width: 2.5; }
.w-analog .tick { stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.w-analog .hh, .w-analog .mm { stroke: currentColor; stroke-linecap: round; }
.w-analog .hh { stroke-width: 5; } .w-analog .mm { stroke-width: 3.2; }
.w-analog .ss { stroke: #f97316; stroke-width: 1.3; } .w-analog .pin { fill: #f97316; }
.w-clock .w-label { font-weight: 600; font-size: clamp(10px, min(7cqw, 10cqh), 90px); }
/* Relógio mundial: uma coluna por cidade (em zona alta, uma linha por cidade). */
.w-cities { display: flex; width: 100%; height: 100%; align-items: center; justify-content: space-around; gap: 2cqmin; padding: 3cqmin; }
@container (aspect-ratio < 1) { .w-cities { flex-direction: column; } }
.w-city { text-align: center; min-width: 0; }
.w-cname { font-size: clamp(10px, min(5.5cqw, 9cqh), 64px); opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-ctime { font-size: clamp(14px, min(10cqw, 22cqh), 200px); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.05; }
.w-cday { font-size: clamp(9px, min(3.5cqw, 6cqh), 40px); opacity: .7; min-height: 1em; }
/* Contagem regressiva: quatro blocos (dias, horas, minutos, segundos). */
.w-countdown .w-body { gap: 3cqmin; padding: 4cqmin; }
.w-ctitle, .w-cdone { font-weight: 600; text-align: center; font-size: clamp(12px, min(6cqw, 12cqh), 110px); }
.w-cd { display: flex; gap: 2.5cqmin; }
.w-cdb { display: flex; flex-direction: column; align-items: center; padding: 1.5cqmin 2.5cqmin; border-radius: 1.5cqmin; background: rgba(255, 255, 255, .1); }
.w-cdb b { font-size: clamp(16px, min(12cqw, 34cqh), 260px); font-variant-numeric: tabular-nums; line-height: 1; }
.w-cdb small { font-size: clamp(9px, min(3.2cqw, 6cqh), 40px); opacity: .75; text-transform: uppercase; letter-spacing: .06em; }
.w-cd[hidden], .w-cdone[hidden] { display: none; }
/* Vídeo ao vivo (YouTube ou HLS). */
.w-stream iframe, .w-stream video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; }
/* Tabela de preços: nome, pontilhado e preço; páginas entram suavemente. */
.w-table .w-body { justify-content: flex-start; align-items: stretch; padding: calc(var(--fs) * .6) calc(var(--fs) * .8); gap: calc(var(--fs) * .3); }
.w-ttitle { font-size: calc(var(--fs) * 1.25); font-weight: 700; color: var(--accent); text-align: center; }
.w-trows { display: flex; flex-direction: column; gap: calc(var(--fs) * .25); opacity: 0; transition: opacity .5s ease; }
.w-trows.in { opacity: 1; }
.w-trow { display: flex; align-items: baseline; gap: .4em; font-size: var(--fs); }
.w-trow span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-trow i { flex: 1; border-bottom: 2px dotted currentColor; opacity: .35; transform: translateY(-.25em); }
.w-trow b { color: var(--accent); white-space: nowrap; }
.w-tsub { font-size: calc(var(--fs) * .8); font-weight: 600; opacity: .8; text-transform: uppercase; letter-spacing: .05em; margin-top: .3em; }
/* Notícias (RSS) e agenda (iCal). */
:is(.w-rss, .w-ical) .w-body { justify-content: flex-start; align-items: stretch; padding: calc(var(--fs) * .5) calc(var(--fs) * .7); gap: calc(var(--fs) * .3); }
.w-rss.ticker .w-body { justify-content: center; flex-direction: row; align-items: center; padding: 0 calc(var(--fs) * .5); gap: calc(var(--fs) * .6); }
.w-rss.ticker .w-ttitle { flex: none; font-size: var(--fs); padding: .15em .5em; border-radius: .3em; background: var(--accent); color: #fff; }
.w-tk { flex: 1; overflow: hidden; white-space: nowrap; font-size: var(--fs); font-weight: 600; }
.w-tkl { display: inline-block; padding-left: 100%; animation: w-tk 30s linear infinite; }
@keyframes w-tk { to { transform: translateX(-100%); } }
.w-flist { display: flex; flex-direction: column; gap: calc(var(--fs) * .45); overflow: hidden; text-align: left; }
.w-fi { display: flex; flex-direction: column; font-size: var(--fs); line-height: 1.2; border-left: calc(var(--fs) * .15) solid var(--accent); padding-left: .5em; }
.w-fd { font-size: .7em; color: var(--accent); font-weight: 600; text-transform: capitalize; }
.w-ft { font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.w-fw { font-size: .7em; opacity: .75; }
