/* RedFeed — Lives Workshop no padrao Explore (rail visivel no PC; cards curtos com overlay) */
.rf-header-live-btn{
  width:40px;height:40px;border-radius:14px;border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);color:#fff;display:inline-grid;place-items:center;
  cursor:pointer;position:relative;flex:0 0 auto;z-index:2;
}
.rf-header-live-btn i{font-size:.95rem;pointer-events:none}
.rf-header-live-btn:hover{background:rgba(255,23,77,.16);border-color:rgba(255,46,166,.4)}
.rf-header-live-btn[aria-expanded="true"]{background:rgba(255,23,77,.22);border-color:rgba(255,46,166,.55)}
.rf-header-live-dot{
  position:absolute;top:8px;right:8px;width:7px;height:7px;border-radius:999px;
  background:#ff174d;box-shadow:0 0 0 2px rgba(12,12,16,.9);display:none;pointer-events:none;
}
.rf-header-live-btn.is-live .rf-header-live-dot{display:block}

/* PC: antena fica na barra lateral — some do header e do ticker do feed */
@media (min-width:1100px){
  body.rf-desktop-ui #rfLiveSearchBtn{display:none!important}
  body.rf-desktop-ui #rfLiveDiscreetWrap,
  body.rf-desktop-ui .rf-ws-ticker{display:none!important}
}
#rfDesktopLiveBtn{position:relative}
#rfDesktopLiveBtn .rf-desktop-rail-live-dot{
  position:absolute;left:30px;top:10px;width:8px;height:8px;border-radius:999px;
  background:#ff174d;box-shadow:0 0 0 2px rgba(12,12,16,.9);display:none;pointer-events:none;
}
#rfDesktopLiveBtn.is-live .rf-desktop-rail-live-dot{display:block}
body.rf-desktop-ui:not(.rf-rail-expanded) .rf-desktop-rail:not(:hover) #rfDesktopLiveBtn .rf-desktop-rail-live-dot{
  left:auto;right:10px;top:10px;
}

html.rf-live-search-open,
html.rf-live-search-open body{
  overflow:hidden!important;
  overscroll-behavior:none;
}

/* Mobile: some a bottom nav. Desktop: rail fica (igual Explore) */
html.rf-live-search-open .rf-bottom-nav,
body.rf-live-search-open .rf-bottom-nav,
html.rf-live-search-open .rf-bottom-nav-create,
body.rf-live-search-open .rf-bottom-nav-create{
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  display:none!important;
}

#rfLiveSearchSheet.rf-live-search-sheet{
  position:fixed!important;
  inset:0!important;
  z-index:100500!important;
  display:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:#0c0c12!important;
  align-items:stretch;
  justify-content:stretch;
  overscroll-behavior:contain;
}
#rfLiveSearchSheet.rf-live-search-sheet.on{
  display:flex!important;
}

#rfLiveSearchSheet .rf-live-search-panel{
  position:relative!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  height:100%!important;
  max-height:none!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  gap:12px;
  padding:calc(12px + env(safe-area-inset-top,0px)) 16px calc(14px + env(safe-area-inset-bottom,0px))!important;
  background:linear-gradient(180deg,#121018 0%,#0c0c12 50%,#09090f 100%)!important;
  border:0!important;
  border-radius:0!important;
  color:#fff;
  overflow:hidden!important;
  box-shadow:none!important;
  box-sizing:border-box!important;
}

.rf-live-search-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex:0 0 auto;
}
.rf-live-search-head-text{min-width:0;flex:1 1 auto}
.rf-live-search-head h2{
  margin:0;font-family:var(--rf-title,system-ui,sans-serif);font-size:1.2rem;letter-spacing:-.04em;font-weight:900;
}
.rf-live-search-sub{margin:4px 0 0;font-size:.78rem;color:#a8a8b8;line-height:1.35}
.rf-live-search-back,
.rf-live-search-close{
  width:40px;height:40px;border:0;border-radius:999px;background:rgba(255,255,255,.12);color:#fff;
  cursor:pointer;flex:0 0 auto;display:grid;place-items:center;font-size:1rem;
}
.rf-live-search-field{
  display:flex;align-items:center;gap:10px;padding:0 14px;height:46px;border-radius:14px;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);flex:0 0 auto;
}
.rf-live-search-field i{opacity:.55}
.rf-live-search-field input{
  flex:1;min-width:0;border:0;background:transparent;color:#fff;outline:none;font:inherit;font-size:16px;
}

.rf-live-search-list{
  flex:1 1 auto;min-height:0;overflow:auto;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-auto-rows:max-content!important;
  align-content:start!important;
  align-items:start!important;
  justify-content:start!important;
  gap:12px;
  padding:4px 0 8px;
  -webkit-overflow-scrolling:touch;
}

/* Card estilo Explore: so a imagem + overlay (sem bloco de texto embaixo) */
#rfLiveSearchSheet .rf-live-explore-card{
  position:relative!important;
  display:block!important;
  width:100%!important;
  margin:0!important;
  aspect-ratio:3/4!important;
  max-height:min(52vh,420px)!important;
  border-radius:18px!important;
  overflow:hidden!important;
  text-decoration:none!important;
  color:#fff!important;
  background:#141018!important;
  border:1px solid rgba(255,255,255,.08)!important;
  box-shadow:0 12px 28px rgba(0,0,0,.28)!important;
  height:auto!important;
  align-self:start!important;
  contain:layout style;
}
#rfLiveSearchSheet .rf-live-explore-cover{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:center 35%;display:block;
}
#rfLiveSearchSheet .rf-live-explore-shade{
  position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,rgba(0,0,0,.1) 0%,rgba(0,0,0,.08) 42%,rgba(0,0,0,.78) 100%);
}
#rfLiveSearchSheet .rf-live-explore-badge{
  position:absolute;top:8px;left:8px;z-index:3;
  display:inline-flex;align-items:center;gap:5px;
  padding:4px 8px;border-radius:999px;
  background:linear-gradient(135deg,#ff174d,#ff2ea6);
  font-size:.58rem;font-weight:900;letter-spacing:.05em;text-transform:uppercase;
  box-shadow:0 0 0 3px rgba(255,23,77,.18);
}
#rfLiveSearchSheet .rf-live-explore-badge i{font-size:.45rem}
#rfLiveSearchSheet .rf-live-explore-viewers{
  position:absolute;top:8px;right:8px;z-index:3;
  display:inline-flex;align-items:center;gap:4px;
  padding:4px 7px;border-radius:999px;
  background:rgba(0,0,0,.55);border:1px solid rgba(255,255,255,.14);
  font-size:.58rem;font-weight:800;backdrop-filter:blur(8px);
}
#rfLiveSearchSheet .rf-live-explore-headline{
  position:absolute;left:8px;right:8px;bottom:34px;z-index:3;
  font-family:var(--rf-title,system-ui);font-weight:900;font-size:.84rem;line-height:1.15;
  letter-spacing:-.03em;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.55);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
#rfLiveSearchSheet .rf-live-explore-meta{
  position:absolute;left:8px;right:8px;bottom:8px;z-index:3;
  display:flex;align-items:center;gap:6px;min-width:0;
}
#rfLiveSearchSheet .rf-live-explore-meta img{
  width:22px;height:22px;border-radius:50%;object-fit:cover;
  border:1px solid rgba(255,255,255,.35);flex-shrink:0;
}
#rfLiveSearchSheet .rf-live-explore-meta span{
  flex:1;min-width:0;font-size:.7rem;font-weight:800;color:#fff;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
#rfLiveSearchSheet .rf-live-explore-play{
  flex:0 0 auto;width:22px;height:22px;border-radius:50%;
  display:grid;place-items:center;
  background:rgba(255,23,77,.92);font-size:.55rem;color:#fff;
  box-shadow:0 4px 12px rgba(255,23,77,.35);
}

.rf-live-search-empty{
  grid-column:1/-1;text-align:center;padding:36px 14px;color:#a8a8b8;font-size:.9rem;
  display:grid;gap:10px;justify-items:center;align-content:center;min-height:28vh;
}
.rf-live-search-empty a{color:#ff8ab3;font-weight:800;text-decoration:none}
.rf-live-search-foot{flex:0 0 auto}
.rf-live-search-hub{
  display:block;text-align:center;padding:12px;border-radius:14px;font-weight:900;font-size:.84rem;
  color:#ffd0dc;background:rgba(255,23,77,.14);border:1px solid rgba(255,46,166,.3);text-decoration:none;
}

html.rf-live-search-keyboard #rfLiveSearchSheet .rf-live-search-foot,
body.rf-live-search-keyboard #rfLiveSearchSheet .rf-live-search-foot{
  display:none!important;
}

/* Desktop: pagina no miolo, SEM cobrir a barra lateral (igual Explore/stack) */
@media (min-width:1100px){
  html.rf-live-search-open .rf-bottom-nav,
  body.rf-live-search-open .rf-bottom-nav,
  html.rf-live-search-open .rf-bottom-nav-create,
  body.rf-live-search-open .rf-bottom-nav-create{
    display:none!important;
  }
  html.rf-live-search-open .rf-desktop-rail,
  body.rf-live-search-open .rf-desktop-rail{
    display:flex!important;
    visibility:visible!important;
    pointer-events:auto!important;
    opacity:1!important;
    z-index:100600!important;
  }
  #rfLiveSearchSheet.rf-live-search-sheet{
    left:var(--rf-rail-w,72px)!important;
    right:0!important;
    top:0!important;
    bottom:0!important;
    width:auto!important;
    background:#0a0a10!important;
  }
  #rfLiveSearchSheet .rf-live-search-panel{
    padding:18px 28px 20px!important;
    max-width:min(
      calc(5 * 233px + 4 * 14px),
      calc(100vw - var(--rf-rail-w,72px) - 32px)
    )!important;
    width:100%!important;
    margin:0 auto!important;
  }
  .rf-live-search-head h2{font-size:1.35rem}
  .rf-live-search-list{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:14px;
    width:100%;
  }
  #rfLiveSearchSheet .rf-live-explore-card{
    aspect-ratio:3/4!important;
    border-radius:16px!important;
  }
  #rfLiveSearchSheet .rf-live-explore-headline{font-size:.88rem;bottom:36px}
}
@media (min-width:720px) and (max-width:1099px){
  .rf-live-search-list{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:14px;
  }
  #rfLiveSearchSheet .rf-live-search-panel{
    padding:16px 22px 18px!important;
  }
}

html.rf-live-preview-open,
html.rf-live-preview-open body{overflow:hidden!important}
html.rf-live-preview-open .rf-bottom-nav,
body.rf-live-preview-open .rf-bottom-nav,
html.rf-live-preview-open .rf-bottom-nav-create,
body.rf-live-preview-open .rf-bottom-nav-create{
  opacity:0!important;visibility:hidden!important;pointer-events:none!important;display:none!important;
}

/* Preview fullscreen do card — capa + caixa de info lado a lado */
.rf-live-card-preview{
  position:fixed;inset:0;z-index:100700;display:none;
  align-items:center;justify-content:center;gap:18px;flex-wrap:wrap;
  background:rgba(0,0,0,.88);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  padding:24px;box-sizing:border-box;overflow:auto;
}
.rf-live-card-preview.on{display:flex}
.rf-live-card-preview-close{
  position:absolute;top:18px;right:18px;z-index:5;
  width:44px;height:44px;border:0;border-radius:999px;
  background:rgba(255,255,255,.12);color:#fff;cursor:pointer;display:grid;place-items:center;font-size:1.1rem;
}
.rf-live-card-preview-stage{
  position:relative;width:min(320px,38vw);height:min(430px,72vh);aspect-ratio:3/4;
  border-radius:22px;overflow:hidden;
  box-shadow:0 28px 80px rgba(0,0,0,.55);flex:0 0 auto;background:#141018;
}
.rf-live-card-preview-cover{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 35%;
  display:block;background:#1a1520;
}
.rf-live-card-preview-shade{
  position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.12),transparent 40%,rgba(0,0,0,.55));
  pointer-events:none;z-index:1;
}
.rf-live-card-preview-badge{
  position:absolute;top:12px;left:12px;z-index:2;
  display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;
  background:linear-gradient(135deg,#ff174d,#ff2ea6);font-size:.68rem;font-weight:900;letter-spacing:.05em;
  color:#fff;
}
.rf-live-card-preview-badge.is-scheduled{
  background:linear-gradient(135deg,#5b6cff,#9b4dff);
}
.rf-live-card-preview-badge.is-late,
.rf-live-explore-badge.is-late{
  background:linear-gradient(135deg,#ff8a00,#ff174d)!important;
}
.rf-live-card-preview-badge i{font-size:.5rem}
.rf-live-card-preview-sched{
  margin:0;color:#ffd0dc;font-size:.82rem;font-weight:800;display:flex;align-items:center;gap:7px;
}
.rf-live-card-preview-sched[hidden]{display:none!important}
.rf-live-card-preview-sched i{color:#ff8ab3}
.rf-live-explore-badge.is-scheduled{
  background:linear-gradient(135deg,#5b6cff,#9b4dff)!important;
}
.rf-live-card-preview-box{
  width:min(360px,42vw);max-width:100%;margin:0;padding:22px 22px 18px;border-radius:22px;
  background:linear-gradient(180deg,#1a1520,#101018);border:1px solid rgba(255,46,166,.28);
  color:#fff;box-shadow:0 28px 80px rgba(0,0,0,.45);display:flex;flex-direction:column;gap:12px;
  flex:0 1 auto;min-width:260px;max-height:min(72vh,560px);overflow:auto;
}
.rf-live-card-preview-host{display:flex;align-items:center;gap:10px}
.rf-live-card-preview-host img{
  width:44px;height:44px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,23,77,.55);flex-shrink:0;
}
.rf-live-card-preview-host strong{display:block;font-size:.95rem}
.rf-live-card-preview-host small{display:block;color:#a8a8b8;font-size:.72rem;font-weight:700;margin-top:2px}
.rf-live-card-preview-box h3{
  margin:0;font-family:var(--rf-title,system-ui);font-size:1.2rem;letter-spacing:-.04em;line-height:1.15;
}
.rf-live-card-preview-info{
  margin:0;color:#c8c8d4;font-size:.88rem;line-height:1.45;max-height:22vh;overflow:auto;
}
.rf-live-card-preview-actions{display:grid;grid-template-columns:1.15fr 1fr;gap:10px;margin-top:4px}
.rf-live-card-preview-enter,
.rf-live-card-preview-sub{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:46px;border-radius:999px;font-weight:900;font-size:.88rem;text-decoration:none;
}
.rf-live-card-preview-enter{
  background:linear-gradient(135deg,#ff174d,#ff2ea6);color:#fff;
  box-shadow:0 12px 28px rgba(255,23,77,.35);
}
.rf-live-card-preview-sub{
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);color:#ffd0dc;
}
/* Mobile: preview empilhado */
@media (max-width:900px){
  .rf-live-card-preview{
    flex-direction:column;
    flex-wrap:nowrap;
    align-items:stretch;
    justify-content:flex-start;
    gap:0;
    padding:0;
    overflow:auto;
    -webkit-overflow-scrolling:touch;
  }
  .rf-live-card-preview-close{
    top:calc(10px + env(safe-area-inset-top,0px));
    right:12px;
    background:rgba(0,0,0,.55);
    backdrop-filter:blur(10px);
  }
  .rf-live-card-preview-stage{
    width:100%;
    max-width:none;
    height:auto;
    aspect-ratio:3/4;
    max-height:46dvh;
    border-radius:0;
    box-shadow:none;
  }
  .rf-live-card-preview-box{
    width:100%;
    max-width:none;
    min-width:0;
    margin:0;
    margin-top:-22px;
    position:relative;
    z-index:2;
    border-radius:22px 22px 0 0;
    padding:18px 16px calc(18px + env(safe-area-inset-bottom,0px));
    border-left:0;border-right:0;border-bottom:0;
    max-height:none;
    flex:0 0 auto;
  }
  .rf-live-card-preview-actions{
    grid-template-columns:1fr;
    gap:8px;
  }
  .rf-live-card-preview-enter{min-height:48px}
  .rf-live-card-preview-sub{min-height:44px}
}

html[data-rf-theme="light"] .rf-header-live-btn{
  background:#f1f5f9;border-color:rgba(15,23,42,.1);color:#0f172a;
}
html[data-rf-theme="light"] #rfLiveSearchSheet.rf-live-search-sheet,
html[data-rf-theme="light"] #rfLiveSearchSheet .rf-live-search-panel{
  background:linear-gradient(180deg,#fff,#f8fafc)!important;color:#0f172a;
}
html[data-rf-theme="light"] .rf-live-search-sub,
html[data-rf-theme="light"] .rf-live-search-empty{color:#64748b}
html[data-rf-theme="light"] .rf-live-search-field{
  background:#f1f5f9;border-color:rgba(15,23,42,.1);
}
html[data-rf-theme="light"] .rf-live-search-field input{color:#0f172a}
html[data-rf-theme="light"] .rf-live-search-back,
html[data-rf-theme="light"] .rf-live-search-close{background:rgba(15,23,42,.08);color:#0f172a}
