:root {
  --bg: #0d0f14;
  --surface: #161a22;
  --surface-2: #1f2530;
  --text: #f5f7fa;
  --muted: #9aa4b2;
  --accent: #25d366;
  --accent-2: #ff3b30;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #1b2230 0%, var(--bg) 60%);
  color: var(--text);
  min-height: 100vh;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #232a36;
}

.site-header h1 {
  font-size: 1.25rem;
  margin: 0;
  letter-spacing: 0.5px;
}

.badge-live {
  background: var(--accent-2);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px;
}

.player-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.player-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

#player { width: 100%; height: 100%; }

.player-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
}

.player-meta .label { color: var(--muted); font-size: 0.8rem; }
.player-meta #now-playing { font-weight: 600; font-size: 1rem; }

#status { color: var(--accent-2); font-size: 0.85rem; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  border: none;
  cursor: pointer;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  transition: transform 0.08s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-refresh { background: var(--accent-2); }
.btn-refresh:hover { opacity: 0.9; }

.channels { margin-top: 28px; }
.channels h2 { font-size: 1rem; color: var(--muted); margin: 0 0 12px; }

#channel-list { display: flex; flex-wrap: wrap; gap: 10px; }

.channel-btn {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid #2a3140;
  border-radius: 8px;
  padding: 9px 18px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.channel-btn:hover { border-color: var(--accent); }
.channel-btn.is-active {
  background: var(--accent);
  color: #06210f;
  border-color: var(--accent);
  font-weight: 700;
}

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 24px;
}
