/* public/assets/css/app.css — ClipViral TikTok-like theme */

:root {
  --bg: #000;
  --surface: #161823;
  --surface2: #1f1f2e;
  --border: #2a2a3a;
  --text: #e8e8e8;
  --text-muted: #8a8a9a;
  --accent: #fe2c55;
  --accent2: #25f4ee;
  --verified: #20d5ec;
  --white: #fff;
  --radius: 12px;
  --nav-h: 60px;
  --bottom-h: 56px;
  --sidebar-w: 240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  height: 100%;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ─── SCROLLBAR ──────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ─── BOTÕES ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 20px; border-radius: 8px; border: none; cursor: pointer;
  font-size: 14px; font-weight: 600; transition: opacity .15s, transform .1s;
  text-decoration: none;
}
.btn:active { transform: scale(.97); }
.btn-primary   { background: var(--accent); color: #fff; }
.btn-secondary { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost     { background: transparent; color: var(--text); }
.btn-danger    { background: #c0392b; color: #fff; }
.btn-sm        { padding: 5px 14px; font-size: 12px; }
.btn-lg        { padding: 12px 28px; font-size: 16px; border-radius: 10px; }
.btn-block     { width: 100%; }
.btn:disabled  { opacity: .5; cursor: not-allowed; }

/* ─── TOP NAV ────────────────────────────────────────── */
.top-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  background: rgba(0,0,0,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.top-nav .logo {
  font-size: 22px; font-weight: 800; color: var(--accent);
  letter-spacing: -0.5px;
}
.nav-tabs {
  display: flex; gap: 4px; align-items: center;
}
.nav-tabs a {
  padding: 6px 14px; border-radius: 20px; font-size: 14px; font-weight: 500;
  color: var(--text-muted); transition: color .15s, background .15s;
}
.nav-tabs a:hover,
.nav-tabs a.active { color: var(--white); }
.nav-tabs a.active { font-weight: 700; }

/* ─── BOTTOM NAV (mobile) ────────────────────────────── */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  height: var(--bottom-h);
  background: rgba(0,0,0,.95);
  border-top: 1px solid var(--border);
  display: none; align-items: center; justify-content: space-around;
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 3px; font-size: 10px; color: var(--text-muted); padding: 6px 0;
}
.bottom-nav a.active { color: var(--white); }
.bottom-nav a svg   { width: 22px; height: 22px; }
.bottom-nav .upload-btn {
  width: 44px; height: 30px; background: var(--accent);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}

@media (max-width: 768px) {
  .bottom-nav { display: flex; }
  .top-nav .desktop-nav { display: none; }
  body { padding-bottom: var(--bottom-h); }
  /* No mobile, feed precisa parar acima do bottom-nav */
  .feed {
    bottom: var(--bottom-h);
  }
  .feed-item {
    height: calc(100dvh - var(--nav-h) - var(--bottom-h));
  }
  /* Mobile: ações ficam mais perto do centro */
  .feed-info {
    bottom: 72px !important;
  }
  .feed-actions {
    bottom: 64px !important;
    right: 8px !important;
  }
}

/* ─── FEED TikTok-style ──────────────────────────────── */

/* Layout raiz: sidebar + feed + setas */
.feed-wrap {
  display: flex;
  height: calc(100dvh - var(--nav-h));
  margin-top: var(--nav-h);
  overflow: hidden;
  position: relative;
}

/* Sidebar esquerda (desktop) */
.feed-sidebar {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 24px 12px;
  width: 220px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  overflow-y: auto;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: background .15s, color .15s;
  text-decoration: none;
  white-space: nowrap;
}
.sidebar-link svg { width: 22px; height: 22px; flex-shrink: 0; }
.sidebar-link:hover { background: var(--surface); color: var(--text); }
.sidebar-link.active { color: var(--text); font-weight: 700; }
.sidebar-link-primary { color: var(--accent); }

/* Centro: scroll de vídeos */
.feed-main {
  flex: 1;
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Feed scroll-snap */
.feed {
  width: 100%;
  max-width: 480px;  /* coluna central estreita, igual TikTok desktop */
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.feed::-webkit-scrollbar { display: none; }

/* Cada item = 1 tela */
.feed-item {
  position: relative;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Player — ocupa todo o item */
.feed-player {
  position: absolute;
  inset: 0;
  background: #000;
}
.feed-player iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  pointer-events: none;
}
.feed-click-overlay {
  position: absolute;
  inset: 0;
  z-index: 9;
  cursor: pointer;
  background: transparent;
  pointer-events: all;
}
.feed-processing {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 14px;
}

/* Gradiente para legibilidade */
.feed-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
  pointer-events: none;
  z-index: 5;
}

/* Info: canto inferior esquerdo */
.feed-info {
  position: absolute;
  bottom: 16px;
  left: 12px;
  right: 72px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.feed-author {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
  text-decoration: none;
}
.feed-avatar {
  width: 26px; height: 26px;
  border-radius: 50%; object-fit: cover;
  border: 1.5px solid rgba(255,255,255,.6);
  flex-shrink: 0;
}
.feed-verified { color: var(--verified); font-size: 12px; }
.feed-caption {
  font-size: 13px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.btn-follow-inline {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 4px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  width: fit-content;
}
.btn-follow-inline.following { border-color: rgba(255,255,255,.4); color: rgba(255,255,255,.5); }
.feed-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Botões de ação: lateral direita */
.feed-actions {
  position: absolute;
  right: 8px;
  bottom: 12px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.feed-action-avatar {
  position: relative;
}
.feed-action-avatar a img {
  width: 44px; height: 44px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid #fff;
  display: block;
}
.feed-follow-dot {
  position: absolute;
  bottom: -8px; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: 2px solid #000;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  padding: 0;
}
.feed-follow-dot.following { background: #555; }
.feed-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.6));
  padding: 0;
}
.feed-action-btn svg { width: 28px; height: 28px; }
.feed-action-btn span { font-size: 11px; font-weight: 600; color: #fff; }
.feed-action-btn.liked svg { color: var(--accent); fill: var(--accent); }

/* Setas de navegação desktop */
.feed-nav-arrows {
  display: none;
  flex-direction: column;
  gap: 8px;
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
}
.feed-nav-arrows button {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.feed-nav-arrows button:hover { background: var(--surface2); }
.feed-nav-arrows button svg { width: 20px; height: 20px; }

/* Feed vazio */
.feed-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-muted);
}

/* Banner visitante */
.guest-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.95) 60%, transparent);
  padding: 24px 20px 20px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  pointer-events: none;
}
.guest-banner * { pointer-events: auto; }
.guest-banner p { font-size: 14px; color: #fff; }

/* Anúncio no feed */
.feed-ad { background: var(--surface); }
.ad-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 10;
}

/* ─── DESKTOP (≥ 769px) ─────────────────────────────── */
@media (min-width: 769px) {
  .feed-sidebar    { display: flex; }
  .feed-nav-arrows { display: flex; }
  /* Esconder top-nav tabs no desktop (sidebar tem os links) */
  .top-nav .nav-tabs.desktop-nav { display: none; }
}

/* ─── MOBILE (≤ 768px) ─────────────────────────────── */
@media (max-width: 768px) {
  .feed-wrap { height: calc(100dvh - var(--nav-h) - var(--bottom-h)); }
  .feed { max-width: 100%; }
  .feed-item { height: calc(100dvh - var(--nav-h) - var(--bottom-h)); }
  .bottom-nav { display: flex; }
  .top-nav .desktop-nav { display: none; }
}

/* ─── PROFILE ────────────────────────────────────────── */
.profile-page {
  max-width: 935px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 24px) 16px 80px;
}
.profile-header {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 0 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.profile-avatar-wrap { flex-shrink: 0; }
.profile-avatar {
  width: 120px; height: 120px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid var(--border);
  background: var(--surface);
}
.profile-meta { flex: 1; min-width: 0; }
.profile-name-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.profile-name-row h1 {
  font-size: 24px; font-weight: 700; margin: 0;
  color: var(--text);
}
.verified-badge-lg { color: #20b2ff; font-size: 20px; }
.profile-display-name {
  font-size: 13px; color: var(--text-muted);
  margin: 0 0 16px;
}
.profile-stats {
  display: flex; gap: 32px; margin-bottom: 16px;
}
.profile-stats .stat {
  display: flex; flex-direction: row; align-items: baseline; gap: 5px;
}
.profile-stats .stat strong {
  font-size: 17px; font-weight: 700; color: var(--text);
}
.profile-stats .stat span {
  font-size: 13px; color: var(--text-muted);
}
.profile-bio {
  font-size: 14px; color: var(--text);
  line-height: 1.6; margin: 0 0 12px;
  max-width: 480px;
}
.profile-bio-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-size: 13px; font-weight: 600;
  text-decoration: none; margin-bottom: 12px;
}
.profile-bio-link:hover { text-decoration: underline; }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Grid de vídeos */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.grid-item { display: block; text-decoration: none; }
.grid-thumb {
  position: relative;
  aspect-ratio: 9/16;
  overflow: hidden;
  background: var(--surface);
}
.grid-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .25s;
}
.grid-item:hover .grid-thumb img { transform: scale(1.04); }
.grid-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  display: flex; align-items: flex-end;
  padding: 8px; opacity: 0; transition: .2s;
}
.grid-item:hover .grid-overlay { opacity: 1; background: rgba(0,0,0,.35); }
.grid-views {
  font-size: 12px; font-weight: 700;
  color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8);
}

/* Mobile */
@media (max-width: 640px) {
  .profile-header { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .profile-avatar { width: 88px; height: 88px; }
  .profile-name-row { justify-content: center; }
  .profile-stats { justify-content: center; }
  .profile-bio { text-align: center; }
  .profile-actions { justify-content: center; }
  .profile-grid { grid-template-columns: repeat(3, 1fr); gap: 2px; }
}

/* ─── MODAIS ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.75);
  display: flex; align-items: flex-end; justify-content: center;
}
@media (min-width: 500px) {
  .modal-overlay { align-items: center; }
}
.modal {
  background: var(--surface); border-radius: 16px 16px 0 0;
  width: 100%; max-width: 480px; max-height: 90vh;
  overflow-y: auto; padding: 24px;
}
@media (min-width: 500px) {
  .modal { border-radius: var(--radius); }
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.modal-title { font-size: 18px; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 22px; }

/* ─── FORMS ──────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.form-control {
  width: 100%; padding: 11px 14px; background: var(--surface2);
  border: 1.5px solid var(--border); border-radius: 8px; color: var(--white);
  font-size: 14px; transition: border-color .15s;
  outline: none;
}
.form-control:focus { border-color: var(--accent); }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-error { color: #ff4757; font-size: 12px; margin-top: 4px; }
.form-hint  { color: var(--text-muted); font-size: 12px; margin-top: 4px; }

/* ─── CARDS (admin/geral) ────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; }

/* ─── ADMIN LAYOUT ───────────────────────────────────── */
.admin-layout {
  display: flex; min-height: 100vh; padding-top: var(--nav-h);
}
.admin-sidebar {
  width: var(--sidebar-w); background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 20px 0; flex-shrink: 0;
  position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.admin-sidebar a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; font-size: 14px; color: var(--text-muted);
  transition: color .15s, background .15s; border-radius: 8px; margin: 2px 8px;
}
.admin-sidebar a:hover,
.admin-sidebar a.active { color: var(--white); background: var(--surface2); }
.admin-sidebar a svg { width: 18px; height: 18px; }
.admin-main { flex: 1; padding: 24px; overflow-x: hidden; }
.admin-title { font-size: 22px; font-weight: 800; margin-bottom: 20px; }

/* ─── TABLE ──────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th { padding: 10px 14px; text-align: left; color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:hover { background: rgba(255,255,255,.03); }

/* ─── BADGES ─────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 20px; font-size: 11px; font-weight: 700;
}
.badge-green  { background: #1a3a28; color: #2ecc71; }
.badge-red    { background: #3a1a1a; color: #e74c3c; }
.badge-yellow { background: #3a3a1a; color: #f1c40f; }
.badge-blue   { background: #1a2a3a; color: var(--verified); }
.badge-gray   { background: var(--surface2); color: var(--text-muted); }

/* ─── UPLOAD PAGE ────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 40px; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.upload-zone:hover,
.upload-zone.drag-over { border-color: var(--accent); background: rgba(254,44,85,.05); }
.upload-zone svg  { width: 48px; height: 48px; color: var(--text-muted); margin-bottom: 12px; }
.upload-zone p    { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.upload-zone span { font-size: 13px; color: var(--text-muted); }

/* ─── PROGRESS BAR ───────────────────────────────────── */
.progress-bar { height: 4px; background: var(--surface2); border-radius: 4px; overflow: hidden; }
.progress-bar .fill { height: 100%; background: var(--accent); transition: width .3s; border-radius: 4px; }

/* ─── ADS ────────────────────────────────────────────── */
.ad-item {
  height: calc(100dvh - var(--nav-h));
  scroll-snap-align: start;
  position: relative; background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ad-label {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,.6); color: var(--text-muted);
  font-size: 11px; padding: 3px 8px; border-radius: 4px;
}

/* ─── NOTIFICATIONS ──────────────────────────────────── */
.notification-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.notification-item:hover  { background: var(--surface2); }
.notification-item.unread { background: rgba(254,44,85,.05); }
.notification-item img    { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.notification-item .text  { font-size: 13px; line-height: 1.5; }
.notification-item .time  { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ─── TOAST ──────────────────────────────────────────── */
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--surface); border: 1px solid var(--border);
  padding: 12px 20px; border-radius: 10px; font-size: 14px;
  animation: slideIn .2s ease; min-width: 220px;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
}
.toast.success { border-color: #2ecc71; }
.toast.error   { border-color: var(--accent); }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ─── SEARCH ─────────────────────────────────────────── */
.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: 24px; padding: 8px 16px;
  transition: border-color .15s;
}
.search-bar:focus-within { border-color: var(--accent); }
.search-bar input { background: none; border: none; color: var(--white); font-size: 14px; outline: none; flex: 1; }
.search-bar svg   { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }

/* ─── AUTH PAGES ─────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.auth-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px; width: 100%; max-width: 400px;
}
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo span { font-size: 30px; font-weight: 900; color: var(--accent); }
.auth-sep {
  display: flex; align-items: center; gap: 12px; margin: 20px 0;
  color: var(--text-muted); font-size: 12px;
}
.auth-sep::before, .auth-sep::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-muted); }
.auth-footer a { color: var(--accent); }

/* ─── COMMENTS PANEL ─────────────────────────────────── */
.comments-panel {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 250;
  max-height: 75vh;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -4px 24px rgba(0,0,0,.4);
}
.comments-panel.open {
  transform: translateY(0);
}
/* Header do painel */
.comments-panel-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 700; flex-shrink: 0;
}
.comments-panel-header button {
  background: none; border: none; color: var(--text-muted);
  font-size: 20px; cursor: pointer; line-height: 1; padding: 4px;
}
/* Lista de comentários */
.comments-panel-list {
  flex: 1; overflow-y: auto; padding: 8px 0;
}
/* (panel-header movido para acima) */
.comment-item {
  display: flex; gap: 10px; padding: 8px 16px;
}
.comment-item img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-item .body { flex: 1; }
.comment-item .name { font-size: 13px; font-weight: 700; }
.comment-item .text { font-size: 13px; margin-top: 2px; line-height: 1.5; }
.comment-item .meta { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.comments-input {
  padding: 12px 16px; border-top: 1px solid var(--border);
  display: flex; gap: 10px; align-items: center;
}
.comments-input input {
  flex: 1; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 20px; padding: 9px 16px; color: var(--white); font-size: 14px; outline: none;
}
.comments-input button { background: none; border: none; color: var(--accent); font-size: 14px; font-weight: 700; cursor: pointer; }

/* ─── VERIFICATION BADGE ─────────────────────────────── */
.verified-badge { display: inline-flex; vertical-align: middle; }
.verified-badge svg { width: 18px; height: 18px; fill: var(--verified); }

/* ─── REPORT MODAL ───────────────────────────────────── */
.report-option {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: color .15s;
}
.report-option:hover { color: var(--accent); }
.report-option input[type=radio] { accent-color: var(--accent); }

/* ─── UTILS ──────────────────────────────────────────── */
.text-muted   { color: var(--text-muted); }
.text-accent  { color: var(--accent); }
.text-sm      { font-size: 12px; }
.text-center  { text-align: center; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mb-4 { margin-bottom: 16px; }
.flex { display: flex; }
.gap-2 { gap: 8px; }
.items-center { align-items: center; }
.w-full { width: 100%; }
.hidden { display: none; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .admin-layout  { flex-direction: column; }
  .profile-grid  { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 769px) {
  .bottom-nav { display: none !important; }
  .top-nav .mobile-menu { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   LEGAL PAGES
   ═══════════════════════════════════════════════════════════ */
.legal-page { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }
.legal-card { background: var(--surface); border-radius: 16px; padding: 40px; }
.legal-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px;
  color: var(--text-muted); margin-bottom: 24px; }
.legal-breadcrumb a { color: var(--accent); text-decoration: none; }
.legal-title { font-size: 28px; font-weight: 700; margin: 0 0 32px; }
.legal-body { color: var(--text-secondary); line-height: 1.75; }
.legal-body h2 { font-size: 18px; font-weight: 700; color: var(--text); margin: 32px 0 12px; }
.legal-body h3 { font-size: 15px; font-weight: 600; color: var(--text); margin: 20px 0 8px; }
.legal-body p  { margin: 0 0 14px; }
.legal-body ul, .legal-body ol { padding-left: 24px; margin: 0 0 14px; }
.legal-body li { margin-bottom: 6px; }
.legal-body a  { color: var(--accent); text-decoration: underline; }
.legal-body strong { color: var(--text); }
.legal-body code { background: var(--bg); padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.legal-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.legal-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.legal-nav a { color: var(--text-muted); font-size: 13px; text-decoration: none; }
.legal-nav a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   ADMIN PAGES (legal editor)
   ═══════════════════════════════════════════════════════════ */
.pages-list { display: flex; flex-direction: column; gap: 16px; }
.page-card { display: flex; align-items: center; gap: 20px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.page-card-icon { font-size: 32px; flex-shrink: 0; }
.page-card-info { flex: 1; }
.page-card-info h3 { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.page-card-info p  { font-size: 13px; color: var(--text-muted); margin: 0 0 8px; }
.page-card-link { font-size: 12px; color: var(--accent); font-family: monospace; }
.page-card .btn { flex-shrink: 0; }

.editor-group textarea { width: 100%; min-height: 400px; font-family: 'Courier New', monospace;
  font-size: 13px; background: var(--bg); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 16px; resize: vertical; line-height: 1.6; }
.editor-toolbar-hint { font-size: 12px; color: var(--text-muted); margin-top: 8px; padding: 10px 14px;
  background: var(--surface-hover); border-radius: 8px; }
.editor-toolbar-hint code { background: var(--border); padding: 1px 5px; border-radius: 4px; }
.page-preview-panel { margin-top: 24px; }
.page-preview-panel .legal-body { padding: 0; }

/* ═══════════════════════════════════════════════════════════
   PROFILE BIO LINK
   ═══════════════════════════════════════════════════════════ */
.profile-bio-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-hover); border: 1px solid var(--border);
  color: var(--accent); text-decoration: none;
  padding: 8px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  margin-top: 12px; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background .15s, border-color .15s;
}
.profile-bio-link:hover { background: var(--surface); border-color: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   FOOTER SITE (legal links no rodapé)
   ═══════════════════════════════════════════════════════════ */
.site-footer {
  text-align: center; padding: 32px 20px 80px;
  border-top: 1px solid var(--border); margin-top: 40px;
  font-size: 12px; color: var(--text-muted);
}
.site-footer a { color: var(--text-muted); text-decoration: none; margin: 0 8px; }
.site-footer a:hover { color: var(--accent); }
.site-footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 12px; }

/* ═══════════════════════════════════════════════════════════
   ADMIN — componentes extras
   ═══════════════════════════════════════════════════════════ */

/* Info table */
.info-table { width: 100%; border-collapse: collapse; }
.info-table th { width: 140px; text-align: left; padding: 8px 12px 8px 0;
  color: var(--text-muted); font-weight: 500; font-size: 13px; white-space: nowrap; }
.info-table td { padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.info-table tr:last-child td { border-bottom: none; }

/* Back link */
.back-link { font-size: 13px; color: var(--text-muted); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.back-link:hover { color: var(--accent); }

/* Admin thumb */
.admin-thumb { width: 56px; height: 40px; object-fit: cover; border-radius: 6px;
  background: var(--surface-hover); vertical-align: middle; }

/* Admin player */
.admin-player-wrap { position: relative; padding-top: 56.25%; border-radius: 10px; overflow: hidden; background: #000; }
.admin-player { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* Action buttons group */
.action-btns { display: flex; flex-direction: column; gap: 12px; }
.action-form { display: flex; flex-direction: column; gap: 8px; }
.action-form input[type=text] { padding: 8px 12px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 14px; }
.inline-form { display: inline; }

/* Header actions row */
.header-actions { display: flex; gap: 8px; align-items: center; }
.admin-sub { color: var(--text-muted); font-size: 14px; margin: 4px 0 0; }

/* Reports mini list */
.reports-mini-list { display: flex; flex-direction: column; gap: 8px; }
.report-mini-item { display: flex; align-items: center; gap: 8px; padding: 8px;
  background: var(--surface-hover); border-radius: 8px; flex-wrap: wrap; }
.report-reason { font-size: 13px; font-weight: 600; flex: 1; }
.report-by { font-size: 12px; }

/* Verification doc images */
.verification-doc { }
.doc-label { font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--text-muted); margin-bottom: 8px; }
.doc-image { max-width: 100%; max-height: 320px; border-radius: 10px;
  border: 1px solid var(--border); object-fit: contain; background: var(--bg); }

/* Link preview */
.link-preview { }

/* Error page */
.error-page { display: flex; align-items: center; justify-content: center;
  min-height: 60vh; }
.error-card { text-align: center; }
.error-code { font-size: 96px; font-weight: 900; opacity: .15; line-height: 1; }
.error-card h1 { font-size: 24px; margin: 0 0 8px; }
.error-card p  { color: var(--text-muted); margin: 0 0 24px; }

/* Two-col admin layout */
.admin-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .admin-two-col { grid-template-columns: 1fr; } }

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
@media (max-width: 1100px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .stats-grid { grid-template-columns: 1fr 1fr; } }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; inset: 0; opacity: .06; }
.stat-card-warning::before { background: #fbbf24; }
.stat-card-info::before    { background: #60a5fa; }
.stat-card-success::before { background: #34d399; }
.stat-card-danger::before  { background: #f87171; }
.stat-value { font-size: 32px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.stat-link  { font-size: 12px; color: var(--accent); text-decoration: none;
  display: inline-block; margin-top: 8px; }

/* Filter tabs */
.filter-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.filter-tabs a { padding: 6px 14px; border-radius: 20px; font-size: 13px;
  text-decoration: none; color: var(--text-muted); background: var(--surface-hover); }
.filter-tabs a.active { background: var(--accent); color: #fff; }
.filter-tabs a:hover:not(.active) { color: var(--text); }

/* Admin toolbar */
.admin-toolbar { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }

/* Table actions */
.table-actions { white-space: nowrap; display: flex; gap: 4px; }

/* btn-xs */
.btn-xs { padding: 4px 10px !important; font-size: 12px !important; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 4px; padding: 16px 0 0; flex-wrap: wrap; }
.pagination a { display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px; font-size: 14px;
  background: var(--surface-hover); color: var(--text); text-decoration: none; }
.pagination a.active { background: var(--accent); color: #fff; }
.pagination a:hover:not(.active) { background: var(--surface); }

/* Panel header */
.panel-header { display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.panel-header h3 { margin: 0; font-size: 15px; font-weight: 700; }
.panel-header a  { font-size: 13px; color: var(--accent); text-decoration: none; }
.panel-header .btn { flex-shrink: 0; }

/* Content page padding */
.content-page { max-width: 900px; margin: 0 auto; padding: 32px 20px 80px; }

/* Account page */
.account-card { background: var(--surface); border-radius: 16px; padding: 32px; }
.account-section { padding: 24px 0; border-bottom: 1px solid var(--border); }
.account-section:last-child { border-bottom: none; }
.account-section h3 { font-size: 16px; font-weight: 700; margin: 0 0 20px; }
.avatar-edit { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.profile-avatar-md { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.avatar-upload-btn { cursor: pointer; font-size: 13px; color: var(--accent);
  padding: 6px 14px; border: 1px solid var(--accent); border-radius: 20px; }
.avatar-upload-btn input { display: none; }
.status-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
  font-size: 14px; }
.verified-link-section { background: var(--surface-hover); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px; }
.verified-link-section label { font-size: 13px; font-weight: 700; display: block; margin-bottom: 8px; }
.verified-link-section input { margin-bottom: 8px; }

/* Subscription page */
.subscription-card { max-width: 480px; margin: 0 auto; background: var(--surface);
  border-radius: 20px; padding: 40px; text-align: center; }
.subscription-hero { margin-bottom: 32px; }
.sub-icon { font-size: 48px; margin-bottom: 16px; }
.subscription-benefits { text-align: left; margin-bottom: 32px; display: flex; flex-direction: column; gap: 16px; }
.benefit { display: flex; align-items: flex-start; gap: 16px; }
.benefit-icon { font-size: 24px; flex-shrink: 0; }
.benefit strong { display: block; font-size: 15px; margin-bottom: 2px; }
.benefit p { margin: 0; font-size: 13px; color: var(--text-muted); }
.sub-note { font-size: 12px; color: var(--text-muted); margin-top: 10px; }
.btn-lg { padding: 14px 28px !important; font-size: 16px !important; }

/* Notifications page */
.notifications-list { display: flex; flex-direction: column; gap: 2px; }
.notification-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  background: var(--surface); border-radius: 10px; }
.notification-item.unread { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.notif-icon { font-size: 22px; flex-shrink: 0; }
.notif-body { flex: 1; }
.notif-body p  { margin: 0 0 4px; font-size: 14px; }
.notif-time    { font-size: 12px; color: var(--text-muted); }

/* Verification page */
.verification-card { max-width: 580px; margin: 0 auto; background: var(--surface);
  border-radius: 16px; padding: 36px; }
.verification-card h2 { margin: 0 0 8px; }
.verification-card .sub { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.verification-steps { background: var(--surface-hover); border-radius: 10px; padding: 16px;
  margin-bottom: 24px; }
.verification-steps h3 { font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; margin: 0 0 10px; color: var(--text-muted); }
.verification-steps ul { margin: 0 0 16px; padding-left: 20px; font-size: 14px; }
.verification-steps ul:last-child { margin-bottom: 0; }
.example-image-wrap { margin-bottom: 24px; }
.example-image { max-width: 100%; max-height: 200px; border-radius: 10px; border: 1px solid var(--border); }
.verify-icon { font-size: 48px; text-align: center; margin-bottom: 16px; }
.auth-hint { font-size: 13px; color: var(--text-muted); text-align: center; }

/* Search page */
.search-page { max-width: 900px; margin: 0 auto; padding: 20px 16px 80px; }
.search-header { margin-bottom: 24px; }
.search-form-full { display: flex; gap: 8px; }
.search-form-full input { flex: 1; padding: 12px 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-size: 15px; }
.search-form-full button { padding: 0 16px; background: var(--accent); border: none;
  border-radius: 12px; font-size: 18px; cursor: pointer; }
.search-section { margin-bottom: 32px; }
.search-section h3 { font-size: 15px; font-weight: 700; margin-bottom: 16px; color: var(--text-muted); }
.users-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.user-card { display: flex; align-items: center; gap: 10px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px;
  text-decoration: none; color: var(--text); min-width: 180px; }
.user-card:hover { border-color: var(--accent); }
.user-card > div { display: flex; flex-direction: column; gap: 2px; }
.user-name { font-size: 13px; font-weight: 700; }
.user-display { font-size: 12px; color: var(--text-muted); }
.user-followers { font-size: 11px; color: var(--text-muted); }
.avatar-md { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.search-videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.search-video-card { text-decoration: none; color: var(--text); }
.search-thumb { position: relative; border-radius: 8px; overflow: hidden;
  aspect-ratio: 9/16; background: var(--surface-hover); }
.search-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-views { position: absolute; bottom: 6px; left: 6px; font-size: 11px;
  font-weight: 700; background: rgba(0,0,0,.6); padding: 2px 6px; border-radius: 4px; }
.search-video-info { padding: 6px 2px; }
.search-title  { font-size: 13px; font-weight: 600; margin: 0 0 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-author { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 3px; }
.search-placeholder { text-align: center; padding: 60px 0; color: var(--text-muted); font-size: 18px; }

/* Form helpers */
.form-input-lg { font-size: 18px !important; padding: 12px 16px !important; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.current-image { }

/* Video show page */
.video-show-page { max-width: 900px; margin: 0 auto; padding: 20px 16px 80px;
  display: grid; grid-template-columns: 1fr 380px; gap: 24px; }
@media (max-width: 768px) { .video-show-page { grid-template-columns: 1fr; } }
.video-show-player .bunny-player { width: 100%; aspect-ratio: 9/16; border: none;
  border-radius: 12px; background: #000; }
@media (min-width: 769px) { .video-show-player .bunny-player { aspect-ratio: 16/9; } }
.video-show-info { }
.video-author-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.author-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: 1; }
.author-name { font-size: 15px; font-weight: 700; }
.author-username { font-size: 13px; color: var(--text-muted); display: block; }
.video-title { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.video-desc  { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.video-show-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.comments-section h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.comment-form { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.comment-form input { flex: 1; padding: 8px 12px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 20px; color: var(--text); font-size: 13px; }
.comment-item { display: flex; gap: 10px; margin-bottom: 12px; }
.avatar-xs { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-body p { font-size: 14px; margin: 2px 0; }
.comment-author { font-size: 13px; font-weight: 700; }
.comment-time   { font-size: 11px; color: var(--text-muted); }
.verified-badge-sm { color: #20b2ff; font-size: 11px; }

.grid-views { font-size: 12px; font-weight: 700; }

/* Upload page */
.upload-page { max-width: 560px; margin: 0 auto; padding: 32px 16px 80px; }
.upload-card { background: var(--surface); border-radius: 16px; padding: 32px; }
.upload-card h2 { margin: 0 0 24px; }
.drop-zone { border: 2px dashed var(--border); border-radius: 12px; padding: 40px 20px;
  text-align: center; cursor: pointer; position: relative; transition: border-color .2s; }
.drop-zone:hover, .drop-zone.drag-over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.drop-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-icon { font-size: 40px; margin-bottom: 12px; }
.drop-zone p { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.drop-hint { font-size: 13px; color: var(--text-muted); }
.progress-bar-track { background: var(--border); border-radius: 99px; height: 6px;
  overflow: hidden; margin-bottom: 6px; }
.progress-bar-fill { height: 100%; background: var(--accent); border-radius: 99px;
  transition: width .3s; width: 0%; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.alert-success { background: color-mix(in srgb, #34d399 15%, var(--surface)); border: 1px solid #34d399; color: #34d399; }
.alert-danger   { background: color-mix(in srgb, #f87171 15%, var(--surface)); border: 1px solid #f87171; color: #f87171; }
.alert-warning  { background: color-mix(in srgb, #fbbf24 15%, var(--surface)); border: 1px solid #fbbf24; color: #fbbf24; }
.alert-info     { background: color-mix(in srgb, #60a5fa 15%, var(--surface)); border: 1px solid #60a5fa; color: #60a5fa; }

/* Forms */
.auth-page { display: flex; align-items: center; justify-content: center;
  min-height: 90vh; padding: 20px; }
.auth-card { background: var(--surface); border-radius: 20px; padding: 40px;
  width: 100%; max-width: 400px; }
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo a { font-size: 28px; font-weight: 900; color: var(--accent); text-decoration: none; }
.auth-card h2 { text-align: center; margin: 0 0 8px; font-size: 22px; }
.auth-sub  { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-links { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-muted); }
.auth-links a { color: var(--accent); text-decoration: none; margin: 0 6px; }

/* Form inputs global */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.form-group input[type=text],
.form-group input[type=email],
.form-group input[type=password],
.form-group input[type=url],
.form-group input[type=number],
.form-group select,
.form-group textarea,
input[type=text], input[type=email], input[type=password],
input[type=url], select, textarea {
  width: 100%; padding: 10px 14px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-size: 14px; outline: none;
  transition: border-color .15s; box-sizing: border-box;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.btn-full { width: 100%; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; text-decoration: none; transition: opacity .15s; }
.btn:hover { opacity: .85; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--text-muted); }
.btn-success { background: #34d399; color: #000; }
.btn-danger  { background: #f87171; color: #fff; }
.btn-warning { background: #fbbf24; color: #000; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-secondary { background: var(--surface-hover); color: var(--text); }

/* Badges */
.badge { display: inline-flex; align-items: center; justify-content: center;
  padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.badge-primary   { background: color-mix(in srgb, #20b2ff 20%, transparent); color: #20b2ff; }
.badge-success   { background: color-mix(in srgb, #34d399 20%, transparent); color: #34d399; }
.badge-danger    { background: color-mix(in srgb, #f87171 20%, transparent); color: #f87171; }
.badge-warning   { background: color-mix(in srgb, #fbbf24 20%, transparent); color: #fbbf24; }
.badge-secondary { background: var(--surface-hover); color: var(--text-muted); }
.badge-red    { background: #f87171; color: #fff; }
.badge-yellow { background: #fbbf24; color: #000; }
.badge-green  { background: #34d399; color: #000; }

/* Admin table */
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; padding: 10px 12px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted);
  border-bottom: 1px solid var(--border); }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tbody tr:hover { background: var(--surface-hover); }
.admin-table a { color: var(--accent); text-decoration: none; }
.admin-table a:hover { text-decoration: underline; }

/* Admin layout */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 220px; flex-shrink: 0; background: var(--surface);
  border-right: 1px solid var(--border); padding: 24px 0;
  display: flex; flex-direction: column; gap: 2px; }
.admin-sidebar a { display: flex; align-items: center; gap: 10px; padding: 10px 20px;
  text-decoration: none; color: var(--text-secondary); font-size: 14px; border-radius: 0;
  transition: background .15s, color .15s; }
.admin-sidebar a:hover { background: var(--surface-hover); color: var(--text); }
.admin-sidebar a.active { background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent); font-weight: 600; }
.admin-main { flex: 1; padding: 24px 32px; overflow-x: auto; }
.admin-header { display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.admin-header h1 { margin: 0; font-size: 22px; display: flex; align-items: center; gap: 10px; }
.admin-panel { background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px; margin-bottom: 0; }
.admin-panel + .admin-panel { margin-top: 20px; }

/* Empty state */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.empty-state p { margin: 0 0 16px; font-size: 16px; }

/* ═══════════════════════════════════════════════════
   PÁGINA DO VÍDEO — estilo TikTok desktop
   ═══════════════════════════════════════════════════ */
.video-page {
  display: flex;
  height: calc(100dvh - var(--nav-h));
  margin-top: var(--nav-h);
  background: #000;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

/* ── Esquerda: player + ações ─── */
.video-page-left {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
  height: 100%;
  padding-bottom: 16px;
}

/* Player: altura 100%, largura = altura × 9/16 */
.video-page-player {
  width: calc((100dvh - var(--nav-h)) * 9 / 16);
  height: 100%;
  background: #000;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
.video-page-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-page-processing {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; color: var(--text-muted);
}

/* Botões de ação: coluna à direita do player */
.video-page-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-bottom: 8px;
}
.vpa-avatar-wrap {
  position: relative;
}
.vpa-avatar-wrap a img {
  width: 48px; height: 48px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; display: block;
}
.vpa-follow {
  position: absolute; bottom: -8px; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff;
  border: 2px solid #000; cursor: pointer;
  font-size: 14px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.vpa-follow.following { background: #555; }
.vpa-btn {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  background: none; border: none;
  color: #fff; cursor: pointer;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.5));
  font-size: 12px; font-weight: 600;
}
.vpa-btn svg { width: 32px; height: 32px; }
.vpa-btn.liked svg { color: var(--accent); fill: var(--accent); }

/* ── Direita: abas + conteúdo ─── */
.video-page-side {
  flex: 1;
  min-width: 320px;
  max-width: 420px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* Header: autor */
.vps-header {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 12px; padding: 16px 16px 0;
  flex-shrink: 0;
}
.vps-author-link {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text); flex: 1;
}
.vps-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.vps-verified { color: var(--verified); font-size: 12px; margin-left: 3px; }
.vps-username { display: block; font-size: 12px; color: var(--text-muted); }
.vps-caption {
  font-size: 13px; line-height: 1.6; color: var(--text);
  padding: 10px 16px 0; flex-shrink: 0;
}
.vps-link {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--accent); font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 20px; margin: 8px 16px 0;
  text-decoration: none; max-width: calc(100% - 32px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex-shrink: 0;
}

/* Abas */
.vps-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-top: 12px; flex-shrink: 0;
}
.vps-tab {
  flex: 1; padding: 10px;
  background: none; border: none;
  font-size: 14px; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.vps-tab.active { color: var(--text); border-bottom-color: var(--text); }

/* Conteúdo das abas */
.vps-tab-content { display: none; flex: 1; flex-direction: column; overflow: hidden; }
.vps-tab-content.active { display: flex; }

/* Lista de comentários */
.vps-comments {
  flex: 1; overflow-y: auto;
  padding: 8px 16px;
  display: flex; flex-direction: column; gap: 14px;
}
.vps-no-comments {
  color: var(--text-muted); font-size: 14px;
  text-align: center; padding: 32px 0;
}

/* Input de comentário */
.vps-input {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
}
.vps-input input {
  flex: 1; background: var(--bg);
  border: 1px solid var(--border); border-radius: 20px;
  padding: 8px 14px; color: var(--text); font-size: 13px; outline: none;
}
.vps-input input:focus { border-color: var(--accent); }

/* Grid de relacionados */
.vps-related-grid {
  flex: 1; overflow-y: auto;
  padding: 12px 12px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; align-content: start;
}
.vps-related-item {
  text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 6px;
}
.vps-related-thumb {
  aspect-ratio: 9/16; border-radius: 8px;
  overflow: hidden; background: var(--surface2);
}
.vps-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vps-related-info { padding: 0 2px; }
.vps-related-author { font-size: 12px; font-weight: 700; display: block; }
.vps-related-info p {
  font-size: 11px; color: var(--text-muted); margin: 2px 0 0;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* Mobile */
@media (max-width: 768px) {
  .video-page {
    flex-direction: column;
    height: auto;
    min-height: calc(100dvh - var(--nav-h));
  }
  .video-page-left {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
  }
  .video-page-player {
    width: 100%;
    height: calc(100vw * 16 / 9);
    border-radius: 0;
  }
  .video-page-actions {
    flex-direction: row;
    justify-content: space-around;
    padding: 12px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
  }
  .vpa-btn { color: var(--text); filter: none; }
  .vpa-avatar-wrap a img { width: 36px; height: 36px; }
  .vpa-btn svg { width: 24px; height: 24px; }
  .video-page-side {
    max-width: 100%;
    height: 60vh;
    border-left: none;
  }
}


/* ─── LIKE BURST ANIMATION ──────────────────────── */
.like-burst {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 80px;
  z-index: 100;
  pointer-events: none;
  animation: like-burst .9s ease-out forwards;
}
@keyframes like-burst {
  0%   { transform: translate(-50%,-50%) scale(0); opacity: 1; }
  30%  { transform: translate(-50%,-50%) scale(1.3); opacity: 1; }
  60%  { transform: translate(-50%,-50%) scale(1); opacity: .8; }
  100% { transform: translate(-50%,-50%) scale(1.5); opacity: 0; }
}

/* ─── OVERLAY DE CLIQUE no feed-player ─── */
/* feed-click-overlay removido — player.js controla via API */

/* ─── Grid: badge de processamento ─── */
.grid-processing {
  position: absolute;
  top: 6px; left: 6px;
  font-size: 16px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.8));
}

/* ─── COMENTÁRIOS: meta + delete ─── */
.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 3px;
}
.comment-delete-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
}
.comment-delete-btn:hover { color: #f87171; }

/* ─── Grid placeholder (processing) ─── */
.grid-placeholder {
  position: absolute;
  inset: 0;
  background: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
}
.grid-processing-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.25);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.grid-processing-badge svg { opacity: .3; }

/* ─── BOTÃO UNMUTE global ─── */
.feed-unmute-btn { display: none; } /* removido */