/* MediaComet display player: full screen, black, big readable footer */
@font-face {
	font-family: 'Archivo'; font-style: normal; font-weight: 400 800; font-stretch: 62% 125%; font-display: swap;
	src: url('../assets/archivo-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Archivo'; font-style: normal; font-weight: 400 800; font-stretch: 62% 125%; font-display: swap;
	src: url('../assets/archivo-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF;
}
:root {
	--fundo: #000;
	--espaco: #04061A;
	--barra: #0E1336;
	--barra-alta: #151B48;
	--linha: #262D5C;
	--texto: #E9EDFF;
	--texto-medio: #A3ADDB;
	--texto-fraco: #6B75A8;
	--acento: #8C9BFF;
	--cometa: #5EDCF2;
	--ambar: #FFC35C;
	--alerta: #FF6B8F;
	--barra-h: clamp(56px, 10vh, 140px);
	--fonte: 'Archivo', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--fundo); color: var(--texto); font-family: var(--fonte); overflow: hidden; cursor: none; }
[hidden] { display: none !important; }

#tela { position: fixed; inset: 0; display: flex; flex-direction: column; transform-origin: center center; }
#tela.r90, #tela.r270 { width: 100vh; height: 100vw; left: calc((100vw - 100vh) / 2); top: calc((100vh - 100vw) / 2); }
#tela.r90 { transform: rotate(90deg); } #tela.r180 { transform: rotate(180deg); } #tela.r270 { transform: rotate(270deg); }
#palco { position: relative; flex: 1; overflow: hidden; background: #000; }
.camada { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; display: flex; align-items: center; justify-content: center; }
.camada.on { opacity: 1; }
.camada img, .camada video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }

#vazio { position: absolute; inset: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--espaco); }
#galaxia { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.casa { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 6vmin; padding: 4vmin; width: 100%; }
.casa-texto { text-align: left; max-width: 60%; }
.casa-logo { width: 14vmin; height: 14vmin; }
.casa h1 { font-size: clamp(2.4rem, 11vmin, 9rem); margin: .15em 0 .1em; font-weight: 800; letter-spacing: -.03em; line-height: .95; color: var(--texto); text-shadow: 0 0 4vmin rgba(94,220,242,.35); }
.casa h1 b { display: inline-block; white-space: nowrap; font-weight: inherit; }
.casa h1 span { display: inline-block; }
.casa p { margin: .3em 0 0; font-size: clamp(1rem, 3.4vmin, 2.6rem); color: var(--texto); line-height: 1.25; }
#vazio-empresa { color: var(--ambar); font-weight: 700; }
.casa-qr { background: #fff; border-radius: 3vmin; padding: 2vmin; text-align: center; box-shadow: 0 0 0 1vmin rgba(94,220,242,.35), 0 2vmin 6vmin rgba(0,0,0,.6); }
#casa-qr-img svg { width: 30vmin; height: 30vmin; display: block; }
#casa-qr-url { display: block; color: #070A1A; font-size: clamp(.7rem, 1.6vmin, 1.2rem); margin-top: .6vmin; max-width: 30vmin; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tela.vertical .casa { flex-direction: column; text-align: center; }
#tela.vertical .casa-texto { text-align: center; max-width: 92%; }
#tela.vertical #casa-qr-img svg { width: 46vmin; height: 46vmin; }
#tela.vertical #casa-qr-url { max-width: 46vmin; }

#rodape { position: relative; height: var(--barra-h); flex: none; display: flex; align-items: stretch; font-size: calc(var(--barra-h) * .3);
	background: linear-gradient(180deg, #131A4A 0, var(--barra) 100%); }
#rodape::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--acento), var(--cometa) 55%, var(--ambar)); }
#rodape > div { display: flex; align-items: center; gap: .4em; padding: 0 .7em; }
#r-marca { background: linear-gradient(180deg, #1A2258 0, var(--barra-alta) 100%); font-weight: 700; }
#r-marca img { width: 1.4em; height: 1.4em; }
#r-relogio { flex-direction: column; justify-content: center; align-items: flex-start !important; gap: 0 !important; border-left: 1px solid var(--linha); line-height: 1.05; }
#r-hora { font-size: 1.25em; font-variant-numeric: tabular-nums; }
#r-data { font-size: .55em; color: var(--texto-medio); text-transform: capitalize; }
#r-tempo { border-left: 1px solid var(--linha); }
#r-tempo-ico svg { width: 1.5em; height: 1.5em; display: block; }
#r-temp { font-size: 1.15em; font-variant-numeric: tabular-nums; }
#r-tempo-txt { font-size: .55em; color: var(--texto-medio); line-height: 1.15; }
#r-faixa { flex: 1; overflow: hidden; position: relative; border-left: 1px solid var(--linha); padding: 0 !important; }
#r-faixa-trilho { position: absolute; top: 50%; left: 0; transform: translateY(-50%); white-space: nowrap; will-change: transform; font-size: .85em; }
#r-faixa-trilho span { margin-right: 2.5em; }
#r-faixa-trilho b { color: var(--ambar); font-weight: 700; margin-right: .5em; text-transform: uppercase; font-size: .8em; letter-spacing: .04em; }
#r-sinal { position: absolute; right: .5em; bottom: calc(var(--barra-h) + .5em); width: 14px; height: 14px; border-radius: 50%; background: var(--alerta); box-shadow: 0 0 0 4px rgba(255,107,143,.3); }
#tela.vertical #r-marca span, #tela.vertical #r-tempo-txt { display: none; }

#config { position: fixed; inset: 0; z-index: 50; background: var(--espaco); display: flex; align-items: center; justify-content: center; padding: 1rem; overflow: auto; cursor: auto; }
.config-caixa { width: 100%; max-width: 520px; background: var(--barra); border: 1px solid var(--linha); border-radius: 16px; padding: 1.4rem; text-align: center; }
.config-caixa h1 { margin: .4rem 0; font-size: 1.6rem; }
.config-caixa p { color: var(--texto-medio); }
.config-caixa label { display: block; text-align: left; margin: .8rem 0; color: var(--texto-medio); font-size: .95rem; }
.config-caixa input { display: block; width: 100%; margin-top: .3rem; min-height: 56px; font: inherit; font-size: 1.4rem; padding: .5rem .8rem; border-radius: 10px;
	border: 2px solid var(--linha); background: var(--espaco); color: var(--texto); letter-spacing: .04em; }
.config-caixa input:focus { border-color: var(--acento); outline: none; }
.config-botoes { display: flex; gap: .6rem; justify-content: center; margin: 1rem 0 .6rem; }
.config-botoes button { min-height: 56px; padding: 0 1.4rem; font: inherit; font-size: 1.15rem; font-weight: 700; border-radius: 10px; border: 0; cursor: pointer; background: var(--acento); color: #0B1036; }
.config-botoes button[type=button] { background: var(--barra-alta); color: var(--texto); border: 1px solid var(--linha); }
.config-botoes button:focus-visible { outline: 3px solid var(--ambar); outline-offset: 2px; }
#config-msg { min-height: 1.4em; font-weight: 600; }
#config-msg.erro { color: var(--alerta); } #config-msg.ok { color: #5FD9A8; }
.config-caixa small { color: var(--texto-fraco); }

#aviso { position: fixed; left: 50%; top: 1rem; transform: translateX(-50%); z-index: 40; background: rgba(7,10,26,.95); border: 1px solid var(--linha); border-radius: 10px;
	padding: .6rem 1rem; font-size: 1rem; color: var(--texto-medio); max-width: 90vw; }
#canto { position: fixed; left: 0; top: 0; width: 70px; height: 70px; opacity: 0; z-index: 30; border: 0; background: transparent; }

@media (prefers-reduced-motion: reduce) {
	.camada { transition: none; }
}
