/* Block Radio v4.3.0 — Themed */

/* ═══════════════════════════════════════
   THEME TOKENS
   ═══════════════════════════════════════ */
.br-root {
  /* Light theme (default) */
  --br-bg: #fff;
  --br-bg-panel: rgba(255, 255, 255, 0.92);
  --br-text: #111;
  --br-text-muted: rgba(0, 0, 0, 0.5);
  --br-text-faint: rgba(0, 0, 0, 0.25);
  --br-border: rgba(0, 0, 0, 0.06);
  --br-btn-bg: rgba(0, 0, 0, 0.05);
  --br-btn-bg-hover: rgba(0, 0, 0, 0.08);
  --br-btn-active-bg: #111;
  --br-btn-active-text: #fff;
  --br-btn-active-hover: #333;
  --br-card-bg: #111;
  --br-card-text: #fff;
  --br-card-muted: rgba(255, 255, 255, 0.4);
  --br-input-bg: #111;
  --br-input-bg-focus: #222;
  --br-input-text: #fff;
  --br-input-placeholder: rgba(255, 255, 255, 0.3);
  --br-input-icon: rgba(255, 255, 255, 0.4);
  --br-progress-track: #c0c0c0;
  --br-sched-time-bg: rgba(0, 0, 0, 0.06);
  --br-sched-time-text: #555;
  --br-sched-label-bg: #111;
  --br-sched-label-text: #fff;
  --br-row-hover: rgba(0, 0, 0, 0.02);
  --br-row-border: rgba(0, 0, 0, 0.05);
  --br-compose-border: rgba(0, 0, 0, 0.05);
  --br-scroll-thumb: rgba(0, 0, 0, 0.1);
}

/* Dark theme */
.br-theme-dark {
  --br-bg: #111;
  --br-bg-panel: rgba(17, 17, 17, 0.95);
  --br-text: #eee;
  --br-text-muted: rgba(255, 255, 255, 0.5);
  --br-text-faint: rgba(255, 255, 255, 0.2);
  --br-border: rgba(255, 255, 255, 0.08);
  --br-btn-bg: rgba(255, 255, 255, 0.08);
  --br-btn-bg-hover: rgba(255, 255, 255, 0.12);
  --br-btn-active-bg: #fff;
  --br-btn-active-text: #111;
  --br-btn-active-hover: #ddd;
  --br-card-bg: rgba(255, 255, 255, 0.06);
  --br-card-text: #fff;
  --br-card-muted: rgba(255, 255, 255, 0.35);
  --br-input-bg: rgba(255, 255, 255, 0.08);
  --br-input-bg-focus: rgba(255, 255, 255, 0.12);
  --br-input-text: #fff;
  --br-input-placeholder: rgba(255, 255, 255, 0.3);
  --br-input-icon: rgba(255, 255, 255, 0.3);
  --br-progress-track: rgba(255, 255, 255, 0.1);
  --br-sched-time-bg: rgba(255, 255, 255, 0.08);
  --br-sched-time-text: rgba(255, 255, 255, 0.6);
  --br-sched-label-bg: #fff;
  --br-sched-label-text: #111;
  --br-row-hover: rgba(255, 255, 255, 0.04);
  --br-row-border: rgba(255, 255, 255, 0.06);
  --br-compose-border: rgba(255, 255, 255, 0.06);
  --br-scroll-thumb: rgba(255, 255, 255, 0.15);
}

/* Coloured theme — accent colour as bar/panel bg */
.br-theme-coloured {
  --br-bg: var(--br-dot-color, #ff0000);
  --br-bg-panel: var(--br-dot-color, #ff0000);
  --br-text: #fff;
  --br-text-muted: rgba(255, 255, 255, 0.6);
  --br-text-faint: rgba(255, 255, 255, 0.25);
  --br-border: rgba(255, 255, 255, 0.12);
  --br-btn-bg: rgba(255, 255, 255, 0.15);
  --br-btn-bg-hover: rgba(255, 255, 255, 0.2);
  --br-btn-active-bg: #fff;
  --br-btn-active-text: var(--br-dot-color, #ff0000);
  --br-btn-active-hover: rgba(255, 255, 255, 0.9);
  --br-card-bg: rgba(0, 0, 0, 0.2);
  --br-card-text: #fff;
  --br-card-muted: rgba(255, 255, 255, 0.45);
  --br-input-bg: rgba(0, 0, 0, 0.2);
  --br-input-bg-focus: rgba(0, 0, 0, 0.3);
  --br-input-text: #fff;
  --br-input-placeholder: rgba(255, 255, 255, 0.4);
  --br-input-icon: rgba(255, 255, 255, 0.4);
  --br-progress-track: rgba(255, 255, 255, 0.2);
  --br-sched-time-bg: rgba(255, 255, 255, 0.15);
  --br-sched-time-text: #fff;
  --br-sched-label-bg: #fff;
  --br-sched-label-text: var(--br-dot-color, #ff0000);
  --br-row-hover: rgba(255, 255, 255, 0.08);
  --br-row-border: rgba(255, 255, 255, 0.08);
  --br-compose-border: rgba(255, 255, 255, 0.1);
  --br-scroll-thumb: rgba(255, 255, 255, 0.2);
}

/* Coloured theme with a LIGHT accent — flip to dark text */
.br-theme-coloured.br-accent-light {
  --br-text: #111;
  --br-text-muted: rgba(0, 0, 0, 0.55);
  --br-text-faint: rgba(0, 0, 0, 0.2);
  --br-border: rgba(0, 0, 0, 0.1);
  --br-btn-bg: rgba(0, 0, 0, 0.1);
  --br-btn-bg-hover: rgba(0, 0, 0, 0.15);
  --br-btn-active-bg: #111;
  --br-btn-active-text: #fff;
  --br-btn-active-hover: #333;
  --br-card-bg: rgba(0, 0, 0, 0.1);
  --br-card-text: #111;
  --br-card-muted: rgba(0, 0, 0, 0.4);
  --br-input-bg: rgba(0, 0, 0, 0.1);
  --br-input-bg-focus: rgba(0, 0, 0, 0.15);
  --br-input-text: #111;
  --br-input-placeholder: rgba(0, 0, 0, 0.35);
  --br-input-icon: rgba(0, 0, 0, 0.35);
  --br-progress-track: rgba(0, 0, 0, 0.15);
  --br-sched-time-bg: rgba(0, 0, 0, 0.08);
  --br-sched-time-text: #111;
  --br-sched-label-bg: #111;
  --br-sched-label-text: #fff;
  --br-row-hover: rgba(0, 0, 0, 0.05);
  --br-row-border: rgba(0, 0, 0, 0.08);
  --br-compose-border: rgba(0, 0, 0, 0.08);
  --br-scroll-thumb: rgba(0, 0, 0, 0.12);
}

/* Dot button on light accents — dark icon */
.br-accent-light .br-dot { color: #111; }
/* Badge on light accents in coloured theme — dark text */
.br-theme-coloured.br-accent-light .br-chat-badge { color: #111; }

/* ── Coloured theme fixes — elements that clash with accent bg ── */
/* Play dot needs a white ring to stand out against the accent bar */
.br-theme-coloured .br-dot {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}
.br-theme-coloured.br-accent-light .br-dot {
  box-shadow: 0 0 0 3px rgba(0,0,0,0.15);
}
/* Send button — white on coloured theme instead of accent-on-accent */
.br-theme-coloured .br-chat-send {
  background: #fff; color: var(--br-dot-color, #ff0000);
}
.br-theme-coloured.br-accent-light .br-chat-send {
  background: #111; color: #fff;
}
/* Verified messages — use white instead of accent (which is the bg) */
.br-theme-coloured .br-chat-verified { color: #fff; }
.br-theme-coloured.br-accent-light .br-chat-verified { color: #111; }
/* Dark theme verified — keep white */
.br-theme-dark .br-chat-verified { color: var(--br-dot-color, #ff0000); }

/* ═══════════════════════════════════════
   ROOT + BAR
   ═══════════════════════════════════════ */
.br-root {
  position: sticky; top: 0; z-index: 99999;
  font-family: inherit; font-size: inherit;
  -webkit-font-smoothing: antialiased;
  color: var(--br-text);
}

.br-bar {
  display: flex; align-items: center; gap: 14px; padding: 12px 20px;
  background-color: var(--br-bg);
  overflow: hidden;
  border-bottom: 1px solid var(--br-border);
}

.br-bar-info { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex: 1; overflow: hidden; }
.br-bar-info:has(.is-scrolling) {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 24px), transparent);
}

.br-bar-title {
  font-family: inherit; font-size: inherit; font-weight: 500;
  color: inherit; opacity: 0.85;
  white-space: nowrap; text-decoration: none; min-width: 0; display: inline-block;
}
.br-bar-title:hover { opacity: 1; }
.br-bar-title.is-scrolling {
  animation: br-marquee var(--br-marquee-dur, 12s) linear infinite;
  will-change: transform;
}
@keyframes br-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.br-bar-time {
  font-family: inherit; font-size: inherit; font-variant-numeric: tabular-nums;
  color: inherit; opacity: 0.25; white-space: nowrap; flex-shrink: 0;
}
.br-bar-sep { margin: 0 2px; opacity: 0.35; }

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.br-toggle, .br-chat-btn {
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: var(--br-btn-bg);
  color: var(--br-text); opacity: 0.5; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; padding: 0;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.br-toggle:hover, .br-chat-btn:hover {
  opacity: 0.8; background: var(--br-btn-bg-hover); transform: scale(1.08);
}
.br-toggle[aria-expanded="true"],
.br-chat-btn[aria-expanded="true"] {
  background: var(--br-btn-active-bg); color: var(--br-btn-active-text); opacity: 1; transform: scale(1);
}
.br-toggle[aria-expanded="true"]:hover,
.br-chat-btn[aria-expanded="true"]:hover {
  background: var(--br-btn-active-hover); transform: scale(1.05);
}

/* Badge */
.br-chat-btn { position: relative; }
.br-chat-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; border-radius: 9px;
  background: var(--br-dot-color, #ff0000); color: #fff;
  font-size: 10px; font-weight: 600; line-height: 18px; text-align: center;
  padding: 0 5px; font-family: inherit; font-variant-numeric: tabular-nums;
  pointer-events: none;
  opacity: 0; transform: scale(0.4);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.br-chat-badge.is-visible { opacity: 1; transform: scale(1); }
.br-chat-btn[aria-expanded="true"] .br-chat-badge { top: -5px; right: -5px; }

.br-toggle-arrow { transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.br-toggle[aria-expanded="true"] .br-toggle-arrow { transform: rotate(180deg); }

/* ═══════════════════════════════════════
   PLAY AREA
   ═══════════════════════════════════════ */
.br-play-area { position: relative; width: 48px; height: 48px; flex-shrink: 0; }

.br-widget-wrap {
  width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
  background: transparent; cursor: pointer;
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); z-index: 2;
}
.br-widget-wrap iframe {
  position: absolute; width: 300px; height: 60px; border: 0;
  left: 4px; top: 50%; margin-top: -30px;
  opacity: 0.01; pointer-events: auto;
}
.br-root.has-played .br-widget-wrap { display: none; }

.br-dot {
  position: absolute; inset: 0; width: 48px; height: 48px;
  border-radius: 50%; background: var(--br-dot-color, #ff0000);
  border: none; padding: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; isolation: isolate; z-index: 1;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.br-root.has-played .br-dot { pointer-events: auto; }
.br-dot:hover { transform: scale(1.08); }
.br-dot .br-icon-play { margin-left: 2px; }

.br-dot.is-pressing { transform: scale(0.78); transition: transform 0.12s ease-in; }
.br-dot.is-releasing { transform: scale(1); transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.br-play-area.is-pressing .br-widget-wrap { transform: translate(-50%, -50%) scale(0.78); transition: transform 0.12s ease-in; }
.br-play-area.is-pressing .br-dot { transform: scale(0.78); transition: transform 0.12s ease-in; }
.br-play-area.is-releasing .br-widget-wrap { transform: translate(-50%, -50%) scale(1); transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.br-play-area.is-releasing .br-dot { transform: scale(1); transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }

.br-dot-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  pointer-events: none; z-index: -1; opacity: 0;
  background: radial-gradient(circle, var(--br-dot-color, #ff0000) 0%, transparent 70%);
}
.br-root.is-playing .br-dot-pulse { animation: br-glow 3s ease-out infinite; }
.br-root.is-playing .br-dot-pulse-2 { animation: br-glow 3s ease-out 1.2s infinite; }
@keyframes br-glow { 0% { transform: scale(1); opacity: 0.35; } 100% { transform: scale(3); opacity: 0; } }

/* Progress */
.br-bar-progress { height: 2px; background: var(--br-progress-track); }
.br-bar-fill { height: 100%; background: var(--br-dot-color, #ff0000); width: 0%; transition: width 0.4s linear; }

/* ═══════════════════════════════════════
   PANELS
   ═══════════════════════════════════════ */
.br-panels {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
  background: var(--br-bg-panel);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  backdrop-filter: blur(24px) saturate(1.2);
}
.br-root.has-panel .br-panels { grid-template-rows: 1fr; }

.br-panels-grid { overflow: hidden; display: grid; }

.br-pane {
  grid-row: 1; grid-column: 1;
  opacity: 0; transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              max-height 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
  pointer-events: none; visibility: hidden;
  max-height: 0; overflow: hidden;
}
.br-pane.is-active {
  opacity: 1; transform: none; pointer-events: auto; visibility: visible;
  max-height: 800px;
  transition: opacity 0.3s ease 0.1s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s,
              max-height 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.br-pane-content { padding: 20px 24px 24px; overflow: hidden; }

/* Now playing card */
.br-panel-now {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px; padding: 14px 16px;
  background: var(--br-card-bg); color: var(--br-card-text);
  border-radius: 14px;
  opacity: 0; transform: translateY(-8px) scale(0.98);
  transition: opacity 0.3s ease 0.1s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
}
.br-pane.is-active .br-panel-now { opacity: 1; transform: none; }

.br-panel-art {
  width: 52px; height: 52px; border-radius: 8px; object-fit: cover;
  flex-shrink: 0; background: rgba(255, 255, 255, 0.08);
}
.br-panel-art[src=""] { display: none; }
.br-panel-now-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.br-panel-now-label {
  font-family: inherit; font-size: 0.7em; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--br-card-muted);
}
.br-panel-now-title {
  font-family: inherit; font-size: inherit; font-weight: 400;
  color: var(--br-card-text); text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.br-panel-now-title:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Track ID — current track within the mix */
.br-panel-track-id {
  font-size: 0.75em;
  color: var(--br-card-muted);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  transition: opacity 0.3s;
}
.br-panel-track-id:empty { display: none; }

/* Track ID in the bar — subtle, after the title */
.br-bar-track {
  font-size: 0.85em;
  color: var(--br-text-muted);
  white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
  opacity: 0.5;
  display: none;
}
.br-bar-track:not(:empty) { display: block; }

/* ═══════════════════════════════════════
   SCHEDULE
   ═══════════════════════════════════════ */
.br-schedule { display: flex; flex-direction: column; gap: 2px; }
.br-sched-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 4px;
  border-top: 1px solid var(--br-row-border);
  text-decoration: none; color: inherit;
  opacity: 0; transform: translateY(-6px); animation: none;
  transition: opacity 0.15s;
  border-radius: 8px;
}
.br-sched-row:first-child { border-top: none; }
.br-sched-row:hover { opacity: 0.6 !important; background: var(--br-row-hover); }
.br-pane.is-active .br-sched-row { animation: br-row-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.br-pane.is-active .br-sched-row:nth-child(1) { animation-delay: 0.12s; }
.br-pane.is-active .br-sched-row:nth-child(2) { animation-delay: 0.18s; }
.br-pane.is-active .br-sched-row:nth-child(3) { animation-delay: 0.24s; }
.br-pane.is-active .br-sched-row:nth-child(4) { animation-delay: 0.30s; }
.br-pane.is-active .br-sched-row:nth-child(5) { animation-delay: 0.36s; }
@keyframes br-row-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.br-pane:not(.is-active) .br-sched-row { opacity: 0; transform: translateY(-6px); animation: none; }

.br-sched-time {
  font-family: inherit; font-size: 0.8em; font-variant-numeric: tabular-nums;
  color: var(--br-sched-time-text); flex-shrink: 0;
  background: var(--br-sched-time-bg); padding: 4px 10px; border-radius: 10px; white-space: nowrap;
}
.br-sched-title { font-family: inherit; font-size: inherit; color: inherit; opacity: 0.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.br-sched-star { color: var(--br-dot-color, #ff0000); font-size: 0.85em; flex-shrink: 0; }
.br-sched-label {
  font-family: inherit; font-size: 0.75em; letter-spacing: 0.06em;
  color: var(--br-sched-label-text); flex-shrink: 0; margin-left: auto;
  background: var(--br-sched-label-bg); padding: 3px 10px; border-radius: 10px; text-transform: uppercase;
}

/* ═══════════════════════════════════════
   CHAT
   ═══════════════════════════════════════ */
.br-chat-messages {
  height: 260px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px;
  font-family: inherit; font-size: 0.9em;
  padding: 4px 0;
  scrollbar-width: thin; scrollbar-color: var(--br-scroll-thumb) transparent;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40px, #000 100%);
  mask-image: linear-gradient(to bottom, transparent, #000 40px, #000 100%);
}
.br-chat-messages::-webkit-scrollbar { width: 4px; }
.br-chat-messages::-webkit-scrollbar-thumb { background: var(--br-scroll-thumb); border-radius: 4px; }

.br-chat-msg {
  position: relative;
  padding: 3px 20px 3px 0;
  line-height: 1.5;
  word-break: break-word;
  animation: br-msg-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.br-chat-msg.br-no-anim { animation: none; }
@keyframes br-msg-in {
  from { opacity: 0; transform: translateY(6px) scale(0.97); filter: blur(2px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

.br-chat-day {
  font-size: 0.7em; opacity: 0.2;
  text-align: center; padding: 10px 0 4px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.br-chat-msg a {
  color: inherit; text-decoration: underline;
  text-underline-offset: 2px; text-decoration-thickness: 1px;
  word-break: break-all;
}
.br-chat-msg a:hover { opacity: 0.7; }
.br-chat-msg-name { font-weight: 600; margin-right: 4px; }
.br-chat-msg-time { font-size: 0.75em; opacity: 0.25; margin-left: 4px; }

.br-chat-verified { color: var(--br-dot-color, #ff0000); }
.br-chat-verified .br-chat-msg-name { opacity: 1; }
.br-chat-verified .br-chat-msg-time { opacity: 0.4; }
.br-chat-lock {
  display: inline-block; vertical-align: -1px;
  margin-right: 3px; opacity: 0.7;
}
.br-chat-msg-ctx {
  font-size: 0.7em; opacity: 0.2; margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.br-chat-msg-ctx a {
  color: inherit; text-decoration: underline;
  text-underline-offset: 2px; text-decoration-thickness: 1px;
}
.br-chat-msg-ctx a:hover { opacity: 0.7; }
.br-chat-msg-empty { opacity: 0.25; padding: 40px 0; text-align: center; }

.br-chat-del {
  position: absolute; top: 3px; right: 10px;
  border: none; background: none; padding: 2px;
  cursor: pointer; color: inherit; opacity: 0.12;
  font-size: 11px; line-height: 1;
  transition: opacity 0.15s;
}
.br-chat-del:hover { opacity: 0.5; }

/* Compose */
.br-chat-compose {
  display: flex; align-items: center; gap: 8px;
  padding-top: 14px; border-top: 1px solid var(--br-compose-border); margin-top: 10px;
}

.br-chat-name-wrap { position: relative; flex-shrink: 0; }
.br-chat-name-icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--br-input-icon); pointer-events: none;
}
.br-chat-name {
  font-family: inherit; font-size: max(16px, 0.9em);
  border: none; border-radius: 20px;
  padding: 10px 14px 10px 30px;
  background: var(--br-input-bg); color: var(--br-input-text);
  outline: none; width: 130px;
}
.br-chat-name:focus { background: var(--br-input-bg-focus); }
.br-chat-name::placeholder { color: var(--br-input-placeholder); font-style: italic; }

.br-chat-input {
  font-family: inherit; font-size: max(16px, 0.9em);
  border: none; border-radius: 20px;
  padding: 10px 14px;
  background: var(--br-input-bg); color: var(--br-input-text);
  outline: none; flex: 1; min-width: 0;
}
.br-chat-input:focus { background: var(--br-input-bg-focus); }
.br-chat-input::placeholder { color: var(--br-input-placeholder); }

.br-chat-send {
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: var(--br-dot-color, #ff0000); color: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; padding: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s;
}
.br-chat-send:hover { transform: scale(1.1); }
.br-chat-send:active { transform: scale(0.88); }

.br-send-spinner { display: none; }
.br-chat-send.is-sending .br-send-icon { display: none; }
.br-chat-send.is-sending .br-send-spinner { display: block; animation: br-spin 0.6s linear infinite; }
@keyframes br-spin { to { transform: rotate(360deg); } }

/* Blocked word state */
.br-chat-input.is-blocked {
  -webkit-text-security: disc;
  color: var(--br-dot-color, #ff0000);
  opacity: 0.6;
}
.br-chat-send.is-blocked {
  background: transparent;
  border: 1.5px solid var(--br-text-faint);
  color: var(--br-text-muted);
}
.br-chat-send.is-blocked:hover {
  border-color: var(--br-text-muted);
  color: var(--br-text);
}
.br-send-clear {
  font-size: 20px; font-weight: 300; line-height: 1;
}

/* ═══════════════════════════════════════
   AIRHORN
   ═══════════════════════════════════════ */
.br-airhorn {
  position: relative;
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: var(--br-btn-bg); color: var(--br-text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; padding: 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  z-index: 1;
}
.br-airhorn:hover { background: var(--br-btn-bg-hover); transform: scale(1.08); }
.br-airhorn:active { transform: scale(0.85); }

.br-airhorn-icon {
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
  flex-shrink: 0;
  pointer-events: none;
  font-size: 16px; line-height: 1;
}

/* Cooldown ring — overlays the button, never blocks touches */
.br-airhorn-cooldown {
  position: absolute; inset: -1px;
  width: calc(100% + 2px); height: calc(100% + 2px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 3;
}
.br-airhorn.is-cooldown { cursor: default; }
.br-airhorn.is-cooldown .br-airhorn-cooldown { opacity: 1; }
.br-airhorn.is-cooldown .br-airhorn-icon { opacity: 0.3; }
.br-airhorn-ring {
  transition: stroke-dashoffset 0.3s linear;
}

/* Bigger tap target on mobile */
@media (max-width: 480px) {
  .br-airhorn { width: 44px; height: 44px; }
}

/* Blast animation — shockwave rings */
.br-airhorn-blast {
  position: fixed;
  pointer-events: none;
  z-index: 999999;
  width: 100vw; height: 100vh;
  top: 0; left: 0;
  display: flex; align-items: center; justify-content: center;
  animation: br-blast-fade 1.2s ease-out forwards;
}
.br-airhorn-blast-ring {
  position: absolute;
  border-radius: 50%;
  border: 3px solid var(--br-dot-color, #ff0000);
  opacity: 0;
}
.br-airhorn-blast-ring:nth-child(1) {
  width: 40px; height: 40px;
  animation: br-ring-out 0.8s ease-out 0s forwards;
}
.br-airhorn-blast-ring:nth-child(2) {
  width: 40px; height: 40px;
  animation: br-ring-out 0.8s ease-out 0.1s forwards;
}
.br-airhorn-blast-ring:nth-child(3) {
  width: 40px; height: 40px;
  animation: br-ring-out 0.8s ease-out 0.2s forwards;
}
@keyframes br-ring-out {
  0% { transform: scale(1); opacity: 0.7; border-width: 3px; }
  100% { transform: scale(12); opacity: 0; border-width: 1px; }
}
@keyframes br-blast-fade {
  0% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* Honk notification in chat */
.br-honk-msg {
  text-align: center;
  padding: 4px 0;
  font-size: 0.8em;
  opacity: 0.5;
  animation: br-msg-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.br-honk-msg span { font-weight: 600; }

/* Attribution */
.br-attribution {
  text-align: center; padding: 8px 0 4px;
  font-size: 0.65em; opacity: 0.2;
  transition: opacity 0.2s;
}
.br-attribution:hover { opacity: 0.5; }
.br-attribution a { color: inherit; text-decoration: none; }
.br-attribution a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 480px) {
  .br-bar { padding: 10px 14px; gap: 10px; }
  .br-bar-time { display: none; }
  .br-pane-content { padding: 12px 14px 16px; }
  .br-panel-art { width: 44px; height: 44px; }
  .br-chat-messages { height: 200px; }
  .br-chat-compose { flex-wrap: wrap; }
  .br-chat-name-wrap { width: 100%; flex-shrink: 1; }
  .br-chat-name { width: 100%; box-sizing: border-box; }
  .br-airhorn { width: 44px; height: 44px; }
}
