/* controle.css — página do Controle da TV (25/10/2026).
   O visual geral (fundo em vídeo, menu, botões, vidro) vem das folhas do Portal
   (/assets/css/*). Aqui fica só o que é desta página: a TV simulada (tv-*) e o
   controle (c-*, o mesmo desenho do controle.html do programa). Tudo com
   prefixo próprio para não colidir com as classes do site. */

/* ---- topo ------------------------------------------------------------------ */
.tv-hero { min-height: 0; padding: 72px 0 40px; }
.tv-marca { text-align: center; }
.tv-marca-logo { width: 150px; height: 150px; margin: 26px auto 6px; filter: drop-shadow(0 18px 40px rgba(225, 18, 31, .35)); }
.tv-marca .metric { text-align: left; }
.tv-link { color: var(--color-primary-2); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.sim-intro { max-width: 760px; margin: 0 0 30px; }

/* ---- simulação: TV + controle --------------------------------------------- */
#simulador { scroll-margin-top: 90px; }
.sim { display: grid; grid-template-columns: minmax(0, 900px) 200px; justify-content: center; gap: 48px; align-items: start; }
.sim-tv-coluna { position: sticky; top: 112px; }
.sim-comando { margin: 14px 0 0; color: var(--color-muted); font-size: 14px; }
.sim-comando code { color: #f0c48a; font-size: 13px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px; padding: 3px 8px; }

.tv { position: relative; padding: 14px 14px 26px; border-radius: 18px;
  background: linear-gradient(180deg, #24262c, #0d0e11); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .12); }
.tv-led { position: absolute; left: 50%; bottom: 9px; width: 7px; height: 7px; margin-left: -3px; border-radius: 50%;
  background: #e1121f; box-shadow: 0 0 8px #e1121f; transition: background .3s, box-shadow .3s; }
.tv.ligada .tv-led { background: #3a3d44; box-shadow: none; }
.tv-tela { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #000;
  container-type: inline-size; color: #fff; font-family: var(--font-main); }
.tv-camada { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s; }
.tv-camada.visivel { opacity: 1; visibility: visible; transition: opacity .35s ease; }

.tv-desligada { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #121318, #000 70%); }
.tv-dica { margin: 0; padding: 0 8%; text-align: center; color: #9aa1ad; font-size: max(13px, 2.2cqw); line-height: 1.5; }
.tv-dica b { color: #ff4b52; }

.tv-abertura { background: #c9a879 url("abertura-tv.webp") center / cover no-repeat; }

/* tela inicial, no jeito do CastroStudies TV */
.tv-inicio { padding: 3.2cqw 4cqw; background:
  linear-gradient(180deg, rgba(8, 9, 12, .55), rgba(8, 9, 12, .92) 62%),
  url("abertura-tv.webp") center / cover no-repeat; }
.tv-topo { display: flex; align-items: center; justify-content: space-between; }
.tv-logo { font-size: 2.6cqw; letter-spacing: .02em; }
.tv-logo b { font-weight: 900; }
.tv-relogio { font-size: 2.4cqw; font-weight: 700; }
.tv-destaque { margin: 2.6cqw 0 2.2cqw; display: grid; gap: .5cqw; max-width: 55%; }
.tv-destaque small { font-size: 1.3cqw; letter-spacing: .14em; color: #f0c48a; }
.tv-destaque strong { font-size: 3.6cqw; line-height: 1.05; letter-spacing: -.03em; }
.tv-destaque span { font-size: 1.6cqw; color: #d6d9df; }
.tv-fileira-titulo { font-size: 1.7cqw; font-weight: 700; margin: 1.4cqw 0 .9cqw; }
.tv-fileira { display: flex; gap: 1.4cqw; transition: transform .25s ease; }
.tv-bloco { flex: none; width: 13.4cqw; aspect-ratio: 16 / 10; border-radius: 1cqw; display: grid; place-items: center;
  font-weight: 900; font-size: 2.2cqw; letter-spacing: -.02em; box-shadow: 0 .6cqw 1.6cqw rgba(0, 0, 0, .45);
  outline: .3cqw solid transparent; outline-offset: .3cqw; transition: transform .18s ease, outline-color .18s ease; }
.tv-fileira-peq .tv-bloco { width: 9.6cqw; font-size: 1.5cqw; }
.tv-bloco.foco { outline-color: #fff; transform: scale(1.08); }

.tv-splash { display: grid; place-items: center; }
.tv-splash strong { font-size: 6cqw; font-weight: 900; letter-spacing: -.04em; animation: tv-pulso 1s ease-in-out infinite alternate; }
@keyframes tv-pulso { from { opacity: .55; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }

.tv-app { display: grid; place-items: center; }
.tv-app-selo { position: absolute; top: 3cqw; left: 3.4cqw; font-size: 2cqw; font-weight: 900; padding: .5cqw 1.2cqw;
  border-radius: .8cqw; background: rgba(0, 0, 0, .35); }
.tv-app-centro { font-size: 7cqw; line-height: 1; text-align: center; }
.tv-app-centro small { display: block; margin-top: 1.4cqw; font-size: 1.8cqw; color: rgba(255, 255, 255, .8); }
.tv-eq { display: flex; align-items: flex-end; gap: .8cqw; height: 12cqw; }
.tv-eq i { width: 1.6cqw; background: #fff; border-radius: .4cqw; height: 20%; animation: tv-eq .9s ease-in-out infinite alternate; }
.tv-eq i:nth-child(2) { animation-delay: -.3s; } .tv-eq i:nth-child(3) { animation-delay: -.6s; }
.tv-eq i:nth-child(4) { animation-delay: -.15s; } .tv-eq i:nth-child(5) { animation-delay: -.45s; }
.tv-app.pausado .tv-eq i { animation-play-state: paused; }
@keyframes tv-eq { from { height: 15%; } to { height: 100%; } }
.tv-player { position: absolute; left: 3.4cqw; right: 3.4cqw; bottom: 3cqw; display: none; }
.tv-app.com-player .tv-player { display: block; }
.tv-player-info { display: flex; justify-content: space-between; font-size: 1.7cqw; font-weight: 700; margin-bottom: .8cqw; }
.tv-player-info #player-vel { color: #ffcf6a; }
.tv-barra { height: .6cqw; border-radius: .3cqw; background: rgba(255, 255, 255, .25); overflow: hidden; }
.tv-barra span { display: block; height: 100%; width: 0; background: #e60000; }
.tv-player-tempo { display: flex; justify-content: space-between; margin-top: .6cqw; font-size: 1.4cqw; color: rgba(255, 255, 255, .8); }

.tv-aovivo { background: #111; }
.tv-canal-faixa { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: baseline; gap: 2cqw;
  padding: 2cqw 4cqw; background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent); }
.tv-canal-faixa b { font-size: 5cqw; }
.tv-canal-faixa span { font-size: 2cqw; color: #d6d9df; }

.tv-volume { position: absolute; right: 3cqw; top: 50%; transform: translateY(-50%); display: none; flex-direction: column;
  align-items: center; gap: 1cqw; padding: 1.6cqw 1.2cqw; border-radius: 1.4cqw; background: rgba(0, 0, 0, .7); }
.tv-volume.visivel { display: flex; }
.tv-volume-icone { font-size: 2.2cqw; }
.tv-volume-barra { position: relative; width: .8cqw; height: 18cqw; border-radius: .4cqw; background: rgba(255, 255, 255, .25); overflow: hidden; }
.tv-volume-barra i { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; }
.tv-volume b { font-size: 2cqw; }
.tv-digitos { position: absolute; right: 4cqw; top: 3cqw; display: none; font-size: 6cqw; font-weight: 900;
  text-shadow: 0 .4cqw 1.4cqw #000; }
.tv-digitos.visivel { display: block; }
.tv-toast { position: absolute; left: 50%; bottom: 7cqw; transform: translateX(-50%); display: none; max-width: 80%;
  padding: 1.2cqw 2.4cqw; border-radius: 99px; background: rgba(10, 10, 14, .86); border: 1px solid rgba(255, 255, 255, .2);
  font-size: max(12px, 1.9cqw); font-weight: 700; text-align: center; }
.tv-toast.visivel { display: block; }
.tv-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.tv-flash.ativo { animation: tv-flash .45s ease-out; }
@keyframes tv-flash { from { opacity: .85; } to { opacity: 0; } }
.tv.modo-mouse .tv-tela { cursor: crosshair; outline: 2px solid #f5a524; }

/* ---- controle (o desenho do controle.html, 200 × 720) ---------------------- */
.ctl {
  --corpo1: #15171c; --corpo2: #2b2f37; --botao: #1b1e24; --botao-borda: #353a44; --texto: #d7dce4;
  --suave: #8a92a0; --vermelho: #e8383d; --prata1: #e9ecf0; --prata2: #9aa1ab; --destaque: #3d93ff; --modo: #f5a524;
  position: relative; width: 200px; height: 720px; color: var(--texto); user-select: none; -webkit-user-select: none;
  font: 13px/1.3 "Segoe UI", system-ui, sans-serif; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .55)); touch-action: manipulation;
}
.ctl button { font: inherit; color: var(--texto); cursor: pointer; border: 0; padding: 0; background: none; }
.ctl button:focus-visible { outline: 2px solid var(--modo); outline-offset: 2px; }
.c-corpo { position: absolute; inset: 0; border-radius: 100px; background: linear-gradient(90deg, var(--corpo1), var(--corpo2) 48%, #1a1d22);
  box-shadow: inset 0 0 0 2px #0c0d10, inset 0 0 0 3px #3a3f48; }
.c-red { position: absolute; width: 42px; height: 42px; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #2a2e36, var(--botao)); box-shadow: 0 2px 3px #0008, inset 0 0 0 1.5px var(--botao-borda);
  display: flex; align-items: center; justify-content: center; }
.c-red:active, .c-red.apertado { transform: scale(.92); box-shadow: inset 0 0 0 2px var(--destaque); }
.ctl svg.c-i { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ctl .c-power { left: 32px; top: 34px; width: 40px; height: 40px; background: radial-gradient(circle at 50% 35%, #ff5a5e, var(--vermelho));
  box-shadow: 0 2px 4px #0009; color: #fff; }
.c-power.chama { animation: c-chama 1.4s ease-in-out infinite; }
@keyframes c-chama { 50% { box-shadow: 0 0 0 7px rgba(232, 56, 61, .35), 0 2px 4px #0009; } }
.c-led { position: absolute; left: 50%; top: 51px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #6b2a2e; }
.c-led.ligada { background: #2fbf71; box-shadow: 0 0 6px #2fbf71; }

.ctl .c-b123 { left: 30px; top: 98px; font-weight: 700; font-size: 12px; }
.ctl .c-bextra { right: 30px; top: 98px; font-weight: 700; letter-spacing: 1px; }
.ctl .c-bmudo { left: 50%; margin-left: -21px; top: 98px; }

.c-anel { position: absolute; left: 50%; top: 158px; width: 154px; height: 154px; margin-left: -77px; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 50% 30%, #3b404a, #22252c 70%); box-shadow: 0 3px 8px #000a, inset 0 0 0 2px #444a55; }
.c-seta { position: absolute; width: 0; height: 0; border: 6px solid transparent; opacity: .75; pointer-events: none; }
.c-s-cima { left: 71px; top: 12px; border-bottom-color: var(--texto); }
.c-s-baixo { left: 71px; bottom: 12px; border-top-color: var(--texto); }
.c-s-esq { left: 12px; top: 71px; border-right-color: var(--texto); }
.c-s-dir { right: 12px; top: 71px; border-left-color: var(--texto); }
.c-ok { position: absolute; left: 39px; top: 39px; width: 76px; height: 76px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 50% 35%, #2c3038, #1a1c21); box-shadow: 0 2px 6px #000c, inset 0 0 0 1.5px #3b404a; }
.c-anel.apertado-cima { box-shadow: 0 3px 8px #000a, inset 0 6px 0 -2px var(--destaque); }
.c-anel.apertado-baixo { box-shadow: 0 3px 8px #000a, inset 0 -6px 0 -2px var(--destaque); }
.c-anel.apertado-esq { box-shadow: 0 3px 8px #000a, inset 6px 0 0 -2px var(--destaque); }
.c-anel.apertado-dir { box-shadow: 0 3px 8px #000a, inset -6px 0 0 -2px var(--destaque); }
.c-anel.apertado-ok .c-ok { box-shadow: 0 1px 3px #000c, inset 0 0 0 2px var(--destaque); }

.ctl .c-bvoltar { left: 26px; top: 334px; }
.ctl .c-binicio { left: 50%; margin-left: -21px; top: 352px; }
.ctl .c-bplay { right: 26px; top: 334px; }

.c-balancins { position: absolute; left: 20px; right: 20px; top: 414px; display: flex; gap: 5px; }
.c-barra { flex: 1; height: 26px; border-radius: 13px; position: relative; overflow: hidden; cursor: pointer;
  background: linear-gradient(180deg, var(--prata1), var(--prata2)); box-shadow: 0 2px 3px #0009, inset 0 1px 0 #fff; }
.c-barra::after { content: ""; position: absolute; left: 7px; right: 7px; top: 12px; height: 1px; background: #0002; }
.c-metade { position: absolute; left: 0; right: 0; height: 50%; }
.c-cima { top: 0; } .c-baixo { bottom: 0; }
.c-metade.apertado { background: #3d93ff55; }
.c-rotulos { position: absolute; left: 20px; right: 20px; top: 444px; display: flex; color: var(--suave); font-size: 10px; letter-spacing: .08em; }
.c-rotulos span { flex: 1; text-align: center; }

.c-apps { position: absolute; left: 0; right: 0; top: 476px; display: grid; grid-template-columns: repeat(3, 40px);
  justify-content: center; gap: 10px 12px; }
.ctl .c-app { width: 40px; height: 40px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 11px; letter-spacing: -.02em;
  box-shadow: 0 2px 3px #0009, inset 0 0 0 1.5px #ffffff22; overflow: hidden; }
.ctl .c-app:active { transform: scale(.92); }

.c-ferramentas { position: absolute; left: 0; right: 0; top: 584px; display: flex; justify-content: center; gap: 2px; }
.ctl .c-ferramentas button { width: 28px; height: 28px; border-radius: 50%; color: var(--suave); display: flex; align-items: center; justify-content: center; }
.ctl .c-ferramentas button:hover { color: var(--texto); background: #ffffff10; }
.ctl .c-ferramentas button.ativo { color: var(--modo); box-shadow: inset 0 0 0 1.5px var(--modo); }
.ctl .c-ferramentas svg.c-i { width: 16px; height: 16px; }
.ctl #c-like.curtido { color: #fff; background: #3d93ff; }

.c-velocidades { position: absolute; left: 24px; right: 24px; top: 622px; display: flex; align-items: center; gap: 3px; }
.c-yt { flex: none; width: 16px; height: 11px; margin-right: 3px; border-radius: 3px; background: #e60000; position: relative; }
.c-yt::after { content: ""; position: absolute; left: 6px; top: 3px; border-left: 5px solid #fff; border-top: 2.5px solid transparent; border-bottom: 2.5px solid transparent; }
.ctl .c-velocidades button { flex: 1; height: 24px; border-radius: 12px; background: #1e2128; box-shadow: inset 0 0 0 1px #3a3f48;
  font-size: 10px; font-weight: 700; }
.ctl .c-velocidades button:hover { background: #2a2e36; }
.ctl .c-velocidades button.ativo { background: #e60000; box-shadow: none; color: #fff; }

.c-aviso { position: absolute; left: 22px; right: 22px; top: 652px; text-align: center; font-size: 10px; color: var(--suave); min-height: 13px; }
.c-aviso.erro { color: #ff8a8d; }
.c-marca { position: absolute; left: 0; right: 0; bottom: 30px; text-align: center; font-weight: 800; letter-spacing: .2em; color: #8a909a; font-size: 9.5px; }

.c-painel { position: absolute; left: 12px; right: 12px; top: 88px; bottom: 90px; border-radius: 24px; z-index: 5;
  background: #121419f5; box-shadow: 0 6px 24px #000c, inset 0 0 0 1.5px #3a3f48; padding: 14px 12px; display: none; overflow-y: auto; }
.c-painel.aberto { display: block; }
.c-painel h3 { margin: 0 0 10px; font-size: 11px; color: var(--suave); text-transform: uppercase; letter-spacing: .08em; text-align: center; }
.c-painel .c-h3-espaco { margin-top: 14px; }
.c-dica { margin: 0 0 8px; font-size: 10px; line-height: 1.45; color: var(--suave); text-align: center; }
.c-grade { display: grid; gap: 7px; }
.c-g3 { grid-template-columns: repeat(3, 1fr); }
.c-g2 { grid-template-columns: repeat(2, 1fr); }
.c-g4 { grid-template-columns: repeat(4, 1fr); }
.c-cores { margin-bottom: 10px; }
.ctl .c-tecla { height: 42px; border-radius: 12px; background: var(--botao); box-shadow: inset 0 0 0 1.5px var(--botao-borda); font-size: 15px; }
.ctl .c-tecla.c-peq { height: 34px; font-size: 11px; }
.ctl .c-tecla:active, .ctl .c-tecla.apertado { box-shadow: inset 0 0 0 2px var(--destaque); }
.ctl .c-cor { height: 15px; border-radius: 8px; }
.ctl .c-fav { width: 100%; height: 38px; border-radius: 12px; margin-bottom: 7px; color: #fff; font-weight: 700; font-size: 13px; }
.ctl .c-escolha { display: flex; align-items: center; width: 100%; min-height: 28px; margin-bottom: 4px; padding: 0 8px; border-radius: 9px;
  background: #1e2128; font-size: 11px; text-align: left; }
.c-escolha .c-num { width: 16px; height: 16px; margin-right: 7px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px #4a505b;
  font-size: 9px; font-weight: 800; line-height: 16px; text-align: center; }
.ctl .c-escolha.marcado { background: #263b5c; }
.c-escolha.marcado .c-num { background: var(--destaque); box-shadow: none; color: #fff; }

.c-modo-mouse { position: absolute; inset: 0; z-index: 9; display: none; align-items: center; justify-content: center; cursor: pointer;
  background: #000c; border-radius: 100px; text-align: center; color: var(--modo); font-weight: 600; padding: 30px; font-size: 12px; }
.c-modo-mouse.ativo { display: flex; }

/* ---- página da política de privacidade -------------------------------------- */
.politica { max-width: 860px; padding: 40px 44px; }
.politica-titulo { font-size: clamp(38px, 5vw, 60px); line-height: 1; letter-spacing: -.05em; margin: 4px 0 10px; }
.politica-data { margin: 0 0 26px; color: var(--color-muted); }
.politica h2 { font-size: 22px; letter-spacing: -.02em; margin: 30px 0 8px; }

/* ---- telas menores --------------------------------------------------------- */
@media (max-width: 980px) {
  .sim { grid-template-columns: 1fr; gap: 26px; }
  /* no celular a TV fica presa no alto e o controle passa por baixo dela: fundo próprio para não misturar */
  .sim-tv-coluna { top: 80px; z-index: 3; margin: 0 -14px; padding: 6px 14px 8px; border-radius: 0 0 16px 16px;
    background: rgba(5, 5, 8, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .sim-comando { margin-top: 8px; }
  .ctl { margin: 0 auto; }
  .tv-marca-logo { width: 110px; height: 110px; }
}
@media (max-width: 680px) {
  .tv-hero { padding-top: 40px; }
  .tv { padding: 8px 8px 18px; border-radius: 12px; }
  .sim-comando { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .tv-camada, .tv-fileira, .tv-bloco { transition: none; }
  .tv-splash strong, .tv-eq i, .c-power.chama { animation: none; }
}
