/* =========================================================================
   StreamerCMS — public site
   Every colour here comes from a custom property emitted by app/theme.php,
   so the whole site re-skins from the admin colour pickers.
   ========================================================================= */

:root {
  --sb-w: 264px;
  --sb-w-collapsed: 76px;
  --sb: var(--sb-w);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 160ms var(--ease);
  --base: 200ms var(--ease);
}

html.is-collapsed { --sb: var(--sb-w-collapsed); }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); }

/* Class-based display rules below would otherwise beat the UA [hidden] rule. */
[hidden] { display: none !important; }

.icon { flex: none; display: block; }

/*
 * Material Symbols renders the icon name as a ligature, so the span's text
 * content is the name itself. If the font fails to load the name would show
 * as words — font-display: block on the Google request avoids that flash.
 */
.micon {
  font-family: "Material Symbols Outlined";
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

/* ------------------------------------------------------------- a11y ---- */

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--fast);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------------------------------------------------------- sidebar ---- */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  width: var(--sb);
  display: flex;
  flex-direction: column;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  transition: width var(--base), transform var(--base);
}

.sidebar__head {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 68px;
  padding: 0 14px;
  border-bottom: 1px solid var(--sidebar-border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  flex: 1;
  color: var(--sidebar-strong);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.brand__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--sidebar-border), 0 6px 18px -8px var(--accent-glow);
}
.brand__mark img { width: 100%; height: 100%; object-fit: cover; }
.brand__initial { font-weight: 800; font-size: 17px; line-height: 1; }

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.brand__text strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__text small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-on-side);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar__nav {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 12px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--sidebar-hover) transparent;
}
.sidebar__nav::-webkit-scrollbar { width: 8px; }
.sidebar__nav::-webkit-scrollbar-thumb {
  background: var(--sidebar-hover);
  border-radius: 99px;
}

.nav__label {
  margin: 18px 0 6px;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sidebar-muted);
}
.nav__label:first-child { margin-top: 4px; }

.nav__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

.nav__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--fast), color var(--fast);
}
.nav__item:hover { background: var(--sidebar-hover); color: var(--sidebar-strong); }

.nav__item.is-active {
  background: var(--accent-soft);
  color: var(--accent-on-side);
  font-weight: 600;
}
.nav__item.is-active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  translate: 0 -50%;
  width: 3px;
  height: 22px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}

.nav__icon { display: grid; place-items: center; width: 22px; flex: none; }

.nav__text {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity var(--fast);
}

.nav__ext { margin-left: auto; opacity: 0; transition: opacity var(--fast); }
.nav__item--social:hover .nav__ext { opacity: 0.55; }
.nav__item--social .nav__icon { opacity: 0.9; }

.sidebar__foot {
  padding: 10px 12px;
  border-top: 1px solid var(--sidebar-border);
}

.collapse-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--sidebar-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--fast), color var(--fast);
}
.collapse-btn:hover { background: var(--sidebar-hover); color: var(--sidebar-strong); }
.collapse-btn__icon {
  display: grid;
  place-items: center;
  width: 22px;
  flex: none;
  transition: rotate var(--base);
}

/* Specificity has to beat .icon-btn, which is declared further down. */
.sidebar .sidebar__close { display: none; color: var(--sidebar-text); }

/* ------------------------------------------------- collapsed sidebar --- */

html.is-collapsed .brand__text,
html.is-collapsed .nav__text,
html.is-collapsed .nav__ext {
  opacity: 0;
  width: 0;
  pointer-events: none;
}
html.is-collapsed .sidebar__head { justify-content: center; padding: 0 10px; }
html.is-collapsed .brand { justify-content: center; flex: none; }
html.is-collapsed .nav__item,
html.is-collapsed .collapse-btn { justify-content: center; padding: 0; }
html.is-collapsed .collapse-btn__icon { rotate: 180deg; }

html.is-collapsed .nav__label { padding: 0; text-align: center; }
html.is-collapsed .nav__label span {
  display: block;
  overflow: hidden;
  font-size: 9px;
  letter-spacing: 0.04em;
}

/* Tooltip for the icon rail. */
html.is-collapsed .nav__item[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  translate: 0 -50%;
  z-index: 70;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--fast);
}
html.is-collapsed .nav__item[data-tip]:hover::after,
html.is-collapsed .nav__item[data-tip]:focus-visible::after { opacity: 1; }

/* ----------------------------------------------------------- topbar ---- */

.topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 50;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 12px;
  background: var(--sidebar-bg);
  border-bottom: 1px solid var(--sidebar-border);
  color: var(--sidebar-text);
}
.topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--sidebar-strong);
  font-weight: 700;
  text-decoration: none;
}
/* The reset's `height: auto` outranks the img height attribute, so size it here. */
.topbar__brand img {
  height: 30px;
  width: auto;
  border-radius: 7px;
}
.topbar__brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: inherit;
  cursor: pointer;
  transition: background var(--fast);
}
.icon-btn:hover { background: var(--sidebar-hover); }

.scrim {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity var(--base);
}
.scrim.is-open { opacity: 1; }

/* ------------------------------------------------------------- main ---- */

.main {
  margin-left: var(--sb);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px clamp(16px, 3vw, 40px) 0;
  transition: margin var(--base);
}

/* ----------------------------------------------------------- player ---- */

.player {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-areas:
    "video chat"
    "bar   chat";
  margin-bottom: 34px;
}
.player--empty { grid-template-columns: 1fr; grid-template-areas: "video"; }
.player.is-chat-hidden {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "video" "bar";
}
.player.is-chat-hidden .player__chat { display: none; }

.player__video {
  grid-area: video;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.player__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player__chat {
  grid-area: chat;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-1);
}
.player__chat iframe { flex: 1; width: 100%; border: 0; min-height: 320px; }

.player__chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.player__chat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.player__bar {
  grid-area: bar;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* --------------------------------------------------------- controls ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--fast), border-color var(--fast), color var(--fast);
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:active { background: var(--accent-press); }
.btn--ghost {
  background: var(--surface-1);
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover { background: var(--surface-2); border-color: var(--border-strong); }

.chip {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--fast), color var(--fast);
}
.chip:hover { background: var(--surface-2); color: var(--text); }

/* ----------------------------------------------------------- prose ----- */

.prose { max-width: 76ch; margin: 0 0 40px; }
.prose--center { max-width: 46ch; margin: 60px auto; text-align: center; }
.prose--center .empty-card__icon { margin: 0 auto 6px; }

.prose h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.prose h2 {
  margin: 34px 0 12px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.015em;
}
.prose h3 { margin: 26px 0 10px; font-size: 18px; font-weight: 700; }
.prose p, .prose li { color: var(--text-muted); }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose img, .prose iframe { border-radius: var(--radius); margin: 8px 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.prose blockquote {
  margin: 0 0 16px;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
}
.prose pre {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  overflow-x: auto;
}
.prose code { font-size: 0.92em; }
.prose__empty { color: var(--text-dim); font-style: italic; }

.section-title {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ------------------------------------------------------ page layout ---- */

/*
 * Pages are a centred column: a centred header, then body copy that stays
 * left-aligned for readability but sits in the same centred measure.
 */
/*
 * .main is a flex column. An auto inline margin cancels the default stretch,
 * which would leave these blocks shrink-to-fit and ignoring max-width — so
 * every centred block sets width explicitly.
 */
.page-head,
.page-body,
.schedule,
.support,
.soon { width: 100%; }

.page-head {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) 0 clamp(24px, 3vw, 36px);
  text-align: center;
}
.page-head h1 {
  margin: 0;
  font-size: clamp(30px, 5.2vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.page-head__sub {
  max-width: 60ch;
  margin: 16px auto 0;
  color: var(--text-muted);
  font-size: clamp(16px, 1.9vw, 20px);
  line-height: 1.55;
}

.page-body {
  max-width: 720px;
  margin: 0 auto 48px;
}
.page-body > *:first-child { margin-top: 0; }

/* -------------------------------------------------------- schedule ----- */

.schedule {
  max-width: 760px;
  margin: 0 auto 52px;
}

.schedule__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.schedule__row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
  transition: border-color var(--fast), background var(--fast);
}
.schedule__row:hover { border-color: var(--border-strong); background: var(--surface-2); }

.schedule__day {
  flex: none;
  width: 88px;
  padding: 8px 4px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.schedule__body { min-width: 0; }
.schedule__title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.schedule__time {
  margin: 2px 0 0;
  color: var(--accent-text);
  font-size: 14.5px;
  font-weight: 600;
}
.schedule__notes {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.5;
}

@media (max-width: 520px) {
  .schedule__row { flex-direction: column; gap: 10px; }
  .schedule__day { width: auto; align-self: flex-start; padding: 6px 14px; }
}

/* --------------------------------------------------- support / donate -- */

.support {
  max-width: 1040px;
  margin: 0 auto 52px;
}

.support__head {
  margin-bottom: 22px;
  text-align: center;
}
.support__head p { margin-left: auto; margin-right: auto; }
.support__head h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.support__head p {
  margin: 0;
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 15px;
}

.support__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
}

.support__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  transition: border-color var(--fast), background var(--fast), translate var(--fast);
}
.support__card:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  translate: 0 -2px;
}
.support__card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.support__card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.support__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 2px;
  border-radius: var(--radius);
  background: var(--accent-softer);
  color: var(--accent-text);
}

/* Buttons sit on a shared baseline however long the descriptions run. */
.support__btn { margin-top: auto; align-self: flex-start; }

.soon {
  position: relative;
  max-width: 1040px;
  margin: 0 auto 52px;
  text-align: center;
  padding: clamp(26px, 4vw, 40px);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 0% 0%, var(--accent-softer), transparent 60%),
    var(--surface-1);
}
.soon__badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 11px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.soon h2 {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.soon p {
  margin: 0 auto;
  max-width: 64ch;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* -------------------------------------------------------- commands ----- */

.commands { margin-bottom: 44px; }

.commands__intro {
  margin: -6px 0 16px;
  color: var(--text-muted);
  font-size: 14.5px;
}

.commands__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.pill {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--surface-1);
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--fast), color var(--fast), border-color var(--fast);
}
.pill:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.pill.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.commands__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
}

.command {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
  transition: border-color var(--fast), background var(--fast);
}
.command:hover { border-color: var(--border-strong); background: var(--surface-2); }

.commands__none {
  margin: 18px 0 0;
  color: var(--text-dim);
  font-size: 14px;
}

.command__name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 4px);
  background: var(--accent-softer);
  color: var(--accent-text);
  font: inherit;
  cursor: pointer;
  transition: background var(--fast), color var(--fast);
}
.command__name code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.command__name:hover { background: var(--accent); color: var(--on-accent); }

.command__copy { opacity: 0; transition: opacity var(--fast); }
.command:hover .command__copy,
.command__name:focus-visible .command__copy { opacity: 0.7; }

/* Swapped in by site.js for a moment after a successful copy. */
.command__name.is-copied {
  background: var(--accent);
  color: var(--on-accent);
}
.command__name.is-copied code::after {
  content: " copied";
  font-weight: 600;
  opacity: 0.85;
}
.command__name.is-copied .command__copy { opacity: 0; }

.command__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.command__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: auto 0 0;
  padding-top: 2px;
  color: var(--text-dim);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.command__meta .command__cat { color: var(--accent-text); }

/* ---------------------------------------------------------- follow ----- */

.follow { margin-bottom: 44px; }

.follow__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.follow__card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: background var(--fast), border-color var(--fast), translate var(--fast);
}
.follow__card:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  translate: 0 -2px;
}
.follow__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: var(--radius-sm);
  background: var(--accent-softer);
  color: var(--accent-text);
}
.follow__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.follow__go { margin-left: auto; color: var(--text-dim); }

/* ------------------------------------------------------ empty state ---- */

.empty-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: clamp(32px, 7vw, 64px) 24px;
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
}
.empty-card h2 { margin: 0; font-size: 20px; font-weight: 700; }
.empty-card p { margin: 0 0 8px; max-width: 44ch; color: var(--text-muted); }
.empty-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-softer);
  color: var(--accent-text);
}

/* ---------------------------------------------------------- footer ----- */

.site-footer {
  margin-top: auto;
  padding: 26px 0;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
}
.site-footer p { margin: 0; }

/* ------------------------------------------------------ responsive ----- */

@media (max-width: 1180px) {
  .player {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "video" "bar" "chat";
  }
  .player__chat { height: 440px; }
}

@media (max-width: 1023px) {
  .topbar { display: flex; }

  .sidebar {
    width: var(--sb-w);
    transform: translateX(-100%);
    box-shadow: var(--shadow);
  }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar .sidebar__close { display: grid; }
  .sidebar__foot { display: none; }

  /* The icon rail never applies on mobile — the drawer is always full width. */
  html.is-collapsed .brand__text,
  html.is-collapsed .nav__text,
  html.is-collapsed .nav__ext { opacity: 1; width: auto; pointer-events: auto; }
  html.is-collapsed .sidebar__head { justify-content: flex-start; padding: 0 14px; }
  html.is-collapsed .brand { justify-content: flex-start; flex: 1; }
  html.is-collapsed .nav__item { justify-content: flex-start; padding: 0 10px; }
  html.is-collapsed .nav__label { padding: 0 10px; text-align: left; }
  html.is-collapsed .nav__item[data-tip]::after { content: none; }

  .main { margin-left: 0; padding-top: 20px; }
}

@media (max-width: 560px) {
  .main { padding-left: 16px; padding-right: 16px; }
  .follow__grid { grid-template-columns: 1fr 1fr; }
  .follow__label { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
