/* padelcounter.com/live/ — "Live now" (tokens, top bar and buttons come from channel.css) */
body.now-page { overflow: auto; overflow-x: hidden; }

.topbar-nav { display: flex; gap: 4px; margin-inline-start: 18px; }
.topbar-link {
  height: 34px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 8px;
  font-weight: 700; font-size: 14px; color: var(--muted); text-decoration: none;
}
.topbar-link:hover { color: var(--text); background: rgba(255,255,255,.05); }
.topbar-link.is-on { color: var(--text); }
.topbar-link.is-on::after { content: ""; display: block; }

.now { max-width: 1680px; margin: 0 auto; padding: 28px 28px 48px; }
.now-head { margin-bottom: 20px; }
.now-title-row { display: flex; align-items: center; gap: 14px; }
.now-head h1 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.025em; }
.now-count {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: var(--live-soft); color: #ff8094; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums;
}
.now-sub { margin: 6px 0 16px; color: var(--muted); font-size: 15px; max-width: 720px; }
.now-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 34px; padding: 0 14px; border: 0; border-radius: 999px;
  background: var(--surface-3); color: var(--text); font-weight: 650; font-size: 13.5px;
  transition: background .15s, color .15s;
}
.chip:hover { background: var(--surface-4); }
.chip.is-on { background: var(--text); color: var(--bg); }
.chip:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* Grid of live cards */
.now-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 18px; }
.card { display: block; color: inherit; text-decoration: none; min-width: 0; }
.card .thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px;
  background: #0b1020; transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.card:hover .thumb, .card:focus-visible .thumb { transform: translate(6px, -6px); box-shadow: -6px 6px 0 var(--lime); }
.card:focus-visible { outline: none; }
.card .thumb img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.thumb-badge {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  background: var(--live); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .06em;
  padding: 2px 6px; border-radius: 4px;
}
.thumb-viewers, .thumb-time {
  position: absolute; bottom: 10px; z-index: 2;
  background: rgba(0,0,0,.72); color: #fff; font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums;
  padding: 2px 7px; border-radius: 4px;
}
.thumb-viewers { left: 10px; }
.thumb-viewers::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--live); margin-inline-end: 6px; vertical-align: 1px; }
.thumb-time { right: 10px; }
.thumb-sounds {
  position: absolute; right: 10px; top: 10px; z-index: 2;
  background: rgba(0,0,0,.72); color: var(--lime); font-size: 12px; font-weight: 700;
  padding: 2px 7px; border-radius: 4px;
}

/* A live score instead of a video picture */
.tile-score {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 8%;
  background: linear-gradient(180deg, rgba(8,10,16,.35), rgba(8,10,16,.75)), url('/resources/site/img/film-court.webp') center 60% / cover;
}
.tile-score .sb { box-shadow: 0 16px 40px rgba(0,0,0,.45); direction: ltr; }
.tile-score .sb td { height: clamp(28px, 3.2vw, 40px); font-size: clamp(16px, 1.9vw, 24px); padding: 0 8px; }
.tile-score .sb .sb-name { font-size: clamp(13px, 1.4vw, 17px); }
.tile-score .sb .sb-set { width: 28px; }
.tile-score .sb .sb-pts { width: 46px; font-size: clamp(16px, 1.9vw, 24px); }
.tile-score .sb .sb-pts small { font-size: 11px; vertical-align: 7px; }
.tile-waiting { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-weight: 650; font-size: 13px; }
.tile-waiting .avatar { width: 64px; height: 64px; font-size: 24px; box-shadow: 0 0 0 3px var(--live); }

.card-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding-top: 10px; }
.card-meta .avatar { width: 40px; height: 40px; font-size: 15px; }
.card-title { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card:hover .card-title { color: var(--lime); }
.card-name { color: var(--muted); font-size: 13.5px; display: flex; align-items: center; gap: 6px; min-width: 0; }
.card-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* Loading */
.card-skeleton .thumb, .card-skeleton .card-meta i { background: linear-gradient(110deg, #141821 30%, #1c212c 50%, #141821 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.card-skeleton .card-meta { grid-template-columns: 1fr; gap: 8px; }
.card-skeleton .card-meta i { display: block; height: 12px; border-radius: 6px; }
.card-skeleton .card-meta i:last-child { width: 60%; }
body:not(.is-loading) .card-skeleton { display: none; }

/* Nobody live */
.now-empty { text-align: center; padding: 64px 16px; max-width: 560px; margin: 0 auto; }
.now-empty-art { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.now-empty-art .dot-live { width: 14px; height: 14px; background: var(--dim); animation: none; }
.now-empty h2 { margin: 0 0 6px; font-size: 22px; }
.now-empty p { margin: 0 0 18px; color: var(--muted); }
.now-note { margin: 40px 0 0; color: var(--dim); font-size: 12.5px; text-align: center; }

@media (max-width: 900px) {
  .now { padding: 18px 16px 36px; }
  .topbar-nav { margin-inline-start: 4px; }
  .topbar-link { padding: 0 8px; font-size: 13.5px; }
  .now-grid { grid-template-columns: 1fr; gap: 22px; }
  .card:hover .thumb { transform: none; box-shadow: none; }
}
@media (min-width: 600px) and (max-width: 900px) { .now-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .brand-name { display: none; } }
