/* ═══════════════════════════════════════════════════════
   public/css/style.css — ClueLand Global Styles
═══════════════════════════════════════════════════════ */


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

body {
  background: #0e0e10;
  font-family: 'Inter', sans-serif;
  color: #efeff1;
  min-height: 100vh;
  line-height: 1.5;
}

/* ─── CSS Variables ─── */
:root {
  --primary:    #9146ff;
  --primary-rgb: 145,70,255;
  --primary-deep:#3a0080;
  --thumb-bg:     #111116;
  --thumb-grad-1: #1a0a30;
  --thumb-grad-2: #08081a;
  --danger:       #ff6b6b;
  --primary-dk: #772ce8;
  --primary-lt: #a970ff;
  --bg:         #0e0e10;
  --bg-2:       #18181b;
  --bg-3:       #1f1f23;
  --bg-4:       #26262c;
  --border:     #2c2c34;
  --border-2:   #3a3a44;
  --text:       #efeff1;
  --text-2:     #adadb8;
  --text-3:     #6b7280;
  --header-h:   108px;
  --radius:     0.75rem;
  --radius-lg:  1.25rem;
  --radius-xl:  1.75rem;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ═══════════════════════════════════════════
   SITE HEADER (sticky, backdrop-blur)
═══════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(14, 14, 16, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.site-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(90,40,170,0.3) 10%,
    rgba(var(--primary-rgb),0.6) 25%,
    rgba(180,120,255,1) 50%,
    rgba(var(--primary-rgb),0.6) 75%,
    rgba(90,40,170,0.3) 90%,
    transparent 100%
  );
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.logo i {
  font-size: 1.4rem;
  color: var(--primary);
}
.logo span {
  font-family: 'Lora', serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Auth buttons */
.auth-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-2);
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  cursor: pointer;
  color: var(--text);
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.btn-ghost:hover {
  border-color: var(--primary);
  background: rgba(145, 70, 255, 0.1);
}

.btn-primary-sm {
  background: var(--primary);
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  cursor: pointer;
  color: #fff;
  font-size: 0.875rem;
  font-family: inherit;
  font-weight: 600;
  transition: background 0.15s;
}
.btn-primary-sm:hover { background: var(--primary-dk); }

/* User menu */
.user-menu { position: relative; }

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-4);
  border: 1px solid var(--border);
  padding: 0.35rem 0.85rem 0.35rem 0.5rem;
  border-radius: 2rem;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}
.user-menu-btn:hover {
  border-color: var(--primary);
  background: var(--bg-3);
}

.user-avatar-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.user-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-avatar-wrap .fa-user-circle {
  font-size: 1.5rem;
  color: var(--text-2);
}

.user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dd-caret {
  font-size: 0.65rem;
  color: var(--text-3);
  transition: transform 0.2s;
}
.user-menu-btn[aria-expanded="true"] .dd-caret { transform: rotate(180deg); }

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  min-width: 220px;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
}

.dd-greeting {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dd-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.6rem 1rem;
  color: var(--text);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-family: inherit;
  transition: background 0.12s;
}
.dd-link i { width: 16px; text-align: center; color: var(--text-3); }
.dd-link:hover { background: var(--bg-4); }
.dd-link:hover i { color: var(--primary); }

.dd-divider { margin: 0.25rem 0; border-color: var(--border); }

.dd-logout { color: #fc6868 !important; }
.dd-logout i { color: #fc6868 !important; }
.dd-logout:hover { background: rgba(252, 104, 104, 0.1) !important; }

/* ═══════════════════════════════════════════
   AUTH MODAL
═══════════════════════════════════════════ */
.cl-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.15s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.cl-modal {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
  animation: slideUp 0.2s ease;
}

@keyframes slideUp {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.cl-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-4);
  border: none;
  color: var(--text-3);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.cl-modal-close:hover { background: var(--border-2); color: var(--text); }

.cl-modal-title {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.cl-input {
  display: block;
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.15s;
  outline: none;
}
.cl-input:focus { border-color: var(--primary); }
.cl-input::placeholder { color: var(--text-3); }

.cl-submit {
  display: block;
  width: 100%;
  padding: 0.7rem;
  margin-bottom: 0.75rem;
}

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

.btn-twitch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem;
  background: #6441a5;
  border: none;
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 1rem;
}
.btn-twitch:hover { background: #4b367c; }

.cl-switch-text {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-3);
}

.cl-link {
  background: none;
  border: none;
  color: var(--primary-lt);
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  text-decoration: underline;
}
.cl-link:hover { color: var(--primary); }

/* ═══════════════════════════════════════════
   GLOBAL BUTTONS
═══════════════════════════════════════════ */
.btn-primary {
  background: var(--primary);
  border: none;
  padding: 0.55rem 1.4rem;
  border-radius: 2rem;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  color: #fff;
  transition: background 0.15s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-primary:hover { background: var(--primary-dk); }
.btn-primary:active { transform: scale(0.97); }

/* ═══════════════════════════════════════════
   CONTAINER
═══════════════════════════════════════════ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* ═══════════════════════════════════════════
   PANELS / CARDS
═══════════════════════════════════════════ */
.panel, .info-card {
  background: var(--bg-3);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.panel-title, .info-card h3 {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
}
.info-card h3 i { color: var(--primary); }

/* ═══════════════════════════════════════════
   VIDEO CARDS
═══════════════════════════════════════════ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 1200px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .video-grid { grid-template-columns: 1fr; } }

.video-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  border-color: var(--primary);
}
.video-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--thumb-color, var(--primary)) 0%, #0a0a0c 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.video-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}
.video-thumb-icon {
  position: relative;
  z-index: 1;
  font-size: 2.25rem;
  color: rgba(255, 255, 255, 0.18);
  transition: transform 0.25s ease, color 0.25s ease;
}
.video-card:hover .video-thumb-icon {
  transform: scale(1.3);
  color: rgba(255, 255, 255, 0.45);
}

.video-badge {
  position: absolute;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.18rem 0.45rem;
  border-radius: 0.3rem;
  line-height: 1.4;
}
.video-duration {
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  letter-spacing: 0.02em;
}
.video-game-tag {
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(0, 0, 0, 0.72);
  color: var(--primary-lt);
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-info { padding: 0.75rem; }

.video-title {
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.4;
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
}

.video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-3);
  margin-bottom: 0.2rem;
}
.video-meta .views i { margin-right: 0.2rem; }
.video-date { font-size: 0.72rem; color: var(--text-3); }

.no-videos {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-3);
  font-size: 0.95rem;
}

/* ═══════════════════════════════════════════
   CHANNEL HEADER
═══════════════════════════════════════════ */
.channel-header {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  margin-bottom: 1.5rem;
}

.channel-banner-wrap {
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
  /* Пропорция 4:1 — под баннер 1600×400. height не задаём:
     заданная высота отменяет расчёт по aspect-ratio.
     Ширина ограничена 1600px: на широких мониторах шапка не растягивается,
     иначе кадр обрезался бы сверху и снизу (на 2560px было видно лишь 62%). */
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  aspect-ratio: 4 / 1;
  height: auto;
  min-height: 150px;
}

.channel-banner {
  width: 100%;
  height: 100%;
  background: #2c2c34;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(var(--primary-rgb),0.08) 0px, rgba(var(--primary-rgb),0.08) 1px,
      transparent 1px, transparent 12px
    ),
    linear-gradient(180deg, #1c1c22 0%, #13131a 100%);
}

.channel-info {
  display: flex;
  gap: 1.25rem;
  padding: 0 1.5rem 1.25rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.channel-avatar-wrap { flex-shrink: 0; margin-top: -44px; position: relative; z-index: 1; }
.channel-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  background: var(--bg-2);
  display: block;
}

.channel-details { flex: 1; min-width: 0; padding-bottom: 0.25rem; }
.channel-name {
  font-family: 'Lora', serif;
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}
.channel-stats { color: var(--text-3); font-size: 0.85rem; }

.edit-channel-btn {
  background: var(--bg-4);
  border: 1px solid var(--border-2);
  padding: 0.3rem 0.9rem;
  border-radius: 2rem;
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--text-2);
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.edit-channel-btn:hover { border-color: var(--primary); background: rgba(var(--primary-rgb),0.1); color: var(--text); }

/* ═══════════════════════════════════════════
   TABS
═══════════════════════════════════════════ */
.tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.tab:hover  { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ═══════════════════════════════════════════
   ARCHIVE LAYOUT (2 columns)
═══════════════════════════════════════════ */
.archive-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .archive-layout { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   FILTER BAR
═══════════════════════════════════════════ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.filter-input {
  flex: 1;
  min-width: 160px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s;
}
.filter-input:focus { border-color: var(--primary); }
.filter-input::placeholder { color: var(--text-3); }

.filter-select {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 2rem;
  padding: 0.5rem 0.9rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}
.filter-select:focus { border-color: var(--primary); }
.filter-select option { background: var(--bg-3); }

/* ═══════════════════════════════════════════
   LEADERBOARD LIST (side widget)
═══════════════════════════════════════════ */
.lb-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid var(--border);
}
.lb-item:last-child { border-bottom: none; }
.lb-rank {
  font-family: 'Lora', serif;
  font-weight: 800;
  font-size: 0.85rem;
  width: 20px;
  text-align: center;
  color: var(--text-3);
  flex-shrink: 0;
}
.lb-rank.gold   { color: #f4c430; }
.lb-rank.silver { color: #9ca3af; }
.lb-rank.bronze { color: #cd7f32; }
.lb-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.lb-name  { flex: 1; font-size: 0.85rem; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-score { font-size: 0.75rem; color: var(--text-3); white-space: nowrap; }

/* ═══════════════════════════════════════════
   STATS SIDE WIDGET
═══════════════════════════════════════════ */
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.stat-row:last-child { border-bottom: none; }
.stat-row .label { color: var(--text-3); }
.stat-row .value { font-weight: 600; }

/* ═══════════════════════════════════════════
   WATCH PAGE — Player & Metadata
═══════════════════════════════════════════ */
.watch-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 960px) {
  .watch-layout { grid-template-columns: 1fr; }
  .watch-sidebar { display: none; }
}

.player-wrap {
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.video-js {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}
.vjs-default-skin .vjs-big-play-button {
  border-color: var(--primary) !important;
  background: rgba(145, 70, 255, 0.35) !important;
  border-radius: 50% !important;
  width: 3.5rem !important;
  height: 3.5rem !important;
  line-height: 3.5rem !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
}
.vjs-default-skin:hover .vjs-big-play-button {
  background: rgba(145, 70, 255, 0.7) !important;
}

.video-meta-block {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.video-meta-title {
  font-family: 'Lora', serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.video-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.video-meta-left { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.video-meta-tag {
  background: rgba(145, 70, 255, 0.15);
  color: var(--primary-lt);
  padding: 0.2rem 0.65rem;
  border-radius: 2rem;
  font-size: 0.78rem;
  font-weight: 600;
}
.video-meta-info { font-size: 0.83rem; color: var(--text-3); }
.video-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.4rem 0.9rem;
  color: var(--text-2);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.action-btn:hover { background: var(--bg-3); border-color: var(--border-2); color: var(--text); }
.action-btn.active { border-color: var(--primary); color: var(--primary); }

/* Comments */
.comments-section {
  margin-top: 1rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.comments-title {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.comment {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.comment:last-child { border-bottom: none; }

.comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.comment-author { font-weight: 600; font-size: 0.875rem; }
.comment-time   { font-size: 0.75rem; color: var(--text-3); margin-left: 0.5rem; }
.comment-text   { font-size: 0.875rem; color: var(--text-2); margin-top: 0.25rem; }
.comment-delete { color: #fc6868; font-size: 0.75rem; cursor: pointer; background: none; border: none; font-family: inherit; }
.comment-delete:hover { text-decoration: underline; }

.comment-form textarea {
  display: block;
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  resize: vertical;
  outline: none;
  min-height: 72px;
  transition: border-color 0.15s;
}
.comment-form textarea:focus { border-color: var(--primary); }
.comment-form textarea::placeholder { color: var(--text-3); }

/* ═══════════════════════════════════════════
   DASHBOARD / STATS
═══════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
}

table {
  width: 100%;
  background: var(--bg-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border-collapse: collapse;
}
th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
th { background: var(--bg-4); font-weight: 600; color: var(--text-2); }
tr:last-child td { border-bottom: none; }
.delete-btn { color: #fc6868; cursor: pointer; background: none; border: none; font-family: inherit; font-size: 0.85rem; }

/* ═══════════════════════════════════════════
   TOAST
═══════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  background: var(--bg-3);
  border-left: 3px solid var(--primary);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  z-index: 9999;
  font-size: 0.875rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: slideInToast 0.2s ease;
  max-width: 320px;
}
@keyframes slideInToast {
  from { transform: translateX(-20px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

/* ═══════════════════════════════════════════
   STREAMER CARD (лендинг)
═══════════════════════════════════════════ */
.streamer-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-4);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  border: 1px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}
.streamer-card:hover { border-color: var(--primary); background: rgba(var(--primary-rgb),0.08); }
.streamer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   MARKDOWN
═══════════════════════════════════════════ */
.markdown-body { color: var(--text-2); line-height: 1.7; }
.markdown-body p   { margin-bottom: 0.75rem; }
.markdown-body a   { color: var(--primary-lt); }
.markdown-body h1,
.markdown-body h2,
.markdown-body h3  { font-family: 'Lora', serif; margin: 1rem 0 0.5rem; color: var(--text); }
.markdown-body code { background: var(--bg-2); padding: 0.1rem 0.35rem; border-radius: 4px; font-size: 0.85em; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.8rem;
}

/* ═══════════════════════════════════════════
   MOBILE
═══════════════════════════════════════════ */
@media (max-width: 640px) {
  .header-inner { padding: 0 1rem; }
  .user-name     { display: none; }
  .container     { padding: 1rem 0.75rem; }
  .channel-banner-wrap { min-height: 96px; }
  .channel-avatar { width: 72px; height: 72px; }
  .channel-avatar-wrap { margin-top: -36px; }
  .channel-name   { font-size: 1.25rem; }
  .channel-info   { padding: 0 1rem 1rem; gap: 0.75rem; }
  .filter-bar     { gap: 0.5rem; }
  .filter-select  { width: 100%; }
  .filter-input   { min-width: 0; }
  .tabs           { gap: 0; }
  .tab            { padding: 0.55rem 0.75rem; font-size: 0.82rem; }
}