html, body {
  margin: 0;
  padding: 0;
  background: transparent;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: white;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 12px 14px;
  width: 600px;
  box-sizing: border-box;

  background: rgba(0, 0, 0, 0.55);
  border-radius: 14px;

  /* fade behavior */
  opacity: 1;
  transition: opacity 220ms ease;
}

/* fade out */
.wrap.hidden {
  opacity: 0;
  pointer-events: none;
}

/* fully remove from layout after fade completes */
.wrap.gone {
  display: none;
}

/* optional dim while paused (still visible until timeout) */
.wrap.paused {
  opacity: 0.85;
}

img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.10);
  user-select: none;
  -webkit-user-drag: none;
}

.txt {
  overflow: hidden;
  min-width: 0; /* helps ellipsis work in flex layouts */
}

.title {
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sub {
  opacity: 0.9;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;

  background: rgba(255, 255, 255, 0.14);
  opacity: 0.95;
  vertical-align: middle;
}

.badge.hidden {
  display: none;
}
