/* ═══════════════════════════════════════════════
   ŻeloTV — Base Styles
   Variables · reset · typography · buttons · login · toast
   ═══════════════════════════════════════════════ */

:root {
  --bg: #0a0a0a;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.06);
  --bg-elevated: rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.06);
  --border-accent: rgba(255,255,255,0.12);
  --text: #e8e8e8;
  --text-dim: #888;
  --text-muted: #555;
  --accent: #7c5bf5;
  --accent-glow: rgba(124,91,245,0.15);
  --red: #e53e3e;
  --green: #38a169;
  --live-red: #ff4444;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --sidebar-w: 220px;
  --sidebar-w-collapsed: 54px;
  --navbar-h: 48px;
  --info-bar-h: 48px;
  --chat-input-h: 48px;
  --transition: 180ms ease;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%; width: 100%; height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Non-selectable UI elements */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
/* Allow selection in interactive / content areas */
.chat-msg, .chat-input, .rv, .rv-input, .s-input, .pwd-input,
input, textarea, [contenteditable] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}
/* Prevent image dragging */
img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}
/* Allow pointer events on clickable images */
a img, button img, .nav-avatar, .sb-avatar, .streamer-avatar, .sc-avatar {
  pointer-events: auto;
}

#fx {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
}

.view { display: none; height: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border: none; border-radius: var(--radius);
  font: 500 14px/1 'Inter', sans-serif;
  cursor: pointer; transition: all var(--transition);
  text-decoration: none;
}
.bw { background: #fff; color: #000; }
.bw:hover { background: #e0e0e0; text-decoration: none; }
.bw:active { transform: scale(0.97); }
.bo { background: transparent; color: var(--text); border: 1px solid var(--border-accent); }
.bo:hover { background: var(--bg-elevated); border-color: var(--text-dim); text-decoration: none; }
.bo:active { transform: scale(0.97); }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: none; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-dim); cursor: pointer; transition: all var(--transition);
}
.icon-btn:hover { background: var(--bg-elevated); color: var(--text); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn-sm { width: 26px; height: 26px; }

/* ── Login view ──────────────────────────────── */
#vLogin {
  display: flex; align-items: center; justify-content: center;
  position: fixed; inset: 0; z-index: 100;
}
.login-center {
  text-align: center;
  animation: fadeUp .5s ease both;
}
.hero-icon {
  width: 64px; height: 64px; margin: 0 auto 24px;
  background: var(--bg-card); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.hero-icon svg { width: 28px; height: 28px; }
.login-center h1 {
  font-size: 28px; font-weight: 700; letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.login-sub { color: var(--text-dim); margin-bottom: 32px; }

/* ── Toast ────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: rgba(20,20,20,0.95); color: var(--text); border: 1px solid var(--border-accent);
  border-radius: var(--radius); padding: 10px 20px;
  font-size: 13px; pointer-events: none;
  opacity: 0; transition: opacity .3s, transform .3s cubic-bezier(.4,0,.2,1);
  z-index: 999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* ── Utilities ───────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
