/* Group live sessions (web_groups.py). Loaded only on their pages. (The gift rules went with the gifts feature, W25.)
   Tokens from brand/brand.css; no inline styles (CSP style-src 'self'). Phone-first. */

/* ---- forms ---- */
.live-form fieldset { border: 1px solid var(--line); min-width: 0; }
.live-form legend { padding: 0 4px; }
.live-form legend h2 { margin: 0; }
.live-form label { margin-top: 12px; }
.live-form input[type=email], .live-form input[type=number], .live-form input[type=datetime-local],
.live-form input[type=time], .live-form input[type=date] {
  width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg);
  color: var(--text); font: inherit; min-height: 44px; }

/* ---- live sessions ---- */
.live-hero { display: grid; gap: 12px; }
.live-art { width: 100%; height: auto; border-radius: var(--radius-card); aspect-ratio: 16 / 9; object-fit: cover; max-height: 200px; }
/* 2026-10-13 (Gergo: "huge image"): a modest banner on phones; beside the title on wider screens */
@media (min-width: 720px) {
  .live-hero { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 24px; align-items: center; }
  .live-hero > .notice { grid-column: 1 / -1; }
  .live-art { aspect-ratio: 4 / 3; max-height: none; }
}
.live-when { font-size: 1.1rem; font-weight: 600; margin: 0; }
.live-countdown { font-size: clamp(2rem, 9vw, 3rem); font-variant-numeric: tabular-nums; font-weight: 600; margin: 8px 0; letter-spacing: .02em; }
.live-status { display: inline-flex; gap: 8px; align-items: center; padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: .9rem; }
.live-status.is-live::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #c0392b; }
@media (prefers-reduced-motion: no-preference) { .live-status.is-live::before { animation: live-pulse 1.6s infinite; } }
@keyframes live-pulse { 50% { opacity: .35; } }
.live-counter { color: var(--muted); font-variant-numeric: tabular-nums; }
.live-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.live-actions > * { flex: 1 1 200px; }
.live-actions form { display: flex; } .live-actions form .btn, .live-actions form button { flex: 1; }
.live-player { margin: 16px 0; padding: 16px; border-radius: var(--radius-card); background: var(--surface-2); }
.live-player progress { width: 100%; height: 8px; }
.live-player .live-time { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9rem; }
.live-note { white-space: pre-line; overflow-wrap: break-word; }
.live-steer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; padding-top: 12px; border-top: 1px solid var(--border, rgba(127,127,127,.25)); }
.live-steer p { flex: 1 1 100%; margin: 0; overflow-wrap: break-word; }
.live-steer form { display: flex; flex: 1 1 160px; } .live-steer .btn { flex: 1; }
.live-list { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.live-list .card { margin: 0; }
.wall { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.wall li { padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); overflow-wrap: break-word; }
.wall .who { font-weight: 600; font-size: .9rem; color: var(--muted); }
.wall .text { margin: 4px 0; white-space: pre-line; }
.wall form { display: inline; }
.wall button.link { min-height: 44px; padding: 8px 0; }
.crisis-box { border: 2px solid var(--glow); }
.crisis-lines { padding-left: 1.2em; } .crisis-lines li { margin: 4px 0; }
.mod-table { width: 100%; border-collapse: collapse; }
.mod-item { border-top: 1px solid var(--line); padding: 10px 0; }
.mod-item .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mod-item .actions form { display: inline; }

@media (max-width: 760px) {
  .live-form input, .live-form select, .live-form textarea { font-size: 16px; }
}
.live-form + .wall, #wall .live-form { margin-bottom: 16px; }

/* lobby chat (live.html, lobby.js) */
.lobby-log { list-style: none; padding: 0; margin: 0 0 12px; max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.lobby-log li { padding: 6px 10px; border-radius: 8px; background: var(--surface); overflow-wrap: anywhere; }
.lobby-log li.is-pending { opacity: .7; }
.lobby-log .who { font-weight: 600; }
.lobby-clip audio { display: block; width: 100%; max-width: 320px; height: 36px; margin-top: 4px; }
.lobby-row { display: flex; gap: 8px; align-items: flex-end; }
.lobby-row textarea { flex: 1; min-width: 0; }
.lobby-mic.is-recording { background: #d8473b; color: #fff; border-color: #d8473b; }
.host-line { display: flex; gap: 12px; align-items: flex-start; margin: 8px 0 14px; } .host-line p { margin: 0 0 2px; }
.host-mark, .host-avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; } .host-avatar { display: grid; place-items: center; background: var(--accent-fill); color: var(--accent-text); font-weight: 700; }
