:root {
  color-scheme: dark;
  --bg-deep: #0a0e14;
  --bg: #121a24;
  --bg-card: #1a2430;
  --border: #2d3d4d;
  --text: #e8f0f7;
  --text-muted: #8fa3b6;
  --accent: #3dd6c6;
  --accent-dim: #2a9d8f;
  --danger: #f07178;
  --header-h: 56px;
  --epg-cols: 3;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: radial-gradient(120% 80% at 50% -20%, #1a2a38 0%, var(--bg-deep) 55%);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(10, 14, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.header-pwa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  padding: 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.header-pwa:hover {
  border-color: var(--border);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

.header-pwa:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.header-pwa__icon {
  width: 20px;
  height: 20px;
  display: block;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.logo__img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(45, 212, 191, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.logo__text {
  line-height: 1.2;
}

.header-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--text-muted);
  background: transparent;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.header-lock:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.header-lock:hover {
  border-color: var(--border);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}
.header-lock__icon {
  width: 22px;
  height: 22px;
  display: block;
}

.header-admin {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  border: 1px solid transparent;
}
.header-admin:hover {
  border-color: var(--border);
  color: var(--accent);
  text-decoration: none;
}

/* Home: coluna — player no topo, conteúdo e botões em sequência (mobile-first) */
.main--home {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Conteúdo principal */
.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

.main__title {
  text-align: center;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 1rem;
  order: 0;
}

.main--home .fec-cinema-bleed {
  order: 1;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
  background: #000;
}

.main--home .player-wrap {
  order: unset;
}

.main--home .player-oracao-wrap {
  order: 2;
  margin-top: 0.75rem;
  text-align: center;
}

.main--home .programa-box {
  order: 3;
}

.main--home .actions {
  order: 4;
}

.main--home .fec-patrocinio {
  order: 5;
  margin-top: 1rem;
}

.main--home .epg-section {
  order: 6;
}

.main--home .main-footer-actions {
  order: 7;
}

.player-wrap {
  border-radius: 0;
  overflow: hidden;
  border: none;
  background: #000;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  position: relative;
}

/* Cloudflare Stream (ao vivo principal em iframe) */
.fec-cf-embed {
  position: relative;
  z-index: 1;
  width: 100%;
  background: #000;
}

.fec-cf-embed__ratio {
  position: relative;
  padding-top: 56.25%;
}

.fec-cf-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.player-wrap--cf-live .video-js {
  display: none !important;
}

.player-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0.55rem 1rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.player-overlay__text {
  display: block;
  font-size: clamp(0.8rem, 2.5vw, 1rem);
  font-weight: 600;
  color: #fff;
  text-align: center;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Rádio a substituir temporariamente o foco visual do player */
.fec-radio-interrupt {
  position: absolute;
  inset: 0;
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(12, 18, 26, 0.94) 0%, rgba(5, 8, 12, 0.98) 100%);
  pointer-events: auto;
  text-align: center;
}

.fec-radio-interrupt[hidden] {
  display: none !important;
  pointer-events: none;
}

.fec-radio-interrupt__panel {
  max-width: 22rem;
}

.fec-radio-interrupt__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  font-weight: 800;
  color: #f0ebe0;
  letter-spacing: 0.03em;
}

.fec-radio-interrupt__hint {
  margin: 0 0 0.85rem;
  font-size: clamp(0.85rem, 3vw, 0.98rem);
  line-height: 1.45;
  color: rgba(232, 240, 247, 0.82);
}

.fec-radio-interrupt__station {
  margin: 0;
  font-size: clamp(0.95rem, 3.2vw, 1.05rem);
  font-weight: 700;
  color: #c9b8ea;
}

/* Indicadores ao vivo / buffer / reconexão (Video.js) */
.fec-player-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  pointer-events: none;
}

.fec-player-badge {
  font-size: clamp(0.65rem, 2vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.fec-player-badge--live {
  background: rgba(224, 92, 46, 0.92);
  color: #fff;
}

.fec-player-badge--loading {
  background: rgba(0, 0, 0, 0.78);
  color: #e8f0f7;
}

.fec-player-badge--reconnect {
  background: rgba(240, 113, 120, 0.92);
  color: #fff;
}

/* Modo conforto (idosos) e contraste — mantêm paleta, alteram escala e contraste */
html.fec--elderly {
  --epg-cols: 2;
}

html.fec--elderly .btn {
  padding: 1rem 1.35rem;
  font-size: 1.05rem;
  min-height: 48px;
}

html.fec--elderly .canal-card {
  min-height: 56px;
}

html.fec--elderly .programa-box__title {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
}

html.fec-modal-open,
html.fec-modal-open body {
  overflow: hidden;
}

html.fec--high-contrast {
  --bg-deep: #000;
  --bg: #0a0a0a;
  --bg-card: #141414;
  --border: #666;
  --text: #fff;
  --text-muted: #ddd;
  --accent: #6ee7d8;
  --accent-dim: #4fd1c5;
}

.btn-access {
  width: 100%;
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.9rem;
}

.btn-access--ghost {
  background: transparent;
}

/* Video.js — sem “faixa” clara; aspecto cinema */
.player-wrap .video-js,
.player-wrap .video-js .vjs-tech {
  background: #000 !important;
}

.player-wrap .vjs-poster {
  background-color: #000;
}

.player-wrap .video-js .vjs-control-bar {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.92));
}

/* Video.js skin tweaks */
.player-wrap .video-js {
  font-size: 14px;
  width: 100%;
}

.programa-box {
  margin-top: 1rem;
  text-align: center;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.programa-box__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
}

.programa-box__title {
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.actions {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.85rem 1.25rem;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.04) 52%,
    rgba(0, 0, 0, 0.12) 100%
  );
  color: var(--text);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.99);
}

/* Ícones inline nos botões (SVG stroke = currentColor) */
.fec-btn-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  display: block;
}

.btn-live .fec-btn-icon,
.btn-cast .fec-btn-icon,
.btn-radio .fec-btn-icon {
  width: 1.42rem;
  height: 1.42rem;
}

.btn-live .fec-btn-icon {
  opacity: 0.95;
}

.btn--icon-leading .fec-btn-icon {
  opacity: 0.9;
}

.btn-cast:hover .fec-btn-icon,
.btn-live:hover .fec-btn-icon {
  opacity: 1;
}

.btn-install {
  width: 100%;
  padding: 1.05rem 1.25rem;
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, #3dd6c6 0%, #2a9d8f 100%);
  color: #0a0e14;
  border: none;
  box-shadow: 0 8px 28px rgba(45, 212, 191, 0.35);
}
.btn-install:hover {
  box-shadow: 0 10px 36px rgba(45, 212, 191, 0.45);
  border: none;
}
.btn-install:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-cast {
  width: 100%;
  font-weight: 800 !important;
  font-size: 1.02rem !important;
  letter-spacing: 0.03em;
  color: #eef2ff !important;
  border: 1px solid rgba(165, 180, 252, 0.55) !important;
  background: linear-gradient(
    165deg,
    #818cf8 0%,
    #6366f1 42%,
    #4338ca 100%
  ) !important;
  box-shadow:
    0 6px 22px rgba(99, 102, 241, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.2) inset !important;
}

.btn-cast:hover {
  border-color: rgba(199, 210, 254, 0.9) !important;
  color: #fff !important;
  box-shadow:
    0 8px 28px rgba(99, 102, 241, 0.58),
    0 1px 0 rgba(255, 255, 255, 0.26) inset !important;
}

.btn-cast:focus-visible {
  outline: 3px solid #a5b4fc;
  outline-offset: 2px;
}

.btn-radio {
  width: 100%;
  justify-content: flex-start;
  gap: 0.65rem;
  text-align: left;
  background: linear-gradient(
    165deg,
    rgba(70, 140, 220, 0.55) 0%,
    rgba(30, 90, 160, 0.92) 42%,
    rgba(15, 45, 95, 0.98) 100%
  ) !important;
  border-color: rgba(130, 190, 255, 0.45) !important;
  color: #e8f4ff !important;
  box-shadow:
    0 5px 20px rgba(40, 100, 180, 0.4),
    0 1px 0 rgba(255, 255, 255, 0.12) inset !important;
}

.btn-radio[aria-pressed='true'] {
  border-color: rgba(100, 200, 255, 0.75) !important;
  box-shadow:
      0 6px 24px rgba(80, 160, 255, 0.45),
      0 1px 0 rgba(255, 255, 255, 0.18) inset !important;
}

.btn-radio__main {
  flex: 1;
  min-width: 0;
}

.btn-radio__name {
  display: block;
  font-weight: 700;
  line-height: 1.3;
}

.btn-radio__pill {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-radio[aria-pressed='true'] .btn-radio__pill {
  background: rgba(120, 200, 255, 0.28);
  border-color: rgba(160, 220, 255, 0.55);
  color: #e0f2ff;
}

.btn-live {
  width: 100%;
  background: linear-gradient(180deg, #2dd4bf 0%, #0f766e 100%);
  color: #042f2e;
  border: 1px solid rgba(167, 243, 208, 0.55);
  box-shadow: 0 6px 22px rgba(13, 148, 136, 0.4);
  font-weight: 800 !important;
  animation: pulse-live 2s ease-in-out infinite;
}
.btn-live:hover {
  border-color: rgba(209, 250, 229, 0.85);
  box-shadow: 0 8px 28px rgba(13, 148, 136, 0.55);
}

.btn-live:focus-visible {
  outline: 3px solid #5eead4;
  outline-offset: 2px;
}

.btn-oracao {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0.95rem 1.35rem;
  font-size: clamp(1rem, 3vw, 1.12rem);
  font-weight: 700;
  color: #f5f0e6;
  background: linear-gradient(180deg, #6b4ea3 0%, #4a3570 100%);
  border: none;
  border-radius: 15px;
  box-shadow: 0 8px 28px rgba(107, 78, 163, 0.38);
  cursor: pointer;
}

.btn-oracao:hover {
  box-shadow: 0 10px 36px rgba(107, 78, 163, 0.5);
}

.btn-oracao:focus-visible {
  outline: 3px solid #b794f6;
  outline-offset: 3px;
}

.fec-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}

.fec-modal[hidden] {
  display: none !important;
}

.fec-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 16, 0.72);
  backdrop-filter: blur(3px);
}

.fec-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: min(92vh, 720px);
  overflow: auto;
  margin: auto auto 0;
  padding: 1.35rem 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 48px rgba(0, 0, 0, 0.45);
}

@media (min-width: 540px) {
  .fec-modal {
    align-items: center;
    padding: 1rem;
  }
  .fec-modal__panel {
    margin: auto;
    border-radius: 18px;
  }
}

.fec-modal__panel--oracao .fec-oracao-btns {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1rem 0;
}

.fec-oracao-preset {
  width: 100%;
  padding: 1.1rem 1rem !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  min-height: 56px;
  background: var(--bg-deep) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: 12px !important;
}

.fec-oracao-preset:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

.fec-oracao-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.75rem 0 0.35rem;
}

.fec-oracao-optional {
  font-weight: 400;
  opacity: 0.85;
  font-size: 0.8em;
}

.fec-oracao-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.fec-oracao-input::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

.fec-oracao-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

.fec-oracao-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text);
  font: inherit;
  resize: vertical;
  min-height: 88px;
}

.fec-oracao-enviar {
  width: 100%;
  margin-top: 1rem;
  padding: 1rem !important;
  font-weight: 700 !important;
  background: linear-gradient(180deg, #6b4ea3 0%, #4a3570 100%) !important;
  color: #f5f0e6 !important;
  border: none !important;
  border-radius: 12px !important;
}

.fec-modal__title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  padding-right: 2rem;
}

.fec-modal__hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.fec-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fec-modal__close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.fec-modal__footer-admin {
  margin: 1.25rem 0 0;
  font-size: 0.82rem;
  text-align: center;
}

.fec-modal__footer-admin a {
  color: var(--accent);
}

/* Modal de senha da equipe (cadeado): citação + formulário */
.fec-modal__panel--equipe-login {
  max-width: 26rem;
  padding: 1.35rem 1.35rem 1.15rem;
  background: linear-gradient(165deg, rgba(107, 78, 163, 0.14) 0%, var(--bg-card) 42%);
  border: 1px solid rgba(213, 188, 255, 0.22);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.fec-equipe-login__kicker {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.95;
}

.fec-equipe-login__verse {
  margin: 0 0 0.65rem;
  padding: 0.95rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(0, 0, 0, 0.22);
  border-radius: 0 12px 12px 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.05rem;
  line-height: 1.55;
  font-style: italic;
  color: var(--text);
}

.fec-equipe-login__ref {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: normal;
}

.fec-equipe-login__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}

.fec-modal__panel--equipe-login .fec-modal__hint {
  margin-bottom: 0.85rem;
}

.fec-equipe-login__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.fec-equipe-login__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text);
  font: inherit;
  margin-bottom: 0.5rem;
}

.fec-equipe-login__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(189, 154, 255, 0.18);
}

.fec-equipe-login__erro {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  color: #f0a090;
}

.fec-equipe-login__actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.fec-equipe-login__btn-cancel {
  flex: 1;
  background: transparent !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
}

.fec-equipe-login__btn-ok {
  flex: 1;
  font-weight: 700 !important;
  background: linear-gradient(180deg, #7d5eb8 0%, #4a3570 100%) !important;
  color: #faf6ef !important;
  border: none !important;
}

.fec-equipe-refresh {
  width: 100%;
  margin-top: 0.35rem;
  margin-bottom: 0.15rem;
  padding: 0.55rem 0.75rem !important;
  font-size: 0.88rem !important;
  background: rgba(125, 94, 184, 0.15) !important;
  border: 1px solid rgba(125, 94, 184, 0.45) !important;
  color: #e8dff5 !important;
  border-radius: 10px !important;
}

#fec-equipe-pedidos-aviso {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #e8c96a;
}

/* Limpar intenções após transmissão */
.fec-equipe-limpar {
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem 1rem !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  background: rgba(224, 92, 46, 0.12) !important;
  border: 1px solid rgba(224, 92, 46, 0.45) !important;
  color: #f4c4ae !important;
  border-radius: 10px !important;
}

.fec-equipe-limpar:hover {
  background: rgba(224, 92, 46, 0.22) !important;
  border-color: rgba(224, 92, 46, 0.65) !important;
}

.fec-modal__limpar-hint {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-muted);
  text-align: center;
}

.fec-equipe-pedidos-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  max-height: 50vh;
  overflow: auto;
}

.fec-pedido-item {
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.5rem;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.fec-pedido-vazio {
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
}

@keyframes pulse-live {
  0%, 100% { box-shadow: 0 6px 22px rgba(13, 148, 136, 0.38); }
  50%       { box-shadow: 0 6px 32px rgba(13, 148, 136, 0.62); }
}

.footer-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0;
}

.main-footer-actions {
  margin-top: 2rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-credit {
  margin: 0.6rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(228, 236, 244, 0.65);
}

.footer-credit__jr {
  font-weight: 700;
  color: rgba(200, 216, 232, 0.88);
}

.footer-credit__sep {
  margin: 0 0.35rem;
  opacity: 0.45;
}

.footer-credit__brand {
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* Patrocínios / apoios (data/patrocinadores.json) */
.fec-patrocinio {
  max-width: 100%;
}

.fec-patrocinio[hidden] {
  display: none !important;
}

.fec-patrocinio__titulo {
  margin: 0 0 0.5rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.fec-patrocinio__viewport {
  position: relative;
  width: 100%;
  margin: 0 auto;
  min-height: 88px;
  max-height: 160px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.06),
    rgba(0, 0, 0, 0.35)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fec-patrocinio__viewport a.fec-patrocinio__hit {
  display: contents;
}

.fec-patrocinio__img,
.fec-patrocinio__vid {
  width: 100%;
  height: 100%;
  max-height: 160px;
  object-fit: contain;
  vertical-align: middle;
  opacity: 0;
  animation: fec-patro-in 0.45s ease forwards;
}

.fec-patrocinio__vid {
  pointer-events: none;
  background: #000;
}

@keyframes fec-patro-in {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Auth pages */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(120% 80% at 50% -20%, #1a2a38 0%, var(--bg-deep) 55%);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.auth-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.auth-card p.sub {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.auth-gate-msg {
  text-align: center;
  color: var(--text-muted);
  margin: 0;
}

.field {
  margin-bottom: 1rem;
}
.field label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}
.field input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text);
  font: inherit;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}
.check input {
  margin-top: 0.2rem;
}

.btn-primary {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #3dd6c6, #2a9d8f);
  color: #0a0e14;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
}
.btn-primary:hover {
  filter: brightness(1.05);
}

.error-box {
  background: rgba(240, 113, 120, 0.15);
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* Admin */
.admin-body {
  min-height: 100vh;
  padding: 1.5rem;
  padding-top: calc(var(--header-h) + 1rem);
  background: radial-gradient(120% 80% at 50% -20%, #1a2a38 0%, var(--bg-deep) 55%);
}

.admin-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.admin-wrap--simple {
  max-width: 520px;
}

.admin-wrap h1 {
  margin: 0 0 0.5rem;
}

.admin-wrap .lead {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.form-panel h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-muted {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}
.btn-muted:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.hint-ok {
  font-size: 0.875rem;
  color: var(--accent);
  margin-top: 0.75rem;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.3rem 0 0;
}

/* Grade de programação (EPG) — lista semântica; layout tipo grid mobile do .canais-grid */
.epg-section {
  margin-top: 2.5rem;
}

.epg-section__title {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.5rem;
}

.epg-section__hint {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.epg-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--epg-cols), minmax(0, 1fr));
  gap: 0.75rem;
}

.epg-grid .epg-item {
  margin: 0;
  min-width: 0;
}

.epg-placeholder {
  list-style: none;
  grid-column: 1 / -1;
}

.canais-loading {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}

.canal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  width: 100%;
  padding: 0.9rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.canal-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(61, 214, 198, 0.15);
}

.canal-card:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.canal-card:focus:not(:focus-visible) {
  outline: none;
}

.canal-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.canal-card--active {
  border-color: var(--accent);
  background: rgba(61, 214, 198, 0.08);
  box-shadow: 0 4px 20px rgba(61, 214, 198, 0.2);
}

.canal-card__logo-wrap {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.canal-card__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.canal-card__logo--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.canal-card__logo--ph .fec-epg-ph-icon {
  width: clamp(34px, 46%, 44px);
  height: clamp(34px, 46%, 44px);
  color: var(--text-muted);
  opacity: 0.72;
}

.canal-card__nome {
  font-weight: 600;
  line-height: 1.3;
}

.canal-card__legenda {
  display: block;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--text-muted);
  max-width: 100%;
}

.canal-card__cat {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Channel list (outras páginas) */
.canais-section {
  margin-top: 2.5rem;
}

.canais-section__title {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
}

.canais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .btn-install {
    flex: 1 1 100%;
  }
  .btn-cast {
    flex: 1 1 auto;
  }
  :root {
    --epg-cols: 4;
  }
}

@media (max-width: 599px) {
  :root {
    --epg-cols: 2;
  }
}

/* Admin preview */
.admin-preview-panel {
  margin-top: 1.5rem;
}

.admin-preview-wrap {
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.admin-preview-wrap .video-js {
  width: 100%;
  max-height: 280px;
}

.admin-preview-wrap .video-js .vjs-tech {
  transition: transform 0.25s ease;
  transform-origin: center center;
}

.admin-camera-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-camera-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  flex: 1 1 auto;
}

.admin-camera-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-right: 0.25rem;
  white-space: nowrap;
}

.admin-zoom-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  min-width: 3rem;
  text-align: center;
}

.btn-cam {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.btn-cam:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(61, 214, 198, 0.08);
}

.btn-cam--reset {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.btn-cam--reset:hover {
  color: var(--accent);
}

/* Toast notification */
.fec-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  background: rgba(26, 36, 48, 0.95);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.875rem;
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  max-width: calc(100vw - 2rem);
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.fec-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
