/* ============================================================
   TV ALQUYMIA — design system
   Tema escuro quente com o laranja da comunidade.
   Ajuste rápido da marca: mude --brand e --brand-2 abaixo.
   ============================================================ */

:root {
  --bg: #0c0805;
  --bg-2: #140d07;
  --surface: #1b120a;
  --surface-2: #22160c;
  --border: rgba(255, 145, 60, .14);
  --border-strong: rgba(255, 145, 60, .32);
  --text: #f7efe6;
  --muted: #c8b7a4;
  --dim: #8f7d69;
  --brand: #ff7a00;
  --brand-2: #ffb454;
  --grad: linear-gradient(135deg, #ff7a00, #ffb454);
  --live: #ff3b30;
  /* tokens dos gráficos do painel (laranja da marca + azul CVD-seguro + status) */
  --c-brand: #ff7a00;
  --c-brand2: #ffb454;
  --c-email: #ff7a00;
  --c-push: #3987e5;
  --c-good: #0ca30c;
  --c-warn: #fab219;
  --c-crit: #d03b3b;
  --chart-axis: rgba(255, 145, 60, .22);
  --chart-tick: #8f7d69;
  --radius: 16px;
  --radius-lg: 22px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(255, 122, 0, .14), transparent 60%),
    radial-gradient(700px 420px at -10% 30%, rgba(255, 122, 0, .07), transparent 60%),
    var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

main { flex: 1; }

::selection { background: rgba(255, 122, 0, .45); }

img, svg, video { max-width: 100%; display: block; }

a { color: var(--brand-2); text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }

.container { width: min(1180px, 92vw); margin: 0 auto; }

.hidden { display: none !important; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(12, 8, 5, .78);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }

.logo-mark { width: 34px; height: 34px; flex-shrink: 0; }

.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: .12em;
  color: var(--text);
  white-space: nowrap;
}

.brand-name b {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.site-nav { display: flex; gap: 6px; flex-wrap: wrap; }

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .15s, background .15s;
}

.site-nav a:hover { color: var(--text); background: rgba(255, 122, 0, .1); }

/* ------------------------------------------------ botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad);
  color: #1d0e02;
  box-shadow: 0 8px 30px rgba(255, 122, 0, .35);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(255, 122, 0, .45); }

.btn-ghost {
  border-color: var(--border-strong);
  background: rgba(255, 122, 0, .06);
  color: var(--text);
}

.btn-ghost:hover { background: rgba(255, 122, 0, .14); transform: translateY(-1px); }

.btn-danger {
  border-color: rgba(255, 82, 82, .4);
  background: rgba(255, 59, 48, .1);
  color: #ff9d96;
}

.btn-danger:hover { background: rgba(255, 59, 48, .2); }

.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }

.linklike {
  background: none;
  border: none;
  color: var(--brand-2);
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
}

/* ------------------------------------------------ hero (landing) */
.hero { padding: 84px 0 56px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 30px;
  white-space: pre-line;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }

.hero-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--dim);
}

.hero-art { display: flex; justify-content: center; }

.alchemy { width: min(360px, 100%); filter: drop-shadow(0 0 60px rgba(255, 122, 0, .25)); }

.spin-slow { animation: spin 70s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Imagem de destaque personalizada (ex.: pinguim hacker) recortada em blob orgânico */
.hero-photo-wrap {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 301 / 296;   /* proporção da forma enviada (SVG do usuário) */
  display: grid;
  place-items: center;
  animation: hero-float 7s ease-in-out infinite;
}

.hero-blob-def { position: absolute; pointer-events: none; }

.hero-photo-wrap::before {  /* brilho laranja da marca atrás da imagem */
  content: "";
  position: absolute;
  inset: -8%;
  background: radial-gradient(circle at 50% 48%, rgba(255, 122, 0, .32), transparent 68%);
  filter: blur(12px);
  z-index: 0;
}

.hero-photo {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  -webkit-clip-path: url(#hero-blob);
  clip-path: url(#hero-blob);
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, .45));
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* countdown */
.countdown { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }

.cd-block {
  min-width: 84px;
  padding: 14px 10px;
  text-align: center;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: 14px;
}

.cd-num {
  display: block;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.cd-label {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
}

.cd-note { color: var(--brand-2); font-size: 14px; margin-bottom: 18px; }

/* ------------------------------------------------ seções */
.section { padding: 72px 0; }

.section-tight { padding: 40px 0; }

.section-head { margin-bottom: 34px; }

.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; }

.section-sub { color: var(--muted); margin-top: 10px; max-width: 62ch; }

.row-between {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.empty-note { color: var(--dim); font-size: 14px; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 12px;
  justify-items: center;
  font-size: 18px;
}

/* bullets "o que você vai ver" */
.bullet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.bullet-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}

.bullet-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }

.bullet-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bullet-card p { color: var(--muted); font-size: 15px; }

/* ------------------------------------------------ cards de gravação */
.vod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.vod-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.vod-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 14px 44px rgba(255, 122, 0, .14);
}

.vod-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(240px 140px at 70% 20%, rgba(255, 122, 0, .22), transparent 70%),
    linear-gradient(135deg, #2a1808, #150d06);
  display: grid;
  place-items: center;
}

.vod-thumb.has-thumb {
  background-size: cover;
  background-position: center;
}

.vod-thumb.has-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .45));
}

.vod-thumb .play {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #1d0e02;
  font-size: 19px;
  padding-left: 4px;
  box-shadow: 0 8px 26px rgba(255, 122, 0, .45);
  transition: transform .2s;
}

.vod-card:hover .play { transform: scale(1.1); }

.vod-parts {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  color: var(--text);
  border: 1px solid var(--border);
}

.vod-body { padding: 16px 18px 18px; }

.vod-body h3 { font-size: 16px; color: var(--text); margin-bottom: 6px; }

.vod-date { font-size: 13px; color: var(--dim); }

/* ------------------------------------------------ agenda de próximas lives */
.agenda-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.agenda-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 22px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}

.agenda-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }

.agenda-date {
  flex-shrink: 0;
  min-width: 64px;
  text-align: center;
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(255, 122, 0, .1);
  border: 1px solid var(--border-strong);
}

.agenda-date b {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.agenda-date span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-2);
}

.agenda-body h3 { font-size: 17px; margin-bottom: 6px; }

.agenda-time { display: block; font-size: 13px; color: var(--brand-2); margin-bottom: 8px; }

.agenda-body p { font-size: 14px; color: var(--muted); }

/* ------------------------------------------------ página /agenda (linha do tempo) */
.agenda-tl { display: grid; gap: 14px; max-width: 780px; }

.agenda-mes {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin: 22px 0 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.agenda-tl .agenda-mes:first-child { margin-top: 0; }

.agenda-item {
  position: relative;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 22px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}

.agenda-item:hover { border-color: var(--border-strong); transform: translateX(4px); }

.agenda-item.is-next {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 1px rgba(255, 122, 0, .25), 0 14px 44px rgba(255, 122, 0, .1);
}

.agenda-item-date {
  flex-shrink: 0;
  min-width: 64px;
  text-align: center;
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(255, 122, 0, .1);
  border: 1px solid var(--border-strong);
}

.agenda-item-date b {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.agenda-item-date span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-2);
}

.agenda-item-body { min-width: 0; }

.agenda-item-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }

.agenda-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--grad);
  color: #1d0e02;
}

.agenda-quando { font-size: 12.5px; color: var(--dim); font-weight: 600; }

.agenda-item.is-next .agenda-quando { color: var(--brand-2); }

.agenda-item-body h3 { font-size: 18px; margin-bottom: 6px; }

.agenda-item-body .agenda-time { margin-bottom: 8px; }

.agenda-item-body p { font-size: 14px; color: var(--muted); white-space: pre-line; }

/* ------------------------------------------------ filtros públicos (gravações) */
.vod-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.vod-filter input {
  background: #17100a;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
  color-scheme: dark;
}

.vod-filter input[type="search"] { flex: 1; min-width: 200px; }

.vod-filter input:focus { outline: none; border-color: var(--brand); }

.vod-filter-info { font-size: 13.5px; color: var(--dim); margin-bottom: 18px; }

/* ------------------------------------------------ inscrição (push + e-mail) */
.subscribe-banner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(480px 220px at 15% -20%, rgba(255, 122, 0, .2), transparent 70%),
    linear-gradient(180deg, rgba(255, 122, 0, .07), rgba(255, 122, 0, .02));
}

.subscribe-copy h2 { font-size: clamp(22px, 3vw, 30px); margin: 6px 0 10px; }

.subscribe-copy p { color: var(--muted); font-size: 15px; }

.subscribe-actions { display: grid; gap: 12px; }

.email-form { display: flex; gap: 10px; flex-wrap: wrap; }

.email-form input {
  flex: 1;
  min-width: 200px;
  background: #17100a;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
}

.email-form input:focus { outline: none; border-color: var(--brand); }

.subscribe-hint { font-size: 13px; color: var(--brand-2); }

@media (max-width: 860px) {
  .subscribe-banner { grid-template-columns: 1fr; }
}

/* ------------------------------------------------ banner do site oficial */
.official-banner {
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(600px 280px at 90% -30%, rgba(255, 122, 0, .16), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
}

.official-copy h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 8px 0 12px; max-width: 24ch; }

.official-copy > p { color: var(--muted); max-width: 66ch; margin-bottom: 22px; }

.official-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 26px; }

.official-stats .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.official-stats .stat span { font-size: 13px; color: var(--dim); }

/* ------------------------------------------------ materiais */
.material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.material-card {
  padding: 26px 24px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  transition: border-color .2s, transform .2s;
}

.material-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }

.m-emoji { font-size: 30px; }

.material-card h3 { font-size: 17px; }

.material-card p { color: var(--muted); font-size: 14px; flex: 1; }

/* ------------------------------------------------ comunidade */
.community-banner {
  text-align: center;
  padding: clamp(36px, 6vw, 64px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(560px 250px at 50% -30%, rgba(255, 122, 0, .28), transparent 70%),
    linear-gradient(180deg, rgba(255, 122, 0, .1), rgba(255, 122, 0, .03));
}

.community-banner h2 { font-size: clamp(26px, 4vw, 40px); margin: 8px 0 14px; }

.community-banner p { color: var(--muted); max-width: 60ch; margin: 0 auto 26px; }

.social-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(12, 8, 5, .5);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: background .15s, transform .15s;
}

.social-btn:hover { background: rgba(255, 122, 0, .16); transform: translateY(-2px); }

/* ------------------------------------------------ página de live / vod */
.live-stage { padding: 26px 0 56px; }

.live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  align-items: start;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 70px rgba(0, 0, 0, .5);
}

.player-shell video { width: 100%; height: 100%; object-fit: contain; background: #000; }

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(420px 260px at 50% 40%, rgba(255, 122, 0, .12), transparent 70%), rgba(8, 5, 3, .92);
}

/* controles próprios de live (sem barra de progresso) */
.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 26px 14px 10px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .75));
  opacity: 0;
  transition: opacity .2s;
}

.player-shell:hover .player-controls,
.player-shell:focus-within .player-controls,
.player-controls:focus-within { opacity: 1; }

@media (hover: none) {
  .player-controls { opacity: 1; }
}

.pc-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  line-height: 1;
}

.pc-btn:hover { background: rgba(255, 255, 255, .14); }

.pc-spacer { flex: 1; }

#pc-vol {
  width: 82px;
  accent-color: var(--brand);
  cursor: pointer;
}

.pc-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  cursor: pointer;
  color: #fff;
}

.pc-live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.pc-live.is-live { background: rgba(255, 59, 48, .85); }

.pc-live.is-behind { background: rgba(255, 255, 255, .22); }

.pc-live.is-behind:hover { background: rgba(255, 122, 0, .8); }

.player-unmute {
  position: absolute;
  top: 12px;
  left: 12px;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--grad);
  color: #1d0e02;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .45);
  animation: breathe 2.4s ease-in-out infinite;
}

.overlay-inner { display: grid; gap: 14px; justify-items: center; color: var(--muted); font-size: 15px; }

.overlay-inner .logo-mark { width: 58px; height: 58px; animation: breathe 2.4s ease-in-out infinite; }

@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.live-info { padding: 18px 4px 0; }

.live-info-top { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 59, 48, .14);
  border: 1px solid rgba(255, 59, 48, .45);
  color: #ff857c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 1.6s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, .6); }
  100% { box-shadow: 0 0 0 9px rgba(255, 59, 48, 0); }
}

.badge-rec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 122, 0, .12);
  border: 1px solid var(--border-strong);
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
}

.viewers { color: var(--dim); font-size: 14px; }

.live-title { font-size: clamp(22px, 3vw, 30px); margin-bottom: 10px; }

.live-desc { color: var(--muted); font-size: 15px; max-width: 76ch; white-space: pre-line; }

.parts-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.part-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.part-btn.active { background: var(--grad); color: #1d0e02; border-color: transparent; }

.more-vods-head { margin: 48px 0 22px; }

/* ------------------------------------------------ chat */
.chat-panel {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  height: min(720px, calc(100vh - 116px));
  background: linear-gradient(180deg, var(--surface), #150d07);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.chat-head h3 { font-size: 15px; }

.chat-count { font-size: 12px; color: var(--dim); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 122, 0, .35) transparent;
}

.chat-messages::-webkit-scrollbar { width: 8px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255, 122, 0, .3); border-radius: 8px; }

.chat-loading { color: var(--dim); font-size: 13px; text-align: center; padding: 20px 0; }

.msg { display: flex; gap: 10px; margin-bottom: 12px; }

.avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #1d0e02;
}

.msg-body { min-width: 0; }

.msg-head { display: flex; align-items: baseline; gap: 8px; }

.msg-author { font-size: 13px; font-weight: 600; }

.msg-time { font-size: 11px; color: var(--dim); }

.msg-badge-admin {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--grad);
  color: #1d0e02;
}

.msg-text { font-size: 14px; color: var(--text); overflow-wrap: anywhere; }

.msg-system {
  text-align: center;
  font-size: 12.5px;
  color: var(--brand-2);
  background: rgba(255, 122, 0, .07);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 12px;
}

.chat-foot {
  position: relative;
  border-top: 1px solid var(--border);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.chat-emoji {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #17100a;
  font-size: 19px;
  cursor: pointer;
  transition: transform .15s, border-color .15s, opacity .15s;
}

.chat-emoji:hover:not(:disabled) { transform: scale(1.06); border-color: var(--brand); }

.chat-emoji:disabled { opacity: .35; cursor: not-allowed; }

.emoji-panel {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 12px;
  right: 12px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .55);
  z-index: 5;
}

.emoji-panel button {
  font-size: 20px;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  padding: 7px 4px;
  border-radius: 9px;
  transition: background .12s, transform .12s;
}

.emoji-panel button:hover { background: rgba(255, 122, 0, .16); transform: scale(1.15); }

.chat-identity { font-size: 13px; color: var(--muted); }

.chat-name-row { display: flex; gap: 8px; }

.chat-name-row input { flex: 1; }

.chat-as b { color: var(--brand-2); }

.chat-input-row { display: flex; gap: 8px; }

.chat-input-row input { flex: 1; }

.chat-foot input {
  background: #17100a;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 13px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
  min-width: 0;
}

.chat-foot input:focus { outline: none; border-color: var(--brand); }

.chat-foot input:disabled { opacity: .45; }

.chat-send {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: none;
  border-radius: 12px;
  background: var(--grad);
  color: #1d0e02;
  font-size: 17px;
  cursor: pointer;
  transition: transform .15s, opacity .15s;
}

.chat-send:hover:not(:disabled) { transform: scale(1.06); }

.chat-send:disabled { opacity: .35; cursor: not-allowed; }

.chat-paused {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #ffd77a;
  background: rgba(255, 200, 60, .08);
  border: 1px dashed rgba(255, 200, 60, .4);
  border-radius: 10px;
  padding: 8px 10px;
}

/* ------------------------------------------------ enquete ao vivo (overlay) */
.poll-overlay {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 54px;             /* acima dos controles do player */
  display: flex;
  justify-content: center;
  pointer-events: none;     /* só o cartão captura cliques */
  z-index: 6;
}

.poll-card {
  pointer-events: auto;
  width: min(440px, 100%);
  background: rgba(12, 7, 4, .92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 12px 14px 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
  animation: poll-in .28s ease;
  overflow: hidden;
}

.poll-card.leaving { animation: poll-out .26s ease forwards; }

@keyframes poll-in { from { opacity: 0; transform: translateY(14px); } }

@keyframes poll-out { to { opacity: 0; transform: translateY(14px); } }

.poll-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }

.poll-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-2);
}

.poll-close {
  background: none;
  border: none;
  color: var(--dim);
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 7px;
  line-height: 1;
}

.poll-close:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.poll-question { font-size: 14.5px; font-weight: 600; color: var(--text); margin-bottom: 10px; }

.poll-body { display: grid; gap: 7px; }

.poll-opt {
  text-align: left;
  padding: 9px 13px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 122, 0, .08);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background .15s, transform .15s, border-color .15s;
}

.poll-opt:hover:not(:disabled) { background: rgba(255, 122, 0, .2); border-color: var(--brand); transform: translateX(3px); }

.poll-opt:disabled { opacity: .55; cursor: wait; }

.poll-res {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .04);
  overflow: hidden;
}

.poll-res.mine { background: rgba(255, 122, 0, .12); box-shadow: inset 0 0 0 1px var(--border-strong); }

.poll-res-label { font-size: 13px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }

.poll-res.mine .poll-res-label { color: var(--brand-2); }

.poll-res-pct { font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; }

.poll-res-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, .07);
}

.poll-res-fill { height: 100%; background: var(--grad); transition: width .5s ease; }

.poll-foot { font-size: 11.5px; color: var(--dim); margin: 8px 2px 4px; }

.poll-timer {
  height: 3px;
  margin: 2px -14px -8px;
  background: rgba(255, 255, 255, .07);
}

.poll-timer-fill {
  height: 100%;
  width: 100%;
  background: var(--grad);
  transition-property: width;
  transition-timing-function: linear;
}

/* ------------------------------------------------ apoiar (doações) */
.nav-apoiar { color: var(--brand-2); font-weight: 600; }

.live-support { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

.live-support-note { font-size: 13px; color: var(--dim); }

.apoiar-obrigado { font-size: 15px; margin-bottom: 20px; }

.apoiar-quem {
  display: flex;
  align-items: end;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.apoiar-nome { display: grid; gap: 6px; flex: 1; min-width: 240px; max-width: 380px; }

.apoiar-nome span { font-size: 13px; color: var(--dim); }

.apoiar-nome input {
  background: #17100a;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 13px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
}

.apoiar-nome input:focus { outline: none; border-color: var(--brand); }

.apoiar-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  padding-bottom: 12px;
  cursor: pointer;
}

.apoiar-check input { accent-color: var(--brand); }

.apoiar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: start;
}

.apoiar-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.apoiar-card h2 { font-size: 21px; }

.apoiar-card-mensal { border-color: var(--border-strong); box-shadow: 0 0 0 1px rgba(255, 122, 0, .12); }

.apoiar-sub { color: var(--muted); font-size: 14px; }

.amount-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.chip-amt {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
}

.chip-amt small { font-size: 11px; font-weight: 600; opacity: .8; }

.chip-amt:hover { transform: translateY(-2px); }

.chip-amt.active { background: var(--grad); color: #1d0e02; border-color: transparent; }

.chip-custom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px dashed var(--border-strong);
  color: var(--dim);
  font-size: 14px;
  font-weight: 700;
}

.chip-custom input {
  width: 64px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 700;
  font-family: var(--font-body);
  padding: 10px 0;
}

.chip-custom input:focus { outline: none; }

.chip-custom:focus-within { border-color: var(--brand); color: var(--brand-2); }

.apoiar-acoes { display: flex; gap: 10px; flex-wrap: wrap; }

.apoiar-erro { color: #ff9d96; font-size: 13.5px; }

.apoiar-rodape { margin-top: 22px; font-size: 13px; color: var(--dim); text-align: center; }

.apoiar-rodape a { color: var(--brand-2); }

/* ------------------------------------------------ páginas simples */
.page-head { padding: 72px 0 10px; }

.page-head h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 10px; }

/* ------------------------------------------------ footer */
.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(255, 122, 0, .04));
  padding: 48px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand p { color: var(--dim); font-size: 14px; margin-top: 14px; max-width: 40ch; }

.footer-col h4 {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 14px;
}

.footer-col a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; }

.footer-col a:hover { color: var(--brand-2); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--dim);
  font-size: 13px;
}

.footer-admin { color: var(--dim); }
.footer-admin:hover { color: var(--brand-2); }

/* ------------------------------------------------ admin */
.login-wrap { display: grid; place-items: center; padding: 12vh 20px 60px; }

.login-card {
  width: min(400px, 100%);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.login-card .logo-mark { width: 52px; height: 52px; }

.login-card h1 { font-size: 22px; }

.login-card form { display: grid; gap: 12px; width: 100%; }

.login-card input {
  width: 100%;
  background: #17100a;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
}

.login-card input:focus { outline: none; border-color: var(--brand); }

.form-error { color: #ff9d96; font-size: 14px; }

.admin-wrap { padding: 40px 0 60px; display: grid; gap: 22px; }

.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

.admin-top h1 { font-size: 28px; }

.admin-top-actions { display: flex; gap: 10px; }

.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; }

.admin-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.admin-nav a:hover { color: var(--text); border-color: var(--border-strong); }

.admin-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: grid;
  gap: 18px;
  scroll-margin-top: 90px;
}

.admin-card h2 { font-size: 20px; }

.admin-subtitle { font-size: 15px; color: var(--muted); margin-top: 6px; }

.admin-hint { font-size: 14px; color: var(--muted); }

/* Resultado de ações (teste de SMTP/push): estado por emoji + texto, não só cor */
.notice {
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  border: 1px solid var(--border);
  overflow-wrap: anywhere;
}

.notice-ok { background: rgba(80, 250, 123, .07); border-color: rgba(80, 250, 123, .35); }
.notice-err { background: rgba(208, 59, 59, .1); border-color: rgba(208, 59, 59, .45); }

#push-test-msg.is-ok { color: #7dff9f; }
#push-test-msg.is-err { color: #ff9d9d; }

.hero-admin-preview {
  display: flex; align-items: center; gap: 14px;
  padding: 12px; border: 1px solid var(--border); border-radius: 12px;
  background: rgba(255, 122, 0, .05);
}
.hero-admin-preview img {
  width: 96px; height: 96px; object-fit: cover; border-radius: 12px;
  border: 1px solid var(--border);
}
.hero-admin-preview span { font-size: 13px; color: var(--muted); }

.smtp-help summary { cursor: pointer; font-size: 14px; color: var(--muted); font-weight: 600; }
.smtp-help summary:hover { color: var(--text); }
.smtp-help ul { margin: 10px 0 0 18px; display: grid; gap: 6px; }
.smtp-help code { font-size: 13px; background: rgba(255, 255, 255, .06); padding: 1px 5px; border-radius: 5px; }

.status-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
}

.status-pill.on { background: rgba(80, 250, 123, .08); border-color: rgba(80, 250, 123, .35); color: #7dff9f; }
.status-pill.off { background: rgba(255, 255, 255, .04); color: var(--dim); }
.status-pill.warn { background: rgba(255, 200, 60, .08); border-color: rgba(255, 200, 60, .4); color: #ffd77a; }

.status-note { font-size: 13px; color: var(--muted); }

.chip-list { display: grid; gap: 10px; }

.chip-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.chip-label { font-size: 13px; color: var(--dim); min-width: 160px; }

.chip {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  background: #17100a;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 12px;
  color: var(--brand-2);
  overflow-wrap: anywhere;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid label { display: grid; gap: 6px; }

.form-grid label.full, .form-grid .full { grid-column: 1 / -1; }

.form-grid label.tiny { max-width: 110px; }

.form-grid label span { font-size: 13px; color: var(--dim); }

.form-grid input, .form-grid textarea, .form-grid select {
  background: #17100a;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
  width: 100%;
  resize: vertical;
}

.form-grid input:focus, .form-grid textarea:focus { outline: none; border-color: var(--brand); }

.form-grid .check, .inline-form .check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  grid-column: 1 / -1;
}

.form-grid input[type="checkbox"], .inline-form input[type="checkbox"] { width: auto; accent-color: var(--brand); }

.item-list { display: grid; gap: 10px; }

.item-card {
  background: rgba(255, 255, 255, .02);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 14px 16px;
}

.item-card summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  list-style: none;
}

.item-card summary::-webkit-details-marker { display: none; }

.item-card[open] summary { margin-bottom: 16px; }

.item-title { font-weight: 600; font-size: 15px; }

.item-meta { font-size: 13px; color: var(--dim); display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.item-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

.item-actions { display: flex; gap: 10px; }

.inline-form {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--dim);
}

.tag-live { color: #7dff9f; border-color: rgba(80, 250, 123, .35); }
.tag-scheduled { color: var(--brand-2); border-color: var(--border-strong); }
.tag-finished { color: var(--dim); }

.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.admin-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--dim);
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-strong);
}

.admin-table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }

.nowrap { white-space: nowrap; }

/* ------------------------------------------------ painel: layout com sidebar */
.admin-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 22px;
  width: min(1240px, 94vw);
  margin: 0 auto;
  padding: 26px 0 60px;
}

.admin-side {
  position: sticky;
  top: 84px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.admin-side-head { padding: 4px 6px 10px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }

.admin-side-status {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border);
}
.admin-side-status.on { color: #ff857c; border-color: rgba(255, 59, 48, .4); background: rgba(255, 59, 48, .12); }
.admin-side-status.off { color: var(--dim); }

.admin-menu { display: flex; flex-direction: column; gap: 2px; }

.admin-menu a {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 11px;
  color: var(--muted); font-size: 14px; font-weight: 500;
  transition: background .15s, color .15s;
}
.admin-menu a .mi { font-size: 16px; width: 20px; text-align: center; }
.admin-menu a:hover { background: rgba(255, 122, 0, .09); color: var(--text); }
.admin-menu a.active { background: rgba(255, 122, 0, .16); color: var(--text); font-weight: 600; }

.admin-side-foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); display: grid; gap: 2px; }
.admin-side-foot a { padding: 9px 12px; border-radius: 10px; color: var(--dim); font-size: 13px; }
.admin-side-foot a:hover { background: rgba(255, 122, 0, .09); color: var(--text); }

.admin-main { min-width: 0; display: grid; gap: 20px; align-content: start; }

.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.admin-head h1 { font-size: 26px; }
.admin-sub { color: var(--dim); font-size: 14px; }

/* stat tiles */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat-tile {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: grid; gap: 3px; justify-items: start;
}
.stat-ic { font-size: 20px; }
.stat-num { font-family: var(--font-display); font-size: 30px; line-height: 1.05; color: var(--text); }
.stat-lbl { font-size: 12.5px; color: var(--dim); }

/* charts */
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.chart-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 18px;
}
.chart-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.chart-head h3 { font-size: 15px; }
.chart-head span { font-size: 12px; color: var(--dim); }
.chart-canvas { width: 100%; height: 180px; }
.chart-canvas-sm { height: 120px; margin-top: 12px; }
.chart-svg { width: 100%; height: 100%; overflow: visible; }
.chart-tick { fill: var(--chart-tick); font-size: 10px; font-family: var(--font-body); }
.chart-empty { color: var(--dim); font-size: 13px; text-align: center; padding: 44px 10px; }
.chart-legend { display: flex; gap: 16px; margin-bottom: 4px; }
.chart-legend .lg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.chart-legend .lg i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

/* gauges */
.gauge-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gauge { display: grid; gap: 5px; justify-items: start; }
.gauge-track { width: 100%; height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.gauge-fill { height: 100%; width: 0; border-radius: 6px; transition: width .8s ease; background: var(--c-good); }
.gauge b { font-family: var(--font-display); font-size: 20px; color: var(--text); font-variant-numeric: tabular-nums; }
.gauge span { font-size: 11px; color: var(--dim); }
.gauge.na b { color: var(--dim); }
.server-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--dim); }
.dash-note { margin-top: 2px; }

/* filtros + paginação */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-row input, .filter-row select {
  background: #17100a; border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 12px; color: var(--text); font-size: 14px; font-family: var(--font-body);
}
.filter-row input { flex: 1; min-width: 160px; }
.filter-row input:focus, .filter-row select:focus { outline: none; border-color: var(--brand); }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.pag-info { font-size: 13px; color: var(--dim); }
.pag-btns { display: flex; align-items: center; gap: 10px; }
.pag-cur { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.btn.disabled { opacity: .4; pointer-events: none; }

.col-action { text-align: right; white-space: nowrap; }
.col-msg { max-width: 420px; overflow-wrap: anywhere; }
.form-sep { border-top: 1px dashed var(--border); padding-top: 16px; margin-top: 4px; }

/* capa personalizada das gravações */
.capa-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
  border-top: 1px dashed var(--border);
  padding-top: 14px;
  margin-top: 4px;
}

.capa-preview {
  width: 180px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: #17100a;
  flex-shrink: 0;
}

.capa-preview.sem-capa { opacity: .3; }

.capa-form { display: grid; gap: 8px; min-width: 0; }

.capa-label { font-size: 13px; font-weight: 600; color: var(--brand-2); }

.capa-form input[type="file"] { color: var(--muted); font-size: 13px; max-width: 100%; }

.capa-form input[type="file"]::file-selector-button {
  background: rgba(255, 122, 0, .12);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  color: var(--text);
  padding: 7px 12px;
  margin-right: 10px;
  font-size: 12.5px;
  cursor: pointer;
}

/* ------------------------------------------------ estúdio (monitor da live) */
.stat-num-sm { font-size: 20px; padding-top: 5px; }

.estudio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.poll-form { margin-bottom: 6px; }

.poll-admin-list { display: grid; gap: 12px; border-top: 1px dashed var(--border); padding-top: 16px; }

.poll-admin {
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 13px 14px;
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, .02);
}

.poll-admin-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.poll-admin-head b { font-size: 14.5px; }

.poll-admin-opt {
  display: grid;
  grid-template-columns: minmax(90px, 150px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.pao-label { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }

.pao-bar { height: 9px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }

.pao-fill { height: 100%; border-radius: 6px; background: var(--grad); transition: width .5s ease; }

.pao-num { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; }

.poll-admin-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }

.poll-admin-actions .pao-total { font-size: 12.5px; color: var(--dim); margin-right: auto; }

.poll-admin-actions button:disabled { opacity: .35; cursor: not-allowed; }

.estudio-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.estudio-chat-head h2 { font-size: 20px; }

.est-feed {
  height: 520px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 10px;
  display: block;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 122, 0, .35) transparent;
}

.est-msg {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 8px;
  font-size: 13.5px;
}

.est-msg:hover { background: rgba(255, 122, 0, .06); }

.est-msg time { font-size: 11px; color: var(--dim); flex-shrink: 0; font-variant-numeric: tabular-nums; }

.est-msg-body { min-width: 0; overflow-wrap: anywhere; color: var(--text); flex: 1; }

.est-msg-body b { color: var(--brand-2); font-weight: 600; }

.est-msg-body b.est-admin::after {
  content: 'ADMIN';
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--grad);
  color: #1d0e02;
  margin-left: 6px;
  vertical-align: 2px;
}

.est-msg-system { color: var(--brand-2); font-size: 12.5px; }

.est-msg-system .est-msg-body { color: var(--brand-2); }

.est-del {
  background: none;
  border: none;
  color: var(--dim);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  opacity: 0;
  flex-shrink: 0;
}

.est-msg:hover .est-del { opacity: 1; }

.est-del:hover { background: rgba(208, 59, 59, .2); color: #ff9d96; }

/* ------------------------------------------------ responsivo */
@media (max-width: 1020px) {
  .live-grid { grid-template-columns: 1fr; }
  .chat-panel { position: static; height: 440px; }
  .estudio-grid { grid-template-columns: 1fr; }
  .est-feed { height: 420px; }
}

@media (max-width: 700px) {
  .poll-overlay { left: 8px; right: 8px; bottom: 46px; }
  .poll-card { padding: 10px 12px 6px; }
  .poll-question { font-size: 13px; margin-bottom: 8px; }
  .poll-opt { padding: 8px 11px; font-size: 12.5px; }
  .poll-timer { margin: 2px -12px -6px; }
}

@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; flex-direction: column; }
  .admin-menu { flex-flow: row wrap; }
  .admin-menu a { flex: 1 1 auto; }
}

@media (max-width: 900px) {
  .hero { padding: 56px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }                              /* símbolo padrão: só no desktop */
  .hero-art:has(.hero-photo-wrap) { display: flex; margin-top: 4px; }  /* imagem enviada: aparece no celular */
  .hero-photo-wrap { width: min(280px, 70%); animation: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .chip-label { min-width: 100%; }
}

@media (max-width: 560px) {
  .header-inner { height: auto; padding: 10px 0; flex-direction: column; }
  .cd-block { min-width: 72px; }
  .cd-num { font-size: 30px; }
  .btn { width: 100%; }
  .hero-ctas .btn { width: auto; flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
