/* =====================================================================
   CETECRITIC — ESTILO COMPARTILHADO (assets/estilo.css)
   Usado por todas as páginas. Normalmente você não precisa mexer aqui.
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --bg: #0e0f12;
  --surface: #17181c;
  --surface-2: #202226;
  --border: #2c2e33;
  --text: #ffffff;
  --text-muted: #9a9ea6;
  --gold: #f5c518;
  --gray-cell: #2c2e33;
}
*{ box-sizing:border-box; margin:0; padding:0; }
body{
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  display:flex; flex-direction:column; align-items:center;
  padding: 40px 20px 40px 278px;
}
.main-content{ width:100%; display:flex; flex-direction:column; align-items:center; }

/* ---- barra lateral ---- */
.sidebar{
  position: fixed; top:0; left:0; width: 230px; height: 100vh; overflow:hidden;
  background: var(--surface); border-right: 1px solid var(--border);
  padding: 24px 14px 0; display:flex; flex-direction:column; gap: 4px; z-index: 60;
}
.sidebar-logo{ display:flex; align-items:center; gap: 8px; padding: 0 8px 20px 8px; }
.sidebar-logo-link{ display:flex; align-items:center; gap: 8px; text-decoration:none; }
.sidebar-logo img{ width: 26px; height: auto; flex-shrink:0; }
.sidebar-logo span{ font-family:'Bebas Neue', sans-serif; font-size: 16px; letter-spacing: 1.5px; color: var(--gold); line-height:1.1; }
.sidebar-nav{ display:flex; flex-direction:column; gap: 4px; }
.nav-toggle{
  display:none; margin-left:auto; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); font-size: 16px; border-radius: 6px; padding: 6px 10px; cursor:pointer;
  align-items:center; justify-content:center;
}
.nav-toggle:hover{ border-color: var(--gold); color: var(--gold); }
.nav-section{ margin-bottom: 4px; }
.nav-link{
  display:flex; align-items:center; justify-content:space-between; width:100%;
  background:none; border:none; color: var(--text); text-align:left;
  font-family:'Inter', sans-serif; font-size: 13px; font-weight: 700;
  padding: 10px 8px; border-radius: 6px; cursor:pointer; transition: background .15s ease, color .15s ease;
  text-decoration: none; /* links do menu */
}
.nav-link:hover{ background: var(--surface-2); }
.nav-link.active{ background: rgba(245,197,24,.12); color: var(--gold); }
.nav-caret{ font-size: 10px; opacity:.7; transition: transform .2s ease; }
.nav-section.open .nav-caret{ transform: rotate(180deg); }
.nav-children{ max-height:0; overflow:hidden; transition: max-height .25s ease; padding-left: 10px; }
.nav-section.open .nav-children{ max-height: 320px; }
.nav-child{ font-size: 12px; font-weight:600; color: var(--text-muted); padding: 8px 8px 8px 14px; }
.nav-child.active{ color: var(--gold); background: rgba(245,197,24,.10); }
.nav-child.locked{ opacity:.45; cursor:not-allowed; }
.nav-child.locked:hover{ background:none; }

/* ---- décadas (agrupamento das edições no menu) ---- */
.nav-decade{ margin-bottom: 2px; }
.nav-decade-head{ color: var(--text); text-transform: uppercase; letter-spacing:.6px; font-size: 12px; }
.nav-decade-children{
  display:none; flex-direction:column; gap: 2px;
  margin: 2px 0 6px 6px; padding-left: 6px; border-left: 1px solid var(--border);
}
.nav-decade.open > .nav-decade-children{ display:flex; }
.nav-decade.open > .nav-decade-head .nav-caret{ transform: rotate(180deg); }
/* edição futura/retrô ainda sem conteúdo (link único para a página "Em breve") */
.nav-embreve{ color: var(--text-muted); }
.nav-embreve.active{ color: var(--gold); }
/* tag "em breve" ao lado do nome da edição no menu */
.nav-tag{
  font-size: 9px; font-weight:800; text-transform:uppercase; letter-spacing:.5px;
  color: var(--gold); border: 1px solid rgba(245,197,24,.5); border-radius: 4px;
  padding: 1px 5px; margin-left: 4px; vertical-align: middle;
}

@media (max-width: 860px){
  body{ padding: 20px 16px; }
  /* no celular o menu vira uma faixa compacta: logo + botão ☰ */
  .sidebar{
    position: static; width:100%; height:auto; border-right:none;
    border-bottom: 1px solid var(--border); margin-bottom: 18px;
    padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  }
  .sidebar-logo{ padding: 0; }
  .sidebar-logo span br{ display:none; }
  .nav-toggle{ display:flex; }
  .sidebar-nav{ display:none; }
  .sidebar.nav-open .sidebar-nav{ display:flex; margin-top: 12px; }
}

/* ---- rodape ---- */
.site-footer{
  width:100%; max-width: 900px; text-align:center; color: var(--text-muted);
  font-size: 11px; padding: 24px 10px 6px 10px; line-height:1.5;
}
.footer-logo{
  height: 26px; width:auto; display:block; margin: 0 auto 10px auto;
  background: #fff; padding: 6px 12px; border-radius: 6px;
}
.site-footer a{ color: var(--gold); text-decoration:none; }
.site-footer a:hover{ text-decoration:underline; }

/* ---- aviso de edição histórica ---- */
.hist-title{
  font-family:'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 1px;
  color: var(--gold); line-height: 1.2; margin-bottom: 12px;
}
.hist-text{ font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.hist-text a{ color: var(--gold); font-weight: 700; text-decoration:none; }
.hist-text a:hover{ text-decoration:underline; }

/* ---- recado fixo de edição histórica (topo da página da edição) ---- */
.hist-banner{
  width:100%; max-width: 900px; display:flex; gap: 12px; align-items:flex-start;
  background: rgba(245,197,24,.08); border: 1px solid rgba(245,197,24,.35);
  border-radius: 10px; padding: 14px 16px; margin-bottom: 18px;
}
.hist-banner-icon{ font-size: 20px; line-height: 1.3; flex-shrink:0; }
.hist-banner-text{ font-size: 12.5px; color: var(--text-muted); line-height: 1.6; }
.hist-banner-text b{ color: var(--gold); }
.hist-banner-text a{ color: var(--gold); font-weight: 700; text-decoration:none; }
.hist-banner-text a:hover{ text-decoration:underline; }

/* ---- pagina de noite (turmas) ---- */
.noite-card{
  width:100%; max-width: 900px; background-color: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 22px 24px; margin-bottom: 18px;
  opacity:0; animation: fadeUp .5s ease forwards;
}
.noite-card-head{ display:flex; align-items:flex-start; justify-content:space-between; gap: 16px; margin-bottom: 10px; flex-wrap:wrap; }
.noite-card-title{ font-family:'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: .5px; color: var(--gold); }
.noite-card-turma{ font-size: 11px; color: var(--text-muted); text-transform:uppercase; letter-spacing:.5px; margin-top: 2px; }
.noite-card-rating{ flex-shrink:0; display:flex; flex-direction:column; align-items:center; min-width: 58px; }
.noite-card-rating .val{ font-size: 20px; font-weight:800; border-radius:8px; padding: 4px 12px; color:#14161a; }
.noite-card-rating .val.empty{ background: var(--surface-2); color: var(--text-muted); }
.noite-card-rating .cnt{ font-size: 10px; color: var(--text-muted); margin-top:4px; }
.noite-card-synopsis{ font-size: 13px; color: var(--text-muted); line-height:1.6; margin-bottom: 16px; }
.sobre-banner{ width:100%; height:auto; display:block; border-radius:8px; margin-bottom:18px; }
.video-embed-placeholder{
  width:100%; aspect-ratio: 16/9; background: var(--surface-2); border: 1.5px dashed var(--border);
  border-radius: 8px; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap: 8px; color: var(--text-muted); font-size: 12px;
}
.video-embed-placeholder .play-icon{ font-size: 26px; opacity:.5; }
iframe.video-embed-placeholder{ border: none; }
.noite-intro{ width:100%; max-width: 900px; margin-bottom: 6px; }
.noite-intro h1{ font-family:'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: .5px; color: var(--gold); margin-bottom:4px; }
.noite-intro p{ font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }

/* ---- teaser: blur + countdown sobre a grade ---- */
.grid-blur-wrap{ position:relative; }
.grid-blur-wrap .grid-panel{ filter: blur(4px); pointer-events:none; user-select:none; }
.grid-blur-overlay{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center; z-index:5;
}
.grid-countdown-box{
  background: var(--surface); border: 1.5px solid var(--gold); border-radius: 10px;
  padding: 16px 22px; text-align:center; box-shadow: 0 6px 24px rgba(0,0,0,.4);
}
.grid-countdown-box .lbl{ font-size: 11px; color: var(--text-muted); margin-bottom: 6px; text-transform:uppercase; letter-spacing:.5px; }
.grid-countdown-box .val{ font-size: 20px; font-weight:800; color: var(--gold); font-variant-numeric: tabular-nums; }

/* ---- "Em breve" (sem countdown) ---- */
.em-breve-box .em-breve-val{
  font-family:'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: 1px; color: var(--gold);
}
.em-breve-box .em-breve-sub{ margin-top: 6px; margin-bottom: 0; }

/* ---- teaser: poster com interrogacao ---- */
.poster-box.question-mark{
  display:flex; align-items:center; justify-content:center;
  background: var(--surface-2); border: 2px dashed var(--border);
}
.poster-box.question-mark span{ font-family:'Bebas Neue', sans-serif; font-size: 90px; color: var(--text-muted); }

/* ---- abertura: musicas ---- */
.song-list{ display:flex; flex-direction:column; gap: 8px; margin-bottom: 18px; }
.song-item{ display:flex; align-items:center; justify-content:space-between; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.song-item .song-name{ font-size: 13px; font-weight:700; }
.song-item a{ font-size: 12px; color: var(--gold); text-decoration:none; font-weight:700; }
.song-item a:hover{ text-decoration:underline; }

.topbar{
  width:100%; max-width: 900px;
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom: 14px;
  opacity:0; animation: fadeDown .5s ease forwards;
}
.brand{ font-family:'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 2px; color: var(--gold); }
.topbar-actions{ display:flex; gap: 10px; }
.btn{
  border: 1px solid var(--border);
  padding: 10px 18px; font-size: 13px; font-weight: 700; border-radius: 6px; cursor: pointer;
  transition: all .2s ease; font-family:'Inter',sans-serif;
}
.btn-ghost{ background-color: var(--surface-2); color: var(--text); }
.btn-ghost:hover{ border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }
.btn-solid{ background-color: var(--gold); color: #14161a; border-color: var(--gold); }
.btn-solid:hover{ transform: translateY(-1px); filter: brightness(1.05); }
.btn:disabled{ opacity: .4; cursor: not-allowed; pointer-events: none; }
.btn.loading{ opacity: .65; cursor: wait; pointer-events: none; }
.btn .spinner{
  display:inline-block; width:11px; height:11px; margin-right:6px;
  border: 2px solid rgba(20,22,26,.35); border-top-color: #14161a; border-radius: 50%;
  animation: spin .6s linear infinite; vertical-align: -1px;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

.end-banner{
  width:100%; max-width: 900px; background: linear-gradient(135deg, rgba(245,197,24,.12), rgba(245,197,24,.04));
  border: 1px solid var(--gold); border-radius: 10px; padding: 16px 18px; margin-bottom: 18px;
  text-align:center; color: var(--gold); font-weight: 700; font-size: 14px;
  opacity:0; animation: fadeUp .5s ease forwards;
}
.end-banner-msg{ margin-bottom: 6px; }
.end-banner-countdown{ font-size: 12px; font-weight: 600; color: var(--text-muted); }
.end-banner-countdown .cd{ color: var(--gold); font-weight: 800; font-variant-numeric: tabular-nums; }

.countdown-banner{
  width:100%; max-width: 900px; background-color: var(--gold);
  border-radius: 10px; padding: 12px 18px; margin-bottom: 20px;
  text-align:center; color: #14161a; font-weight: 700; font-size: 13px;
  opacity:0; animation: fadeUp .5s ease forwards;
}
.countdown-banner .cd{ font-variant-numeric: tabular-nums; font-weight: 800; }

#capture-area, #custom-capture-area{
  display:flex;
  background-color: var(--surface);
  border: 1px solid var(--border);
  padding: 24px; border-radius: 10px; gap: 28px;
  width: fit-content; max-width: 100%;
  margin-bottom: 24px;
  opacity:0; animation: fadeUp .6s ease .1s forwards;
}

/* ---- painel esquerdo ---- */
.left-panel{ width: 220px; display:flex; flex-direction:column; gap: 14px; flex-shrink:0; }
.poster-box{
  width: 100%; height: 320px; border-radius: 6px; border: 2px dashed var(--border);
  background-color: var(--surface-2);
  display:flex; align-items:center; justify-content:center; flex-direction:column; gap:8px;
  cursor:pointer; overflow:hidden; position:relative; transition: border-color .2s ease;
}
.poster-box:hover{ border-color: var(--gold); }
.poster-box img{ width:100%; height:100%; object-fit:cover; display:none; }
.poster-box.has-image{ border-style:solid; }
.poster-box.has-image img{ display:block; }
.poster-box.has-image .poster-hint{ display:none; }
.poster-hint{ color: var(--text-muted); text-align:center; font-size: 11px; padding: 0 16px; line-height:1.5; }
.poster-hint b{ display:block; color: var(--text); font-size: 12px; margin-bottom:4px; font-family: monospace; }
.poster-input{ display:none; }

.title-section h1{ font-family:'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: 1px; color: var(--gold); margin-bottom: 4px; }
.title-section h1[contenteditable="true"]{ outline: none; cursor: text; border-bottom: 1px dashed transparent; }
.title-section h1[contenteditable="true"]:hover{ border-bottom-color: var(--border); }
.title-section h1[contenteditable="true"]:focus{ border-bottom-color: var(--gold); }
.rating-line{ display:flex; align-items:baseline; gap:6px; margin-bottom: 8px; }
.rating-line .star{ color: var(--gold); font-size: 15px; line-height:1; }
.rating-line .num{ font-size:18px; font-weight:800; }
.rating-line .cnt{ font-size:11px; color: var(--text-muted); }
.description{
  font-size: 13px; color: var(--text-muted); line-height: 1.5; outline: none;
  border-left: 2px solid var(--border); padding-left: 8px; cursor: text;
}
.description:focus{ border-left-color: var(--gold); }
.description.placeholder{ font-style: italic; opacity: .8; }

/* ---- grid generico ---- */
.grid-panel{ display:flex; flex-direction:column; gap: 5px; }
.grid-row{ display:flex; gap: 5px; align-items:center; }

.cell{
  width: 52px; height: 42px;
  display:flex; align-items:center; justify-content:center;
  border-radius: 6px; font-weight: 800; font-size: 13px; color: #14161a;
  transition: background .3s ease, transform .15s ease, box-shadow .2s ease;
  position: relative;
}
.cell.pop{ transform: scale(.5); opacity: 0; animation: popIn .4s cubic-bezier(.2,.9,.3,1.3) forwards; }
.cell.label{ background: transparent; color: var(--text-muted); width: 42px; font-size: 12px; font-weight:700; justify-content:flex-end; padding-right: 4px; }
.cell.header{ background: transparent; color: var(--text-muted); font-size: 12px; }
.cell.empty-cell{ background: var(--gray-cell); color: var(--text-muted); }
.cell.cell-void{ background: transparent; } /* noite com menos peças que as outras */
.cell-avg{ background-color: var(--surface-2); border: 1.5px solid var(--gold); color: var(--text); }
.cell-data{ cursor: default; }
.cell-data:hover{ transform: scale(1.06); box-shadow: 0 0 0 2px rgba(255,255,255,.15); z-index:2; }

.tooltip{
  position:absolute; bottom: 108%; left:50%; transform: translateX(-50%);
  background:#000; color:#fff; font-size:10px; font-weight:600;
  padding: 3px 7px; border-radius:4px; white-space:nowrap;
  opacity:0; pointer-events:none; transition: opacity .15s ease;
}
.cell-data:hover .tooltip{ opacity:1; }

.cell-input{ background-color: var(--surface-2); border: 1.5px solid var(--border); transition: border-color .2s ease, background .2s ease; }
.cell-input:focus-within{ border-color: var(--gold); }
.cell-input.locked{
  display:flex; align-items:center; justify-content:center; cursor: not-allowed;
  color: var(--text-muted); font-size: 14px; opacity: .5;
}
.cell.header .lock-icon{ font-size: 10px; margin-left: 3px; opacity:.7; }
.cell-input input{
  width: 100%; height: 100%; border: none; background: transparent; color: inherit;
  text-align: center; font-weight: 800; font-size: 13px; outline: none; border-radius: 6px;
  font-family: 'Inter', sans-serif;
}
.cell-input input::placeholder{ color: var(--text-muted); font-weight:600; }
.cell-input input::-webkit-inner-spin-button, .cell-input input::-webkit-outer-spin-button{ -webkit-appearance:none; margin:0; }

/* grid compacto (detalhe de uma avaliacao) */
.mini-grid .cell{ width: 38px; height: 32px; font-size: 11px; border-radius: 5px; }
.mini-grid .cell.label{ width: 30px; font-size: 10px; }
.mini-grid .cell.header{ font-size: 10px; }
.mini-grid .grid-row{ gap: 4px; }
.mini-grid{ gap: 4px; }

@keyframes popIn{ to{ transform: scale(1); opacity:1; } }
@keyframes fadeUp{ from{ opacity:0; transform: translateY(14px);} to{ opacity:1; transform:translateY(0);} }
@keyframes fadeDown{ from{ opacity:0; transform: translateY(-8px);} to{ opacity:1; transform:translateY(0);} }

/* ---- secoes ---- */
.section{
  width: 100%; max-width: 900px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 26px;
  margin-bottom: 24px;
  opacity:0; animation: fadeUp .6s ease .2s forwards;
}
.section h2{ font-family:'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 1px; margin-bottom: 3px; }
.section .sub{ color: var(--text-muted); font-size: 12px; margin-bottom: 18px; }
.section h3.subhead{ font-size: 12px; text-transform:uppercase; letter-spacing:.5px; color: var(--text-muted); margin: 22px 0 10px 0; }

.gerais-summary{ display:flex; gap: 26px; margin-bottom: 4px; }
.gerais-stat .big{ font-size: 26px; font-weight: 800; font-family: 'Bebas Neue', sans-serif; letter-spacing: .5px; }
.gerais-stat .lbl{ font-size: 11px; color: var(--text-muted); text-transform:uppercase; letter-spacing:.4px; }

.submission-list{ display:flex; flex-direction:column; gap: 8px; }
.submission-item{
  border: 1px solid var(--border); border-radius: 8px; overflow:hidden;
  opacity:0; animation: fadeUp .4s ease forwards;
}
.submission-head{
  display:flex; align-items:center; gap: 14px; padding: 10px 12px; cursor: pointer;
  transition: background .15s ease;
}
.submission-head:hover{ background: rgba(255,255,255,0.02); }
.submission-avg{
  flex: 0 0 auto; width: 44px; height: 36px; border-radius: 6px;
  display:flex; align-items:center; justify-content:center; font-weight:800; font-size:13px; color:#14161a;
}
.submission-meta{ flex:1; min-width:0; }
.submission-name{ font-weight:700; font-size: 13px; }
.submission-when{ font-size: 11px; color: var(--text-muted); }
.submission-mini{ display:flex; gap:3px; flex-shrink:0; }
.mini-chip{ width: 9px; height: 22px; border-radius: 2px; }
.mini-chip.blank{ background: var(--gray-cell) !important; }
.chevron{ color: var(--text-muted); font-size: 11px; transition: transform .2s ease; flex-shrink:0; }
.submission-item.expanded .chevron{ transform: rotate(180deg); }
.submission-detail{
  max-height: 0; overflow:hidden; transition: max-height .3s ease;
  border-top: 1px solid transparent;
}
.submission-item.expanded .submission-detail{ max-height: 260px; border-top-color: var(--border); }
.submission-detail-inner{ padding: 14px 12px; }
.empty-note{ color: var(--text-muted); font-size:13px; font-style: italic; }

/* ---- lista da central de notificações ---- */
.notif-item{
  display:flex; align-items:flex-start; gap: 12px; width:100%; max-width:900px;
  background: var(--surface); border:1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 8px; text-decoration:none; color: inherit;
  transition: border-color .15s ease;
}
.notif-item:hover{ border-color: var(--gold); }
.notif-dot{
  flex-shrink:0; width: 9px; height: 9px; border-radius:50%; margin-top: 5px;
  background: transparent;
}
.notif-item.notif-nao-lida{ background: rgba(245,197,24,.06); border-color: rgba(245,197,24,.35); }
.notif-item.notif-nao-lida .notif-dot{ background: var(--gold); }
.notif-item-body{ display:flex; flex-direction:column; gap: 3px; min-width:0; }
.notif-item-title{ font-size: 13px; font-weight: 800; color: var(--text); }
.notif-item-corpo{ font-size: 12px; color: var(--text-muted); line-height:1.5; }
.notif-item-data{ font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ---- modal ---- */
.modal-overlay{
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  display:none; align-items:center; justify-content:center; z-index: 100;
  padding: 20px; opacity:0; transition: opacity .2s ease;
}
.modal-overlay.open{ display:flex; }
.modal-overlay.show{ opacity:1; }
.modal-card{
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px 26px; max-width: 480px; width: 100%; max-height: 90vh; overflow-y:auto;
  transform: translateY(14px) scale(.97); transition: transform .2s ease;
}
.modal-overlay.show .modal-card{ transform: translateY(0) scale(1); }
.modal-header{ display:flex; align-items:center; justify-content:space-between; margin-bottom: 4px; }
.modal-header h2{ font-family:'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 1px; }
.modal-close{ background:none; border:none; color: var(--text-muted); font-size: 20px; cursor:pointer; line-height:1; padding: 4px; }
.modal-close:hover{ color: var(--text); }
.modal-sub{ color: var(--text-muted); font-size: 12px; margin-bottom: 18px; }

/* ---- modal escolha de ano (Monte o Seu) ---- */
.year-pick-options{ display:flex; flex-direction:column; gap: 12px; margin-top: 6px; }
.year-pick-btn{
  display:block; width:100%; text-align:left; padding: 16px 18px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  cursor:pointer; transition: all .2s ease; font-family:'Inter',sans-serif; text-decoration:none;
}
.year-pick-btn:hover{ border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }
.year-pick-btn .yr{ display:block; font-family:'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 1px; margin-bottom: 2px; }
.year-pick-btn .yr-sub{ display:block; font-size: 11px; color: var(--text-muted); font-weight: 400; }

.name-field{ margin-bottom: 18px; }
.name-field label{ display:block; font-size: 12px; font-weight:700; color: var(--text); margin-bottom: 6px; }
.name-field .optional-tag{ font-weight:400; color: var(--text-muted); }
.name-field input{
  width: 100%; background-color: var(--surface-2); border: 1.5px solid var(--border);
  border-radius: 6px; padding: 10px 12px; color: var(--text); font-size: 13px;
  font-family: 'Inter', sans-serif; outline: none; transition: border-color .2s ease;
}
.name-field input::placeholder{ color: var(--text-muted); }
.name-field input:focus{ border-color: var(--gold); }

.form-footer{ display:flex; align-items:center; justify-content:space-between; margin-top: 18px; flex-wrap: wrap; gap: 10px; }
.hint-text{ font-size: 11px; color: var(--text-muted); }
.submit-btn{
  background-color: var(--gold); color: #14161a; border:none; font-weight:800; font-size: 13px;
  padding: 12px 22px; border-radius: 6px; cursor:pointer; transition: transform .15s ease, opacity .15s ease;
}
.submit-btn:hover{ transform: translateY(-1px); }
.submit-btn:disabled{ opacity:.4; cursor:not-allowed; transform:none; }
.shared-note{ font-size: 11px; color: var(--text-muted); margin-top: 12px; }
.clear-link{ background:none; border:none; color: var(--text-muted); font-size: 11px; text-decoration: underline; cursor: pointer; padding: 0; }
.clear-link:hover{ color: var(--text); }

/* ---- monte o seu ---- */
.custom-toolbar{
  width: 100%; max-width: 900px;
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom: 14px;
}
.custom-toolbar p{ font-size: 12px; color: var(--text-muted); max-width: 560px; }

/* ---- hall da fama ---- */
.hall-cards{
  width:100%; max-width: 900px;
  display:grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px;
  margin-bottom: 24px;
}
.hall-card{
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 12px; text-align:center;
  opacity:0; animation: fadeUp .5s ease forwards;
}
.hall-card .big{ font-family:'Bebas Neue', sans-serif; font-size: 28px; color: var(--gold); line-height:1.1; }
.hall-card .lbl{ font-size: 11px; color: var(--text-muted); text-transform:uppercase; letter-spacing:.4px; margin-top: 4px; }
.hall-card .subtxt{ font-size: 10px; color: var(--text-muted); margin-top: 3px; }
a.hall-card{ text-decoration:none; color: inherit; }
a.hall-card:hover{ border-color: var(--gold); }
.hall-stamp{ color: var(--text-muted); font-size: 11px; }
.hall-filtros{ display:flex; align-items:center; gap: 8px; font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.heatmap{ display:flex; flex-direction:column; gap: 4px; overflow-x:auto; padding-bottom: 4px; }
.hm-row{ display:flex; gap: 4px; align-items:center; }
.hm-lbl{ width: 46px; flex-shrink:0; font-size: 11px; font-weight:700; color: var(--text-muted); text-align:center; }
.hm-cell{
  width: 46px; height: 36px; flex-shrink:0; border-radius: 6px;
  display:flex; align-items:center; justify-content:center;
  font-size: 12px; font-weight: 800; color: #14161a; text-decoration:none;
  transition: transform .15s ease;
}
a.hm-cell:hover{ transform: scale(1.08); }
.hm-cell.empty{ background: var(--gray-cell); color: var(--text-muted); }

/* ---- página inicial ---- */
.home-hero{
  width:100%; max-width: 900px;
  display:flex; gap: 28px; align-items:center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 28px; margin-bottom: 24px;
  opacity:0; animation: fadeUp .6s ease forwards;
}
.home-poster{ width: 180px; height: 250px; flex-shrink:0; cursor: default; }
.home-info{ flex: 1; min-width: 0; } /* ocupa todo o espaço à direita do poster */
.home-title{ font-family:'Bebas Neue', sans-serif; font-size: 46px; letter-spacing: 2px; line-height: 1; }
.home-title span{ color: var(--gold); }
.home-tagline{ color: var(--text-muted); font-size: 14px; line-height: 1.6; margin: 8px 0 18px; }
.home-actions{ display:flex; gap: 10px; flex-wrap: wrap; }
.home-actions .btn{ text-decoration: none; display:inline-block; }
.home-countdown{ text-align:center; }
.home-countdown .lbl{ font-size: 13px; color: var(--text-muted); text-transform:uppercase; letter-spacing: .6px; margin-bottom: 8px; }
.home-countdown .big-timer{
  font-family:'Bebas Neue', sans-serif; font-size: 54px; color: var(--gold);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
@media (max-width: 720px){
  .home-hero{ flex-direction: column; text-align: center; }
  .home-actions{ justify-content: center; }
  .home-countdown .big-timer{ font-size: 40px; }
}

/* ---- linha do tempo ---- */
.timeline{ display:flex; flex-direction:column; }
.tl-item{ display:flex; gap: 12px; padding-bottom: 18px; }
.tl-item:last-child{ padding-bottom: 0; }
.tl-year{ width: 52px; flex-shrink:0; font-family:'Bebas Neue', sans-serif; font-size: 18px; color: var(--gold); text-align:right; line-height: 1.1; }
.tl-line{ position:relative; width: 12px; flex-shrink:0; }
.tl-line::before{ content:''; position:absolute; left: 5px; top: 8px; bottom: -10px; width: 2px; background: var(--border); }
.tl-item:last-child .tl-line::before{ display:none; }
.tl-dot{ position:absolute; left: 1px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.tl-item.gap .tl-dot{ background: var(--border); }
.tl-item.gap{ padding-bottom: 10px; }
.tl-text{ font-size: 13px; padding-top: 1px; line-height: 1.5; min-width: 0; }
.tl-text a{ color: var(--gold); text-decoration: none; font-weight: 700; }
.tl-text a:hover{ text-decoration: underline; }
.tl-sub{ color: var(--text-muted); font-size: 12px; }

/* ---- comparar edições ---- */
.comp-row{ display:grid; grid-template-columns: 1fr 44px 1fr; gap: 8px; align-items:stretch; margin-bottom: 6px; }
.comp-ep{ display:flex; align-items:center; justify-content:center; font-size: 11px; font-weight:800; color: var(--text-muted); }
.comp-side{
  display:flex; align-items:center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; text-decoration:none; color: var(--text); min-height: 42px;
  transition: border-color .15s ease;
}
a.comp-side:hover{ border-color: var(--gold); }
.comp-side.empty{ justify-content:center; color: var(--text-muted); }
.comp-row .comp-side:last-child{ flex-direction: row-reverse; text-align:right; }
.comp-nota{
  flex-shrink:0; width: 38px; height: 30px; border-radius: 6px;
  display:flex; align-items:center; justify-content:center; font-size: 12px; font-weight:800;
}
.comp-titulo{ font-size: 12px; font-weight: 600; line-height: 1.3; }
.hall-select{
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 6px; padding: 8px 10px; font-family:'Inter', sans-serif; font-size: 12px;
  margin-bottom: 14px; cursor:pointer;
}
.hall-select:focus{ outline:none; border-color: var(--gold); }
.record-list{ display:flex; flex-direction:column; gap: 8px; }
.record-item{
  display:flex; gap: 12px; align-items:flex-start;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; text-decoration:none; color: var(--text); transition: border-color .15s ease;
}
a.record-item:hover{ border-color: var(--gold); }
.rec-emoji{ font-size: 20px; line-height: 1.2; flex-shrink:0; }
.curio-fade{ animation: curioFade .5s ease; }
@keyframes curioFade{ from{ opacity: 0; transform: translateY(6px); } to{ opacity: 1; transform: none; } }
.rec-title{ font-size: 13px; font-weight: 700; }
.rec-text{ font-size: 12px; color: var(--text-muted); margin-top: 2px; line-height:1.5; }
.section canvas{ max-width:100%; }

/* ---- badges das peças ---- */
.peca-badges .badge{ font-size: 15px; margin-left: 4px; cursor: help; }
.badge-legend{ display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.badge-item{
  display:flex; gap: 10px; align-items:flex-start;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px;
}
.badge-big{ font-size: 20px; line-height: 1.2; flex-shrink:0; }

@media (max-width: 720px){
  #capture-area, #custom-capture-area{ flex-direction:column; }
  .left-panel{ width: 100%; }
  .poster-box{ height: 200px; }
  .submission-mini{ display:none; }
  .topbar{ flex-wrap: wrap; gap: 10px; }
  .custom-toolbar{ flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ===================================================================
   CONTAS / LOGIN / PERFIL / BOLÃO
   =================================================================== */

/* ---- bloco de conta na barra lateral ---- */
.nav-account{ display:flex; align-items:center; gap: 4px; margin-top: 2px; }
.nav-account .nav-perfil{ flex: 1 1 auto; }
.nav-entrar{ color: var(--gold); }
.nav-sair{
  flex-shrink:0; width:auto; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 11px; font-weight:700; padding: 8px 10px;
  border-radius: 6px; cursor:pointer;
}
.nav-sair:hover{ border-color: var(--gold); color: var(--gold); }

/* ---- modal de login ---- */
.login-form{ display:flex; flex-direction:column; gap: 6px; }
.login-form label{ font-size: 12px; font-weight:700; color: var(--text); margin-top: 6px; }
.login-form input{
  width:100%; background-color: var(--surface-2); border: 1.5px solid var(--border);
  border-radius: 6px; padding: 10px 12px; color: var(--text); font-size: 13px;
  font-family:'Inter', sans-serif; outline:none; transition: border-color .2s ease;
}
.login-form input:focus{ border-color: var(--gold); }
.login-form input::placeholder{ color: var(--text-muted); }
.login-form .submit-btn{ margin-top: 14px; width: 100%; }
.submit-btn .spinner{
  display:inline-block; width:11px; height:11px; margin-right:6px;
  border: 2px solid rgba(20,22,26,.35); border-top-color: #14161a; border-radius: 50%;
  animation: spin .6s linear infinite; vertical-align: -1px;
}
.login-seguranca{
  font-size: 11px; color: var(--text-muted); line-height: 1.6; margin-top: 12px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px;
}
.login-seguranca b{ color: var(--text); }
.login-erro{ font-size: 12px; color: #e0685f; min-height: 16px; margin-top: 6px; }
.login-toggle{ font-size: 12px; color: var(--text-muted); margin-top: 12px; text-align:center; }
.login-toggle button{
  background:none; border:none; color: var(--gold); font-weight:700; cursor:pointer;
  font-size: 12px; text-decoration:underline; padding: 0 0 0 4px;
}
.name-logado{ font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ---- página de perfil ---- */
.perfil-head{
  width:100%; max-width: 900px; display:flex; align-items:center; gap: 16px; margin-bottom: 22px;
}
.perfil-avatar{
  width: 56px; height: 56px; flex-shrink:0; border-radius: 50%;
  background: var(--gold); color:#14161a; display:flex; align-items:center; justify-content:center;
  font-family:'Bebas Neue', sans-serif; font-size: 30px;
}
.perfil-head h1{ font-family:'Bebas Neue', sans-serif; font-size: 30px; letter-spacing:.5px; color: var(--gold); line-height:1; }
.perfil-sub{ font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.perfil-vazio{ font-size: 13px; color: var(--text-muted); line-height:1.6; margin-bottom: 16px; }

/* ---- bolão ---- */
#bolaoSection .bolao-form{ display:flex; gap: 10px; align-items:center; flex-wrap:wrap; }
#bolaoInput{
  width: 120px; background-color: var(--surface-2); border: 1.5px solid var(--border);
  border-radius: 6px; padding: 10px 12px; color: var(--text); font-size: 15px; font-weight:700;
  font-family:'Inter', sans-serif; outline:none; text-align:center;
}
#bolaoInput:focus{ border-color: var(--gold); }
.bolao-msg{ font-size: 12px; color: var(--text-muted); margin-top: 10px; }
.bolao-login{ display:flex; align-items:center; gap: 14px; flex-wrap:wrap; font-size: 13px; color: var(--text-muted); }
.bolao-real{ font-size: 14px; color: var(--text); margin-bottom: 12px; }
.bolao-real b{ color: var(--gold); }
.record-item.bolao-eu{ border-color: var(--gold); background: rgba(245,197,24,.10); }

/* grade de palpites do bolão (por episódio) */
.bolao-grid{ overflow-x: auto; margin-bottom: 12px; }
.bolao-actions{ display:flex; align-items:center; justify-content:space-between; gap: 12px; flex-wrap: wrap; }
.bolao-locked{
  font-size: 13px; color: var(--text-muted); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px;
}
.bolao-locked b{ color: var(--gold); }

/* ---- badges do perfil ---- */
.badge-count{ font-size: 12px; color: var(--text-muted); font-weight: 600; }
.badge-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.badge-card{
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 12px; text-align:center;
}
.badge-card .badge-emoji{ font-size: 30px; line-height: 1.1; }
.badge-card .badge-name{ font-size: 12px; font-weight: 800; margin-top: 8px; color: var(--text); }
.badge-card .badge-desc{ font-size: 11px; color: var(--text-muted); margin-top: 4px; line-height: 1.4; }
.badge-card.locked{ opacity: .5; filter: grayscale(1); }
.badge-card.locked .badge-name{ color: var(--text-muted); }
.badge-cat{ font-size: 9px; text-transform:uppercase; letter-spacing:.5px; color: var(--text-muted); margin-top: 6px; opacity:.8; }

/* ---- anônimo no voto ---- */
.anon-check{ display:flex; align-items:center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--text); margin-top: 8px; cursor:pointer; }
.anon-check input{ width: 15px; height: 15px; accent-color: var(--gold); }
.anon-check .anon-sub{ color: var(--text-muted); font-weight: 400; }

/* aceite dos Termos de Serviço (conta nova + avaliação como visitante) */
.tos-check{ display:flex; align-items:flex-start; gap: 8px; font-size: 12px; line-height: 1.5; color: var(--text-muted); font-weight: 400; margin-top: 10px; cursor:pointer; }
.tos-check input{ width: 15px; height: 15px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--gold); cursor:pointer; }
.tos-check a{ color: var(--gold); text-decoration: underline; }
.tos-check.tos-erro{ color: #e0685f; }

/* ---- perfil: cabeçalho + nível ---- */
.perfil-head-info{ flex: 1 1 auto; min-width: 0; }
.perfil-actions{ flex-shrink:0; display:flex; gap: 8px; align-items:flex-start; }
.nivel-chip{ font-family:'Inter',sans-serif; font-size: 11px; font-weight: 800; color:#14161a; background: var(--gold); border-radius: 20px; padding: 2px 10px; vertical-align: middle; margin-left: 6px; }
.nivel-bar-wrap{ height: 8px; background: var(--surface-2); border:1px solid var(--border); border-radius: 20px; overflow:hidden; margin-top: 10px; max-width: 340px; }
.nivel-bar{ height: 100%; width: 0; background: var(--gold); transition: width .4s ease; }
.nivel-txt{ font-size: 11px; color: var(--text-muted); margin-top: 5px; }

/* ---- showcase (destaques) ---- */
.showcase-grid{ width:100%; max-width:900px; display:grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 10px; margin-bottom: 22px; }
.showcase-card{ display:flex; gap: 10px; align-items:center; background: var(--surface-2); border:1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
a.showcase-card{ text-decoration:none; color: inherit; transition: border-color .15s ease; }
a.showcase-card:hover{ border-color: var(--gold); }
.sc-ico{ font-size: 22px; }
.sc-lbl{ font-size: 10px; text-transform:uppercase; letter-spacing:.5px; color: var(--text-muted); }
.sc-val{ font-size: 13px; font-weight: 700; color: var(--text); }
.showcase-form{ width:100%; max-width:900px; background: var(--surface); border:1px solid var(--border); border-radius: 10px; padding: 16px 18px; margin-bottom: 22px; }
.sf-row{ display:flex; align-items:center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.sf-row label{ font-size: 12px; font-weight: 700; width: 160px; flex-shrink:0; }
.sf-row input, .sf-row select{ flex: 1 1 180px; background: var(--surface-2); border: 1.5px solid var(--border); border-radius: 6px; padding: 8px 10px; color: var(--text); font-family:'Inter',sans-serif; font-size: 13px; outline:none; }
.sf-row input:focus, .sf-row select:focus{ border-color: var(--gold); }
.showcase-form-actions{ display:flex; align-items:center; justify-content:flex-end; gap: 12px; margin-top: 10px; }
/* no celular/PWA os destaques ficavam enormes (1 por linha) — encolhe p/ caberem 2+ */
@media (max-width:860px){
  .showcase-grid{ grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); gap: 8px; margin-bottom: 16px; }
  .showcase-card{ padding: 9px 10px; gap: 8px; border-radius: 9px; }
  .sc-ico{ font-size: 18px; }
  .sc-val{ font-size: 12px; }
  .sc-lbl{ font-size: 9px; }
}

/* ---- carimbos ---- */
.ajuda-btn{ width: 18px; height: 18px; border-radius: 50%; border:1px solid var(--border); background: var(--surface-2); color: var(--text-muted); font-size: 11px; font-weight: 800; cursor:pointer; line-height: 1; vertical-align: middle; }
.ajuda-btn:hover{ border-color: var(--gold); color: var(--gold); }
.carimbo-legenda{ background: var(--surface-2); border:1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; display:flex; flex-direction:column; gap: 8px; }
.carimbo-leg-item{ display:flex; gap: 10px; align-items:flex-start; font-size: 12px; color: var(--text-muted); }
.carimbo-leg-item b{ color: var(--text); }
.carimbo-recebidos{ display:flex; flex-wrap:wrap; gap: 8px; margin-bottom: 12px; }
.carimbo-chip{ display:flex; align-items:center; gap: 5px; background: var(--surface-2); border:1px solid var(--border); border-radius: 20px; padding: 6px 12px; font-size: 16px; }
.carimbo-chip span{ font-size: 12px; font-weight: 800; color: var(--gold); }
.carimbo-dar-lbl{ font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.carimbo-opcoes{ display:flex; flex-wrap:wrap; gap: 8px; }
.carimbo-btn{ width: 42px; height: 42px; font-size: 20px; background: var(--surface-2); border:1px solid var(--border); border-radius: 10px; cursor:pointer; transition: border-color .15s ease, transform .15s ease; }
.carimbo-btn:hover{ border-color: var(--gold); transform: translateY(-2px); }
.carimbo-btn:disabled{ opacity:.4; cursor:not-allowed; }

/* ---- visitantes ---- */
.visit-list{ display:flex; flex-wrap:wrap; gap: 8px; }
.visit-chip{ display:flex; align-items:center; gap: 8px; background: var(--surface-2); border:1px solid var(--border); border-radius: 20px; padding: 5px 12px 5px 5px; font-size: 12px; font-weight: 600; color: var(--text); text-decoration:none; }
.visit-chip:hover{ border-color: var(--gold); }
.visit-ava{ width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color:#14161a; display:flex; align-items:center; justify-content:center; font-size: 11px; font-weight: 800; }
.visit-when{ color: var(--text-muted); font-weight: 400; }

/* ---- abas de reviews ---- */
.rev-tabs{ display:flex; gap: 6px; margin-bottom: 14px; }
.rev-tab{ background: var(--surface-2); border:1px solid var(--border); color: var(--text-muted); font-size: 12px; font-weight: 700; padding: 8px 16px; border-radius: 6px; cursor:pointer; }
.rev-tab.active{ background: rgba(245,197,24,.12); border-color: var(--gold); color: var(--gold); }
.rev-fest-grupo{ margin-bottom: 18px; }
.rev-fest-titulo{ font-family:'Bebas Neue',sans-serif; font-size: 18px; letter-spacing:.5px; color: var(--gold); margin-bottom: 10px; }
.rev-fest-titulo span{ font-family:'Inter',sans-serif; font-size: 11px; color: var(--text-muted); }

/* ---- ranking de usuários (hall) ---- */
.rank-cols{ display:grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 18px; }
.rank-col .subhead{ margin-top: 0; }

/* ---- comparação / afinidade ---- */
.afinidade-wrap{ display:flex; align-items:center; gap: 18px; background: var(--surface-2); border:1px solid var(--border); border-radius: 10px; padding: 16px 18px; margin-bottom: 16px; }
.afinidade-num{ font-family:'Bebas Neue',sans-serif; font-size: 46px; color: var(--gold); line-height: 1; }
.afinidade-txt{ font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.afinidade-txt b{ color: var(--text); }

/* ---- página de busca ---- */
.busca-barra{ width:100%; max-width: 900px; margin-bottom: 12px; }
.busca-barra input{
  width:100%; background: var(--surface-2); border: 1.5px solid var(--border); border-radius: 10px;
  padding: 14px 16px; color: var(--text); font-family:'Inter',sans-serif; font-size: 15px; outline:none;
}
.busca-barra input:focus{ border-color: var(--gold); }
.busca-filtros{ width:100%; max-width: 900px; display:flex; flex-wrap:wrap; gap: 12px; margin-bottom: 22px; }
.busca-filtros label{ display:flex; flex-direction:column; gap: 4px; font-size: 11px; color: var(--text-muted); font-weight: 700; text-transform:uppercase; letter-spacing:.5px; }
.busca-filtros select{ margin-bottom: 0; }

/* usuários: bolinha redonda + nome (igual ao perfil) */
.busca-users{ display:flex; flex-wrap:wrap; gap: 10px; }
.busca-user{
  display:flex; align-items:center; gap: 10px; background: var(--surface-2); border:1px solid var(--border);
  border-radius: 30px; padding: 6px 16px 6px 6px; text-decoration:none; color: var(--text); transition: border-color .15s ease;
}
.busca-user:hover{ border-color: var(--gold); }
.busca-ava{ width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color:#14161a; display:flex; align-items:center; justify-content:center; font-family:'Bebas Neue',sans-serif; font-size: 18px; flex-shrink:0; }
.busca-user-nome{ font-size: 13px; font-weight: 700; }
.busca-user-sub{ font-size: 11px; color: var(--text-muted); }

/* peças/festivais: pôster retangular em miniatura + info (estilo do popup Monte o Seu) */
.busca-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.busca-item{
  display:flex; gap: 12px; align-items:center; background: var(--surface-2); border:1px solid var(--border);
  border-radius: 10px; padding: 10px; text-decoration:none; color: var(--text); transition: border-color .2s ease, transform .2s ease;
}
.busca-item:hover{ border-color: var(--gold); transform: translateY(-1px); }
.busca-poster{
  width: 46px; height: 62px; flex-shrink:0; border-radius: 6px; background: var(--surface);
  background-size: cover; background-position: center; border: 1px solid var(--border);
}
.busca-info{ min-width: 0; }
.busca-titulo{ font-size: 13px; font-weight: 700; line-height: 1.3; display:flex; align-items:center; gap: 6px; flex-wrap:wrap; }
.busca-meta{ font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.busca-nota{ font-size: 11px; font-weight: 800; color:#14161a; border-radius: 5px; padding: 1px 6px; }

/* =====================================================================
   PERFIL — reputação (títulos), edições preferidas e amigos
   ===================================================================== */

/* ---- título por reputação (ao lado do nível) ---- */
.titulo-chip{
  font-family:'Inter',sans-serif; font-size: 11px; font-weight: 800;
  color: var(--gold); background: rgba(245,197,24,.12);
  border: 1px solid rgba(245,197,24,.4); border-radius: 20px;
  padding: 2px 10px; vertical-align: middle; margin-left: 4px; white-space: nowrap;
}

/* ---- botao "Entrar com Google" + separador "ou" no modal de login ---- */
.login-ou{
  display:flex; align-items:center; gap:10px;
  margin:14px 0 10px; color:var(--text-muted); font-size:11px;
  text-transform:uppercase; letter-spacing:1px;
}
.login-ou::before, .login-ou::after{ content:''; flex:1; height:1px; background:var(--border); }
.btn-google{
  width:100%; display:flex; align-items:center; justify-content:center; gap:10px;
  background:#fff; color:#1f1f1f; border:1px solid #dadce0; border-radius:8px;
  padding:11px 14px; font-family:'Inter',sans-serif; font-size:14px; font-weight:600;
  cursor:pointer; transition:background .15s ease, box-shadow .15s ease;
}
.btn-google:hover{ background:#f7f8f8; box-shadow:0 1px 4px rgba(0,0,0,.28); }
.btn-google:disabled{ opacity:.6; cursor:default; }

/* ---- selos de privacidade no cabecalho do perfil ----
   mesmas cores do painel admin: vermelho #d93c3c (privado), roxo #6d28d9 (anonimo) */
.perfil-flags{ display:inline-flex; gap:5px; vertical-align:middle; margin-left:7px; }
.perfil-flag{
  display:inline-flex; align-items:center; justify-content:center;
  font-size:12px; line-height:1; border-radius:20px; padding:4px 8px;
  border:1px solid transparent; cursor:default;
}
.perfil-flag.priv{ background:rgba(217,60,60,.16);  border-color:rgba(217,60,60,.55); }
.perfil-flag.anon{ background:rgba(109,40,217,.20); border-color:rgba(109,40,217,.65); }
/* nome real ao lado do pseudonimo (so aparece no proprio perfil) */
.perfil-nome-real{
  font-family:'Inter',sans-serif; font-size:14px; font-weight:600;
  color:var(--text-muted); opacity:.6; vertical-align:middle; margin-left:8px;
}

/* ---- controle de reputação (👍/👎 com contador) ---- */
.rep-control{
  display:flex; align-items:center; gap: 2px;
  background: var(--surface-2); border:1px solid var(--border);
  border-radius: 10px; padding: 2px 4px; height: 38px;
}
.rep-btn{
  width: 26px; height: 30px; border:none; background:transparent; cursor:pointer;
  color: var(--text-muted); font-size: 12px; border-radius: 7px; line-height: 1;
  transition: color .12s ease, background .12s ease;
}
.rep-btn:hover:not(:disabled){ background: var(--bg); }
.rep-btn:disabled{ opacity:.4; cursor: wait; }
.rep-up:hover:not(:disabled), .rep-up.ativo{ color: #4ade80; }
.rep-down:hover:not(:disabled), .rep-down.ativo{ color: #f87171; }
.rep-up.ativo{ background: rgba(74,222,128,.15); }
.rep-down.ativo{ background: rgba(248,113,113,.15); }
.rep-count{ min-width: 22px; text-align:center; font-size: 14px; font-weight: 800; color: var(--text); }

/* botão pequeno (usado no "Editar" das preferidas) */
.btn-mini{ font-size: 11px; padding: 3px 10px; margin-left: 8px; vertical-align: middle; }

/* ---- edições preferidas (estilo Letterboxd) ---- */
.fav-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.fav-card{ text-decoration:none; color: inherit; display:block; }
.fav-poster{
  width:100%; aspect-ratio: 63 / 83; background-size: cover; background-position:center;
  background-color: var(--surface-2); border:1px solid var(--border); border-radius: 10px;
  transition: border-color .15s ease, transform .15s ease;
}
.fav-card:hover .fav-poster{ border-color: var(--gold); transform: translateY(-3px); }
.fav-ano{ text-align:center; font-family:'Bebas Neue',sans-serif; letter-spacing: 1px; font-size: 15px; color: var(--gold); margin-top: 6px; }

/* editor das preferidas (chips numerados) */
.fav-editor-hint{ color: var(--text-muted); font-size: 12px; margin-bottom: 12px; }
.fav-chip-wrap{ display:flex; flex-wrap:wrap; gap: 8px; margin-bottom: 16px; }
.fav-chip{
  position:relative; background: var(--surface-2); border:1px solid var(--border);
  color: var(--text); border-radius: 8px; padding: 8px 12px; cursor:pointer;
  font-family:'Bebas Neue',sans-serif; letter-spacing:1px; font-size: 15px;
  transition: border-color .12s ease, background .12s ease;
}
.fav-chip:hover{ border-color: var(--gold); }
.fav-chip.sel{ border-color: var(--gold); background: rgba(245,197,24,.12); color: var(--gold); }
.fav-chip span{
  display:inline-flex; align-items:center; justify-content:center;
  width: 16px; height: 16px; border-radius: 50%; background: var(--gold); color:#14161a;
  font-family:'Inter',sans-serif; font-size: 10px; font-weight: 800; margin-left: 6px; vertical-align: middle;
}

/* ---- amigos ---- */
.amigo-chip{ display:inline-flex; align-items:center; gap: 4px; padding-right: 4px; }
.amigo-link{ display:inline-flex; align-items:center; gap: 8px; text-decoration:none; color: inherit; }
.amigo-rm{
  border:none; background:transparent; color: var(--text-muted); cursor:pointer;
  font-size: 16px; line-height: 1; padding: 2px 4px; border-radius: 6px;
}
.amigo-rm:hover{ color: #f87171; background: var(--bg); }
.amigo-rm:disabled{ opacity:.4; cursor: wait; }
.amigo-add{ position:relative; margin-top: 14px; max-width: 360px; }
.amigo-add input{
  width:100%; background: var(--surface-2); border:1px solid var(--border);
  color: var(--text); border-radius: 10px; padding: 10px 14px; font-size: 13px; font-family: inherit;
}
.amigo-add input:focus{ outline:none; border-color: var(--gold); }
.amigo-sugest{ display:flex; flex-direction:column; gap: 4px; margin-top: 6px; }
.amigo-sug-item{
  display:flex; align-items:center; gap: 8px; text-align:left;
  background: var(--surface-2); border:1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 6px 10px; cursor:pointer; font-size: 13px; font-weight: 600;
}
.amigo-sug-item:hover{ border-color: var(--gold); }
.amigo-sug-item:disabled{ opacity:.5; cursor: wait; }

/* celular: cabeçalho do perfil quebra em duas linhas — foto+nome em cima,
   e os botões de ação (editar destaques, amigo, compare...) numa linha
   própria embaixo, pra não espremer tudo ao lado da foto */
@media (max-width: 640px){
  .perfil-head{ flex-wrap: wrap; }
  .perfil-actions{
    flex-wrap: wrap; width: 100%; margin-top: 4px;
    justify-content: flex-start;
  }
}

/* =====================================================================
   COMPARTILHAR — cartão story (estilo Letterboxd) + top reputação
   ===================================================================== */

/* botão de compartilhar na peça (página da noite) */
.peca-share{
  flex-shrink:0; width: 38px; height: 38px; align-self:center; margin-left: 4px;
  background: var(--surface-2); border:1px solid var(--border); border-radius: 10px;
  color: var(--text); font-size: 16px; cursor:pointer; transition: border-color .15s ease, transform .15s ease;
}
.peca-share:hover{ border-color: var(--gold); transform: translateY(-2px); }

/* overlay + modal */
.share-overlay{
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.72);
  display:flex; align-items:center; justify-content:center; padding: 24px;
  backdrop-filter: blur(3px);
}
.share-modal{ display:flex; flex-direction:column; align-items:center; gap: 14px; max-height: 92vh; }

/* o cartão em si (proporção 9:16 de story) */
.share-card{
  width: 320px; height: 569px; border-radius: 18px; overflow:hidden;
  background: linear-gradient(180deg, #17181c 0%, #0e0f12 100%);
  border: 1px solid var(--border); display:flex; flex-direction:column;
}
.sc-poster-wrap{ width:100%; height: 60%; background: var(--surface-2); overflow:hidden; position:relative; }
.sc-poster-img{ width:100%; height:100%; object-fit: cover; display:block; }
.sc-poster-wrap.sem-poster::after{
  content:'🎭'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size: 64px; opacity:.4;
}
.sc-body{ flex:1; padding: 20px 22px; display:flex; flex-direction:column; justify-content:center; gap: 8px; text-align:center; }
.sc-title{ font-family:'Bebas Neue', sans-serif; font-size: 30px; line-height: 1.02; letter-spacing:.5px; color: var(--text); }
.sc-sub{ font-size: 12px; color: var(--text-muted); }
.sc-stars{ position:relative; display:inline-block; font-size: 26px; line-height:1; letter-spacing: 3px; margin: 4px auto 0; }
.sc-stars-base{ color: #3a3d44; }
.sc-stars-fill{ color: var(--gold); position:absolute; top:0; left:0; overflow:hidden; white-space:nowrap; }
.sc-nota{ font-family:'Bebas Neue', sans-serif; font-size: 26px; letter-spacing:1px; color: var(--gold); }
.sc-nota span{ font-size: 14px; color: var(--text-muted); margin-left: 2px; }
.sc-nota.sc-semnota{ color: var(--text-muted); font-size: 18px; }
.sc-legenda{ font-size: 11px; color: var(--text-muted); }
.sc-brand{ display:flex; align-items:center; justify-content:center; gap: 7px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--border); }
.sc-brand img{ width: 20px; height: auto; }
.sc-brand span{ font-family:'Bebas Neue', sans-serif; letter-spacing: 2px; font-size: 16px; color: var(--gold); }

.share-actions{ display:flex; gap: 8px; flex-wrap:wrap; justify-content:center; }
.share-hint{ font-size: 11px; color: var(--text-muted); text-align:center; max-width: 320px; }

/* escolha de escopo (festival / noite / episódio) antes de compartilhar */
.escopo-card{ max-width: 340px; }
.escopo-opcoes{ display:flex; flex-direction:column; gap: 10px; }
.escopo-opt{
  display:flex; align-items:center; gap: 10px; font-size: 13px; font-weight: 600;
  color: var(--text); cursor:pointer;
}
.escopo-opt input{ width: 15px; height: 15px; accent-color: var(--gold); flex-shrink:0; }
.escopo-select{
  margin-left: 25px; background: var(--surface-2); border: 1.5px solid var(--border);
  border-radius: 6px; padding: 8px 10px; color: var(--text); font-family:'Inter',sans-serif;
  font-size: 13px; outline:none;
}
.escopo-select:focus{ border-color: var(--gold); }

/* top reputação (Hall) — o titulo-chip reaproveita o estilo do perfil */
.rep-rank .record-item{ align-items:center; }
.rep-rank .rec-title{ display:flex; align-items:center; gap: 8px; flex-wrap:wrap; }

/* agrupa a nota + botão compartilhar à direita do card de peça */
.noite-card-right{ display:flex; align-items:center; gap: 8px; flex-shrink:0; }

/* =====================================================================
   TEMA CLARO + BARRA DE CONTA (perfil/config) — adicionados na atualização
   ===================================================================== */
:root{ color-scheme: dark; }
:root[data-theme="light"]{
  color-scheme: light;
  --bg:#f4f5f7;
  --surface:#ffffff;
  --surface-2:#eceef1;
  --border:#d7dade;
  --text:#16181d;
  --text-muted:#5b616b;
  --gold:#c99700;
  --gray-cell:#e3e6ea;
}
/* o card de compartilhar (story) e o banner de instalar seguem escuros de
   propósito — são "imagem"/destaque, não dependem do tema do app */

/* sidebar vira coluna; o nav tem seu próprio scroll e sobra espaço embaixo
   pra barra de conta (que agora é fixed, não sticky) não tampar links */
.sidebar{ display:flex; flex-direction:column; }
.sidebar-nav{ flex:1 1 auto; min-height:0; overflow-y:auto; padding-bottom: 64px; }

/* barra fixa no rodapé do menu (desktop): Perfil + Configurações.
   position:fixed (em vez de sticky) garante que ela sempre encosta
   no fundo real da viewport, sem fresta, não importa a altura do nav. */
.sidebar-account-bar{
  position:fixed; left:0; bottom:0; width: 230px; z-index:65;
  background:var(--surface); border-top:1px solid var(--border);
  display:flex; gap:5px; padding:10px 6px;
}
.sidebar-account-bar a, .sidebar-account-bar button{
  flex:1; display:flex; align-items:center; justify-content:center; gap:5px;
  background:var(--surface-2); border:1px solid var(--border); color:var(--text);
  border-radius:9px; padding:9px 4px; font-size:11px; font-weight:700;
  cursor:pointer; text-decoration:none; font-family:inherit; white-space:nowrap;
  position:relative;
}
.sidebar-account-bar a.active{ border-color:var(--gold); color:var(--gold); }
.sidebar-account-bar a:hover, .sidebar-account-bar button:hover{ filter:brightness(1.08); }

/* ícones rápidos (Perfil/Notif/Config) ao lado do ☰ — só no celular */
.sidebar-quick{ display:none; }
@media (max-width:860px){
  .sidebar-account-bar{ display:none; }   /* no celular vira os ícones abaixo */
  .sidebar-quick{ display:flex; gap:6px; }
  .sidebar-quick a{
    display:inline-flex; align-items:center; justify-content:center;
    width:36px; height:36px; border-radius:8px; text-decoration:none; font-size:16px;
    background:var(--surface-2); border:1px solid var(--border); color:var(--text);
    position:relative;
  }
  .sidebar-quick a.active{ border-color:var(--gold); }
}

/* bolinha de contagem de notificações não lidas — no sino do topo, no
   item do menu principal e na barra fixa de baixo */
.notif-badge{
  position:absolute; top:-5px; right:-5px; min-width:16px; height:16px;
  padding:0 4px; border-radius:20px; background:var(--gold); color:#0b0c0f;
  font-size:10px; font-weight:800; line-height:16px; text-align:center;
  box-shadow:0 0 0 2px var(--bg);
}
.nav-link .notif-badge{ position:static; margin-left:6px; display:inline-block; box-shadow:none; }

/* =====================================================================
   BANNER "ADICIONAR À TELA INICIAL" (só na home)
   ===================================================================== */
.home-install-banner{
  width:100%; max-width:900px; margin:0 auto 18px auto;
  display:flex; align-items:center; gap:12px;
  background: rgba(245,197,24,.10); border:1px solid rgba(245,197,24,.4);
  border-radius:12px; padding:12px 14px;
}
.home-install-banner .hib-icon{
  width:44px; height:44px; border-radius:10px; object-fit:cover; flex-shrink:0;
  border:1px solid rgba(245,197,24,.4);
}
.home-install-banner .hib-txt{ flex:1; display:flex; flex-direction:column; gap:2px; line-height:1.3; }
.home-install-banner .hib-txt b{ font-size:13.5px; font-weight:800; color:var(--text); }
.home-install-banner .hib-sub{ font-size:11.5px; font-weight:600; color:var(--text-muted); }
.home-install-banner .hib-actions{ display:flex; align-items:center; gap:6px; flex-shrink:0; }
.home-install-banner .hib-add{
  background:var(--gold); color:#0b0c0f; border:0; border-radius:9px;
  padding:9px 14px; font-weight:800; font-size:13px; cursor:pointer;
  white-space:nowrap; font-family:inherit; transition:filter .15s ease;
}
.home-install-banner .hib-add:hover{ filter:brightness(1.08); }
.home-install-banner .hib-x{
  background:transparent; border:0; color:var(--text-muted); font-size:18px;
  line-height:1; padding:6px; cursor:pointer; border-radius:6px; transition:color .15s ease, background .15s ease;
}
.home-install-banner .hib-x:hover{ color:var(--text); background:rgba(245,197,24,.12); }
@media (max-width:520px){
  .home-install-banner{ flex-wrap:wrap; }
  .home-install-banner .hib-txt{ order:1; flex:1 1 100%; }
  .home-install-banner .hib-actions{ order:2; margin-left:auto; }
}

/* =====================================================================
   PÁGINA DE CONFIGURAÇÕES
   ===================================================================== */
.cfg-group{
  background:var(--surface); border:1px solid var(--border); border-radius:12px;
  padding:18px 18px 6px; margin-bottom:16px; width:100%; max-width:720px;
}
.cfg-group > h2{ font-size:15px; margin-bottom:2px; }
.cfg-group > .cfg-group-sub{ font-size:12px; color:var(--text-muted); margin-bottom:14px; }
.cfg-row{
  display:flex; align-items:center; gap:14px; padding:14px 0;
  border-top:1px solid var(--border);
}
.cfg-row:first-of-type{ border-top:none; }
.cfg-row .cfg-info{ flex:1; }
.cfg-row .cfg-info .cfg-label{ font-size:13.5px; font-weight:700; }
.cfg-row .cfg-info .cfg-desc{ font-size:12px; color:var(--text-muted); line-height:1.5; margin-top:3px; }
.cfg-row .cfg-ctrl{ flex:0 0 auto; }

/* segmento (Automático / Claro / Escuro) */
.cfg-seg{ display:inline-flex; background:var(--surface-2); border:1px solid var(--border); border-radius:9px; overflow:hidden; }
.cfg-seg button{
  background:transparent; border:0; color:var(--text-muted); font-family:inherit;
  font-size:12px; font-weight:700; padding:8px 12px; cursor:pointer;
}
.cfg-seg button.sel{ background:var(--gold); color:#0b0c0f; }

/* toggle (interruptor) */
.cfg-switch{ display:inline-block; position:relative; width:46px; height:26px; flex:0 0 auto; cursor:pointer; }
.cfg-switch input{ display:none; }
.cfg-switch .track{ position:absolute; inset:0; background:var(--surface-2); border:1px solid var(--border); border-radius:20px; transition:background .2s; }
.cfg-switch .thumb{ position:absolute; top:3px; left:3px; width:18px; height:18px; background:var(--text-muted); border-radius:50%; transition:transform .2s, background .2s; }
.cfg-switch input:checked + .track{ background:var(--gold); border-color:var(--gold); }
.cfg-switch input:checked + .track + .thumb{ transform:translateX(20px); background:#0b0c0f; }

.cfg-email-row{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-top:4px; }
.cfg-email-row input[type=email]{
  flex:1; min-width:200px; background:var(--surface-2); border:1px solid var(--border);
  color:var(--text); border-radius:9px; padding:10px 12px; font-family:inherit; font-size:13px;
}
.cfg-disclaimer{
  font-size:11.5px; color:var(--text-muted); line-height:1.5; margin-top:8px;
  background:var(--surface-2); border:1px solid var(--border); border-radius:8px; padding:8px 10px;
}
.cfg-danger{ border-color:#7a2b2b; }
.cfg-danger h2{ color:#e06666; }
.btn-danger{ background:#d93c3c; color:#fff; border:0; border-radius:9px; padding:10px 16px; font-weight:800; cursor:pointer; font-family:inherit; font-size:13px; }
.btn-danger:hover{ filter:brightness(1.08); }
.cfg-msg{ font-size:12px; color:var(--text-muted); min-height:16px; margin:4px 0 12px; }
.cfg-em-breve{ font-size:11px; font-weight:700; color:var(--gold); border:1px solid var(--gold); border-radius:20px; padding:2px 8px; margin-left:8px; }

/* =====================================================================
   CENTRAL DE NOTIFICAÇÕES (notificacoes.html) + banner animado no topo
   ===================================================================== */
.perfil-actions{ display:flex; gap:8px; align-items:center; }

/* lista da central */
.notif-item{
  display:flex; gap:12px; align-items:flex-start; text-decoration:none; color:var(--text);
  background:var(--surface); border:1px solid var(--border); border-radius:12px;
  padding:14px 16px; margin-bottom:10px; transition:border-color .15s, background .15s;
}
.notif-item:hover{ border-color:var(--gold); background:var(--surface-2); }
.notif-item .notif-dot{
  flex:0 0 auto; width:9px; height:9px; border-radius:50%; margin-top:6px; background:transparent;
}
.notif-item.notif-nao-lida{ background:rgba(245,197,24,.06); border-color:rgba(245,197,24,.35); }
.notif-item.notif-nao-lida .notif-dot{ background:var(--gold); box-shadow:0 0 6px rgba(245,197,24,.6); }
.notif-item-body{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.notif-item-title{ font-weight:700; font-size:14.5px; line-height:1.3; }
.notif-item-corpo{ font-size:13px; color:var(--text-muted); line-height:1.4; }
.notif-item-data{ font-size:11px; color:var(--text-muted); margin-top:2px; }

/* banner (toast) que desce do topo — 3s e some com fade */
.notif-toast-host{
  position:fixed; top:0; left:0; right:0; z-index:100000;
  display:flex; flex-direction:column; align-items:center; gap:8px;
  padding:12px; pointer-events:none;
}
.notif-toast{
  pointer-events:auto; width:100%; max-width:480px;
  display:flex; align-items:center; gap:12px;
  background:var(--surface); border:1px solid var(--border); border-radius:14px;
  padding:12px 14px; box-shadow:0 12px 34px rgba(0,0,0,.5);
  color:var(--text); font-family:inherit;
  transform:translateY(-140%); opacity:0;
  transition:transform .3s cubic-bezier(.2,.9,.3,1.2), opacity .3s ease;
}
.notif-toast.show{ transform:translateY(0); opacity:1; }
.notif-toast.hide{ transform:translateY(-140%); opacity:0; }
.notif-toast.clicavel{ cursor:pointer; }
.notif-toast.clicavel:hover{ border-color:var(--gold); }
.notif-toast-ico{ flex:0 0 auto; font-size:20px; line-height:1; }
.notif-toast-txt{ flex:1; display:flex; flex-direction:column; gap:2px; min-width:0; font-size:13px; line-height:1.35; }
.notif-toast-txt b{ font-size:14px; }
.notif-toast-txt span{ color:var(--text-muted); }
.notif-toast-x{ flex:0 0 auto; background:transparent; border:0; color:var(--text-muted); font-size:18px; line-height:1; cursor:pointer; padding:2px 4px; }
.notif-toast-x:hover{ color:var(--text); }
@media (max-width:860px){
  .notif-toast{ max-width:none; }
}

/* banner "reativar notificações" (fixo embaixo, com botão) */
.push-reativar{
  position:fixed; left:12px; right:12px; bottom:12px; z-index:99998; max-width:520px; margin:0 auto;
  display:flex; align-items:center; gap:10px;
  background:var(--surface); border:1px solid var(--gold); border-radius:14px; padding:12px 14px;
  box-shadow:0 10px 30px rgba(0,0,0,.45); font-family:inherit; color:var(--text);
  animation:prUp .25s ease;
}
@keyframes prUp{ from{ transform:translateY(20px); opacity:0 } to{ transform:translateY(0); opacity:1 } }
.push-reativar .pr-txt{ flex:1; font-size:13px; line-height:1.35; }
.push-reativar .pr-ok{ background:var(--gold); color:#0b0c0f; border:0; border-radius:9px; padding:8px 14px; font-weight:800; cursor:pointer; font-size:13px; }
.push-reativar .pr-ok:disabled{ opacity:.6; cursor:default; }
.push-reativar .pr-x{ background:transparent; border:0; color:var(--text-muted); font-size:18px; cursor:pointer; line-height:1; padding:2px 6px; }
.push-reativar .pr-x:hover{ color:var(--text); }

/* =====================================================================
   PLANO DE AÇÃO V1.0 — refinamentos (onboarding, "Você sabia?", Resumo
   Rápido das edições, perfil em abas). Adicionado sem alterar o resto.
   ===================================================================== */

/* --- Onboarding (Seção 6) --- */
.onboarding-overlay{
  position:fixed; inset:0; z-index:9999; display:flex; align-items:center; justify-content:center;
  background:rgba(6,7,9,.82); padding:20px;
  opacity:0; transition:opacity .25s ease;
}
.onboarding-overlay.show{ opacity:1; }
.onboarding-card{
  width:100%; max-width:440px; background:var(--surface); border:1px solid var(--border);
  border-top:3px solid var(--gold); border-radius:16px; padding:28px 24px; text-align:center;
  box-shadow:0 20px 60px rgba(0,0,0,.5); transform:translateY(14px); transition:transform .25s ease;
}
.onboarding-overlay.show .onboarding-card{ transform:translateY(0); }
.onboarding-logo{ width:96px; height:auto; margin:0 auto 14px; display:block; }
.onboarding-card h2{ color:var(--gold); font-size:22px; margin:0 0 10px; }
.onboarding-lead{ color:var(--text-muted); font-size:14px; line-height:1.55; margin:0 0 18px; }
.onboarding-list{ list-style:none; padding:0; margin:0 0 22px; text-align:left; display:grid; gap:10px; }
.onboarding-list li{ background:var(--surface-2); border:1px solid var(--border); border-radius:10px; padding:11px 13px; font-size:14px; color:var(--text); }
.onboarding-btn{ width:100%; }

/* --- "Você sabia?" na Home (Seção 10) --- */
.voce-sabia{
  display:block; text-decoration:none; box-sizing:border-box;
  width:100%; max-width:900px; padding:24px 26px; margin-bottom:24px; border-radius:10px;
  background:linear-gradient(135deg, rgba(245,197,24,.12), rgba(245,197,24,.03));
  border:1px solid rgba(245,197,24,.4); transition:border-color .15s ease, transform .15s ease;
}
.voce-sabia:hover{ border-color:var(--gold); transform:translateY(-1px); }
.voce-sabia .vs-badge{ display:inline-block; font-size:12px; font-weight:800; letter-spacing:.4px; color:var(--gold); text-transform:uppercase; margin-bottom:6px; }
.voce-sabia .vs-txt{ display:block; color:var(--text); font-size:15px; line-height:1.5; }
.voce-sabia .vs-cta{ display:block; margin-top:8px; font-size:13px; font-weight:700; color:var(--gold); }

/* --- Resumo Rápido das edições (Seção 8): 3 colunas --- */
.resumo-cols{ display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; align-items:start; }
.resumo-col{ height:100%; }
.resumo-col-head{ font-family:'Bebas Neue', sans-serif; letter-spacing:.8px; font-size:15px; color:var(--gold); text-transform:uppercase; margin-bottom:12px; padding-bottom:8px; border-bottom:1px solid var(--border); }
.resumo-curios{ margin:0; padding-left:18px; color:var(--text); font-size:14px; line-height:1.55; }
.resumo-curios li{ margin-bottom:8px; }
@media (max-width:860px){ .resumo-cols{ grid-template-columns:1fr; } }

/* --- Perfil em abas (Seção 7) --- */
.perfil-quick{ display:flex; flex-wrap:wrap; gap:8px; margin:4px 0 14px; }
.pq-chip{
  background:var(--surface-2); border:1px solid var(--border); color:var(--text);
  border-radius:999px; padding:8px 14px; font-size:13px; font-weight:700; cursor:pointer; font-family:inherit;
  transition:border-color .15s ease, color .15s ease;
}
.pq-chip:hover{ border-color:var(--gold); color:var(--gold); }
.perfil-tabs{
  display:flex; gap:6px; margin:18px 0 14px; padding-bottom:2px;
  border-bottom:1px solid var(--border); overflow-x:auto;
}
.perfil-tab{
  background:none; border:none; border-bottom:2px solid transparent; color:var(--text-muted);
  font-family:inherit; font-size:14px; font-weight:700; padding:10px 14px; cursor:pointer; white-space:nowrap;
  transition:color .15s ease, border-color .15s ease;
}
.perfil-tab:hover{ color:var(--text); }
.perfil-tab.active{ color:var(--gold); border-bottom-color:var(--gold); }
.social-sub{ margin-top:4px; margin-bottom:6px; }

/* ---- cabeçalho do perfil: meta (amigos/reputação), barra XP menor, ícones ---- */
.nivel-bar-wrap.slim{ height:6px; max-width:260px; margin-top:8px; }
.perfil-meta{ display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.perfil-meta-chip{
  display:inline-flex; align-items:center; gap:5px;
  background:var(--surface-2); border:1px solid var(--border); color:var(--text);
  border-radius:999px; padding:5px 12px; font-size:12.5px; font-weight:600; font-family:inherit;
}
button.perfil-meta-chip{ cursor:pointer; transition:border-color .15s ease, color .15s ease; }
button.perfil-meta-chip:hover{ border-color:var(--gold); color:var(--gold); }
.perfil-meta-chip b{ font-weight:800; }
.icon-btn{ padding:4px 9px; font-size:14px; line-height:1; }

/* ---- painel de amigos (abre pelo chip do cabeçalho) ---- */
.amigos-panel{
  width:100%; max-width:900px; box-sizing:border-box;
  background:var(--surface); border:1px solid var(--border); border-radius:10px;
  padding:16px 18px; margin-bottom:20px;
}
.amigos-panel-head{ font-family:'Bebas Neue', sans-serif; font-size:18px; letter-spacing:.6px; color:var(--gold); margin-bottom:10px; }

/* ---- feed social (bolinha + texto) ---- */
.feed{ display:flex; flex-direction:column; gap:2px; }
.feed-item{
  display:flex; align-items:flex-start; gap:12px; text-decoration:none; color:inherit;
  padding:12px 6px; border-bottom:1px solid var(--border);
}
.feed-item:last-child{ border-bottom:none; }
a.feed-item:hover{ background:rgba(245,197,24,.05); }
.feed-ava{
  flex-shrink:0; width:38px; height:38px; border-radius:50%;
  background:var(--surface-2); border:1px solid var(--border); color:var(--gold);
  display:flex; align-items:center; justify-content:center; font-weight:800; font-size:16px;
}
.feed-body{ flex:1 1 auto; min-width:0; }
.feed-text{ font-size:14px; line-height:1.45; color:var(--text); }
.feed-when{ font-size:11px; color:var(--text-muted); margin-top:3px; }

/* ---- mobile: cabeçalho e feed ---- */
@media (max-width:860px){
  .voce-sabia{ padding:18px 16px; }
  .perfil-meta-chip{ font-size:12px; padding:5px 10px; }
  .amigos-panel{ padding:14px 14px; }
  .feed-ava{ width:34px; height:34px; font-size:15px; }
  .feed-text{ font-size:13.5px; }
}