/*
 * The channel page when nobody is on.
 *
 * Built from the same tokens as everything else rather than the reference
 * design's own palette and webfonts. The design's green is within a shade of
 * --toxic and its gold within a shade of --signal, so the identity survives the
 * translation; the faces do not travel, and tokens.css says why in as many
 * words: a webfont that fails to load takes the identity with it.
 */

.off {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  overflow: hidden;
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
}

/* ---------------- the stage ---------------- */

.off-stage {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  /* Dead air, drawn: a dot grid with the middle lifted out of the dark. */
  background-color: var(--void);
  background-image: radial-gradient(rgba(250, 250, 250, .028) 1px, transparent 1px);
  background-size: 5px 5px;
}

.off-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(760px 420px at 50% 45%, transparent 30%, rgba(0, 0, 0, .8));
  pointer-events: none;
}

.off-stage > * { position: relative; z-index: 1; }

.off-mark { position: relative; width: 104px; height: 104px; margin-bottom: 10px; }

.off-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 2px solid var(--line-hard);
  background: linear-gradient(135deg, var(--raised), var(--card));
  background-size: cover;
  background-position: center;
  font-size: 38px;
  font-weight: 800;
  color: var(--faint);
}

.off-tag {
  position: absolute;
  right: -6px;
  bottom: 2px;
  padding: 4px 8px;
  border: 2px solid var(--card);
  border-radius: var(--r-xs);
  background: var(--raised);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
}

.off-title {
  margin: 0;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.off-sub { margin: 0; color: var(--muted); font-size: 15px; }

.off-cta { margin-top: 12px; }
.off-cta .btn-follow { padding: 12px 26px; border-radius: var(--r-pill); }

/* ---------------- the bar ---------------- */

.off-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
}

.off-handle { display: block; font-size: 19px; font-weight: 800; text-transform: uppercase; }
.off-meta { display: block; margin-top: 3px; font-size: 11px; letter-spacing: .1em; color: var(--muted); }

.off-stats { display: flex; gap: 26px; flex-wrap: wrap; }
.off-stat b {
  display: block;
  font-size: 22px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.off-stat b.is-signal { color: var(--signal); }
.off-stat span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--faint);
}

/* ---------------- the body ---------------- */

.off-body { display: grid; grid-template-columns: 2fr 1fr; }
.off-main { padding: 24px 26px; border-right: 1px solid var(--line); min-width: 0; }
.off-side { padding: 24px 26px; min-width: 0; }

.off-kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--faint);
}

.off-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.off-vod {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--raised);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: border-color .12s ease, transform .12s ease;
}

.off-vod:hover { border-color: var(--signal-edge); transform: translateY(-2px); }
.off-vod .shot { position: relative; aspect-ratio: 16 / 9; background: var(--void); overflow: hidden; }
.off-vod .shot img, .off-vod .shot svg { width: 100%; height: 100%; object-fit: cover; display: block; }

.off-vod .len {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 2px 6px;
  border-radius: var(--r-xs);
  background: rgba(0, 0, 0, .72);
  font-family: var(--mono);
  font-size: 10px;
}

.off-vod .meta { padding: 11px 12px; }
.off-vod .meta b { display: block; font-size: 12.5px; font-weight: 700; }
.off-vod .meta span { display: block; margin-top: 3px; font-size: 10.5px; color: var(--faint); }

.off-live { display: flex; flex-direction: column; gap: 9px; }

.off-live a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--raised);
  color: inherit;
  text-decoration: none;
  transition: border-color .12s ease;
}

.off-live a:hover { border-color: var(--signal-edge); }

.off-live .pic {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  background: var(--card) center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.off-live .who { flex: 1; min-width: 0; }
.off-live .who b { display: block; font-size: 12.5px; font-weight: 700; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.off-live .who span { display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted); }

.off-live .count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  color: var(--live);
}
.off-live .count i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  animation: offBlink 1.2s ease infinite;
}

.off-empty { margin: 0; font-size: 12px; color: var(--faint); }

@keyframes offBlink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

@media (max-width: 900px) {
  .off-body { grid-template-columns: 1fr; }
  .off-main { border-right: 0; border-bottom: 1px solid var(--line); }
  .off-grid { grid-template-columns: repeat(2, 1fr); }
  .off-title { font-size: 26px; }
  .off-stage { min-height: 320px; padding: 36px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .off-live .count i { animation: none; }
  .off-vod { transition: none; }
}

/* ---------------- the next stream ---------------- */

.off-next {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 22px;
  border: 1px solid var(--signal-edge);
  border-radius: var(--r-pill);
  background: var(--signal-dim);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--signal);
}

.off-next i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px var(--signal);
  animation: offBlink 1.2s ease infinite;
}

/* ---------------- the week ---------------- */

.off-side { display: flex; flex-direction: column; gap: 22px; }
.off-week { display: flex; flex-direction: column; gap: 10px; }

.off-week .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--raised);
}

.off-week .row b { display: block; font-size: 13px; font-weight: 800; letter-spacing: .06em; }
.off-week .row span { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.off-week .row .at { font-family: var(--mono); font-size: 12px; color: var(--signal); }

@media (prefers-reduced-motion: reduce) { .off-next i { animation: none; } }

/* A stated replay is not a link: there is no recording behind it to open. */
.off-vod.is-stated { cursor: default; }
.off-vod.is-stated:hover { border-color: var(--line); transform: none; }
.off-vod .shot { display: block; }

/*
 * Artwork for a stated replay.
 *
 * There is no recording behind these, so there is no frame to pull a still
 * from. The design fills each tile with a soft radial wash instead of a black
 * rectangle, and cycling four of them stops a row reading as one flat block.
 */
.off-vod.is-stated .shot {
  background: radial-gradient(120px 70px at 50% 50%, #16231b, var(--void));
}
.off-vod.is-stated:nth-child(4n+2) .shot {
  background: radial-gradient(120px 70px at 50% 50%, #241014, var(--void));
}
.off-vod.is-stated:nth-child(4n+3) .shot {
  background: radial-gradient(120px 70px at 50% 50%, #221a08, var(--void));
}
.off-vod.is-stated:nth-child(4n+4) .shot {
  background: radial-gradient(120px 70px at 50% 50%, #12121a, var(--void));
}
