:root {
  --bg: #0e0e10;
  --card: #18181b;
  --line: #2a2a2f;
  --text: #efeff1;
  --muted: #adadb8;
  --accent: #9147ff;
  --live: #eb0400;
  --ok: #00c853;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
header h1 { margin: 0; font-size: 1.4rem; line-height: 1.2; }

.brand { display: flex; align-items: center; gap: .8rem; }
.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
  border: 2px solid var(--accent);
}
.brand .channel { display: block; color: var(--muted); font-size: .85rem; font-weight: 600; }

main { padding: 1.5rem; max-width: 1200px; margin: 0 auto; }

button, input {
  font: inherit;
  color: var(--text);
  background: #26262c;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .45rem .8rem;
}
button { cursor: pointer; }
button:hover { background: #33333a; }
button.primary { background: var(--accent); border-color: var(--accent); font-weight: 600; }
button.primary:hover { filter: brightness(1.1); }
button.small { padding: .25rem .55rem; font-size: .85rem; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}
#add-form { display: flex; gap: .5rem; }
#add-input { width: 260px; max-width: 60vw; }
.toggle { display: flex; align-items: center; gap: .35rem; cursor: pointer; }
.muted { color: var(--muted); font-size: .9rem; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .6rem .7rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 500; font-size: .85rem; white-space: nowrap; }
td.num, th.num { text-align: right; }
tr.offline { opacity: .55; }
tr.online td:first-child { box-shadow: inset 3px 0 0 var(--live); }

.legend { margin: 0 0 .5rem; }
/* Favoriten: lila leuchtender Stern */
.star {
  color: #bf94ff;
  font-size: 1.1rem;
  animation: star-glow 2s ease-in-out infinite;
}
@keyframes star-glow {
  0%, 100% { text-shadow: 0 0 4px var(--accent); }
  50%      { text-shadow: 0 0 10px var(--accent), 0 0 18px var(--accent); }
}

.who { display: flex; align-items: center; gap: .6rem; }
.who img { width: 34px; height: 34px; border-radius: 50%; }
.who a { color: var(--text); font-weight: 600; text-decoration: none; }
.who a:hover { color: var(--accent); }
.tag { font-size: .7rem; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 .3rem; }

.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: .1rem .45rem; border-radius: 4px; }
.badge.live { background: var(--live); }
.badge.off { background: #3a3a3d; color: var(--muted); }
.badge.missing { background: #5c3b00; }

.title { max-width: 380px; }
.title .game { font-weight: 600; }
.title .text { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.actions { display: flex; gap: .4rem; justify-content: flex-end; white-space: nowrap; }

#toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  padding: .6rem 1rem;
  border-radius: 6px;
  font-weight: 600;
}
