:root{
  --ofw-twitch: #9146FF;
  --ofw-card-bg: rgba(255,255,255,.86);
  --ofw-card-border: rgba(255,255,255,.35);
  --ofw-card-text: #171717;
  --ofw-card-text-soft: rgba(23,23,23,.78);
}

body{
  overflow-x: hidden;
}

/* wrapper do plugin */
.ofw-twitch{
  width: 100%;
}

/* total */
.ofw-twitch .ofw-total{
  margin: 0 0 12px;
  font-size: 16px;
  color: #fff;
}
.ofw-twitch .ofw-total strong{
  color: var(--ofw-twitch);
  font-weight: 800;
}

/* empty */
.ofw-twitch .ofw-empty{
  margin: 0;
  text-align: center;
  color: rgba(255,255,255,.85);
}

/* grid/cards */
.ofw-twitch .ofw-grid{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  /* justify-content:space-between; */
  align-items:stretch;
}

/* 1 card */
.ofw-twitch .ofw-grid:has(> .ofw-card:only-child){
  justify-content: center;
}

/* 2 cards */
.ofw-twitch .ofw-grid:has(> .ofw-card:nth-child(2)):not(:has(> .ofw-card:nth-child(3))){
  justify-content: space-around;
}

/* 3 ou mais (fallback natural) */
.ofw-twitch .ofw-grid{
  justify-content: space-between;
}

.ofw-twitch .ofw-card{
  width:340px;
  max-width:100%;
  border-radius:16px;
  overflow:hidden;
  border:3px solid var(--ofw-twitch);
  background:var(--ofw-card-bg);
  color:var(--ofw-card-text);
  box-shadow:0 10px 24px rgba(0,0,0,.35);
}

.ofw-twitch .ofw-link{
  display:block;
  text-decoration:none;
  color:inherit;
}

.ofw-twitch .ofw-thumb{
  width:100%;
  height:auto;
  display:block;
}

.ofw-twitch .ofw-body{
  padding:14px;
}

.ofw-twitch .ofw-meta{
  margin-bottom:8px;
  opacity:.78;
  font-size:13px;
}

.ofw-twitch .ofw-pill{
  display:inline-block;
  border:1px solid rgba(0,0,0,.18);
  border-radius:999px;
  padding:2px 10px;
  font-size:12px;
  background:rgba(255,255,255,.55);
  color:var(--ofw-card-text);
}

.ofw-twitch .ofw-name{
  font-weight:800;
  margin-bottom:6px;
  color:var(--ofw-card-text);
}

.ofw-twitch .ofw-title{
  line-height:1.25;
  color:var(--ofw-card-text);
}

/* hover com cor Twitch */
.ofw-twitch .ofw-card:hover{
  border-color: rgba(145,70,255,.55);
  box-shadow:0 14px 28px rgba(0,0,0,.45);
}
.ofw-twitch .ofw-link:focus-visible{
  outline:3px solid var(--ofw-twitch);
  outline-offset:4px;
}

/* mobile */
@media (max-width: 575.98px){
  .ofw-twitch .ofw-card{ width:100%; }
}

/* ===== LOADING (sem conflito) ===== */
.ofw-twitch .ofw-lives-loading{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:26px 12px;
  border-radius:16px;
  border:2px dashed rgba(145,70,255,.45);
  background: rgba(0,0,0,.25);
}

.ofw-twitch .ofw-loading-spinner{
  width:34px;
  height:34px;
  border-radius:50%;
  border:4px solid rgba(255,255,255,.25);
  border-top-color: var(--ofw-twitch);
  animation: ofwSpin .9s linear infinite;
}

@keyframes ofwSpin{
  to { transform: rotate(360deg); }
}

.ofw-twitch .ofw-loading-text{
  color:#fff;
  font-size:14px;
  opacity:.9;
}

/* ===== CTA (botão estilo Elementor, escopado) ===== */
.ofw-twitch .ofw-cta{
  margin-top: 18px;
  display:flex;
  justify-content:center;
}

.ofw-twitch .elementor-button{
  background-color:#8a0303;
  font-family:"Roboto", Sans-serif;
  font-size:19px;
  font-weight:500;
  border-style:solid;
  border-color:#C40000;
  border-width:1px;
  border-radius:2px;
  padding:12px 24px;
  color:#fff;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.ofw-twitch .elementor-button:hover{
  filter: brightness(1.05);
}

.ofw-twitch .elementor-button:focus-visible{
  outline: 3px solid rgba(196,0,0,.45);
  outline-offset: 3px;
}

.ofw-twitch .elementor-button-content-wrapper{
  display:inline-flex;
  align-items:center;
}

.ofw-twitch .elementor-button-text{
  letter-spacing:.4px;
}
