/* GymFlow TV — tela de previsão do tempo (aparece de tempos em tempos, fora da divisão dos percentuais) */
.tv-clima { padding: 4vh 4vw; box-sizing: border-box; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-align-items: stretch; align-items: stretch; -webkit-justify-content: flex-start; justify-content: flex-start; }
.cl-topo { -webkit-flex: 0 0 auto; flex: 0 0 auto; height: 14vh; position: relative; }
.cl-relogio { position: absolute; top: .5vh; right: 0; text-align: right; }
.cl-data { font-size: 3vh; font-weight: 700; letter-spacing: .12em; opacity: .9; }
.cl-hora { font-size: 9vh; font-weight: 800; line-height: 1.1; letter-spacing: .02em; opacity: .95; }
.cl-titulo { font-size: 3vh; color: var(--tv-sub); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }

/* Fundo próprio e adaptativo (independe do fundo do modelo): texto sempre claro, painéis em vidro */
.tv-clima { font-family: 'Varela Round', Arial, Helvetica, sans-serif; color: #fff; overflow: hidden; --tv-texto: #fff; --tv-sub: rgba(255,255,255,.82); --tv-linha: rgba(255,255,255,.28); --tv-painel: rgba(255,255,255,.16); --tv-acento: #fff; text-shadow: none; }
.tv-clima > * { position: relative; z-index: 1; }
.tv-clima > .cl-estrelas, .tv-clima > .cl-nuvens, .tv-clima > .cl-raios { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; pointer-events: none; }
.tv-clima > .cl-rodape { position: absolute; }
.cl-agora, .cl-dia { -webkit-backdrop-filter: blur(2vh); backdrop-filter: blur(2vh); }
.cl-ceu-limpo { background: #2f6fc4; background: linear-gradient(180deg, #4d8fdc 0%, #2f6fc4 45%, #7fb0e6 100%); }
.cl-ceu-nublado { background: #7a8596; background: linear-gradient(180deg, #8a94a3 0%, #6f7a8b 55%, #a3acb8 100%); }
.cl-ceu-crepusculo { background: #6a4f7c; background: linear-gradient(180deg, #2f3f72 0%, #6a5a8e 40%, #b9798a 75%, #e8a27c 100%); }
.cl-ceu-chuva { background: #4e5b6e; background: linear-gradient(180deg, #5d6b80 0%, #46546a 55%, #6c7a8e 100%); }
.cl-ceu-tempestade { background: #1c2030; background: linear-gradient(180deg, #232839 0%, #2d3347 50%, #1a1d2b 100%); }
.cl-ceu-noite { background: #0b1330; background: linear-gradient(180deg, #050a1f 0%, #101c45 55%, #1e2f66 100%); }
.cl-nuvens { opacity: 0; background:
  radial-gradient(ellipse 22vw 7vh at 18% 20%, rgba(255,255,255,.55), rgba(255,255,255,0) 70%),
  radial-gradient(ellipse 30vw 8vh at 70% 12%, rgba(255,255,255,.45), rgba(255,255,255,0) 70%),
  radial-gradient(ellipse 26vw 6vh at 45% 42%, rgba(255,255,255,.35), rgba(255,255,255,0) 70%),
  radial-gradient(ellipse 24vw 7vh at 88% 38%, rgba(255,255,255,.35), rgba(255,255,255,0) 70%); }
.cl-ceu-limpo .cl-nuvens, .cl-ceu-nublado .cl-nuvens, .cl-ceu-chuva .cl-nuvens, .cl-ceu-tempestade .cl-nuvens { opacity: 1; }
.cl-ceu-nublado .cl-nuvens, .cl-ceu-chuva .cl-nuvens, .cl-ceu-tempestade .cl-nuvens { background:
  radial-gradient(ellipse 40vw 12vh at 20% 18%, rgba(255,255,255,.4), rgba(255,255,255,0) 70%),
  radial-gradient(ellipse 45vw 12vh at 75% 30%, rgba(60,70,85,.35), rgba(60,70,85,0) 70%),
  radial-gradient(ellipse 40vw 10vh at 40% 55%, rgba(255,255,255,.3), rgba(255,255,255,0) 70%); }
.cl-estrelas { opacity: 0; background-image:
  radial-gradient(.18vh .18vh at 8% 12%, #fff, transparent), radial-gradient(.25vh .25vh at 17% 34%, #fff, transparent),
  radial-gradient(.15vh .15vh at 26% 8%, #fff, transparent), radial-gradient(.22vh .22vh at 35% 22%, #fff, transparent),
  radial-gradient(.18vh .18vh at 44% 40%, #fff, transparent), radial-gradient(.28vh .28vh at 53% 10%, #fff, transparent),
  radial-gradient(.15vh .15vh at 62% 30%, #fff, transparent), radial-gradient(.22vh .22vh at 71% 6%, #fff, transparent),
  radial-gradient(.18vh .18vh at 79% 26%, #fff, transparent), radial-gradient(.25vh .25vh at 88% 14%, #fff, transparent),
  radial-gradient(.15vh .15vh at 94% 38%, #fff, transparent), radial-gradient(.2vh .2vh at 4% 46%, #fff, transparent),
  radial-gradient(.18vh .18vh at 31% 52%, #fff, transparent), radial-gradient(.22vh .22vh at 58% 48%, #fff, transparent),
  radial-gradient(.15vh .15vh at 84% 52%, #fff, transparent), radial-gradient(.2vh .2vh at 13% 60%, #fff, transparent),
  radial-gradient(.18vh .18vh at 67% 62%, #fff, transparent), radial-gradient(.25vh .25vh at 96% 64%, #fff, transparent); }
.cl-ceu-noite .cl-estrelas { opacity: 1; }
.cl-ceu-crepusculo .cl-estrelas { opacity: .35; }
.cl-cidade { font-size: 7vh; font-weight: 800; line-height: 1.15; display: inline-block; }

.cl-agora { -webkit-flex: 1; flex: 1; min-height: 0; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; margin: 2vh 0; padding: 1.6vh 3vw 1.4vh; background: var(--tv-painel); border-radius: 2vh; }
.cl-agora-meio { -webkit-flex: 1; flex: 1; min-height: 0; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: space-around; justify-content: space-around; }
.cl-agora-pe { -webkit-flex: 0 0 auto; flex: 0 0 auto; height: 4.6vh; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: space-between; justify-content: space-between; }
.cl-icone-grande svg { display: block; width: 29vh; height: 29vh; }
.cl-temp { text-align: center; }
.cl-grau { display: block; font-size: 20vh; font-weight: 800; line-height: 1; }
.cl-cond { display: block; font-size: 4.6vh; font-weight: 700; margin-top: 1vh; }
.cl-detalhes { min-width: 24vw; }
.cl-det { display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between; font-size: 3.2vh; padding: .9vh 0; border-bottom: .2vh solid var(--tv-linha); }
.cl-det span { color: var(--tv-sub); padding-right: 2vw; }
.cl-fonte { -webkit-flex: 0 0 auto; flex: 0 0 auto; margin-left: auto; padding-left: 2vw; font-size: 2vh; color: var(--tv-sub); opacity: .75; text-align: right; white-space: nowrap; }
.cl-rodape { position: absolute; left: 0; right: 0; bottom: 1vh; text-align: center; font-size: 1.8vh; color: var(--tv-sub); opacity: .6; pointer-events: none; }
.cl-det b { font-weight: 800; }

.cl-proximos { -webkit-flex: 0 0 auto; flex: 0 0 auto; height: 30vh; margin-bottom: 1vh; display: -webkit-flex; display: flex; }
.cl-dia { -webkit-flex: 1; flex: 1; min-width: 0; margin: 0 1vw; padding: 2vh 1vw 2.5vh; box-sizing: border-box; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-justify-content: space-between; justify-content: space-between; text-align: center; background: var(--tv-painel); border-radius: 2vh; }
.cl-dia:first-child { margin-left: 0; }
.cl-dia:last-child { margin-right: 0; }
.cl-dia-nome { font-size: 3.4vh; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.cl-icone-peq svg { display: block; width: 10vh; height: 10vh; margin: 0 auto; }
.cl-dia-temp { font-size: 3.6vh; font-weight: 800; }
.cl-dia-chuva { font-size: 2.6vh; color: var(--tv-sub); margin-top: .4vh; }


/* Relâmpagos sutis (só na tempestade): clarão rápido a cada ~8 s */
.cl-raios { opacity: 0; background: radial-gradient(ellipse 60% 55% at 70% 10%, rgba(255,255,255,.55), rgba(255,255,255,0) 70%); }
.cl-ceu-tempestade .cl-raios { -webkit-animation: cl-raio 8s infinite; animation: cl-raio 8s infinite; }
@-webkit-keyframes cl-raio { 0%, 88%, 100% { opacity: 0; } 89% { opacity: .9; } 90% { opacity: .1; } 91% { opacity: .7; } 94% { opacity: 0; } }
@keyframes cl-raio { 0%, 88%, 100% { opacity: 0; } 89% { opacity: .9; } 90% { opacity: .1; } 91% { opacity: .7; } 94% { opacity: 0; } }

/* Aviso (só aparece quando há): pílula enxuta no rodapé do cartão da temperatura */
.cl-alerta { -webkit-flex: 0 1 auto; flex: 0 1 auto; min-width: 0; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; padding: .5vh 1.6vw .5vh 1.1vw; border-radius: 3vh; font-size: 2.6vh; white-space: nowrap; overflow: hidden; }
.cl-alerta b { font-weight: 800; margin-right: 1vw; text-transform: uppercase; letter-spacing: .05em; }
.cl-alerta-sub { font-size: 2.3vh; opacity: .92; overflow: hidden; text-overflow: ellipsis; }
.cl-alerta-ic svg { display: block; width: 3.4vh; height: 3.4vh; margin-right: .9vw; }
.cl-alerta-amarelo { background: #facc15; color: #3b2f00; }
.cl-alerta-vermelho { background: #dc2626; color: #fff; }
.cl-alerta-azul { background: #7dd3fc; color: #0c2d48; }

/* Fundo "cor da academia": acento como fundo e texto automático pelo contraste (--txt vem do tv.js) */
.tv-clima.cl-cor { background: var(--cor); color: var(--txt); --tv-texto: var(--txt); --tv-sub: var(--txt); --tv-linha: rgba(0,0,0,.22); --tv-painel: rgba(0,0,0,.09); }
.tv-clima.cl-cor-claro { --tv-linha: rgba(255,255,255,.3); --tv-painel: rgba(255,255,255,.14); }
.tv-clima.cl-cor .cl-cond, .tv-clima.cl-cor .cl-det span { opacity: .85; }
/* Sobre a cor da academia o sol/nuvem se perdem (amarelo sobre amarelo): ícones ganham um disco grafite */
.tv-clima.cl-cor .cl-icone-grande svg, .tv-clima.cl-cor .cl-icone-peq svg { box-sizing: border-box; border-radius: 50%; background: #2c2c2c; padding: 1.6vh; }
.tv-clima.cl-cor .cl-icone-peq svg { padding: .9vh; }
