:root {
  --bg: #fff;
  --panel: #fff;
  --text: #fff;
  --muted: #9ca3af;
  --accent: #3b82f6;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji"; }
.page { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  padding: 16px;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.back-btn {
  background: none;
  border: none;
  color: var(--text);
  opacity: 0.8;
  font-size: 14px;
  cursor: pointer;
}
.title { font-weight: 700; }
.channel-switcher {
  display: flex;
  gap: 8px;
}
.channel-btn {
  text-decoration: none;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 4px;
  background: #333;
  font-size: 14px;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  font-weight: 500;
}
.channel-btn:hover {
  background: #444;
}
.channel-btn.active {
  background: var(--accent);
  color: white;
}
.spacer { width: 40px; }
.player-area {
  flex: 1;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
}
.player-container {
  position: relative;
  width: min(80vw, 1200px);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity .3s;
}
.icon-btn {
  color: var(--text);
  background: none;
  border: none;
  padding: 6px 10px;
  font-size: 16px;
  cursor: pointer;
}
.volume { display: flex; align-items: center; gap: 8px; width: 180px; }
.volume input[type="range"] {
  width: 120px;
  accent-color: var(--accent);
}
.grow { flex: 1; }
.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
}
.spinner {
  width: 36px; height: 36px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.error-banner {
  position: absolute;
  top: 16px; left: 16px; right: 16px;
  padding: 10px 12px;
  background: rgba(220, 38, 38, 0.9);
  border-radius: 8px;
  font-size: 14px;
}

