/* Kino prototype: « Regarder ensemble » (together.js). Theme tokens only, so all four themes follow. */

/* ---------- Home page: sessions in progress ---------- */

.together-banner { display: grid; gap: 8px; margin: 0 0 20px; }
.together-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 16px; border: 1px solid var(--accent); border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}
.together-dot {
  flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
  animation: together-pulse 1.6s ease-in-out infinite;
}
.together-text { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.together-text .muted { font-size: 13px; }
@keyframes together-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .together-dot { animation: none; } }

/* ---------- Messages ---------- */

.together-toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 2000; margin: 0;
  max-width: min(90vw, 520px); padding: 12px 18px; border-radius: 8px;
  background: var(--fg); color: var(--bg); font-size: 15px; box-shadow: 0 8px 30px rgb(0 0 0 / .35);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.together-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------- In the player's top bar ---------- */

.player-group {
  margin-left: auto; flex: none; display: flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 14px; border: 1px solid var(--pl-accent, var(--accent)); border-radius: 999px;
  background: rgb(0 0 0 / .45); font-size: 14px;
}
.player-group-label { white-space: nowrap; }
.player-group-leave {
  padding: 6px 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--pl-accent, var(--accent)); color: var(--pl-accent-fg, var(--accent-fg)); font: inherit; font-weight: 600;
}
.player-group-leave:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* The film page button. */
.together-start[aria-busy='true'] { opacity: .7; cursor: progress; }

@media (max-width: 760px) {
  .player-group { font-size: 13px; padding-left: 10px; }
  .player-group-label { max-width: 40vw; overflow: hidden; text-overflow: ellipsis; }
}
