/* Shared channel identity */
:root {
  --studio-ink: #121212;
  --studio-panel: #201e1d;
  --studio-line: #3c3733;
  --studio-accent: #ff995d;
  --studio-paper: #fff5ea;
}
.channel-brand {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  color: var(--studio-paper);
  font: 800 clamp(1.15rem, 2.1vw, 1.7rem)/1 Inter, "Segoe UI", sans-serif;
}
.channel-brand strong { letter-spacing: -.065em; }
.channel-brand strong span { color: var(--studio-accent); }
.channel-brand img { display: block; flex: none; }

/* Watch page */
body:has(.channel-heading) {
  --edge: clamp(12px, 3vw, 58px);
  background: radial-gradient(ellipse at 95% 9%, #302520, transparent 48%), var(--studio-ink);
}
.top-header.home-command-bar {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "brand viewers .";
  min-height: 68px;
  padding-inline: var(--edge);
  border-bottom-color: var(--studio-line);
  background: #181716;
}
.home-command-bar .channel-heading { grid-area: brand; justify-self: start; }
.home-command-bar .header-center-cluster { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
body.remote-disabled.obs-disabled .header-center-cluster { display: none; }
.home-command-bar .brand-logo-wrap { border-radius: 8px; }
.home-command-bar .command-pill {
  border-radius: 24px;
  border-color: #4d413a;
  background: #262220;
  color: var(--studio-paper);
}
.home-command-bar .command-icon { color: var(--studio-accent); }
.home-command-bar .command-pill:hover { border-color: var(--studio-accent); }
.channel-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.channel-heading h1 {
  flex: none;
  margin: 0;
  line-height: 1;
}
.home-command-bar .viewer-count-badge {
  grid-area: viewers;
  justify-self: center;
  min-height: 0;
  height: auto;
  gap: 6px;
  padding: 0;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 361px) and (max-width: 420px) {
  .home-command-bar .channel-brand { font-size: 1rem; gap: 4px; }
  .home-command-bar .channel-brand img { width: 26px; height: 26px; }
}
@media (max-width: 360px) {
  .home-command-bar .channel-brand { flex-direction: column; gap: 2px; font-size: .95rem; }
  .home-command-bar .channel-brand img { width: 22px; height: 22px; }
}
#channel-walk {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: hidden;
  pointer-events: none;
}
#channel-walk[hidden] { display: none; }
#channel-walk span {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(60px, 8vmin, 94px);
  aspect-ratio: 1;
}
#channel-walk span::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/media/walking-avatar.gif') center bottom / contain no-repeat;
  filter: drop-shadow(0 0 1px #ffe1c0);
}
#channel-walk .facing-right::before { transform: scaleX(-1); }
@media (prefers-reduced-motion: reduce) {
  #channel-walk span { display: none; }
}
.stage-wrapper:not(.theater-mode) { padding: 14px var(--edge) 18px; }
@media (min-width: 981px) {
  body.remote-disabled .stage-wrapper:not(.theater-mode) { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
.player-theater-card { border-color: #4c4037; border-radius: 12px; box-shadow: 0 12px 34px #0004; }
.offline-overlay {
  background: radial-gradient(ellipse at 50% 56%, #342a22, transparent 65%),
    repeating-linear-gradient(135deg, #ffffff03 0 1px, transparent 1px 16px), #171514;
}
.standby-identity::before, .standby-identity::after { border-color: #927059; }
.standby-status-tag, .standby-pips { color: var(--studio-accent); }
.standby-dot-pulse, .standby-pips i { background: var(--studio-accent); }
.live-timeline-fill { background: var(--studio-accent); }
@media (max-width: 640px) {
  .top-header.home-command-bar { min-height: 60px; }
  .channel-heading { gap: 10px; }
  .channel-brand { gap: 6px; }
  .channel-brand img { width: 31px; height: 31px; }
  .stage-wrapper:not(.theater-mode) { padding-top: 10px; }
}

/* Administration */
body:has(.dashboard-shell), #login-screen { background: radial-gradient(ellipse at 78% 0, #352923, transparent 54%), var(--studio-ink); }
.dashboard-shell .top-nav, .dashboard-shell .mobile-nav { background: #1a1918; border-color: var(--studio-line); }
.dashboard-shell .card, .login-box, .dashboard-shell .stat-card {
  border: 1px solid var(--studio-line);
  border-radius: 14px;
  background: #211f1e;
  box-shadow: 0 8px 24px #0002;
}
.dashboard-shell .card-head { border-bottom-color: var(--studio-line); }
.dashboard-shell .welcome-card { background: linear-gradient(110deg, #22201f, #392921); border-color: #5c4638; }
.dashboard-shell .nav-logo { background: transparent; border-color: transparent; }
.dashboard-shell .nav-brand-image { filter: none; }
.dashboard-shell .nav-item.active { background: #382a21; border-color: #73503a; color: #ffb78a; }
.dashboard-shell .section-kicker, .dashboard-shell .mobile-nav-item.active { color: var(--studio-accent); }
.login-btn, .dashboard-shell .toggle.active { background: var(--studio-accent); color: var(--studio-ink); box-shadow: none; }
.dashboard-shell .toggle.active::after { background: #251c16; }
#avatar-toggle:focus-visible { outline: 2px solid var(--studio-accent); outline-offset: 4px; }
