/* Loud klaxon aesthetic — black, hazard yellow, alarm red. */
:root { --red: #e10600; --yellow: #ffd400; --ink: #0a0a0a; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: 'Arial Black', Arial, Helvetica, sans-serif;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 20px;
  transition: background .08s;
}
body.flash { background: var(--red); }

a { color: var(--yellow); }

/* ---- setup card ---- */
.card {
  width: 380px; max-width: 100%; text-align: center;
  background: #141414; border: 3px solid var(--yellow);
  border-radius: 10px; padding: 26px 24px 20px;
  box-shadow: 0 0 0 6px #000, 0 14px 40px rgba(0,0,0,.6);
}
.bigbuzz { font-size: 58px; line-height: 1; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.12)} }
.card h1 {
  margin: 8px 0 10px; font-size: 34px; letter-spacing: 1px; line-height: 1.02;
  color: var(--yellow); text-shadow: 3px 3px 0 var(--red);
}
.tag { margin: 0 0 18px; font-family: Arial, sans-serif; font-size: 13px; color: #ccc; line-height: 1.5; }
.tag b { color: var(--red); } .tag i { color: var(--yellow); font-style: normal; }

.ta-wrap { position: relative; }
#handle {
  width: 100%; padding: 11px 12px; font: inherit; font-family: Arial, sans-serif;
  font-size: 15px; font-weight: bold; text-align: center;
  border: 2px solid #444; border-radius: 6px; background: #000; color: #fff;
}
#handle:focus { outline: none; border-color: var(--yellow); }

.btn {
  width: 100%; margin-top: 12px; padding: 13px; cursor: pointer;
  font-family: 'Arial Black', Arial; font-size: 16px; letter-spacing: 1px;
  color: #000; background: var(--yellow); border: none; border-radius: 6px;
  box-shadow: 0 4px 0 #b89800;
}
.btn:active { transform: translateY(3px); box-shadow: none; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost {
  background: transparent; color: var(--yellow); box-shadow: none;
  border: 2px solid #444; font-size: 13px; padding: 9px; letter-spacing: 0;
}
.setup-status { min-height: 18px; margin: 12px 0 4px; font-family: Arial, sans-serif; font-size: 13px; color: var(--yellow); }
.fine { font-family: Arial, sans-serif; font-size: 11px; color: #777; margin: 6px 0 0; }

/* ---- typeahead ---- */
.ta-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 4px 0 0;
  padding: 4px; list-style: none; background: #000; border: 2px solid #444;
  border-radius: 6px; max-height: 240px; overflow-y: auto; text-align: left;
}
.ta-item { display: flex; align-items: center; gap: 8px; padding: 6px; cursor: pointer; border-radius: 4px; }
.ta-item.active, .ta-item:hover { background: #2a2a2a; }
.ta-av { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; }
.ta-av.ta-blank { display: grid; place-items: center; background: var(--red); color: #fff; font-size: 12px; }
.ta-text { display: flex; flex-direction: column; min-width: 0; font-family: Arial, sans-serif; }
.ta-name { font-size: 13px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ta-handle { font-size: 11px; color: #888; }

/* ---- watching ---- */
.watch {
  width: 440px; max-width: 100%; align-self: flex-start; margin-top: 5vh;
  background: #141414; border: 3px solid var(--yellow); border-radius: 10px;
  overflow: hidden; box-shadow: 0 0 0 6px #000, 0 14px 40px rgba(0,0,0,.6);
}
.bar {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: var(--red); color: #fff;
}
.bar .title { font-size: 15px; letter-spacing: 1px; }
.bar .spacer { flex: 1; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--yellow); animation: pulse 1.2s infinite; }
.mini {
  font-family: Arial, sans-serif; font-size: 12px; font-weight: bold; cursor: pointer;
  background: #000; color: var(--yellow); border: 1px solid #000; border-radius: 5px; padding: 4px 8px;
}
.meta { font-family: Arial, sans-serif; font-size: 12px; color: #aaa; padding: 8px 14px; border-bottom: 1px solid #2a2a2a; }
.meta b { color: #fff; }
.status.listening { color: #4caf50; } .status.connecting, .status.down { color: var(--yellow); }

.feed { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow-y: auto; }
.feed:empty + .empty-hint { display: block; }
.empty-hint { display: none; font-family: Arial, sans-serif; font-size: 12px; color: #666; text-align: center; padding: 24px 14px; }

.hit {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  font-family: Arial, sans-serif; border-bottom: 1px solid #222;
  animation: slamin .3s ease-out;
}
@keyframes slamin { from { background: var(--red); transform: translateX(-8px); } to { background: transparent; transform: none; } }
.av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--red); }
.av.blank { display: grid; place-items: center; background: var(--red); color: #fff; font-weight: bold; }
.who { flex: 1; font-size: 13px; line-height: 1.3; }
.who b { color: var(--yellow); }
.when { font-size: 11px; color: #777; flex: none; }
