/* ── Fresh Soundz Shoutbox v2 ── Mobile-first dark theme ── */

:root {
  color-scheme: dark;
  --bg:          #07070f;
  --card:        rgba(16, 16, 28, 0.96);
  --card-raised: rgba(22, 22, 38, 0.98);
  --glass:       rgba(255,255,255,0.05);
  --glass-2:     rgba(255,255,255,0.09);
  --line:        rgba(255,255,255,0.10);
  --line-2:      rgba(255,255,255,0.16);
  --text:        #f0effe;
  --text-muted:  #9896ae;
  --text-dim:    #6b6980;
  --accent:      #a855f7;
  --accent-2:    #22d3ee;
  --accent-3:    #f97316;
  --danger:      #ef4444;
  --warn:        #eab308;
  --success:     #22c55e;
  --dj-gold:     #fbbf24;
  --radius-sm:   8px;
  --radius:      16px;
  --radius-lg:   24px;
  --shadow:      0 20px 60px rgba(0,0,0,0.55), 0 0 80px rgba(168,85,247,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { min-height: 100%; background: var(--bg); font-size: 16px; }

body {
  min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse at 0% 0%,   rgba(168,85,247,0.20) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 5%,  rgba(34,211,238,0.14) 0%, transparent 45%),
    var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Utility ───────────────────────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.eyebrow { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--accent-2); }
.optional { color: var(--text-muted); font-size: .85em; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-sm); border: none;
  font-weight: 600; font-size: 14px; line-height: 1;
  transition: opacity .15s, transform .1s, background .15s;
  white-space: nowrap; min-height: 44px; /* WCAG touch target */
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: .4; cursor: not-allowed; }

.btn-accent  { background: var(--accent);  color: #fff; }
.btn-accent:hover { opacity: .85; }
.btn-ghost   { background: var(--glass-2); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--glass); }
.btn-danger  { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: .85; }
.btn-warn    { background: var(--warn); color: #000; }
.btn-warn:hover { opacity: .85; }

.btn-sm  { padding: 7px 14px; font-size: 13px; min-height: 36px; }
.btn-xs  { padding: 5px 10px; font-size: 12px; min-height: 30px; }
.btn-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--glass); border: 1px solid var(--line);
  font-size: 16px; display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.btn-icon:hover { background: var(--glass-2); }

/* ── Status messages ───────────────────────────────────────────────────────── */
.status {
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
  display: block; width: min(720px, 100%); margin-top: 6px;
}
.status:empty { display: none; }
.status.error   { background: rgba(239,68,68,.15);  color: #fca5a5; border: 1px solid rgba(239,68,68,.3); }
.status.success { background: rgba(34,197,94,.12);  color: #86efac; border: 1px solid rgba(34,197,94,.25); }

/* ── Page layout ───────────────────────────────────────────────────────────── */
.fs-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  gap: 0;
}

@media (min-width: 600px) { .fs-page { padding: 20px 16px 16px; } }

/* ── Hero card ─────────────────────────────────────────────────────────────── */
.hero-card {
  width: min(720px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: 1px solid var(--line-2);
  position: relative;
}
.hero-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(168,85,247,.08), transparent 50%);
  pointer-events: none;
  border-radius: inherit;
}

/* Station identity row */
.hero-identity {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 20px;
}
.hero-brand {
  display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1;
}
.hero-logo-wrap {
  width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0; overflow: hidden;
  background: #0b0d12;
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
}
.station-logo { width: 100%; height: 100%; object-fit: contain; display: block; }
.station-logo-fallback {
  font-size: 14px; font-weight: 900; color: #fff; letter-spacing: -.02em;
}
.hero-name-block { min-width: 0; }
.hero-station-name {
  font-size: clamp(14px, 3.5vw, 18px); font-weight: 800; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-tagline {
  font-size: 11px; color: var(--text-muted); letter-spacing: .03em; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Live DJ strip */
.live-dj-strip {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 20px;
  border-top: 1px solid var(--line);
}
.live-dj-strip.is-live {
  border-top-color: rgba(239,68,68,.3);
  background: rgba(239,68,68,.04);
}
.live-dj-info-wrap { display: flex; align-items: stretch; gap: 10px; }
.live-dj-meta { display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; min-width: 0; }
.live-dj-strip .online-count-btn { margin-left: auto; }

.live-pulse-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px; border-radius: 4px;
  background: var(--danger); color: #fff;
  font-size: 9px; font-weight: 900; letter-spacing: .1em;
  align-self: flex-start; width: fit-content;
  animation: sb-pulse 1.8s ease-in-out infinite;
}

@keyframes sb-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .55; }
}

.live-avatar {
  width: 58px; height: 58px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: #fff;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
}
.live-avatar button {
  width: 100%; height: 100%; background: none; border: none; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.live-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.live-avatar.has-image { background: transparent; }

.live-dj-name {
  display: block; font-size: 14px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer; transition: color .15s;
}
.live-dj-name:hover { color: var(--accent); }
.live-dj-show {
  font-size: 12px; color: var(--text-muted); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Live presenter badge (in message feed) */
.message.is-live-presenter {
  background: rgba(239,68,68,.05);
  border-left: 3px solid rgba(239,68,68,.5);
}
.presenter-live-badge {
  display: inline-flex; align-items: center;
  padding: 1px 6px; border-radius: 3px;
  background: rgba(239,68,68,.2); color: #fca5a5;
  font-size: 9px; font-weight: 900; letter-spacing: .08em;
  animation: sb-pulse 1.8s ease-in-out infinite;
}

/* ── Pinned area ───────────────────────────────────────────────────────────── */
.pinned-area {
  width: min(720px, 100%);
  background: rgba(168,85,247,.10);
  border-left: 3px solid var(--accent);
  border-right: 1px solid var(--line);
  padding: 10px 16px;
  font-size: 13px;
}
.pinned-area p { color: var(--text-muted); font-size: 11px; margin-bottom: 4px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }

/* ── Auth bar ──────────────────────────────────────────────────────────────── */
.auth-bar {
  width: min(720px, 100%);
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; gap: 12px;
  background: var(--card);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.auth-bar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.auth-bar-label   { color: var(--text-muted); }

.hero-identity-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.hero-top-controls   { display: flex; align-items: center; gap: 10px; }

.online-count-btn {
  font-size: 12px; color: var(--text-muted); white-space: nowrap;
  background: none; border: none; cursor: pointer; padding: 0;
  transition: color .15s;
}
.online-count-btn:hover { color: var(--text); }
.composer-posting-as { display: block; font-size: 11px; color: var(--text-dim); padding: 1px 2px 0; text-align: right; }
.composer-posting-as strong { color: var(--text-muted); font-weight: 600; }

.hero-logout-btn {
  font-size: 12px; color: var(--text-muted); background: none; border: none;
  cursor: pointer; padding: 0; transition: color .15s; white-space: nowrap;
}
.hero-logout-btn:hover { color: var(--danger); }

/* ── Guest auth dropdown ── */
.guest-auth-wrap     { position: relative; }
.guest-auth-btn {
  font-size: 12px; color: var(--text-muted); background: none;
  border: 1px solid var(--line); border-radius: 6px;
  cursor: pointer; padding: 5px 9px; display: flex; align-items: center; gap: 5px;
  transition: border-color .15s, color .15s; white-space: nowrap;
}
.guest-auth-btn:hover { border-color: var(--accent); color: var(--text); }
.guest-auth-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--text); }
.guest-auth-dropdown {
  position: absolute; top: calc(100% + 4px); right: 0;
  background: var(--card-raised); border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden; z-index: 400;
  box-shadow: 0 4px 16px rgba(0,0,0,.35); min-width: 148px;
}
.guest-auth-item {
  display: block; width: 100%; padding: 10px 16px; text-align: left;
  background: none; border: none; color: var(--text); font-size: 13px;
  cursor: pointer; transition: background .12s;
}
.guest-auth-item:hover { background: rgba(255,255,255,.06); }
.guest-auth-item + .guest-auth-item { border-top: 1px solid var(--line); }

/* ── Username inline edit ── */
.edit-username-btn {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 15px; padding: 4px 8px; line-height: 1; opacity: .55;
  transition: opacity .15s, color .15s; flex-shrink: 0;
}
.edit-username-btn:hover { opacity: 1; color: var(--text); }
.username-edit-input {
  font-size: 11px; background: var(--input-bg); border: 1px solid var(--line);
  border-radius: 4px; color: var(--text); padding: 1px 5px; width: 120px;
  vertical-align: middle;
}
.username-edit-save, .username-edit-cancel {
  background: none; border: none; cursor: pointer; font-size: 11px;
  padding: 0 3px; vertical-align: middle; transition: color .12s;
}
.username-edit-save   { color: var(--accent); }
.username-edit-cancel { color: var(--text-dim); }
.username-edit-save:hover   { color: var(--text); }
.username-edit-cancel:hover { color: var(--danger); }

/* ── Hamburger ── */
.hamburger-wrap { position: relative; }
.hamburger-btn  {
  background: none; border: 1px solid var(--line); border-radius: 6px;
  color: var(--text-muted); cursor: pointer; padding: 5px 8px;
  display: flex; align-items: center; gap: 4px; position: relative;
  transition: border-color .15s, color .15s;
}
.hamburger-btn:hover { border-color: var(--accent); color: var(--text); }
.hamburger-badge {
  position: absolute; top: -7px; right: -7px;
  min-width: 18px; height: 18px; border-radius: 12px; padding: 0 4px;
  background: var(--accent); color: #fff; border: 2px solid var(--card);
  font-size: 10px; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.hamburger-badge:not(.notif-hidden) { animation: notif-breathe 1.8s ease-in-out infinite; }
.hamburger-btn--active {
  border-color: var(--accent); color: var(--text);
  box-shadow: 0 0 0 3px rgba(168,85,247,.25);
}
.hamburger-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 160px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: 0 6px 24px rgba(0,0,0,.5); z-index: 300;
  display: flex; flex-direction: column; overflow: hidden;
}
.hamburger-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; font-size: 13px; color: var(--text-muted);
  background: none; border: none; text-align: left; text-decoration: none;
  cursor: pointer; transition: background .1s, color .1s; white-space: nowrap;
}
.hamburger-item:hover { background: var(--glass-2); color: var(--text); }
.hamburger-danger     { color: var(--danger); }
.hamburger-danger:hover { background: rgba(239,68,68,.1); color: var(--danger); }
.hamburger-divider    { height: 1px; background: var(--line); margin: 2px 0; }
.online-users { display: flex; flex-direction: column; gap: 8px; padding: 10px 16px; }
.online-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.online-group strong {
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.online-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 7px; border-radius: 4px;
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--text-muted);
}
.online-chip.guest { color: var(--text-dim); }
.online-avatar { width: 16px; height: 16px; border-radius: 3px; object-fit: cover; }
.online-role {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
}
.online-role.admin { color: var(--danger); }
.online-role.dj { color: var(--dj-gold); }
.online-role.mod { color: var(--accent-2); }
.online-role.bot { color: var(--text-dim); }
.online-empty { color: var(--text-dim); }

/* ── Feed ──────────────────────────────────────────────────────────────────── */
.feed {
  width: min(720px, 100%);
  min-height: 320px; max-height: 60dvh;
  overflow-y: auto; overflow-x: hidden;
  background: var(--card);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0;
  scroll-behavior: smooth;
}

.feed::-webkit-scrollbar { width: 6px; }
.feed::-webkit-scrollbar-track { background: transparent; }
.feed::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }

.feed-loading { padding: 20px; color: var(--text-muted); font-size: 14px; text-align: center; }

/* ── Message ───────────────────────────────────────────────────────────────── */
.message {
  display: flex; gap: 10px; padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
  position: relative;
}
.message:hover { background: var(--glass); }
.message.is-mentioned { background: rgba(168,85,247,.08); border-left: 3px solid var(--accent); }
.message.is-dj-mention { background: rgba(251,191,36,.06); border-left: 3px solid var(--dj-gold); }
.message.bot-message   { background: rgba(34,211,238,.04); }
.message.is-jump-target { background: rgba(168,85,247,.18); transition: background .3s; }

/* Avatar */
.msg-avatar {
  width: 42px; height: 42px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff; overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  cursor: default;
}
.msg-avatar.has-image { background: transparent; cursor: pointer; }
.msg-avatar img { width: 100%; height: 100%; object-fit: contain; background: #0b0d12; }

/* Message body */
.msg-body { flex: 1; min-width: 0; }
.msg-meta {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-bottom: 3px;
}
.msg-name {
  background: none; border: none; padding: 0;
  font-weight: 700; font-size: 13px; color: var(--accent);
  cursor: pointer; line-height: 1;
}
.msg-name:hover { text-decoration: underline; }
.msg-name.is-admin { color: var(--danger); }
.msg-name.is-dj { color: var(--dj-gold); }
.msg-name.is-mod { color: var(--accent-2); }
.msg-time   { font-size: 11px; color: var(--text-dim); margin-left: auto; white-space: nowrap; }
.msg-edited { font-size: 10px; color: var(--text-dim); margin-left: 5px; font-style: italic; }

.msg-text { font-size: 14px; line-height: 1.55; word-break: break-word; white-space: pre-line; }

/* ── Inline edit form ──────────────────────────────────────────────────────── */
.msg-edit-form { margin-top: 4px; }
.msg-edit-input {
  width: 100%; min-height: 52px; padding: 7px 10px;
  background: var(--surface); border: 1px solid var(--accent);
  border-radius: 6px; color: var(--text); font: inherit; font-size: 14px;
  line-height: 1.5; resize: vertical; box-sizing: border-box;
  outline: none;
}
.msg-edit-input:focus { box-shadow: 0 0 0 2px rgba(168,85,247,.3); }
.msg-edit-actions { display: flex; gap: 6px; margin-top: 5px; }

.msg-reply-ref {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--text-muted);
  background: var(--glass); border-radius: 4px; padding: 2px 8px;
  cursor: pointer; margin-bottom: 4px;
  border: none;
}
.msg-reply-ref:hover { color: var(--text); background: var(--glass-2); }

.role-pill,
.dj-pill {
  display: inline-block; padding: 1px 7px; border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
}

.dj-pill {
  background: rgba(251,191,36,.2); color: var(--dj-gold);
}

.mod-pill {
  background: rgba(34,211,238,.15); color: var(--accent-2);
}

.role-pill.admin-pill {
  background: rgba(239,68,68,.16); color: var(--danger);
}

.shadow-pill {
  background: rgba(234,179,8,.12); color: #a87e00;
}

.message.is-shadow {
  opacity: .6;
}

.bot-badge {
  display: inline-block; padding: 1px 7px; border-radius: 4px;
  background: rgba(34,211,238,.15); color: var(--accent-2);
  font-size: 10px; font-weight: 700;
}

/* Reactions */
.msg-reactions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.reaction-btn {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 8px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--line);
  font-size: 13px; line-height: 1; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.reaction-btn.active { background: rgba(168,85,247,.2); border-color: var(--accent); }
.reaction-btn:hover  { background: var(--glass-2); }
.reaction-count      { font-size: 12px; color: var(--text-muted); }

/* Message tools */
.msg-tools { position: relative; flex-shrink: 0; }
.msg-actions-menu { position: relative; }
.msg-actions-trigger {
  list-style: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 22px; border-radius: 5px;
  color: var(--text-dim); cursor: pointer;
  font-size: 18px; line-height: 1; letter-spacing: 1px;
  opacity: 1; transition: background .1s, color .1s;
}
.msg-actions-trigger::-webkit-details-marker { display: none; }
.msg-actions-trigger:hover,
.msg-actions-menu[open] .msg-actions-trigger {
  background: var(--glass); color: var(--text);
}
.msg-actions-dropdown {
  position: absolute; right: 0; top: calc(100% + 5px); z-index: 60;
  min-width: 150px; overflow: hidden;
  background: var(--card-raised); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); box-shadow: 0 10px 28px rgba(0,0,0,.48);
}
.msg-menu-item {
  display: block; width: 100%; padding: 9px 12px;
  background: none; border: none; text-align: left;
  font-size: 13px; color: var(--text-muted); cursor: pointer;
}
.msg-menu-item:hover { background: var(--glass); color: var(--text); }
.msg-menu-item.danger { color: var(--danger); }
.msg-menu-item.danger:hover { background: rgba(239,68,68,.08); }
.online-chip .msg-tool-btn { opacity: 1; }
.msg-tool-btn {
  background: none; border: none; padding: 3px 7px;
  font-size: 11px; color: var(--text-dim); border-radius: 4px;
}
.msg-tool-btn:hover { background: var(--glass); color: var(--text-muted); }
.msg-tool-btn.danger:hover { color: var(--danger); }

/* ── Composer ──────────────────────────────────────────────────────────────── */
.composer {
  width: min(720px, 100%);
  background: var(--card-raised);
  border: 1px solid var(--line-2);
  border-top-color: var(--accent);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 12px 14px 14px;
  display: flex; flex-direction: column; gap: 8px;
}

.composer-row { display: flex; gap: 8px; align-items: center; }

.avatar-btn {
  flex-shrink: 0; flex-direction: column; gap: 4px;
  background: none; border: none; padding: 0;
  display: flex; align-items: center;
  cursor: pointer; transition: opacity .2s;
}
.avatar-btn:hover { opacity: .8; }
.avatar-btn-preview {
  width: 42px; height: 42px; border-radius: 8px; overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 1px solid rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
  position: relative; transition: border-color .2s;
}
.avatar-btn:hover .avatar-btn-preview { border-color: var(--accent); }
.avatar-btn.has-avatar .avatar-btn-preview { border-color: var(--accent); }
.avatar-btn-preview img { width: 100%; height: 100%; object-fit: contain; background: #0b0d12; position: absolute; inset: 0; }
.avatar-btn-label { font-size: 10px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }

.name-input {
  flex: 1; min-width: 0;
  background: var(--glass); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 9px 12px;
  font-size: 14px; font-weight: 600;
  transition: border-color .15s;
}
.name-input:focus    { outline: none; border-color: var(--accent); background: var(--glass-2); }
.name-input:disabled { opacity: .5; cursor: not-allowed; }

.composer-msg-row { display: flex; flex-direction: column; gap: 2px; }

.msg-input-wrap { position: relative; }
.msg-input {
  width: 100%; resize: none;
  background: var(--glass); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 44px 10px 12px;
  font-size: 14px; line-height: 1.5;
  transition: border-color .15s; min-height: 72px;
}
.msg-input:focus  { outline: none; border-color: var(--accent); background: var(--glass-2); }

.mention-menu {
  position: absolute; bottom: calc(100% + 4px); left: 0; right: 0;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: 0 4px 20px rgba(0,0,0,.5);
  max-height: 200px; overflow-y: auto; z-index: 200; font-size: 13px;
}
.mention-item {
  padding: 7px 12px; cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  color: var(--text-muted); transition: background .1s;
}
.mention-item.mention-selected,
.mention-item:hover { background: var(--glass-2); color: var(--text); }
.mention-sigil { color: var(--accent); font-weight: 700; }

.btn-send {
  position: absolute; bottom: 8px; right: 8px;
  width: 30px; height: 30px; border-radius: 6px;
  background: none; border: none; color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: color .15s, opacity .15s;
  flex-shrink: 0;
}
.btn-send:hover { color: var(--text); }

.composer-tools {
  display: flex; align-items: center; gap: 6px;
  padding: 0 2px;
}
.char-counter { font-size: 12px; color: var(--text-dim); margin-left: auto; }
.char-counter.near-limit  { color: var(--warn); }
.char-counter.at-limit    { color: var(--danger); }

/* Reply bar */
.reply-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--radius-sm);
  background: rgba(168,85,247,.12); border: 1px solid rgba(168,85,247,.3);
  font-size: 13px; color: var(--text-muted);
}
.reply-bar strong { color: var(--text); }
.reply-cancel {
  background: none; border: none; color: var(--text-dim);
  font-size: 16px; line-height: 1; margin-left: auto;
}
.reply-cancel:hover { color: var(--text); }

/* ── Moderation / song-request modals ─────────────────────────────────────── */
.mod-info {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(3px);
  padding: 20px;
}
.mod-info-box {
  background: var(--card-raised);
  border: 1px solid rgba(239,68,68,.5);
  border-radius: var(--radius);
  padding: 28px 28px 20px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,.7);
}
.mod-info-box--sr { border-color: rgba(168,85,247,.4); }
.mod-info-box > strong { display: block; color: #fca5a5; font-size: 16px; margin-bottom: 14px; }
.mod-info-box--sr > strong { color: var(--text); }
.mod-info-box p { color: var(--text-muted); font-size: 13px; margin: 0 0 8px; }
.mod-info-box p:last-of-type { margin-bottom: 18px; }
.mod-info-close {
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 32px;
  cursor: pointer;
  margin-top: 4px;
}
.mod-info-close:hover { opacity: .85; }

/* ── Song-request modal items ─────────────────────────────────────────────── */
.sr-modal-item {
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.sr-modal-item:last-of-type { border-bottom: none; margin-bottom: 14px; }
.sr-modal-item strong { display: block; font-size: 14px; margin-bottom: 3px; }
.sr-modal-item p { margin: 0; font-size: 13px; color: var(--text-muted); }
.sr-modal-item--played  strong { color: var(--accent); }
.sr-modal-item--queued  strong { color: var(--dj-gold); }
.sr-modal-item--declined strong { color: var(--danger); }

/* ── Modals ────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal-overlay[hidden] { display: none; }

.modal-box {
  background: var(--card-raised);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  width: min(460px, 100%); max-height: 90dvh;
  overflow-y: auto; padding: 24px;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin-bottom: 20px;
}
.modal-header h2 { font-size: 22px; font-weight: 700; }
.modal-header p  { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.modal-close {
  background: var(--glass); border: 1px solid var(--line); border-radius: 50%;
  width: 32px; height: 32px; font-size: 18px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.modal-close:hover { color: var(--text); background: var(--glass-2); }

/* ── Forms ─────────────────────────────────────────────────────────────────── */
.auth-form, .song-form {
  display: flex; flex-direction: column; gap: 12px;
}
.auth-form label, .song-form label {
  font-size: 13px; font-weight: 600; margin-bottom: -6px;
}
.auth-form input, .song-form input,
.auth-form textarea, .song-form textarea {
  background: var(--glass); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 12px;
  font-size: 14px; transition: border-color .15s;
}
.auth-form input:focus, .song-form input:focus,
.auth-form textarea:focus, .song-form textarea:focus {
  outline: none; border-color: var(--accent); background: var(--glass-2);
}
.auth-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

.invite-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.invite-box { width: min(440px, 100%); }
.invite-box h1 { font-size: 22px; line-height: 1.2; }
.invite-box input[readonly] { opacity: .72; cursor: not-allowed; }

.resend-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--text-muted);
}

/* Terms */
.terms-body { font-size: 14px; line-height: 1.6; }
.terms-body > ul { padding-left: 20px; margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.terms-perks {
  margin-top: 18px; padding: 12px 14px;
  background: rgba(168,85,247,.07); border: 1px solid rgba(168,85,247,.2);
  border-radius: 8px;
}
.terms-perks-title { font-weight: 600; color: var(--text); margin-bottom: 8px; font-size: 13px; }
.terms-perks-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.terms-perks-list li { display: flex; align-items: baseline; gap: 7px; }
.perk-check { color: var(--accent); font-weight: 700; flex-shrink: 0; }
.perk-dim   { color: var(--text-dim); flex-shrink: 0; }

/* ── Emoji picker ──────────────────────────────────────────────────────────── */
.emoji-picker {
  position: fixed; z-index: 200;
  background: var(--card-raised); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 10px;
  display: flex; flex-wrap: wrap; gap: 4px;
  width: 220px; box-shadow: var(--shadow);
}
.emoji-picker[hidden] { display: none; }
.emoji-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  font-size: 20px; line-height: 1;
  background: none; border: none;
  display: flex; align-items: center; justify-content: center;
  transition: background .1s;
}
.emoji-btn:hover { background: var(--glass-2); }

/* ── Lightbox ──────────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.9);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.lightbox[hidden] { display: none; }
.lightbox-inner { position: relative; max-width: min(640px, 100%); }
.lightbox-inner img { border-radius: var(--radius); max-height: 80dvh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: -12px; right: -12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 50%; width: 36px; height: 36px; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
}
.lightbox-caption { margin-top: 10px; text-align: center; font-size: 14px; color: var(--text-muted); }

/* ── Shoutbox footer ───────────────────────────────────────────────────────── */
.shoutbox-footer {
  width: min(720px, 100%);
  display: flex; align-items: center; gap: 10px; justify-content: center;
  padding: 8px 16px;
  font-size: 12px; color: var(--text-dim);
  margin-top: 6px;
}
.shoutbox-footer a { color: var(--text-dim); }
.shoutbox-footer a:hover { color: var(--text-muted); }

/* ── Auth privacy note ─────────────────────────────────────────────────────── */
.auth-terms-row { margin-top: 10px; }
.auth-terms-label {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--text-muted); cursor: pointer;
}
.auth-terms-label input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); }
.auth-terms-link {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--accent); font-size: inherit; text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-terms-link:hover { color: var(--text); }
.auth-privacy-note {
  font-size: 12px; color: var(--text-dim);
  margin-top: 6px; text-align: center;
}
.auth-privacy-note a { color: var(--accent-2); }

/* ── Simple pages (verify, reset) ─────────────────────────────────────────── */
.fs-page-simple { align-items: center; }
.simple-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px; width: min(440px, 100%);
  display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow);
}
.simple-card h1 { font-size: 26px; }
.result-msg { padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.result-msg.success { background: rgba(34,197,94,.12); color: #86efac; border: 1px solid rgba(34,197,94,.25); }
.result-msg.error   { background: rgba(239,68,68,.12);  color: #fca5a5; border: 1px solid rgba(239,68,68,.25); }

/* ── Admin ─────────────────────────────────────────────────────────────────── */
.admin-body { background: var(--bg); }

.admin-topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 24px;
  background: var(--card-raised); border-bottom: 1px solid var(--line-2);
}
.admin-topbar-brand { font-weight: 800; font-size: 16px; color: var(--accent); flex: 1; }

.admin-main { padding: 20px; max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.admin-notice { width: 100%; }

.admin-stats {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.admin-stats .stat {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 90px;
}
.admin-stats .stat span { font-size: 26px; font-weight: 800; }
.admin-stats .stat small { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.admin-stats .stat.is-danger span { color: var(--danger); }
.admin-stats .stat.is-warn span   { color: var(--warn); }

.admin-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.admin-login { max-width: 400px; margin: 0 auto; }

.admin-section {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.admin-section h2 {
  font-size: 16px; font-weight: 700; padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--glass); user-select: none;
  display: flex; align-items: center; justify-content: space-between;
}
.admin-section h2::after { content: "−"; color: var(--text-dim); font-weight: 800; }
.admin-section.collapsed h2::after { content: "+"; }
.admin-section.collapsed > :not(h2):not(.admin-section-head) { display: none !important; }
.admin-section.collapsed .admin-section-head > :not(h2) { display: none !important; }
.admin-section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: var(--glass);
}
.admin-section-head h2 { padding: 0; border: none; background: none; flex: 1; }
.admin-section-head h2::after { content: ""; }

/* ── Embed generator ── */
.embed-gen { display: flex; flex-direction: column; gap: 16px; }
.embed-gen-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; padding: 14px 18px; }
.embed-gen-label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.embed-gen-input { font-size: 13px; background: var(--input-bg); border: 1px solid var(--line); border-radius: 5px; color: var(--text); padding: 6px 10px; width: 120px; }
.embed-gen-input-unit { display: flex; align-items: stretch; }
.embed-gen-input-unit .embed-gen-input { border-radius: 5px 0 0 5px; width: 80px; }
.embed-gen-unit-btn { background: var(--glass); border: 1px solid var(--line); border-left: none; border-radius: 0 5px 5px 0; padding: 0 10px; font-size: 12px; font-weight: 700; color: var(--text-muted); cursor: pointer; min-width: 36px; }
.embed-gen-unit-btn:hover { background: var(--input-bg); color: var(--text); }
.embed-gen-color { width: 48px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 5px; background: var(--input-bg); cursor: pointer; }
.embed-gen-check { flex-direction: row; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; }
.embed-gen-check input { accent-color: var(--accent); }
.embed-gen-preview-wrap { padding: 0 18px; }
.embed-gen-code-wrap { padding: 0 18px; display: flex; flex-direction: column; gap: 10px; }
.embed-gen-sublabel { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.embed-gen-code { width: 100%; font-family: monospace; font-size: 12px; background: var(--input-bg); border: 1px solid var(--line); border-radius: 6px; color: var(--text); padding: 10px; resize: none; display: block; }

.admin-list { display: flex; flex-direction: column; }
.admin-empty { padding: 14px 18px; color: var(--text-muted); font-size: 14px; }

.admin-row {
  display: flex; gap: 10px; padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  align-items: flex-start; flex-wrap: wrap;
}
.admin-row.row-deleted  { opacity: .5; }
.admin-row.row-pinned   { background: rgba(168,85,247,.06); }
.admin-row.row-blocked, .admin-row.row-banned { background: rgba(239,68,68,.06); }
.admin-row.row-shadow   { background: rgba(234,179,8,.05); border-left: 3px solid rgba(234,179,8,.4); }
.admin-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 14px; }
.admin-row-main strong { font-size: 14px; }
.admin-row-main p { font-size: 13px; color: var(--text-muted); white-space: pre-wrap; word-break: break-word; }
.admin-row-main time { font-size: 11px; color: var(--text-dim); }
.admin-row-main small { font-size: 12px; color: var(--text-muted); }
.admin-muted { font-size: 13px; color: var(--text-muted); }
.admin-row-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex-shrink: 0; }

.admin-ip { font-size: 11px; color: var(--text-dim); font-family: monospace; }
.admin-pill {
  display: inline-block; padding: 2px 7px; border-radius: 12px;
  font-size: 11px; font-weight: 600;
  background: var(--glass); border: 1px solid var(--line);
}
.admin-pill.pill-danger { background: rgba(239,68,68,.2); border-color: rgba(239,68,68,.4); color: #fca5a5; }
.admin-pill.pill-warn   { background: rgba(234,179,8,.15); border-color: rgba(234,179,8,.3); color: var(--warn); }
.admin-pill.pill-muted  { background: rgba(168,85,247,.15); border-color: rgba(168,85,247,.3); color: var(--accent); }
.admin-pill--revokable  { display: inline-flex; align-items: center; gap: 3px; }
.admin-pill-x {
  background: none; border: none; padding: 0; line-height: 1;
  font-size: 12px; color: var(--text-dim); cursor: pointer;
  display: inline-flex; align-items: center;
}
.admin-pill-x:hover { color: var(--danger); }

.admin-ban-form { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.admin-hint { padding: 8px 18px; font-size: 13px; color: var(--text-muted); }
.admin-invite-link-row { display: flex; gap: 8px; align-items: center; padding: 10px 18px; }
.admin-invite-link-input { flex: 1; min-width: 0; font-family: monospace; font-size: 12px; color: var(--text-muted); cursor: text; }
.admin-user-filter {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 10px 0 8px;
}
.admin-user-filter .admin-text-input { flex: 1; min-width: 180px; }
.admin-role-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-role-tab {
  background: var(--glass); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 5px 12px;
  font-size: 12px; font-weight: 600; color: var(--text-muted); cursor: pointer;
}
.admin-role-tab:hover { border-color: var(--accent); color: var(--text); }
.admin-role-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.admin-text-input {
  background: var(--glass); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 7px 10px;
  font-size: 13px; min-width: 140px;
}
.admin-text-input:focus { outline: none; border-color: var(--accent); }

/* ── User action ellipsis menu ─────────────────────────────────────────────── */
.admin-user-menu { position: relative; flex-shrink: 0; }
.admin-user-menu-btn {
  background: none; border: 1px solid var(--line); border-radius: 6px;
  color: var(--text-muted); cursor: pointer; padding: 2px 10px;
  font-size: 18px; line-height: 1.4; letter-spacing: 1px;
}
.admin-user-menu-btn:hover { border-color: var(--line-2); color: var(--text); }
.admin-user-dropdown {
  position: fixed; z-index: 400;
  min-width: 210px; background: var(--card-raised);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  box-shadow: 0 8px 28px rgba(0,0,0,.55);
  display: flex; flex-direction: column; overflow: hidden;
}
.adu-item {
  display: block; width: 100%; padding: 9px 14px;
  background: none; border: none; text-align: left;
  font-size: 13px; color: var(--text-muted); cursor: pointer;
}
.adu-item:hover           { background: var(--glass); color: var(--text); }
.adu-item--warn           { color: var(--warn); }
.adu-item--warn:hover     { background: rgba(234,179,8,.08); }
.adu-item--danger         { color: var(--danger); }
.adu-item--danger:hover   { background: rgba(239,68,68,.08); }
.adu-divider { height: 1px; background: var(--line); margin: 2px 0; }
.adu-desc { font-size: 11px; color: var(--text-dim); padding: 0 14px 8px; line-height: 1.4; }
.adu-row {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px;
}
.adu-text { width: 0; flex: 1; min-width: 0; }

.admin-select {
  background: var(--glass); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 5px 8px;
  font-size: 13px; color: var(--text);
}
.inline-form { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }

.strike-text { font-style: italic; color: var(--text-dim); font-size: 12px; border-left: 2px solid var(--line); padding-left: 8px; }
.admin-terms-list .admin-row { padding: 8px 18px; }

/* ── Notification badges ───────────────────────────────────────────────────── */
.notif-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  border-radius: 12px; font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; padding: 0 5px; line-height: 1;
  margin-left: 6px; vertical-align: middle; white-space: nowrap;
}
.notif-badge.notif-badge-warn { background: var(--warn); color: #000; }
.notif-badge.notif-hidden     { display: none; }
@keyframes notif-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(168,85,247,.5); }
  50%       { transform: scale(1.18); box-shadow: 0 0 0 5px rgba(168,85,247,0); }
}
/* Any visible badge pulses continuously to draw attention */
.notif-badge:not(.notif-hidden) { animation: notif-breathe 1.8s ease-in-out infinite; }
@keyframes notif-pulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.25); box-shadow: 0 0 0 4px rgba(168,85,247,.35); }
}
/* Quick flash on new arrival overrides the breathe */
.notif-badge.notif-pulse { animation: notif-pulse .6s ease-in-out; }

/* ── @DJ shout-out card ────────────────────────────────────────────────────── */
.dj-shout-row {
  background: rgba(251,191,36,.07);
  border-left: 3px solid var(--dj-gold);
}
.dj-shout-row .admin-row-main strong { color: var(--dj-gold); font-size: 15px; }
.dj-shout-text { font-size: 15px !important; color: var(--text) !important; font-weight: 500; }

/* New-arrival flash (applied for ~1.8 s then removed) */
@keyframes dj-new-arrival {
  0%   { background: rgba(251,191,36,.45); box-shadow: 0 0 0 3px rgba(251,191,36,.55); }
  100% { background: rgba(251,191,36,.07); box-shadow: none; }
}
.dj-row-new { animation: dj-new-arrival 1.8s ease-out forwards; }

/* ── Section flash (new items arrived) ─────────────────────────────────────── */
@keyframes section-flash {
  0%,100% { background: transparent; }
  30%     { background: rgba(168,85,247,.12); }
}
.section-flash { animation: section-flash 2s ease-out; }

/* ── DJ panel refresh dot ──────────────────────────────────────────────────── */
.dj-refresh-dot {
  font-size: 10px; color: var(--success); opacity: .45;
  transition: opacity .3s, color .3s;
}
.dj-refresh-dot.dj-refresh-active { opacity: 1; color: var(--accent-2); }

/* ── Responsive ────────────────────────────────────────────────────────────── */

/* Mobile & standalone web app: shoutbox fills the screen exactly */
@media (max-width: 600px), (display-mode: standalone) {
  .fs-page {
    height: 100dvh;
    padding: 0;
    overflow: hidden;
    /* push content above the home bar / bottom safe area */
    padding-bottom: env(safe-area-inset-bottom);
  }

  .hero-card {
    width: 100%;
    border-radius: 0;
    /* push content below notch / status bar */
    padding-top: env(safe-area-inset-top);
  }

  .feed {
    flex: 1;
    min-height: 0;
    max-height: none;
    width: 100%;
    border-left: none;
    border-right: none;
  }

  .composer {
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    /* extra padding so last input isn't hidden behind home bar */
    padding-bottom: max(14px, calc(env(safe-area-inset-bottom) + 4px));
  }

  .pinned-area { width: 100%; }
  .status { width: 100%; margin-top: 0; }
  .shoutbox-footer { display: none; }

  /* Prevent iOS Safari from auto-zooming when a text input is focused.
     The browser zooms whenever a focused input has font-size < 16px. */
  .msg-input,
  .name-input,
  .auth-form input,
  .username-edit-input { font-size: 16px; }
}

@media (max-width: 480px) {
  .hero-identity { padding: 10px 14px; }
  .hero-logo-wrap { width: 38px; height: 38px; }
  .live-dj-strip  { padding: 8px 14px; }
  .live-avatar    { width: 46px; height: 46px; font-size: 13px; }
  .hero-station-name { font-size: 14px; }
  .composer { padding: 10px 12px; }
  .modal-box { padding: 18px; }
  .admin-main { padding: 12px; }
  .admin-row { flex-direction: column; }
  .admin-row-actions { flex-direction: row; }
}

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