/* ===== WebTV ao vivo (Admin > WebTV) ===== */
.webtv-player {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 16px; background: var(--portal-header-fundo, #00112a);
  box-shadow: 0 18px 40px rgba(0, 17, 42, .28);
}
.webtv-midia { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.webtv-capa {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer;
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent, #16456b) 70%, transparent), transparent 60%), var(--portal-header-fundo, #00112a);
  display: flex; align-items: center; justify-content: center;
}
.webtv-capa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.webtv-capa img.webtv-capa-logo { inset: auto; position: relative; width: auto; height: auto; max-width: 42%; max-height: 34%; object-fit: contain; opacity: .9; }
.webtv-capa:has(.webtv-capa-logo) { flex-direction: column; gap: 22px; }
.webtv-capa:has(.webtv-capa-logo) .webtv-play { position: relative; left: auto; top: auto; transform: none; }
.webtv-capa:has(.webtv-capa-logo):hover .webtv-play { transform: scale(1.07); }
.webtv-capa::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 17, 42, .05) 40%, rgba(0, 17, 42, .65)); }
.webtv-capa:hover img:not(.webtv-capa-logo) { transform: scale(1.03); }
.webtv-capa:focus-visible { outline: 3px solid var(--brand-yellow, #ffcb09); outline-offset: -3px; }
.webtv-play {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 78px; height: 78px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--brand-orange, #01920d); color: #fff; font-size: 2.4rem;
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--brand-orange, #01920d) 28%, transparent), 0 12px 30px rgba(0, 0, 0, .35);
  transition: transform .2s ease;
}
.webtv-play i { margin-left: 5px; }
.webtv-capa:hover .webtv-play { transform: translate(-50%, -50%) scale(1.07); }
.webtv-selo {
  position: absolute; z-index: 1; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: .4rem; padding: .32rem .7rem; border-radius: 999px;
  background: #d90429; color: #fff; font: 700 .72rem/1 'Inter', Arial, sans-serif; letter-spacing: .08em;
}
.webtv-selo-ponto, .webtv-menu-ponto { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: webtvPulso 1.4s ease-out infinite; }
@keyframes webtvPulso { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .75); } 70%, 100% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); } }
.webtv-player.is-tocando .webtv-capa { display: none; }
.webtv-player.is-erro::after {
  content: 'Transmissão indisponível no momento.'; position: absolute; inset: auto 0 0 0; padding: .7rem 1rem;
  background: rgba(0, 0, 0, .7); color: #fff; font-size: .85rem; text-align: center;
}

/* Bloco na home */
.webtv-home { padding: 2.2rem 0; background: linear-gradient(135deg, var(--portal-header-fundo, #00112a) 0%, color-mix(in srgb, var(--accent, #16456b) 85%, #00112a) 100%); color: #fff; }
.webtv-home-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.webtv-home-info .webtv-selo { position: static; margin-bottom: .9rem; }
.webtv-home-titulo { font: 700 clamp(1.4rem, 2.4vw, 2rem)/1.15 'Inter', Arial, sans-serif; margin: 0 0 .6rem; color: #fff; }
.webtv-home-titulo::after { content: ''; display: block; width: 56px; height: 4px; margin-top: .7rem; border-radius: 4px; background: var(--brand-yellow, #ffcb09); }
.webtv-home-texto { color: rgba(255, 255, 255, .78); margin: 0 0 1.2rem; line-height: 1.55; }
.webtv-btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.2rem; border-radius: 999px;
  background: var(--brand-yellow, #ffcb09); color: #00112a; font-weight: 700; text-decoration: none; transition: transform .2s ease;
}
.webtv-btn:hover, .webtv-btn:focus-visible { color: #00112a; transform: translateY(-2px); }
@media (max-width: 991px) {
  .webtv-home-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .webtv-player { border-radius: 12px; }
  .webtv-play { width: 64px; height: 64px; font-size: 2rem; }
}

/* Página /tv */
.webtv-pagina { padding: 1.5rem 0 2.5rem; }
.webtv-pagina-cabeca { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.webtv-pagina-cabeca .webtv-selo { position: static; }
.webtv-pagina-titulo { font: 700 clamp(1.4rem, 2.6vw, 2.1rem)/1.15 'Inter', Arial, sans-serif; margin: 0; color: var(--portal-header-fundo, #00112a); }
.webtv-pagina-texto { margin: 1rem 0 0; color: #4a5568; max-width: 860px; line-height: 1.6; }
.webtv-pagina .webtv-player { max-width: 1100px; }
.webtv-fora { text-align: center; padding: 3rem 1rem; color: #4a5568; }
.webtv-fora i { font-size: 2.6rem; color: var(--accent, #16456b); }

/* Link no menu */
.webtv-menu-link { display: inline-flex !important; align-items: center; gap: .4rem; }
.webtv-menu-ponto { display: inline-block; flex: 0 0 auto; background: #d90429; animation-name: webtvPulsoVermelho; }
@keyframes webtvPulsoVermelho { 0% { box-shadow: 0 0 0 0 rgba(217, 4, 41, .6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(217, 4, 41, 0); } }

@media (prefers-reduced-motion: reduce) {
  .webtv-selo-ponto, .webtv-menu-ponto { animation: none; }
  .webtv-capa img, .webtv-play, .webtv-btn { transition: none; }
}
