/* THE SALTY MAN · thesaltyman.shop · repo web · public/assets/css/live.css · 2026-11-22
   Page layout for public/live.html (full "กำลังฟาร์ม" page): head, game filters, Anime Adventures now-playing row,
   rich empty state, bottom CTA. Cards, bars and the blocky avatar reuse the .live-* rules in style.css. */

.live-main { padding: 18px 0 56px; display: grid; gap: 16px; }
.topbar-title { font-weight: 600; color: var(--heading); margin-left: 4px; white-space: nowrap; }

.live-head { display: grid; gap: 6px; margin-bottom: 16px; }
.live-head h1 { font-style: italic; font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 2.4rem); color: #fff; text-shadow: 0 3px 0 rgb(10 21 56 / 60%); }
.live-head p { color: var(--on-blue-muted); max-width: 62ch; }

/* more room per card than the homepage preview: the now-playing row needs it */
.live-page .live-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); }
.live-page .live-summary { margin-top: 0; }

.live-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.live-filter {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border-radius: 999px;
  background: rgb(255 255 255 / 12%); border: 1px solid rgb(255 255 255 / 32%); color: #fff; font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.live-filter:hover { background: rgb(255 255 255 / 22%); }
.live-filter[aria-pressed="true"] { background: #fff; border-color: #fff; color: #10265c; }
.live-filter-n { min-width: 1.6em; padding: 0 6px; border-radius: 999px; background: rgb(10 21 56 / 35%); font-size: .82rem; text-align: center; font-variant-numeric: tabular-nums; }
.live-filter[aria-pressed="true"] .live-filter-n { background: #dbe6ff; color: #10265c; }

/* state tabs: an underlined row, so it does not read as a second set of game pills */
.live-states { display: flex; gap: 4px 18px; flex-wrap: wrap; margin: 0 0 14px; border-bottom: 1px solid rgb(255 255 255 / 22%); }
.live-state { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 4px 2px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; background: none; color: var(--on-blue-muted); font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; }
.live-state:hover { color: #fff; }
.live-state[aria-pressed="true"] { color: #fff; border-bottom-color: var(--gold); }
.live-state-n { font-variant-numeric: tabular-nums; opacity: .8; }
.live-page button.live-more { display: block; margin: 16px auto 0; }

.live-now { display: flex; align-items: center; gap: 8px; margin-top: 4px; min-width: 0; }
.live-now-stage { width: 64px; height: 36px; flex: none; border-radius: 6px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); }
.live-now-info { display: grid; gap: 1px; min-width: 0; font-size: .86rem; line-height: 1.35; }
.live-now-label { display: inline-flex; align-items: center; gap: 5px; min-width: 0; font-weight: 600; color: var(--text); }
.live-now-label span { overflow-wrap: anywhere; }
/* Mode icons are drawn for dark game UI (Infinite is a white glyph): always on a navy chip so they read on light cards. */
.live-now-mode { width: 20px; height: 20px; flex: none; padding: 2px; border-radius: 5px; background: #10265c; box-sizing: border-box; }
.live-now-wave { color: var(--action); font-weight: 600; font-variant-numeric: tabular-nums; }
.live-now.is-idle { font-size: .86rem; color: var(--muted); }

a.live-card.is-link:focus-visible { outline-offset: 3px; }

.live-empty-full { grid-template-columns: 120px minmax(0, 1fr); gap: 22px; padding: clamp(18px, 3vw, 28px); }
.live-empty-full h2 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 800; color: var(--heading); }
.live-empty-full .live-empty-copy { gap: 10px; }
.live-empty-full .live-avatar .rbx { width: 84px; height: 112px; }
.live-checked { font-size: .88rem; color: var(--muted); }
.live-empty-full .live-actions { margin-top: 4px; }

.live-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.live-cta h2 { font-style: italic; font-weight: 800; font-size: clamp(1.25rem, 2.6vw, 1.7rem); color: var(--heading); }
.live-cta p { margin-top: 2px; }

:root[data-theme="dark"] .live-now-stage { border-color: var(--line); filter: saturate(.92) brightness(.95); }

@media (max-width: 640px) {
  .topbar-title { display: none; }
}
@media (max-width: 479px) {
  .live-empty-full { grid-template-columns: 1fr; justify-items: start; }
  .live-empty-full .live-avatar { width: 96px; }
  .live-empty-full .live-actions .btn, .live-cta .btn { width: 100%; }
  .live-cta { align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .live-filter { transition: none; }
}
