:root {
  --bg: #0b0f1a;
  --card: #151b2c;
  --card-press: #1c2338;
  --text: #e8eaf2;
  --muted: #8b93a7;
  --accent: #ff3b4d;
  --live: #2ecc71;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { color-scheme: dark; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

header {
  padding: 20px 16px 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

h1 { font-size: 1.4rem; flex: 1 1 auto; }
.siren { filter: drop-shadow(0 0 8px rgba(255, 59, 77, 0.7)); }

#notify-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 20px;
  min-height: 48px;
  width: 100%;
  cursor: pointer;
}
#notify-btn:active { transform: scale(0.98); }
#notify-btn:disabled { opacity: 0.6; }

#notify-status { width: 100%; font-size: 0.85rem; }

main { flex: 1; padding: 8px 16px 24px; }

h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 20px 0 10px;
}

.stream-list { display: flex; flex-direction: column; gap: 10px; }

.stream-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius);
  padding: 10px;
  text-decoration: none;
  color: inherit;
  min-height: 84px;
}
.stream-card:active { background: var(--card-press); }

.stream-card img {
  width: 112px;
  height: 63px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #000;
}

.stream-info { min-width: 0; }

.stream-channel {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stream-card.live .stream-channel::before {
  content: "● LIVE ";
  color: var(--live);
}

.stream-title {
  font-size: 0.95rem;
  line-height: 1.3;
  margin: 2px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stream-time { font-size: 0.78rem; color: var(--muted); }

.muted { color: var(--muted); }
.empty { padding: 14px 4px; font-size: 0.9rem; }

footer {
  padding: 12px 16px 20px;
  font-size: 0.72rem;
  text-align: center;
}

@media (min-width: 700px) {
  main, header, footer { max-width: 640px; margin-left: auto; margin-right: auto; width: 100%; }
}
