/**
 * Página inicial - Estilo broadcast
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --color-bg0: #0a0e12;
  --color-bg1: #111820;
  --color-surface: rgba(17, 24, 32, 0.82);
  --color-border: rgba(255, 255, 255, 0.062);
  --color-border-strong: rgba(255, 255, 255, 0.11);
  --color-text: #e9ecef;
  --color-text-muted: rgba(233, 236, 239, 0.62);
  --color-text-subtle: rgba(233, 236, 239, 0.42);
  --accent: #3b82f6;
  --accent-ring: rgba(59, 130, 246, 0.35);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-panel:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 12px 40px rgba(0, 0, 0, 0.38);
  --blur-header: 14px;
  /* Mesma coluna dos cartões (marca alinhada à caixa “1. Selecione o jogo”) */
  --home-content-max: 960px;
  --home-inline-pad: clamp(16px, 3vw, 28px);
  /* Arte local. Para nitidez em telas grandes use ≥2400px de largura (ideal 3840). */
  --home-hero-bg-image: url('/public/img/home-hero.png');
  --home-hero-bg-veil: linear-gradient(
    168deg,
    rgba(14, 10, 26, 0.92) 0%,
    rgba(16, 12, 30, 0.78) 38%,
    rgba(18, 14, 34, 0.72) 68%,
    rgba(22, 16, 38, 0.8) 100%
  );
}

html {
  min-height: 100%;
  background-color: var(--color-bg0);
}

/**
 * Hero no ::before fixo à viewport: com o fundo no body + background-size: cover,
 * ao crescer o conteúdo o "cover" recalculava e a arte parecia abrir/deslizar.
 */
.home-body {
  position: relative;
  min-height: 100vh;
  background-color: transparent;
  font-family: var(--font-sans);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.home-body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 100% 80% at 50% -35%, rgba(59, 130, 246, 0.045), transparent 52%),
    radial-gradient(ellipse 120% 95% at 82% 100%, rgba(120, 65, 195, 0.065), transparent 52%),
    var(--home-hero-bg-veil),
    var(--home-hero-bg-image),
    linear-gradient(180deg, var(--color-bg1) 0%, var(--color-bg0) 42%, var(--color-bg0) 100%);
  background-size: auto, auto, cover, cover, 100% 100%;
  background-position: center, center, center, right center, center;
  background-repeat: no-repeat;
}

@media (max-width: 720px) {
  .home-body::before {
    background-position: center, center, center, center center, center;
  }
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 22px var(--home-inline-pad) 20px;
  border-bottom: 1px solid var(--color-border);
  background: rgba(10, 14, 18, 0.86);
  backdrop-filter: blur(var(--blur-header));
  -webkit-backdrop-filter: blur(var(--blur-header));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

.home-header-row {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: stretch;
  column-gap: clamp(16px, 2.2vw, 24px);
  width: 100%;
  max-width: var(--home-content-max);
  margin: 0 auto;
}

/* Traço vertical exatamente no meio da coluna (mesma largura do cartão abaixo) */
.home-header-rule {
  display: block;
  width: 1px;
  min-height: 100%;
  margin: 0;
  padding: 0;
  background: var(--color-border);
  align-self: stretch;
  justify-self: center;
}

@media (max-width: 720px) {
  .home-header-row {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1px auto;
    row-gap: clamp(14px, 3vw, 18px);
    column-gap: 0;
  }

  .home-header-rule {
    width: 100%;
    height: 1px;
    min-height: 1px;
  }
}

.home-brand {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 18px);
  min-width: 0;
  text-align: left;
}

.home-brand-logo-slot {
  flex-shrink: 0;
  line-height: 0;
}

.home-brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1a2744 0%, #0d1219 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 6px 20px rgba(0, 0, 0, 0.25);
}

.home-brand-mark-inner {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.07em;
  color: #f1f5f9;
  line-height: 1;
  user-select: none;
}

.home-brand-text {
  min-width: 0;
}

.home-live-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  align-self: stretch;
  gap: 10px;
  justify-content: flex-end;
  min-width: 0;
}

.home-live-bar-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 100%;
}

/**
 * Largura = fileira de botões; o banner ocupa 100% dessa largura.
 * Fileira primeiro no DOM, banner depois; column-reverse mantém o banner no topo.
 */
.home-live-block {
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  width: max-content;
  max-width: min(100%, calc(100vw - 32px));
  align-items: stretch;
}

.home-live-transmission {
  min-height: 40px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 9px;
  border: 1px solid var(--color-border-strong);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  text-align: center;
  width: 100%;
  overflow: visible;
  min-width: 0;
}

.home-live-transmission-label {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  max-width: 100%;
  text-align: center;
  line-height: 1.25;
}

.home-live-transmission--connected {
  border-color: rgba(124, 252, 138, 0.45);
  background: rgba(34, 139, 34, 0.22);
  color: #a7f3c0;
  text-transform: uppercase;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.home-live-controls-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.live-source-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 8px 8px;
  border-radius: 10px;
  border: 1px solid var(--color-border-strong);
  background: rgba(0, 0, 0, 0.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 8px 24px rgba(0, 0, 0, 0.2);
  min-width: 0;
}

.live-source-group--football {
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
  border-color: rgba(76, 175, 80, 0.28);
  background: linear-gradient(
    165deg,
    rgba(34, 139, 34, 0.1) 0%,
    rgba(0, 0, 0, 0.22) 55%,
    rgba(0, 0, 0, 0.18) 100%
  );
}

.live-source-group--atrium {
  flex: 0 0 auto;
  width: clamp(88px, 11vw, 108px);
  border-color: rgba(45, 200, 175, 0.32);
  background: linear-gradient(
    165deg,
    rgba(32, 160, 140, 0.14) 0%,
    rgba(0, 0, 0, 0.22) 55%,
    rgba(0, 0, 0, 0.18) 100%
  );
}

.live-source-group--help {
  flex: 0 0 auto;
  width: clamp(48px, 7vw, 60px);
  border-color: rgba(59, 130, 246, 0.3);
  background: linear-gradient(
    165deg,
    rgba(59, 130, 246, 0.1) 0%,
    rgba(0, 0, 0, 0.22) 55%,
    rgba(0, 0, 0, 0.18) 100%
  );
}

.live-source-group__label {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  white-space: nowrap;
  line-height: 1.15;
  padding-left: 2px;
}

.live-source-group__cells {
  display: grid;
  gap: 5px;
  align-items: stretch;
  min-height: 38px;
}

.live-source-group--football .live-source-group__cells {
  grid-template-columns: 50px 46px 56px;
}

.live-source-group--atrium .live-source-group__cells,
.live-source-group--help .live-source-group__cells {
  grid-template-columns: 1fr;
}

.live-control-cell {
  min-width: 0;
  min-height: 38px;
  box-sizing: border-box;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.live-mode-badge {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 38px;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 4px;
  border-radius: 8px;
  border: 1px solid var(--color-border-strong);
  background: rgba(0, 0, 0, 0.25);
  color: var(--color-text-muted);
}

.live-mode-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.live-mode-safe-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.live-help-trigger {
  min-width: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  min-height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
  color: #93c5fd;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.live-mode-btn {
  width: 100%;
  height: 100%;
  margin: 0;
  min-height: 38px;
  padding: 0 5px;
  border-radius: 8px;
  border: 1px solid var(--color-border-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.live-mode-badge--live {
  color: #a7f3c0;
  border-color: rgba(124, 252, 138, 0.4);
  background: linear-gradient(180deg, rgba(34, 139, 34, 0.35) 0%, rgba(34, 139, 34, 0.12) 100%);
}

.live-mode-badge--safe {
  color: #fcd34d;
  border-color: rgba(255, 194, 102, 0.45);
  background: linear-gradient(180deg, rgba(180, 100, 0, 0.28) 0%, rgba(180, 100, 0, 0.1) 100%);
}

.live-help-trigger:hover {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.3) 0%, rgba(59, 130, 246, 0.14) 100%);
  border-color: rgba(59, 130, 246, 0.5);
  color: #bfdbfe;
}

.live-help-trigger:focus-visible {
  outline: 2px solid var(--accent-ring);
  outline-offset: 2px;
}

.live-mode-btn:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
}

.live-mode-btn--live.live-mode-btn--active {
  border-color: rgba(76, 175, 80, 0.65);
  background: linear-gradient(180deg, rgba(76, 175, 80, 0.35) 0%, rgba(76, 175, 80, 0.15) 100%);
}

.live-mode-btn--safe.live-mode-btn--active {
  border-color: rgba(255, 152, 0, 0.55);
  background: linear-gradient(180deg, rgba(255, 152, 0, 0.28) 0%, rgba(255, 152, 0, 0.12) 100%);
}

.live-mode-btn--base {
  border-color: rgba(45, 200, 175, 0.45);
  background: linear-gradient(180deg, rgba(32, 160, 140, 0.22) 0%, rgba(32, 120, 110, 0.1) 100%);
  color: #b8f5e8;
}

.live-mode-btn--base:hover {
  border-color: rgba(56, 232, 200, 0.55);
  background: linear-gradient(180deg, rgba(32, 180, 155, 0.32) 0%, rgba(32, 140, 125, 0.14) 100%);
}

.live-mode-token-input {
  min-height: 38px;
  width: min(148px, 100%);
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid var(--color-border-strong);
  background: rgba(0, 0, 0, 0.28);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.75rem;
}

.live-mode-token-input::placeholder {
  color: var(--color-text-subtle);
}

@media (max-width: 720px) {
  .home-live-controls-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding-bottom: 6px;
    margin: 0 -4px;
    padding-left: 4px;
    padding-right: 4px;
    scrollbar-width: thin;
  }

  .live-source-group--football {
    flex: 0 0 auto;
    width: auto;
    min-width: min(292px, 92vw);
  }

  .live-source-group--football .live-source-group__cells {
    grid-template-columns: 48px 44px 54px;
  }

  .live-source-group--atrium {
    flex: 0 0 auto;
    width: min(100px, 26vw);
  }

  .live-source-group--help {
    flex: 0 0 auto;
    width: min(52px, 16vw);
  }

  .home-brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .home-brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .home-subtitle {
    max-width: 100%;
  }

  .home-live-bar {
    justify-content: center;
    width: 100%;
  }

  .home-live-bar-stack {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    align-items: center;
  }
}

/* Modal — confirmação de sessão longa (modo API) */
.live-grace-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.live-grace-modal-inner {
  max-width: 440px;
  width: 100%;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 200, 100, 0.35);
  background: linear-gradient(160deg, #1e2a38 0%, #121820 100%);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.live-grace-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffc266;
  margin-bottom: 12px;
}

.live-grace-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}

.live-grace-countdown {
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  padding: 12px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: rgba(255, 100, 50, 0.12);
  color: #ff9a6a;
}

.live-grace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.live-grace-btn {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
}

.live-grace-btn--primary {
  background: rgba(34, 139, 34, 0.35);
  border-color: rgba(124, 252, 138, 0.45);
}

.live-grace-btn--primary:hover {
  background: rgba(34, 139, 34, 0.5);
}

.live-grace-btn--secondary {
  background: rgba(255, 152, 0, 0.2);
  border-color: rgba(255, 194, 102, 0.45);
}

.live-grace-btn--secondary:hover {
  background: rgba(255, 152, 0, 0.35);
}

.home-title {
  font-size: clamp(1.35rem, 3.5vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-text);
}

.home-subtitle {
  margin-top: 10px;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
  max-width: 28rem;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
}

.home-nav {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.home-nav a {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

.home-nav a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.home-main {
  padding: clamp(24px, 4vw, 40px) var(--home-inline-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 3vw, 32px);
}

.home-panel {
  width: 100%;
  max-width: var(--home-content-max);
  padding: clamp(20px, 3vw, 28px);
  background: var(--color-surface);
  backdrop-filter: blur(var(--blur-header));
  -webkit-backdrop-filter: blur(var(--blur-header));
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
}

/* “1. Selecione o jogo”: última fileira mais próxima da borda inferior do cartão */
.dashboard-section.home-panel {
  padding-bottom: clamp(10px, 1.6vw, 14px);
}

.home-panel--wide {
  max-width: min(1400px, 100%);
}

/* Manual do sistema (modal nativo) */
.help-dialog {
  margin: auto;
  padding: 0;
  max-width: calc(100vw - 32px);
  width: min(560px, 100%);
  border: none;
  border-radius: var(--radius-lg);
  background: transparent;
  color: inherit;
}

.help-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
}

.help-dialog-panel {
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(24, 32, 42, 0.98) 0%, rgba(12, 16, 22, 0.99) 100%);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

.help-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-border);
}

.help-dialog-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.help-dialog-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  color: var(--color-text-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.help-dialog-close:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.06);
}

.help-dialog-close:focus-visible {
  outline: 2px solid var(--accent-ring);
  outline-offset: 2px;
}

.help-dialog-body {
  padding: 8px 18px 20px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
}

.help-manual-section {
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  margin-top: 16px;
}

.help-manual-section:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 4px;
}

.help-manual-section.help-manual-section--callout {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 183, 77, 0.28);
  background: rgba(255, 152, 0, 0.08);
}

.help-manual-section--callout .help-manual-h {
  color: #fdba74;
}

.help-manual-section--callout .help-manual-p {
  color: rgba(253, 186, 116, 0.92);
}

.help-manual-h {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.help-manual-p {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.help-manual-p:last-child {
  margin-bottom: 0;
}

.help-manual-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.help-manual-list li {
  margin-bottom: 8px;
}

.help-manual-list li:last-child {
  margin-bottom: 0;
}

.help-manual-code {
  font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.78em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.help-manual-subh {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(186, 230, 253, 0.95);
  margin: 14px 0 6px;
}

/* Dashboard: selects */
.dashboard-section {
  width: 100%;
}

.dashboard-section-title {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-text-subtle);
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.dashboard-mode-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.dashboard-mode-tab {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.dashboard-mode-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
}

.dashboard-mode-tab--active {
  border-color: transparent;
  background: rgba(59, 130, 246, 0.2);
  color: var(--color-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.dashboard-flow-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  width: 100%;
}

.dashboard-selects {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 0;
}

.dashboard-selects__primary {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.dashboard-selects__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  width: 100%;
}

.dashboard-select-group--team-search {
  flex: 1 1 280px;
  min-width: min(100%, 260px);
  max-width: 100%;
}

.dashboard-select-group {
  flex: 1;
  min-width: 180px;
}

.dashboard-select-group--date {
  flex: 0 1 160px;
  min-width: 150px;
}

.dashboard-select-group--btn {
  flex: 0 0 auto;
  align-self: flex-end;
  margin-bottom: 0;
}

.dashboard-btn-reset {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.dashboard-btn-reset:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.dashboard-select-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.dashboard-date-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  outline: none;
}

.dashboard-date-input:focus {
  border-color: rgba(59, 130, 246, 0.6);
}

.dashboard-date-input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.7;
}

/* Combobox com busca — tema escuro, texto legível */
.combobox {
  position: relative;
  width: 100%;
}

.combobox-input {
  width: 100%;
  padding: 12px 36px 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  outline: none;
}

.combobox-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8125rem;
}

.combobox-input:focus {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.combobox-disabled .combobox-input {
  opacity: 0.6;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.04);
}

.combobox::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

.combobox-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  max-height: 240px;
  overflow-y: auto;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.combobox-dropdown.open {
  display: block;
}

.combobox-option {
  padding: 8px 14px;
  color: #e2e8f0;
  font-size: 0.8125rem;
  line-height: 1.35;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s;
}

.combobox-option:last-child {
  border-bottom: none;
}

.combobox-option:hover,
.combobox-option.highlight {
  background: rgba(59, 130, 246, 0.25);
  color: #fff;
}

/* vMix cards */
.vmix-section {
  width: 100%;
}

.vmix-panel-stack {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vmix-collapse {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.35);
  overflow: hidden;
}

.vmix-collapse > .vmix-collapse-summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.92rem;
  color: rgba(241, 245, 249, 0.96);
  background: rgba(30, 41, 59, 0.55);
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vmix-collapse > .vmix-collapse-summary::-webkit-details-marker {
  display: none;
}

.vmix-collapse > .vmix-collapse-summary::after {
  content: '';
  width: 0.45em;
  height: 0.45em;
  border-right: 2px solid rgba(226, 232, 240, 0.45);
  border-bottom: 2px solid rgba(226, 232, 240, 0.45);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-top: -0.2em;
}

.vmix-collapse[open] > .vmix-collapse-summary::after {
  transform: rotate(-135deg);
  margin-top: 0.15em;
}

.vmix-collapse-body {
  padding: 16px 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.vmix-collapse-body .vmix-sync-row:first-child {
  margin-top: 0;
}

.vmix-collapse-body .vmix-http-api-block,
.vmix-collapse-body .vmix-broadcast-block,
.vmix-collapse-body .vmix-title-block {
  margin: 0;
}

.vmix-collapse-body .vmix-url-list {
  gap: 10px;
}

.vmix-sync-row--compact {
  margin-bottom: 12px;
}

.vmix-card-details {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
  margin-bottom: 10px;
  overflow: hidden;
}

.vmix-card-details:last-child {
  margin-bottom: 0;
}

.vmix-card-details > .vmix-card-details-summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(203, 213, 225, 0.95);
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.vmix-card-details > .vmix-card-details-summary::-webkit-details-marker {
  display: none;
}

.vmix-card-details > .vmix-card-details-summary::after {
  content: '';
  width: 0.35em;
  height: 0.35em;
  border-right: 2px solid rgba(148, 163, 184, 0.55);
  border-bottom: 2px solid rgba(148, 163, 184, 0.55);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.vmix-card-details[open] > .vmix-card-details-summary::after {
  transform: rotate(-135deg);
}

.vmix-card-details-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.vmix-card-details-body .vmix-color-pick {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.vmix-card-details-body .vmix-color-manual {
  margin-top: 4px;
  padding-top: 12px;
}

.vmix-url-hint-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.88);
  flex-shrink: 0;
}

.vmix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.vmix-card {
  padding: 22px;
  background: rgba(0, 0, 0, 0.28);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-strong);
}

.vmix-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.vmix-tricode {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.1em;
}

.vmix-team-name {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.vmix-colors {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vmix-color-item .vmix-color-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vmix-color-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.vmix-color-hex {
  font-family: 'Consolas', monospace;
  font-size: 1rem;
  color: #fff;
}

.vmix-color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.vmix-color-pick {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.vmix-pick-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vmix-pick-item label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.vmix-select {
  padding: 8px 12px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  color: #f1f5f9;
  font-size: 0.9rem;
  color-scheme: dark;
}

.vmix-select option {
  background: #1e293b;
  color: #f1f5f9;
}

.vmix-select:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
}

.vmix-color-manual {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vmix-color-manual-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.vmix-color-manual-hint {
  font-size: 0.7rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 4px;
}

.vmix-manual-block {
  margin-top: 8px;
}

.vmix-manual-block--hidden {
  display: none;
}

.vmix-override-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.vmix-override-label {
  flex: 0 0 72px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

.vmix-input-color {
  width: 40px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
}

.vmix-input-color::-webkit-color-swatch-wrapper {
  padding: 2px;
}

.vmix-input-color::-webkit-color-swatch {
  border-radius: 4px;
  border: none;
}

.vmix-hex-input {
  flex: 1;
  min-width: 88px;
  max-width: 120px;
  padding: 6px 10px;
  font-family: 'Consolas', monospace;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #e2e8f0;
}

.vmix-hex-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.vmix-hex-input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
}

.vmix-btn-override-clear {
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  cursor: pointer;
}

.vmix-btn-override-clear:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.vmix-sync-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.vmix-sync-row .vmix-btn-sync {
  align-self: flex-start;
}

.vmix-sync-feedback {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  min-height: 24px;
}

.vmix-sync-feedback.vmix-feedback-ok {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.vmix-sync-feedback.vmix-feedback-err {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.vmix-sync-feedback.vmix-feedback-warn {
  background: rgba(234, 179, 8, 0.2);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #fde047;
}

.vmix-btn-copy {
  align-self: flex-start;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
}

.vmix-btn-copy:hover {
  background: rgba(255, 255, 255, 0.15);
}

.vmix-url-hint {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.vmix-url-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.vmix-url-btn {
  padding: 6px 12px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #e2e8f0;
  cursor: pointer;
}

.vmix-url-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.vmix-url-btn.vmix-url-btn-active {
  background: rgba(34, 197, 94, 0.25);
  border-color: rgba(34, 197, 94, 0.5);
}

.vmix-url-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.vmix-url-field label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.vmix-url-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #fff;
  font-size: 0.9rem;
  font-family: 'Consolas', monospace;
}

.vmix-url-input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
}

.vmix-btn-sync {
  padding: 12px 24px;
  background: #22c55e;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.vmix-btn-sync:hover {
  background: #16a34a;
}

.vmix-broadcast-block {
  margin: 16px 0 20px;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.55);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.vmix-broadcast-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(241, 245, 249, 0.98);
}

.vmix-broadcast-hint {
  margin: 0 0 12px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(148, 163, 184, 0.95);
}

.vmix-broadcast-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vmix-broadcast-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(203, 213, 225, 0.98);
}

.vmix-broadcast-field input {
  padding: 8px 11px;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
}

.vmix-broadcast-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 12px;
}

.vmix-broadcast-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.95);
  cursor: pointer;
}

.vmix-broadcast-check input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.vmix-kickoff-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.vmix-kickoff-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.95);
}

.vmix-kickoff-input {
  padding: 8px 12px;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.85);
  color: #f1f5f9;
}

.vmix-kickoff-hint {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.95);
  flex: 1 1 200px;
  line-height: 1.35;
}

.vmix-kickoff-row--in-title {
  margin-top: 0;
  margin-bottom: 12px;
}

.vmix-native-cd-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 8px 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(199, 210, 254, 0.98);
  cursor: pointer;
}

.vmix-native-cd-label input {
  margin-top: 3px;
  flex-shrink: 0;
}

.vmix-native-cd-hint {
  margin: 0 0 12px 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.98);
}

.vmix-sync-row--hint {
  margin-bottom: 12px;
}

.vmix-sync-url {
  font-size: 0.85rem;
  font-family: 'Consolas', monospace;
  color: rgba(255, 255, 255, 0.7);
  word-break: break-all;
}

.vmix-overlays-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.vmix-url-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vmix-url-row {
  display: grid;
  grid-template-columns: minmax(9.5rem, 12rem) minmax(0, 1fr) auto auto minmax(14rem, min(22rem, 28vw));
  align-items: center;
  gap: 8px 10px;
}

.vmix-url-row--datasource {
  /* mesma grelha: coluna «Abrir» vazia alinhada */
}

.vmix-url-input-inline {
  min-width: 0;
  width: 100%;
  padding: 8px 12px;
  font-size: 0.85rem;
}

.vmix-url-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  min-width: 0;
  line-height: 1.25;
  word-break: break-word;
}

.vmix-url-col-copy,
.vmix-url-col-open {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
}

.vmix-url-col-open--empty {
  visibility: hidden;
  pointer-events: none;
  width: 3.5rem;
  height: 1px;
}

.vmix-url-row .vmix-channel-wrap,
.vmix-url-row .vmix-channel-na {
  min-width: 0;
  justify-self: stretch;
}

@media (max-width: 720px) {
  .vmix-url-row {
    grid-template-columns: minmax(5.5rem, 8.5rem) minmax(0, 1fr) auto auto minmax(11rem, 34vw);
    gap: 6px 6px;
  }
}

.vmix-url-row--countdown {
  border-bottom: none;
  box-shadow: none;
  padding-top: 12px;
  padding-bottom: 14px;
  min-height: 58px;
}

.vmix-url-row--countdown .vmix-url-input-inline {
  padding: 11px 14px;
  font-size: 0.88rem;
}

.vmix-url-row--countdown .vmix-channel-wrap .vmix-channel-input,
.vmix-url-row--countdown .vmix-channel-wrap .vmix-channel-select {
  padding: 9px 8px;
  min-height: 40px;
  font-size: 0.95rem;
}

.vmix-btn-copy-inline {
  padding: 6px 14px;
  font-size: 0.85rem;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 6px;
  color: #86efac;
  cursor: pointer;
}

.vmix-btn-copy-inline:hover {
  background: rgba(34, 197, 94, 0.3);
}

.vmix-link-inline {
  padding: 6px 12px;
  font-size: 0.85rem;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 6px;
  color: #93c5fd;
  text-decoration: none;
}

.vmix-link-inline:hover {
  background: rgba(59, 130, 246, 0.35);
}

.vmix-http-api-block {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
}

.vmix-http-api-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.95);
  margin: 0 0 10px 0;
}

.vmix-http-api-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.vmix-http-api-label {
  font-size: 0.82rem;
  color: rgba(203, 213, 225, 0.9);
}

.vmix-http-api-url {
  flex: 1;
  min-width: 220px;
  max-width: 420px;
  padding: 8px 12px;
  font-size: 0.85rem;
}

.vmix-http-api-password {
  width: 140px;
  padding: 8px 12px;
  font-size: 0.85rem;
}

.vmix-wc-hints {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vmix-wc-hints-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.vmix-wc-hint-btn {
  padding: 6px 11px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.4);
  border-radius: 6px;
  color: #bfdbfe;
  cursor: pointer;
  font-family: ui-monospace, 'Consolas', monospace;
}

.vmix-wc-hint-btn:hover {
  background: rgba(59, 130, 246, 0.32);
  color: #e0f2fe;
}

.vmix-wc-status {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  line-height: 1.4;
  max-width: min(520px, 100%);
  white-space: normal;
  word-break: break-word;
}

.vmix-wc-status--idle {
  display: none;
}

.vmix-wc-status--ok {
  display: inline-block;
  background: rgba(34, 197, 94, 0.22);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #bbf7d0;
}

.vmix-wc-status--err {
  display: inline-block;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.vmix-gt-fields-hint {
  font-size: 0.8rem;
  margin: 0 0 10px 0;
  line-height: 1.4;
  color: rgba(186, 230, 253, 0.92);
  min-height: 1.2em;
}

.vmix-title-input-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.vmix-btn-gt-refresh {
  flex: 0 0 auto;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid rgba(129, 140, 248, 0.45);
  background: rgba(67, 56, 202, 0.25);
  color: #c7d2fe;
  cursor: pointer;
}

.vmix-btn-gt-refresh:hover {
  background: rgba(79, 70, 229, 0.38);
}

.vmix-http-api-hint {
  margin-top: 10px;
  margin-bottom: 0;
}

.vmix-title-block {
  margin-bottom: 18px;
  padding: 14px 16px;
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: 10px;
}

.vmix-title-block-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(199, 210, 254, 0.98);
  margin: 0 0 8px 0;
}

.vmix-title-block-hint {
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.45;
}

.vmix-title-block-hint code {
  font-size: 0.78rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
}

.vmix-title-grid {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 72px minmax(140px, 1.4fr);
  gap: 8px 12px;
  align-items: center;
  font-size: 0.82rem;
}

.vmix-title-col-h {
  font-weight: 600;
  color: rgba(165, 180, 252, 0.95);
  font-size: 0.78rem;
}

.vmix-title-row-label {
  color: rgba(226, 232, 240, 0.9);
}

.vmix-title-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  grid-column: 1 / -1;
  margin-bottom: 6px;
}

.vmix-title-field span {
  font-size: 0.78rem;
  color: rgba(199, 210, 254, 0.9);
}

.vmix-title-input-num {
  width: min(100%, 22rem);
  max-width: 100%;
}

.vmix-title-idx {
  width: 100%;
  padding: 6px 8px;
  font-size: 0.85rem;
  text-align: center;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.6);
  color: #f1f5f9;
}

.vmix-title-sel-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.vmix-title-preset {
  width: 100%;
  max-width: 100%;
  padding: 5px 8px;
  font-size: 0.74rem;
  border-radius: 6px;
  border: 1px solid rgba(129, 140, 248, 0.35);
  background: rgba(30, 27, 75, 0.45);
  color: #c7d2fe;
}

.vmix-title-sel {
  width: 100%;
  padding: 6px 8px;
  font-size: 0.8rem;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.45);
  color: #e2e8f0;
}

@media (max-width: 720px) {
  .vmix-title-grid {
    grid-template-columns: 1fr;
  }
  .vmix-title-col-h {
    display: none;
  }
}

.vmix-channel-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.vmix-channel-label {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.95);
  font-weight: 600;
}

.vmix-channel-input,
.vmix-channel-select {
  box-sizing: border-box;
  min-width: 7rem;
  width: min(12rem, 34vw);
  max-width: 100%;
  padding: 6px 8px;
  font-size: 0.85rem;
  text-align: left;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.6);
  color: #f1f5f9;
}

.vmix-channel-select {
  min-width: 10rem;
  width: min(18rem, 42vw);
  cursor: pointer;
  color-scheme: dark;
}

.vmix-channel-select option {
  background: #0f172a;
  color: #f1f5f9;
}

.vmix-channel-na {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(12rem, 34vw);
  font-size: 0.9rem;
  color: rgba(148, 163, 184, 0.7);
}

.vmix-url-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
}

.vmix-url-warn {
  color: rgba(251, 191, 36, 0.95);
  border-left: 3px solid rgba(251, 191, 36, 0.6);
  padding-left: 10px;
}

.home-escalacao {
  width: 100%;
}

/* Base escalação (compartilhado com overlay) */
.home-escalacao .escalacao-teams {
  display: flex;
  gap: 80px;
  justify-content: center;
  align-items: flex-start;
}

.home-escalacao .escalacao-team {
  flex: 1;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.home-escalacao .escalacao-team-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.home-escalacao .escalacao-team-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.home-escalacao .escalacao-coach {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.home-escalacao .escalacao-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-escalacao .escalacao-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-escalacao .escalacao-nome {
  flex: 1;
  min-width: 0;
  color: rgba(255, 255, 255, 0.95);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-escalacao .escalacao-item.escalacao-item--yellow .escalacao-nome {
  color: #eab308;
}
.home-escalacao .escalacao-item.escalacao-item--red .escalacao-nome {
  color: #ef4444;
}

.home-escalacao .escalacao-eventos {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  margin-left: 8px;
}

.home-escalacao .escalacao-eventos .escalacao-2y {
  font-size: 0.65em;
  vertical-align: middle;
}

/* Box broadcast da escalação na home */
.home-escalacao .escalacao-box {
  padding: 36px 48px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.home-escalacao .escalacao-teams {
  gap: 80px;
}

.home-escalacao .escalacao-team-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.home-escalacao .escalacao-section-title {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
  font-weight: 700;
}

.home-escalacao .escalacao-item {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid rgba(255, 255, 255, 0.2);
  font-size: 1rem;
}

.home-escalacao .escalacao-item.escalacao-sub {
  background: rgba(255, 255, 255, 0.02);
  border-left-color: rgba(255, 255, 255, 0.1);
}

.home-escalacao .escalacao-item.escalacao-subst {
  font-size: 0.9rem;
  padding: 6px 12px;
  background: rgba(59, 130, 246, 0.15);
  border-left-color: #3b82f6;
}

.home-escalacao .escalacao-num {
  min-width: 32px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
}

.home-escalacao .escalacao-pos {
  min-width: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.home-escalacao .escalacao-loading {
  text-align: center;
  padding: 60px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
}

.home-escalacao .escalacao-fallback {
  text-align: center;
  padding: 60px;
  color: rgba(255, 255, 255, 0.5);
}
