/* ============================================================
   StreamVault – Design System
   Dark-first, refined minimalist with warm accent palette.
   Font stack: Syne (display) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Neutrals */
  --bg-base:      #0c0c10;
  --bg-surface:   #131318;
  --bg-elevated:  #1a1a22;
  --bg-hover:     #20202a;
  --border:       rgba(255,255,255,0.07);
  --border-mid:   rgba(255,255,255,0.12);

  /* Text */
  --text-primary:   #f0f0f5;
  --text-secondary: #8888a0;
  --text-muted:     #505068;

  /* Accent – override per-user via JS */
  --accent:         #7c6dfa;
  --accent-dim:     rgba(124,109,250,0.15);
  --accent-hover:   #9285fc;

  /* Semantic */
  --red:     #f05060;
  --green:   #3ecfa0;
  --yellow:  #f5c842;

  /* Sizing */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  24px;
  --radius-full: 999px;

  --nav-h:    60px;
  --sidebar-w: 240px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 24px rgba(124,109,250,0.25);

  /* Transitions */
  --t-fast:  150ms ease;
  --t-base:  220ms ease;
  --t-slow:  380ms ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

.text-sm   { font-size: 0.85rem; }
.text-xs   { font-size: 0.75rem; }
.text-muted { color: var(--text-secondary); }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(12,12,16,0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  z-index: 1000;
}

.navbar-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  flex-shrink: 0;
}
.navbar-logo span { color: var(--accent); }

.navbar-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.navbar-search input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 9px 16px 9px 42px;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}
.navbar-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.navbar-search input::placeholder { color: var(--text-muted); }
.navbar-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.navbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-mid);
  transition: border-color var(--t-fast);
}
.nav-avatar:hover { border-color: var(--accent); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--t-fast);
  white-space: nowrap;
  outline: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-mid);
}
.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-mid);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 14px;
}
.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.btn-danger {
  background: rgba(240,80,96,0.15);
  color: var(--red);
  border: 1px solid rgba(240,80,96,0.25);
}
.btn-danger:hover {
  background: rgba(240,80,96,0.25);
}

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 12px 28px; font-size: 1rem; }

.btn-subscribe {
  background: var(--text-primary);
  color: var(--bg-base);
  font-weight: 600;
}
.btn-subscribe:hover { background: #d0d0e0; transform: translateY(-1px); }
.btn-subscribe.subscribed {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-mid);
}

/* ── Layout ─────────────────────────────────────────────────── */
.page-wrap {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Video Grid ──────────────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.video-grid-wide {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* ── Video Card ──────────────────────────────────────────────── */
.video-card {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--t-base);
  background: var(--bg-surface);
}
.video-card:hover { transform: translateY(-4px); }
.video-card:hover .card-thumb img { transform: scale(1.04); }

.card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-elevated);
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.card-thumb .no-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-muted);
}

.card-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

.card-body {
  padding: 12px 14px 14px;
  display: flex;
  gap: 10px;
}

.card-avatar-wrap {
  flex-shrink: 0;
}
.card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-elevated);
}

.card-info { flex: 1; min-width: 0; }

.card-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
  transition: color var(--t-fast);
}
.video-card:hover .card-title { color: var(--accent); }

.card-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Section Headers ─────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent-dim);
  color: var(--accent);
  margin-right: 10px;
}
.section-label.trending { background: rgba(240,80,96,0.12); color: var(--red); }

/* ── Forms ───────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-label {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  width: 100%;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input.error { border-color: var(--red); }

textarea.form-input { resize: vertical; min-height: 100px; }

.form-error {
  font-size: 0.8rem;
  color: var(--red);
  margin-top: 4px;
}
.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Cards / Surfaces ────────────────────────────────────────── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card-elevated {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 20px;
}

/* ── Auth Pages ──────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(124,109,250,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(62,207,160,0.06) 0%, transparent 55%),
    var(--bg-base);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  text-align: center;
}
.auth-logo span { color: var(--accent); }

.auth-title {
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.auth-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Watch Page ──────────────────────────────────────────────── */
.watch-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px;
}

.video-player-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
}
.video-player-wrap video {
  width: 100%;
  height: 100%;
}

.video-info { padding: 16px 0; }

.video-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.video-title-row h1 {
  font-size: 1.35rem;
  line-height: 1.35;
}

.video-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-mid);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--t-fast);
}
.like-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.like-btn.liked {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.channel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.channel-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.channel-name { font-weight: 600; font-size: 0.95rem; }
.channel-subs { font-size: 0.8rem; color: var(--text-secondary); }

.video-description {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  white-space: pre-wrap;
  margin-bottom: 24px;
}

/* ── Comments ─────────────────────────────────────────────────── */
.comments-section h3 {
  font-size: 1rem;
  margin-bottom: 16px;
}

.comment-form {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.comment-form textarea {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.875rem;
  resize: none;
  min-height: 68px;
  outline: none;
  transition: border-color var(--t-fast);
}
.comment-form textarea:focus { border-color: var(--accent); }

.comment {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.comment-body { flex: 1; }
.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.comment-username { font-weight: 600; font-size: 0.85rem; }
.comment-time { font-size: 0.75rem; color: var(--text-muted); }
.comment-text { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.55; }
.comment-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.comment-action-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--t-fast);
}
.comment-action-btn:hover { color: var(--text-primary); }

.replies { margin-top: 12px; padding-left: 20px; }

/* ── Sidebar (related) ────────────────────────────────────────── */
.watch-sidebar { display: flex; flex-direction: column; gap: 0; }
.sidebar-video-card {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity var(--t-fast);
}
.sidebar-video-card:hover { opacity: 0.85; }
.sidebar-thumb {
  width: 128px;
  flex-shrink: 0;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-elevated);
  position: relative;
}
.sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-info { flex: 1; min-width: 0; }
.sidebar-title {
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.sidebar-meta { font-size: 0.75rem; color: var(--text-secondary); }

/* ── Profile ──────────────────────────────────────────────────── */
.profile-banner {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--bg-elevated);
  display: block;
}
.profile-banner-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
}

.profile-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-top: -56px;
  position: relative;
}
.profile-avatar-wrap {
  flex-shrink: 0;
  position: relative;
}
.profile-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 4px solid var(--bg-base);
  object-fit: cover;
  background: var(--bg-elevated);
}
.profile-meta { flex: 1; padding-bottom: 8px; }
.profile-display-name { font-size: 1.6rem; margin-bottom: 2px; }
.profile-username { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 8px; }
.profile-stats {
  display: flex;
  gap: 20px;
  font-size: 0.83rem;
  color: var(--text-secondary);
}
.profile-stats strong { color: var(--text-primary); font-weight: 600; }

.profile-bio {
  max-width: 1100px;
  margin: 16px auto 0;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.profile-tabs {
  max-width: 1100px;
  margin: 20px auto 0;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0;
}
.profile-tab {
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--t-fast);
}
.profile-tab.active, .profile-tab:hover { color: var(--text-primary); }
.profile-tab.active { border-bottom-color: var(--accent); }

/* ── Dashboard ────────────────────────────────────────────────── */
.dashboard-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - var(--nav-h));
}

.dashboard-sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding: 28px 0;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--t-fast);
}
.dash-nav-item:hover, .dash-nav-item.active {
  color: var(--text-primary);
  background: var(--bg-elevated);
}
.dash-nav-item.active { color: var(--accent); }
.dash-nav-icon { font-size: 1.1rem; }

.dashboard-content {
  padding: 28px;
  overflow-y: auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.stat-card.accent-card { border-color: var(--accent); background: var(--accent-dim); }
.stat-card.accent-card .stat-value { color: var(--accent); }

/* ── Upload ────────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border-mid);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  transition: all var(--t-base);
  cursor: pointer;
  background: var(--bg-surface);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.upload-icon { font-size: 3rem; margin-bottom: 16px; color: var(--text-muted); }
.upload-zone h3 { margin-bottom: 8px; }
.upload-zone p { color: var(--text-secondary); font-size: 0.875rem; }

.progress-wrap {
  margin-top: 24px;
  display: none;
}
.progress-wrap.visible { display: block; }
.progress-bar-bg {
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  height: 6px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* ── Admin ─────────────────────────────────────────────────────── */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.admin-table th {
  text-align: left;
  padding: 10px 14px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table tr:hover td { background: var(--bg-elevated); }

/* ── Toast ──────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 0.875rem;
  box-shadow: var(--shadow-md);
  animation: slideIn 0.2s ease forwards;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 320px;
}
.toast.success { border-color: var(--green); color: var(--green); }
.toast.error   { border-color: var(--red);   color: var(--red);   }
@keyframes slideIn {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ── Badge / Tag ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
}
.badge-processing { background: rgba(245,200,66,0.15); color: var(--yellow); }
.badge-ready      { background: rgba(62,207,160,0.15); color: var(--green); }
.badge-failed     { background: rgba(240,80,96,0.15);  color: var(--red); }

/* ── Skeleton Loaders ────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-hover) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Misc ──────────────────────────────────────────────────────── */
.avatar-placeholder {
  background: var(--accent-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--accent);
}

.divider { height: 1px; background: var(--border); margin: 24px 0; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state h3 { margin-bottom: 6px; color: var(--text-primary); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .watch-layout { grid-template-columns: 1fr; }
  .watch-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sidebar-video-card { flex-direction: column; }
  .sidebar-thumb { width: 100%; }
}

@media (max-width: 900px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { display: none; }
  .profile-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .navbar-search { display: none; }
  .auth-card { padding: 32px 24px; }
  .video-grid { grid-template-columns: 1fr; }
  :root { --sidebar-w: 0; }
}
