:root{
  --hse-bg:#1F9F91;
  --hse-fg:#0b2e2a;
  --hse-muted:#164c46;
  --hse-surface:#E9F7F5;
  --hse-border:#129384;
  --hse-primary:#116D64;
  --hse-primary-contrast:#ffffff;
  --hse-accent:#0E5A53;
  --hse-danger:#B71C1C;
}

/* caixas gerais */
.hse-box{
  background:var(--hse-surface);
  border:1px solid var(--hse-border);
  color:var(--hse-fg);
  padding:16px;border-radius:12px;margin:12px 0;
}

/* biblioteca */
.hse-lib-grid{
  display:grid;gap:16px;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
}
.hse-card{
  display:flex;background:#fff;border:1px solid var(--hse-border);
  border-radius:14px;overflow:hidden;
}
.hse-card-thumb img{width:140px;height:100%;object-fit:cover;display:block}
.hse-card-body{padding:12px;display:flex;flex-direction:column;gap:8px;flex:1}
.hse-card-title{font-weight:700}
.hse-card-meta{font-size:12px;color:var(--hse-muted);display:flex;gap:10px;flex-wrap:wrap}
.hse-card-status{font-size:12px;background:var(--hse-bg);color:#fff;padding:4px 8px;border-radius:999px;align-self:flex-start}
.hse-btn, .hse-btn-outline{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 14px;border-radius:10px;font-weight:600;text-decoration:none;border:0;cursor:pointer
}
.hse-btn{background:var(--hse-primary);color:var(--hse-primary-contrast)}
.hse-btn:hover{filter:brightness(0.95)}
.hse-btn-outline{background:#fff;color:var(--hse-primary);border:1px solid var(--hse-primary)}
.hse-btn-outline:hover{background:#f7fffd}

/* detalhes */
.hse-details .hse-summary{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:12px}
.hse-block{background:var(--hse-surface);border:1px solid var(--hse-border);border-radius:14px;padding:14px;margin:12px 0}
.hse-block-title{font-weight:700;margin-bottom:8px}
.hse-alert{background:#fff3f2;color:#7a1111;border:1px solid #f2c6c3;padding:10px;border-radius:10px}
.hse-muted{color:var(--hse-muted)}
.hse-exp{font-size:12px;color:var(--hse-muted);margin-top:6px}
.hse-player{width:100%;border-radius:12px;background:#000}

/* gravador */
.hse-video-wrap{
  background:var(--hse-bg);
  border:1px solid var(--hse-border);
  color:#fff;border-radius:16px;padding:12px;position:relative;overflow:hidden
}
.hse-live,.hse-replay{
  width:100%;aspect-ratio:9/16;max-height:75vh;background:#000;border-radius:12px;object-fit:cover
}
.hse-ui{margin-top:10px}
.hse-tabs{display:flex;background:rgba(255,255,255,0.12);border-radius:10px;padding:4px;gap:6px}
.hse-tab{flex:1;text-align:center;padding:10px;border-radius:8px;cursor:pointer;font-weight:600}
.hse-tab.active{background:#fff;color:var(--hse-primary)}
.hse-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.hse-pill{
  flex:1;display:flex;align-items:center;justify-content:center;padding:10px;border-radius:10px;
  background:#fff;color:var(--hse-primary);border:1px solid var(--hse-primary);cursor:pointer;font-weight:700
}
.hse-pill.primary{background:var(--hse-primary);color:#fff;border-color:var(--hse-primary)}
.hse-pill.danger{background:#fff;color:#fff;border:0;position:relative}
.hse-pill[disabled]{opacity:.5;cursor:not-allowed}
.hse-msg{margin-top:8px;color:#fff}

/* contador e anel */
.hse-timer{
  display:flex;align-items:center;justify-content:center;gap:8px;margin-top:8px
}
.hse-time-badge{background:#00000066;padding:6px 10px;border-radius:999px;font-weight:700}
.hse-ring{
  --p:0deg;
  width:36px;height:36px;border-radius:999px;
  background:
   conic-gradient(#fff var(--p), rgba(255,255,255,0.2) 0 360deg);
}
.hse-text-wrap textarea{
  width:100%;min-height:140px;border-radius:10px;border:1px solid var(--hse-border);
  padding:10px;color:#111;resize:vertical
}




/* Estado de revis達o: esconde o preview ao vivo pra n達o ficar tela preta */
.hse-video-wrap.is-review .hse-live { display: none !important; }
.hse-video-wrap.is-review .hse-replay { display: block !important; }

/* Bot達o extra "Regravar" */
.hse-btn-ghost {
  background: transparent;
  border: 1px dashed var(--hse-border, #129384);
  color: var(--hse-fg, #0b2e2a);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}




















/* Assistir resposta: botão sólido verde (override total) */
body .hse-details .hse-block a.hse-btn-outline,
body .hse-details .hse-block a.hse-btn-outline:visited,
body .hse-details .hse-block a.hse-btn-outline[aria-disabled="true"] {
  background-color: #1F9F91 !important; /* Persian Green */
  color: #FFFFFF !important;            /* texto branco */
  border: none !important;              /* remove contorno do tema */
  border-radius: 24px !important;
  padding: 12px 20px !important;
  font-weight: var(--e-global-typography-accent-font-weight, 600) !important;
  font-family: var(--e-global-typography-accent-font-family, inherit), Sans-serif !important;
  display: inline-block !important;
  text-decoration: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transition: color .2s ease, filter .2s ease;
}

/* Hover/focus: não muda o fundo, só suaviza o texto */
body .hse-details .hse-block a.hse-btn-outline:hover,
body .hse-details .hse-block a.hse-btn-outline:focus {
  background-color: #1F9F91 !important; /* mantém */
  color: #E8E8E8 !important;            /* branco levemente acinzentado */
  text-decoration: none !important;
  filter: brightness(1.05);
  outline: none !important;
}













/* Player da resposta + botões */
.hse-answer .hse-player{
  width:100%;
  max-height:520px;
  border-radius:16px;
  background:#000;
  outline:none;
  display:block;
}

.hse-answer-actions{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* Botão baixar – herda o seu .hse-btn */
.hse-download{
  text-decoration:none !important;
}

/* Aviso dos 30 dias */
.hse-exp{
  margin-top:8px;
  font-size:.92rem;
  color:#4a4a4a;
}








/* Player responsivo */
.hse-player-wrap{
  position: relative;
  width: 100%;
  /* 16:9 elegante; pode ajustar p/ 3:2 se preferir */
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
}
.hse-player-wrap video,
.hse-player-wrap iframe{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  background: #000;
}

/* Ações abaixo do player */
.hse-answer-actions{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hse-download{
  text-decoration: none !important;
}

/* Aviso */
.hse-exp{
  margin-top: 8px;
  font-size: .92rem;
  color: #4a4a4a;
}

/* Mobile refinements */
@media (max-width: 480px){
  .hse-player-wrap{ border-radius: 12px; }
  .hse-answer-actions .hse-btn{ width: 100%; text-align: center; }
}



