/* joshtified.com/live - the stream page.
   Loaded after future-pages.css, so it uses the night tokens from there
   (--n-void, --n-deep, --n-panel, --n-line, --n-signal, --ink*, --violet). */

.live-page {
  --live: #ff3b5c;
  --live-soft: rgba(255, 59, 92, .16);
  --card: rgba(18, 14, 31, .72);
  --card-line: rgba(244, 241, 249, .1);
}

.live-shell { padding: 26px 0 72px; }
.live-wrap { width: min(1520px, calc(100% - 40px)); margin: 0 auto; }
.live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 22px;
  align-items: start;
}
.live-main { min-width: 0; }

/* ---------------------------------------------------------------- player */
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: calc(100vh - 210px);
  min-height: 200px;
  margin: 0 auto;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 0 0 1px var(--card-line), 0 30px 80px -40px rgba(0, 0, 0, .9);
  outline: none;
}
/* Keep 16:9 even when the height cap kicks in on short, wide windows. */
@supports (aspect-ratio: 1) {
  .player { width: min(100%, calc((100vh - 210px) * 16 / 9)); }
}
.live-shell[data-state="live"] .player,
.live-shell[data-state="playing"] .player {
  box-shadow: 0 0 0 1px rgba(255, 59, 92, .35), 0 0 60px -18px rgba(217, 70, 239, .45), 0 30px 80px -40px rgba(0, 0, 0, .9);
}
.player video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  background: #000;
}
.player:fullscreen { border-radius: 0; max-height: none; width: 100%; height: 100%; aspect-ratio: auto; }
.player:-webkit-full-screen { border-radius: 0; max-height: none; width: 100%; height: 100%; }

/* The slate covers the video whenever there is nothing to watch. */
.slate {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(70% 90% at 50% 120%, rgba(217, 70, 239, .22), transparent 60%),
    radial-gradient(60% 80% at 10% -10%, rgba(124, 58, 237, .3), transparent 60%),
    linear-gradient(180deg, #120e1f, #07060c);
  transition: opacity .35s ease, visibility .35s;
}
.slate::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(167, 139, 250, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(167, 139, 250, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 75%);
  mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 75%);
}
.live-shell[data-state="playing"] .slate { opacity: 0; visibility: hidden; }
.slate-in { position: relative; z-index: 1; max-width: 520px; }
.slate-icon {
  display: inline-grid; place-items: center;
  width: 64px; height: 64px; margin-bottom: 14px;
  border-radius: 20px;
  color: #e9e3ff;
  background: rgba(167, 139, 250, .12);
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .25);
}
.slate-icon svg { width: 30px; height: 30px; }
.live-shell[data-state="connecting"] .slate-icon,
.live-shell[data-state="live"] .slate-icon { color: var(--live); background: var(--live-soft); box-shadow: inset 0 0 0 1px rgba(255, 59, 92, .35); animation: live-pulse 1.6s ease-in-out infinite; }
.slate-kicker {
  margin: 0 0 6px;
  font: 600 12px/1 var(--mono, ui-monospace, monospace);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint, #8d84a6);
}
.slate-title { margin: 0; font-size: clamp(22px, 3.2vw, 36px); font-weight: 700; letter-spacing: -.03em; color: var(--ink, #f4f1f9); line-height: 1.1; }
.slate-sub { margin: 10px 0 0; color: var(--ink-soft, #c4bcd8); font-size: 15px; line-height: 1.5; }
.slate-sub:empty { display: none; }

/* Badges over the picture, top left, only while playing. */
.badges {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  display: flex; gap: 8px;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.live-shell[data-state="playing"] .badges { opacity: 1; transform: none; }
.badge-live, .badge-count {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px;
  border-radius: 7px;
  font: 700 12px/1 var(--sans, inherit);
  letter-spacing: .06em; text-transform: uppercase;
}
.badge-live { background: var(--live); color: #fff; }
.badge-count { background: rgba(7, 6, 12, .66); color: #fff; backdrop-filter: blur(6px); letter-spacing: 0; }
.badge-count svg { width: 14px; height: 14px; }

.unmute {
  position: absolute; z-index: 4; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  border: 0; border-radius: 999px;
  background: rgba(7, 6, 12, .78); color: #fff;
  font: 700 15px/1 var(--sans, inherit);
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 18px 40px -16px #000;
}
.unmute svg { width: 22px; height: 22px; }
.unmute:hover { background: rgba(7, 6, 12, .9); }

/* ---------------------------------------------------------------- controls */
.controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; gap: 6px;
  padding: 40px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .78));
  opacity: 0; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.live-shell[data-state="playing"] .player.show-ui .controls,
.live-shell[data-state="playing"] .player:focus-within .controls,
.live-shell[data-state="playing"] .player.paused .controls {
  opacity: 1; transform: none; pointer-events: auto;
}
.live-shell[data-state="playing"] .player:not(.show-ui):not(.paused) { cursor: none; }
.ctl {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  padding: 0; border: 0; border-radius: 10px;
  background: transparent; color: #fff;
  cursor: pointer;
}
.ctl:hover { background: rgba(255, 255, 255, .12); }
.ctl svg { width: 22px; height: 22px; }
.ico-play, .ico-muted, .ico-min { display: none; }
.player.paused .ico-play { display: block; }
.player.paused .ico-pause { display: none; }
.player.muted .ico-muted { display: block; }
.player.muted .ico-vol { display: none; }
.player.full .ico-min { display: block; }
.player.full .ico-max { display: none; }
.vol { display: flex; align-items: center; }
.vol input {
  width: 0; opacity: 0;
  transition: width .2s ease, opacity .2s ease;
  accent-color: #fff;
  cursor: pointer;
}
.vol:hover input, .vol:focus-within input { width: 96px; opacity: 1; margin: 0 6px 0 2px; }
.edge {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; margin-left: 4px; padding: 0 10px;
  border: 0; border-radius: 8px;
  background: transparent; color: #fff;
  font: 700 12px/1 var(--sans, inherit); letter-spacing: .08em; text-transform: uppercase;
  cursor: default;
}
.edge i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.edge.behind { cursor: pointer; background: rgba(255, 255, 255, .12); }
.edge.behind i { background: #8d84a6; }
.edge.behind:hover { background: rgba(255, 255, 255, .2); }
.controls .spacer { flex: 1; }

/* ---------------------------------------------------------------- under the player */
.live-info {
  display: flex; align-items: flex-start; gap: 14px;
  margin-top: 18px;
}
.live-avatar {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--n-signal, linear-gradient(100deg, #a78bfa, #d946ef 48%, #ff7a59));
  color: #fff; font-weight: 800; font-size: 24px;
  box-shadow: 0 0 0 3px var(--n-void, #07060c), 0 0 0 5px rgba(167, 139, 250, .35);
}
.live-shell[data-state="playing"] .live-avatar,
.live-shell[data-state="live"] .live-avatar,
.live-shell[data-state="connecting"] .live-avatar { box-shadow: 0 0 0 3px var(--n-void, #07060c), 0 0 0 5px var(--live); }
.live-text { flex: 1; min-width: 0; }
.live-text h1 {
  margin: 2px 0 8px;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.2;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.live-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; color: var(--ink-soft, #c4bcd8); font-size: 14px; }
.pill-state {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 9px;
  border-radius: 6px;
  font: 700 11px/1 var(--sans, inherit); letter-spacing: .08em; text-transform: uppercase;
  background: rgba(244, 241, 249, .08); color: var(--ink-faint, #8d84a6);
}
.live-shell[data-state="playing"] .pill-state,
.live-shell[data-state="live"] .pill-state,
.live-shell[data-state="connecting"] .pill-state { background: var(--live); color: #fff; }
.meta-item { display: inline-flex; align-items: center; gap: 6px; }
.meta-item svg { width: 15px; height: 15px; opacity: .8; }
#metaCategory { color: var(--violet, #b69cff); font-weight: 600; }
.meta-viewers { color: #ff8da1; font-weight: 600; }
.share {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px;
  border: 1px solid var(--card-line); border-radius: 10px;
  background: rgba(244, 241, 249, .04); color: var(--ink, #f4f1f9);
  font: 600 14px/1 var(--sans, inherit);
  cursor: pointer;
}
.share svg { width: 16px; height: 16px; }
.share:hover { background: rgba(244, 241, 249, .1); }

/* ---------------------------------------------------------------- below the player */
.live-below {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
  margin-top: 22px;
  align-items: start;
}
.side-card {
  padding: 20px 20px 18px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--card-line);
  backdrop-filter: blur(10px);
}
.side-kicker {
  margin: 0 0 8px;
  font: 600 11px/1 var(--mono, ui-monospace, monospace);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint, #8d84a6);
}
.side-card h2 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.02em; }
.side-copy { margin: 0; color: var(--ink-soft, #c4bcd8); font-size: 14.5px; line-height: 1.55; }
.side-next {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 16px 0 0; padding: 12px 14px;
  border-radius: 12px;
  background: rgba(167, 139, 250, .08);
  font-size: 14px;
}
.side-next svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; color: var(--violet, #b69cff); }
.side-next b { display: block; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint, #8d84a6); margin-bottom: 2px; }
.side-links { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.side-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(244, 241, 249, .04);
  box-shadow: inset 0 0 0 1px var(--card-line);
  color: var(--ink, #f4f1f9); text-decoration: none; font-weight: 600; font-size: 14px;
}
.side-links a:hover { background: rgba(244, 241, 249, .09); }
.side-links svg { width: 16px; height: 16px; opacity: .7; }

.toggle { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-ui {
  flex: 0 0 auto; position: relative;
  width: 40px; height: 24px; margin-top: 1px;
  border-radius: 999px;
  background: rgba(244, 241, 249, .16);
  transition: background .2s ease;
}
.toggle-ui::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
}
.toggle input:checked + .toggle-ui { background: #8b5cf6; }
.toggle input:checked + .toggle-ui::after { transform: translateX(16px); }
.toggle input:focus-visible + .toggle-ui { outline: 3px solid #a86bdd; outline-offset: 3px; }
.toggle-text b { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; }
.toggle-text b svg { width: 15px; height: 15px; color: #facc15; }
.toggle-text small { display: block; margin-top: 4px; color: var(--ink-faint, #8d84a6); font-size: 13px; line-height: 1.45; }
.side-small { margin: 14px 0 0; color: var(--ink-faint, #8d84a6); font-size: 12.5px; line-height: 1.45; }

@keyframes live-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .slate-icon { animation: none !important; }
  .slate, .badges, .controls, .vol input { transition: none; }
}

/* ---------------------------------------------------------------- narrow */
@media (max-width: 1100px) {
  .live-grid { grid-template-columns: minmax(0, 1fr); }
  .player { width: 100%; max-height: none; }
}
@media (max-width: 640px) {
  .live-shell { padding: 0 0 56px; }
  .live-wrap { width: 100%; }
  .player { border-radius: 0; box-shadow: none !important; }
  .live-info, .live-below { padding: 0 16px; }
  .live-info { flex-wrap: wrap; }
  .live-avatar { width: 44px; height: 44px; border-radius: 13px; font-size: 20px; }
  .info-actions { order: 3; width: 100%; }
  .info-actions > * { flex: 1; justify-content: center; }
  .vol input { display: none; }
  .badges { top: 10px; left: 10px; }
}

/* ================================================================ chat, points, tips (Nov 2026) */
.info-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.tip-btn, .tip-wide {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: 10px;
  background: linear-gradient(100deg, #7c3aed, #d946ef 55%, #ff7a59);
  color: #fff; text-decoration: none;
  font: 700 14px/1 var(--sans, inherit);
  box-shadow: 0 10px 26px -12px rgba(217, 70, 239, .8);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tip-btn:hover, .tip-wide:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(217, 70, 239, .95); }
.tip-btn svg, .tip-wide svg { width: 16px; height: 16px; }
.tip-wide { display: flex; justify-content: center; margin-top: 14px; }
.side-kicker svg { display: inline-block; width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }

.tip-list, .lead-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.tip-list li, .lead-list li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--ink-soft, #c4bcd8); }
.tip-list li b { color: var(--ink, #f4f1f9); }
.tip-list .amt { margin-left: auto; font-weight: 800; color: #ffb3c7; white-space: nowrap; }
.tip-list .msg { display: block; font-size: 12.5px; color: var(--ink-faint, #8d84a6); overflow-wrap: anywhere; }
.tip-list li.empty, .lead-list li.empty { color: var(--ink-faint, #8d84a6); font-size: 13.5px; line-height: 1.45; }
.lead-list { counter-reset: lead; }
.lead-list li:not(.empty)::before { counter-increment: lead; content: counter(lead); width: 20px; color: var(--ink-faint, #8d84a6); font-weight: 700; }
.lead-list .n { font-weight: 700; }
.lead-list .s { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: #ffb86b; font-weight: 800; }
.lead-list .s svg { width: 14px; height: 14px; }
.earn-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.earn-list li { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-soft, #c4bcd8); }
.earn-list b { color: #c4b5fd; white-space: nowrap; }
.side-settings .toggle + .toggle { margin-top: 14px; }

/* ---------------------------------------------------------------- the chat column */
.chat {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 32px);
  max-height: 920px;
  min-height: 480px;
  border-radius: 18px;
  background: rgba(14, 10, 24, .82);
  box-shadow: inset 0 0 0 1px var(--card-line);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--card-line);
}
.chat-head h2 { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; letter-spacing: .01em; }
.chat-head h2 svg { width: 17px; height: 17px; color: var(--violet, #b69cff); }
.chat-count { margin-left: auto; font-size: 12px; color: var(--ink-faint, #8d84a6); }
.chat-icon {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 8px;
  background: transparent; color: var(--ink-soft, #c4bcd8);
  cursor: pointer;
}
.chat-icon:hover { background: rgba(244, 241, 249, .08); color: #fff; }
.chat-icon svg { width: 17px; height: 17px; }
.chat-icon[aria-expanded="true"] { background: rgba(167, 139, 250, .18); color: #fff; }

.fx-now {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 12px 0; padding: 9px 12px;
  border-radius: 10px;
  background: linear-gradient(100deg, rgba(124, 58, 237, .28), rgba(217, 70, 239, .22));
  box-shadow: inset 0 0 0 1px rgba(217, 70, 239, .35);
  font-size: 13px; color: #fff;
}
.fx-now svg { width: 15px; height: 15px; flex: 0 0 auto; color: #f0abfc; animation: live-pulse 1.4s ease-in-out infinite; }

.chat-log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 6px 10px 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 241, 249, .18) transparent;
  font-size: 14px;
  line-height: 1.45;
}
.chat-more {
  position: relative;
  align-self: center;
  margin: -46px 0 10px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border: 0; border-radius: 999px;
  background: #8b5cf6; color: #fff;
  font: 700 12.5px/1 var(--sans, inherit);
  cursor: pointer;
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .8);
  z-index: 2;
}
.chat-more svg { width: 14px; height: 14px; }

.m {
  position: relative;
  padding: 4px 34px 4px 8px;
  border-radius: 8px;
  overflow-wrap: anywhere;
  animation: m-in .18s ease-out;
}
@keyframes m-in { from { opacity: 0; transform: translateY(4px); } }
.m:hover { background: rgba(244, 241, 249, .04); }
.m .who { font-weight: 800; }
.m .txt { color: #ece8f6; }
.m .bdg { display: inline-flex; vertical-align: -3px; margin-right: 4px; gap: 3px; }
.m .bdg i {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 5px;
  font-style: normal; font-size: 10px; font-weight: 800;
}
.m .bdg i svg { width: 12px; height: 12px; }
.m .bdg .b-host { background: #ff3b5c; color: #fff; }
.m .bdg .b-supporter { background: #f0abfc; color: #4a0f4f; }
.m .bdg .b-streak { width: auto; padding: 0 5px; gap: 2px; background: rgba(255, 184, 107, .18); color: #ffb86b; display: inline-flex; align-items: center; }
.m.mention { background: rgba(255, 59, 92, .1); box-shadow: inset 3px 0 0 #ff3b5c; }
.m.sys { color: var(--ink-faint, #8d84a6); font-size: 13px; font-style: italic; }
.m.redeem { margin: 6px 0; padding: 8px 10px; background: rgba(167, 139, 250, .1); box-shadow: inset 3px 0 0 #a78bfa; color: var(--ink-soft, #c4bcd8); font-size: 13px; }
.m.redeem b.rwname { color: #e9d5ff; }
.m.streak { margin: 6px 0; padding: 8px 10px; background: rgba(255, 184, 107, .1); box-shadow: inset 3px 0 0 #ffb86b; color: #ffd8a8; font-size: 13px; }
.m.hl { margin: 6px 0; padding: 10px 12px; background: linear-gradient(100deg, rgba(124, 58, 237, .3), rgba(217, 70, 239, .22)); box-shadow: inset 0 0 0 1px rgba(240, 171, 252, .45); }
.m.hl::before { content: "Highlighted"; display: block; margin-bottom: 3px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #f0abfc; }
.m.tip {
  margin: 8px 0; padding: 12px 12px;
  background: linear-gradient(100deg, #7c3aed, #d946ef 55%, #ff7a59);
  color: #fff; box-shadow: 0 12px 30px -16px rgba(217, 70, 239, .9);
}
.m.tip .head { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.m.tip .head svg { width: 16px; height: 16px; }
.m.tip .txt { display: block; margin-top: 4px; color: #fff; opacity: .95; }
.m .acts { position: absolute; right: 4px; top: 2px; display: none; gap: 2px; }
.chat.owner .m:hover .acts { display: inline-flex; }
.m .acts button { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: rgba(7, 6, 12, .85); color: #c4bcd8; cursor: pointer; }
.m .acts button:hover { color: #fff; background: #ff3b5c; }
.m .acts svg { width: 13px; height: 13px; }

/* ---------------------------------------------------------------- footer */
.chat-foot { padding: 12px; border-top: 1px solid var(--card-line); background: rgba(7, 6, 12, .35); }
.chat-foot p { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-soft, #c4bcd8); line-height: 1.45; }
.signin {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; border-radius: 10px;
  background: #8b5cf6; color: #fff; text-decoration: none; font-weight: 700; font-size: 14px;
}
.signin:hover { background: #7c3aed; }
.signin svg { width: 17px; height: 17px; }
.chat-foot input:not([type="checkbox"]):not([type="number"]),
.mod input, .mod select, .redeem-form input {
  width: 100%; min-width: 0;
  height: 40px; padding: 0 12px;
  border: 1px solid rgba(244, 241, 249, .14); border-radius: 10px;
  background: rgba(7, 6, 12, .6); color: #f4f1f9;
  font: inherit; font-size: 14px;
}
.chat-foot input:focus, .mod input:focus, .mod select:focus, .redeem-form input:focus { outline: none; border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(167, 139, 250, .25); }
.name-row, .say-row { display: flex; gap: 8px; }
.primary, .ghost, .mini {
  flex: 0 0 auto;
  height: 40px; padding: 0 16px;
  border: 0; border-radius: 10px;
  font: 700 14px/1 var(--sans, inherit);
  cursor: pointer;
}
.primary { background: #8b5cf6; color: #fff; }
.primary:hover { background: #7c3aed; }
.primary:disabled { opacity: .5; cursor: not-allowed; }
.ghost { background: rgba(244, 241, 249, .08); color: #f4f1f9; }
.send { flex: 0 0 auto; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: #8b5cf6; color: #fff; cursor: pointer; }
.send:hover { background: #7c3aed; }
.send svg { width: 17px; height: 17px; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.swatches button { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; box-shadow: 0 0 0 2px transparent; }
.swatches button[aria-checked="true"] { box-shadow: 0 0 0 2px #07060c, 0 0 0 4px #fff; }
.me-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; min-height: 30px; }
.points {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 10px;
  border: 0; border-radius: 8px;
  background: rgba(167, 139, 250, .16); color: #e9d5ff;
  font: 800 13px/1 var(--sans, inherit);
  cursor: pointer;
}
.points:hover { background: rgba(167, 139, 250, .3); }
.points svg { width: 15px; height: 15px; }
.points.bump { animation: bump .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes bump { 40% { transform: scale(1.18); } }
.streak { display: inline-flex; align-items: center; gap: 4px; color: #ffb86b; font-size: 13px; }
.streak svg { width: 15px; height: 15px; }
.streak.zero { color: var(--ink-faint, #8d84a6); }
.me-name { font-size: 12.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-msg { margin-left: auto; font-size: 12px; color: #ff8da1; text-align: right; }
.foot-off { margin: 0; color: var(--ink-faint, #8d84a6); font-size: 13px; }

/* ---------------------------------------------------------------- rewards drawer */
.drawer, .mod {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 78%;
  display: flex; flex-direction: column;
  background: #120e1f;
  border-top: 1px solid rgba(244, 241, 249, .14);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -24px 50px -20px rgba(0, 0, 0, .8);
  z-index: 5;
  animation: drawer-in .25s cubic-bezier(.2, 1.2, .4, 1);
}
@keyframes drawer-in { from { transform: translateY(30px); opacity: 0; } }
.drawer-head, .mod-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 8px 16px; }
.drawer-head b, .mod-head b { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; }
.drawer-head b svg, .mod-head b svg { width: 17px; height: 17px; color: #c4b5fd; }
.drawer-bal { margin-left: auto; font-weight: 800; color: #e9d5ff; font-size: 13.5px; }
.mod-head .chat-icon { margin-left: auto; }
.drawer-note { margin: 0 16px 8px; font-size: 12.5px; color: var(--ink-faint, #8d84a6); }
.site-tag { display: inline-block; padding: 2px 6px; border-radius: 5px; background: rgba(255, 59, 92, .18); color: #ff8da1; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; }
.rewards { overflow-y: auto; padding: 4px 12px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rw {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 12px;
  border: 0; border-radius: 12px;
  background: rgba(244, 241, 249, .05);
  box-shadow: inset 0 0 0 1px rgba(244, 241, 249, .08);
  color: #f4f1f9; text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.rw:hover:not(:disabled) { background: rgba(167, 139, 250, .14); transform: translateY(-1px); }
.rw:disabled { cursor: not-allowed; opacity: .5; }
.rw .ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, rgba(167, 139, 250, .35), rgba(217, 70, 239, .3)); color: #fff; }
.rw .ic svg { width: 18px; height: 18px; }
.rw .t { font-weight: 800; font-size: 13.5px; line-height: 1.2; }
.rw .d { font-size: 12px; color: var(--ink-faint, #8d84a6); line-height: 1.35; }
.rw .c { margin-top: auto; display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-size: 13px; color: #e9d5ff; }
.rw .c svg { width: 13px; height: 13px; }
.rw .cd { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 700; color: #ffb86b; }
.rw .site-tag { position: absolute; top: 12px; right: 10px; }
.rw .cd ~ .site-tag { display: none; }
.redeem-form { padding: 4px 16px 16px; }
.redeem-title { margin: 0 0 10px; font-weight: 700; }
.redeem-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }

/* ---------------------------------------------------------------- moderator panel */
.mod { max-height: 90%; }
.mod-body { overflow-y: auto; padding: 4px 16px 16px; }
.mod-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(244, 241, 249, .06); font-size: 13.5px; }
.mod-row select { width: auto; height: 34px; }
.mod-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: #8b5cf6; }
.mod-pair { display: flex; gap: 6px; align-items: center; }
.mod-pair input { height: 34px !important; width: 90px !important; }
.mod-pair input[type="number"] { width: 70px !important; }
.mini { height: 34px; padding: 0 12px; font-size: 12.5px; background: rgba(244, 241, 249, .1); color: #fff; }
.mini:hover { background: rgba(244, 241, 249, .18); }
.mini.danger { background: rgba(255, 59, 92, .2); color: #ffb3c0; }
.mod h3 { margin: 16px 0 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint, #8d84a6); }
.mod-rewards { display: grid; gap: 4px; }
.mod-rw { display: grid; grid-template-columns: 1fr 76px auto; gap: 8px; align-items: center; font-size: 13px; }
.mod-rw input[type="number"] { height: 30px !important; padding: 0 8px !important; }
.mod-rw input[type="checkbox"] { width: 18px; height: 18px; accent-color: #8b5cf6; }
.mod-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; }
.mod-log li { display: flex; gap: 8px; align-items: center; color: var(--ink-soft, #c4bcd8); }
.mod-log li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mod-log li em { font-style: normal; color: var(--ink-faint, #8d84a6); }
.mod-log button { height: 26px; padding: 0 8px; border: 0; border-radius: 6px; background: rgba(244, 241, 249, .1); color: #fff; font: 600 11.5px/1 var(--sans, inherit); cursor: pointer; }

/* ---------------------------------------------------------------- celebration */
.celebrate {
  position: absolute; left: 12px; right: 12px; top: 64px; z-index: 6;
  padding: 16px; border-radius: 14px;
  background: linear-gradient(100deg, #f59e0b, #ff7a59 50%, #d946ef);
  color: #fff; text-align: center;
  box-shadow: 0 20px 40px -16px rgba(255, 122, 89, .8);
  animation: cele 4.5s ease forwards;
}
.celebrate b { display: block; font-size: 20px; letter-spacing: -.02em; }
.celebrate span { font-size: 13.5px; opacity: .95; }
@keyframes cele { 0% { opacity: 0; transform: translateY(-10px) scale(.95); } 8% { opacity: 1; transform: none; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 1100px) {
  .chat { position: relative; top: 0; height: 640px; max-height: 75vh; }
  .live-main { display: contents; }
  .live-grid > .live-main > .player { order: 1; }
  .live-grid { display: flex; flex-direction: column; }
  .live-grid .player { order: 1; }
  .live-grid .live-info { order: 2; }
  .live-grid .chat { order: 3; }
  .live-grid .live-below { order: 4; }
}
@media (max-width: 640px) {
  .chat { margin: 0 12px; height: 70vh; border-radius: 16px; }
  .rewards { grid-template-columns: 1fr; }
}

/* ================================================================ past broadcasts (/live/past/) */
.past-shell { padding-top: 34px; }
.past-hero { max-width: 760px; margin-bottom: 26px; }
.past-hero h1 { margin: 4px 0 10px; font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -.035em; line-height: 1.02; }
.past-lede { margin: 0 0 16px; color: var(--ink-soft, #c4bcd8); font-size: 16.5px; line-height: 1.55; }
.past-back { display: inline-flex; align-items: center; gap: 8px; color: #e9d5ff; text-decoration: none; font-weight: 700; font-size: 14px; }
.past-back svg { width: 16px; height: 16px; color: #ff3b5c; }
.past-back:hover { text-decoration: underline; }
.vod { margin-bottom: 34px; }
.vod-player { max-height: calc(100vh - 150px); }
.vod-player video { cursor: pointer; }
.vod-wait { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 2; }
.vod-wait span { width: 46px; height: 46px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .2); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.vod-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 34px 14px 10px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .8));
  opacity: 0; transition: opacity .2s ease;
}
.vod-player:hover .vod-bar, .vod-player:focus-within .vod-bar, .vod-player.paused .vod-bar { opacity: 1; }
.vod-row { display: flex; align-items: center; gap: 4px; }
.vod-time { margin-left: 8px; font: 600 13px/1 var(--mono, ui-monospace, monospace); color: #fff; white-space: nowrap; }
#vseek {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 18px; margin: 0 0 4px; background: transparent; cursor: pointer;
}
#vseek::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: linear-gradient(90deg, #d946ef var(--p, 0%), rgba(255, 255, 255, .25) var(--p, 0%)); }
#vseek::-moz-range-track { height: 5px; border-radius: 3px; background: linear-gradient(90deg, #d946ef var(--p, 0%), rgba(255, 255, 255, .25) var(--p, 0%)); }
#vseek::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; margin-top: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(217, 70, 239, .5); }
#vseek::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: #fff; }
.speed { height: 32px; min-width: 46px; padding: 0 8px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .12); color: #fff; font: 800 13px/1 var(--sans, inherit); cursor: pointer; }
.speed:hover { background: rgba(255, 255, 255, .22); }
.vod-title { margin: 2px 0 8px; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -.02em; }

.past-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.past-empty { grid-column: 1 / -1; color: var(--ink-faint, #8d84a6); font-size: 15px; }
.past-card { border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); transition: transform .15s ease, box-shadow .15s ease; }
.past-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .4), 0 18px 40px -24px rgba(124, 58, 237, .7); }
.past-card.on { box-shadow: inset 0 0 0 2px #d946ef; }
.past-card.hidden-vod { opacity: .55; }
.past-art {
  position: relative; display: block; aspect-ratio: 16 / 9;
  background:
    radial-gradient(80% 90% at 85% 10%, hsla(calc(var(--h) * 1deg), 85%, 65%, .55), transparent 60%),
    radial-gradient(70% 80% at 10% 100%, hsla(calc((var(--h) + 60) * 1deg), 80%, 55%, .5), transparent 60%),
    linear-gradient(160deg, #1a1430, #0b0914);
  overflow: hidden;
}
.past-art::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 28px 28px; }
.past-n { position: absolute; left: 14px; top: 10px; font: 900 44px/1 var(--sans, inherit); letter-spacing: -.04em; color: rgba(255, 255, 255, .9); z-index: 1; }
.past-len { position: absolute; right: 10px; bottom: 10px; padding: 4px 7px; border-radius: 6px; background: rgba(0, 0, 0, .7); color: #fff; font: 700 12px/1 var(--mono, ui-monospace, monospace); z-index: 1; }
.past-play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #2a1745; z-index: 1; opacity: 0; transform: scale(.8); transition: opacity .15s, transform .15s; }
.past-play svg { width: 24px; height: 24px; margin-left: 3px; }
.past-card:hover .past-play, .past-art:focus-visible .past-play { opacity: 1; transform: none; }
.past-body { padding: 14px 16px 16px; }
.past-body h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.past-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; color: var(--ink-faint, #8d84a6); font-size: 13px; }
.past-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.past-tools .mini { display: inline-flex; align-items: center; gap: 6px; height: 30px; }
.past-tools .mini svg { width: 14px; height: 14px; }
.past-hidden { font-size: 12px; color: #ffb86b; }
.past-link { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--card-line); border-radius: 10px; background: rgba(244, 241, 249, .04); color: var(--ink, #f4f1f9); font: 600 14px/1 var(--sans, inherit); text-decoration: none; }
.past-link:hover { background: rgba(244, 241, 249, .1); }
.past-link svg { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .past-shell .live-wrap { width: calc(100% - 28px); }
  .vod .player { border-radius: 12px; }
  .vod .live-info { padding: 0; }
  .vol input { display: none; }
}

/* ================================================================ clips */
.clip-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px;
  border: 0; border-radius: 10px;
  background: #fff; color: #2a1745;
  font: 700 14px/1 var(--sans, inherit); cursor: pointer;
}
.clip-btn:hover { background: #f1e9ff; }
.clip-btn[aria-expanded="true"] { background: #e9d5ff; }
.clip-btn svg { width: 16px; height: 16px; }
.clip-pop {
  margin: 14px 0 0 auto; max-width: 420px; padding: 16px;
  border-radius: 14px; background: #120e1f;
  box-shadow: inset 0 0 0 1px rgba(244, 241, 249, .14), 0 24px 50px -24px rgba(0, 0, 0, .9);
  animation: drawer-in .2s ease;
}
.clip-head { margin: 0 0 12px; }
.clip-head b { display: block; font-size: 15px; }
.clip-head span { font-size: 13px; color: var(--ink-faint, #8d84a6); }
.clip-lens { display: flex; gap: 6px; margin-bottom: 10px; }
.clip-lens label { flex: 1; cursor: pointer; }
.clip-lens input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.clip-lens span { display: block; padding: 9px 0; border-radius: 9px; text-align: center; font-weight: 700; font-size: 13.5px; background: rgba(244, 241, 249, .06); box-shadow: inset 0 0 0 1px rgba(244, 241, 249, .1); }
.clip-lens input:checked + span { background: rgba(167, 139, 250, .25); box-shadow: inset 0 0 0 2px #a78bfa; color: #fff; }
.clip-lens input:focus-visible + span { outline: 3px solid #a86bdd; outline-offset: 2px; }
.clip-pop > input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid rgba(244, 241, 249, .14); border-radius: 10px; background: rgba(7, 6, 12, .6); color: #f4f1f9; font: inherit; font-size: 14px; }
.clip-state { margin: 10px 0 0; font-size: 13px; color: var(--ink-soft, #c4bcd8); }
.clip-state:empty { display: none; }
.clip-state a { color: #e9d5ff; font-weight: 700; }
.m.clipped { margin: 6px 0; padding: 8px 10px; background: rgba(255, 255, 255, .05); box-shadow: inset 3px 0 0 #fff; color: var(--ink-soft, #c4bcd8); font-size: 13px; }
.m.clipped svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 6px; }
.m.clipped .cliplink { color: #e9d5ff; font-weight: 700; }

/* the clips page */
.clips-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.clips-sort { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(244, 241, 249, .06); }
.clips-sort button { height: 32px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-soft, #c4bcd8); font: 700 13px/1 var(--sans, inherit); cursor: pointer; }
.clips-sort button[aria-pressed="true"] { background: #8b5cf6; color: #fff; }
.clip-card { border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); transition: transform .15s ease; cursor: pointer; }
.clip-card:hover { transform: translateY(-2px); }
.clip-card.on { box-shadow: inset 0 0 0 2px #d946ef; }
.clip-thumb { position: relative; aspect-ratio: 16 / 9; background: #000; }
.clip-thumb video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.clip-thumb .past-len { z-index: 1; }
.clip-card .past-body h3 { font-size: 15px; }
.clip-view .player { aspect-ratio: 16 / 9; }
.clip-view video { cursor: default; }
.clip-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.clip-del { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: rgba(255, 59, 92, .16); color: #ffb3c0; font: 700 14px/1 var(--sans, inherit); cursor: pointer; }
.clip-del svg { width: 15px; height: 15px; }
.vod-clip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.past-private { max-width: 620px; padding: 22px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); }
.past-private h2 { margin: 0 0 8px; font-size: 20px; }
.past-private p { margin: 0 0 14px; color: var(--ink-soft, #c4bcd8); line-height: 1.55; }
.vclip-title { height: 40px; min-width: 200px; flex: 1; padding: 0 12px; border: 1px solid rgba(244, 241, 249, .14); border-radius: 10px; background: rgba(7, 6, 12, .6); color: #f4f1f9; font: inherit; font-size: 14px; }
.m.clipped svg { display: inline-block; }

/* ------------------------------------------------ check out my homies */
.homies-bar { margin-bottom: 10px; }
.homies-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.htab { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid rgba(244, 241, 249, .14); border-radius: 999px; background: rgba(255, 255, 255, .03); color: var(--ink-soft, #c4bcd8); font: 700 14px/1 var(--sans, inherit); cursor: pointer; }
.htab:hover { color: #f4f1f9; border-color: rgba(244, 241, 249, .28); }
.htab.is-on { color: #0b0713; background: #f4f1f9; border-color: #f4f1f9; }
.htab:focus-visible { outline: 2px solid #a78bfa; outline-offset: 2px; }
.htab-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #ff3b5c; color: #fff; font-size: 11px; }
.htab-count[hidden] { display: none; }
.homies { padding: 18px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); }
.homies-kicker { margin: 0 0 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim, #8d84a3); }
.homies-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.homies-empty, .homies-foot { margin: 0; color: var(--ink-soft, #c4bcd8); line-height: 1.55; }
.homies-foot { margin-top: 16px; font-size: 14px; }
.homies-foot a { color: #c4b5fd; }
.homie { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(244, 241, 249, .1); }
.homie.is-live { box-shadow: inset 0 0 0 1px rgba(255, 59, 92, .45); }
.homie-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.homie-head strong { font-size: 17px; }
.homie-state { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim, #8d84a3); }
.homie-state.is-on { color: #ff8ea1; }
.homie-title { margin: 0; color: #f4f1f9; line-height: 1.45; }
.homie-meta { margin: 0; color: var(--dim, #8d84a3); font-size: 13px; }
.homie-acts { margin-top: 4px; }
.homie-acts a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 10px; background: #f4f1f9; color: #0b0713; font-weight: 700; text-decoration: none; }
.homie-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; font-size: 13px; }
.homie-links a { color: #c4b5fd; }

/* -------------------------------------------------- counters under the stream */
.live-counters { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 8px 0 0; font-size: 13px; color: var(--ink-soft, #c4bcd8); }
.live-counters:empty { display: none; }

/* ------------------------------------------------------------ platform chat */
.chat-icon.chat-mchat[aria-pressed="true"] { color: #f4f1f9; background: rgba(244, 241, 249, .12); }
.mchat { display: flex; flex-direction: column; max-height: 42%; min-height: 160px; border-bottom: 1px solid rgba(244, 241, 249, .1); }
.mchat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px 6px; font-size: 13px; color: var(--dim, #8d84a3); }
.mchat-head b { display: inline-flex; align-items: center; gap: 6px; color: #f4f1f9; font-size: 13px; }
.mchat-head svg { width: 14px; height: 14px; }
.mchat-log { list-style: none; margin: 0; padding: 0 14px 8px; overflow-y: auto; display: grid; gap: 6px; font-size: 13px; line-height: 1.45; }
.mchat-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; color: var(--ink-soft, #c4bcd8); }
.mchat-row b { color: #f4f1f9; font-weight: 700; }
.mchat-tag { font-size: 10px; letter-spacing: .08em; padding: 1px 5px; border-radius: 4px; background: rgba(167, 139, 250, .2); color: #c4b5fd; }
.mchat-yt .mchat-tag { background: rgba(255, 59, 92, .2); color: #ffb3c0; }
.mchat-text { flex: 1 1 100%; }
.mchat-note { margin: 0; padding: 0 14px 10px; font-size: 12px; color: var(--dim, #8d84a3); }
