/* player.css — estilo do player embutível. Consome só tokens semânticos de base.css. */

html, body { height: 100%; }
body { background: #000; overflow: hidden; }

.player { position: relative; height: 100%; display: flex; flex-direction: column; }

/* palco ocupa tudo; vídeo sempre inteiro (letterbox), nunca cortado */
.stage { position: relative; flex: 1; min-height: 0; background: #000; }
.stage > video { width: 100%; height: 100%; object-fit: contain; background: #000; }

/* barra sobreposta: gradiente para legibilidade sobre qualquer quadro */
.bar {
  position: absolute; inset: 0 0 auto 0; z-index: 2;
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(rgba(0, 0, 0, .75), rgba(0, 0, 0, 0));
  color: #fff; transition: opacity var(--dur);
}
.title { margin: 0; flex: 1; font-size: var(--step-0); font-weight: 600; line-height: 1.3; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
/* tocando: some a barra, volta com foco (D-pad) ou mouse por cima */
.player.playing .bar { opacity: 0; pointer-events: none; }
.player.playing:hover .bar, .player.playing:focus-within .bar { opacity: 1; pointer-events: auto; }

.fs {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--hit); height: var(--hit); flex: none;
  background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px; color: #fff; cursor: pointer;
}
.fs:hover { background: rgba(255, 255, 255, .3); }
.fs svg { width: 60%; height: 60%; }

/* pôster: cobre o vídeo até o play; gradiente muda com a estação */
.poster {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3);
  width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer;
  color: var(--accent-soft);
  background:
    radial-gradient(ellipse at 30% 20%, var(--accent-soft) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 90%, var(--accent) 0%, transparent 55%),
    var(--c-ink-950);
}
.poster-icon { width: clamp(3.5rem, 18%, 8rem); height: auto; transition: transform var(--dur); }
.poster:hover .poster-icon, .poster:focus-visible .poster-icon { transform: scale(1.08); }
.poster-label {
  font-size: var(--step-1); font-weight: 700; color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}
/* foco do pôster fica por dentro (o botão ocupa o iframe inteiro) */
.poster:focus-visible { outline-offset: -.5rem; border-radius: 0; }

/* aviso (nome inválido / falha de rede) */
.notice { position: absolute; inset: 0; z-index: 3; overflow: auto; padding: var(--space-6); background: var(--bg); color: var(--fg); }
.notice-title { margin: 0 0 var(--space-2); font-size: var(--step-1); color: var(--accent-text); }
.notice-text { margin: 0 0 var(--space-4); color: var(--fg-2); }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.list a {
  display: flex; align-items: center; min-height: var(--hit); padding: var(--space-2) var(--space-4);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--fg); text-decoration: none;
}
.list a:hover { border-color: var(--accent); }

/* TV: barra maior, sempre visível quando algo está focado (já coberto por :focus-within) */
[data-input="tv"] .title { font-size: var(--step-1); }

/* tela cheia: sem cantos, tudo preto */
.player:fullscreen, .player:-webkit-full-screen { background: #000; }
