/* Assistir à partida (v0.227): janela do administrador com o vídeo do jogador (ui/watch-view.js), botão na lista de online
   e o cursor "TATAS" sobre o campo do jogador assistido (ui/watch-cursor.js). Matte como o Painel de Deus. */

.online-row.has-watch {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto auto;
}

.online-watch {
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-13);
  cursor: pointer;
}

.online-watch:hover {
  background: var(--surface-3);
}

.online-watch:focus-visible,
.watch-stop:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.watch-view {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-4);
  background: rgba(6, 7, 10, 0.82);
}

.watch-view.hidden {
  display: none;
}

.watch-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  width: min(1100px, 100%);
  max-height: 100%;
  padding: var(--s-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background: var(--surface-1);
  box-shadow: var(--shadow-modal);
  color: var(--text);
}

.watch-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
}

.watch-title {
  margin: 0;
  font-size: var(--fs-16);
  font-weight: 400;
}

.watch-hud {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: var(--fs-13);
  color: var(--text-2);
}

.watch-stop {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-13);
  cursor: pointer;
}

.watch-stop:hover {
  background: var(--surface-3);
}

.watch-stage {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 9;
  max-height: calc(100dvh - 190px);
  border-radius: var(--radius-m);
  background: #000;
  overflow: hidden;
}

.watch-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: none;
}

.watch-status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: var(--s-4);
  text-align: center;
  color: var(--text-2);
  background: rgba(6, 7, 10, 0.6);
  pointer-events: none;
}

.watch-status[hidden] {
  display: none;
}

.watch-note {
  margin: 0;
  font-size: var(--fs-12);
  color: var(--text-2);
}

/* Cursor do administrador na tela do jogador: seta dourada com a etiqueta, por cima de tudo e sem pegar clique. */
.watch-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9500;
  pointer-events: none;
  will-change: transform;
}

.watch-cursor.hidden {
  display: none;
}

.watch-cursor-arrow {
  display: block;
  width: 20px;
  height: 30px;
  fill: #FFC94D;
  stroke: #0E1015;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.watch-cursor-label {
  position: absolute;
  left: 14px;
  top: 26px;
  padding: 1px 7px;
  border-radius: 3px;
  background: #FFC94D;
  color: #0E1015;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .online-row.has-watch {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .online-row.has-watch .online-watch {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}
