/* BWNation Streamlist — donker thema, mobiel eerst. */

:root {
  --bg: #0b0d10;
  --bg-raised: #14181d;
  --bg-row: #171c22;
  --line: #232a32;
  --text: #eef2f6;
  --text-dim: #96a2b0;
  --text-faint: #6b7885;
  --kick: #53fc18;
  --youtube: #ff3d3d;
  --live: #ff2e4d;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  background: var(--bg-raised);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

.wrap {
  width: min(100% - 1.6rem, 900px);
  margin-inline: auto;
  padding: 1.5rem 0 3rem;
}

/* ------------------------------------------------------------- kopregel -- */

.masthead {
  padding: 0.5rem 0 1.25rem;
}

.logo {
  margin: 0;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo__accent {
  color: var(--kick);
}

.tagline {
  margin: 0.3rem 0 0;
  color: var(--text-dim);
  font-size: 0.98rem;
}

.notice {
  margin: 0 0 1.5rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid #4a3a12;
  background: #221a09;
  color: #e8c86a;
  border-radius: var(--radius);
  font-size: 0.88rem;
}

/* ------------------------------------------------------------- secties --- */

.section {
  margin-bottom: 2.2rem;
}

.section__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.section--live .section__title {
  color: var(--live);
}

.section__count {
  color: var(--text-faint);
  font-weight: 600;
  letter-spacing: 0;
}

.empty {
  margin: 0;
  padding: 1.1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--text-faint);
  font-size: 0.95rem;
}

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

/* ---------------------------------------------------------------- rijen -- */

.row {
  background: var(--bg-row);
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: var(--radius);
  transition: background 0.15s ease, transform 0.15s ease;
}

.row--kick {
  border-left-color: var(--kick);
}

.row--youtube {
  border-left-color: var(--youtube);
}

.row:hover {
  background: #1c222a;
}

.row__link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
}

.avatar-link {
  display: flex;
  flex: none;
}

a:focus-visible {
  outline: 2px solid var(--kick);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Iemand die op meerdere plekken streamt: randje in beide kleuren. */
.row--multi {
  border-left-color: transparent;
  background-image: linear-gradient(180deg, var(--kick) 0 50%, var(--youtube) 50% 100%);
  background-repeat: no-repeat;
  background-size: 4px 100%;
  background-position: left center;
  background-origin: border-box;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--bg-raised);
}

.avatar--fallback {
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--text-faint);
  border: 1px solid var(--line);
}

.row--live .avatar {
  box-shadow: 0 0 0 2px var(--live);
}

.row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.row__head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.row__name {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
}

.row__name:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.row__also {
  font-size: 0.78rem;
  color: var(--text-faint);
}

.row__title,
.row__last {
  color: var(--text-dim);
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row__last--never {
  color: var(--text-faint);
  font-style: italic;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  border: 1px solid currentColor;
  opacity: 0.55;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.tag:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

/* Het platform waarop iemand nu uitzendt springt eruit; de rest blijft gedimd. */
.tag--on,
.tag--active {
  opacity: 1;
}

.tag__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.tag--kick {
  color: var(--kick);
}

.tag--youtube {
  color: var(--youtube);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--live);
  padding: 0.14rem 0.42rem;
  border-radius: 4px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
  animation: pulse 2s ease-in-out infinite;
}

.live-badge .dot {
  background: #fff;
}

.section--live .section__title .dot {
  background: var(--live);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dot {
    animation: none;
  }
}

.row__meta {
  flex: none;
  text-align: right;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.viewers {
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.viewers__label,
.uptime {
  font-size: 0.72rem;
  color: var(--text-faint);
}

/* ----------------------------------------------------------------- rest -- */

.updated,
.foot {
  color: var(--text-faint);
  font-size: 0.82rem;
}

.foot {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* -------------------------------------------------------------- mobiel --- */

@media (max-width: 480px) {
  .row__link {
    padding: 0.7rem 0.75rem;
    gap: 0.7rem;
  }

  .avatar {
    width: 42px;
    height: 42px;
  }

  .row__name {
    font-size: 0.96rem;
  }

  .viewers {
    font-size: 0.95rem;
  }

  .row__title,
  .row__last {
    font-size: 0.84rem;
  }
}
