/* LCH PF Frontend v1.3.1 */
:root{
  --lchpf-primary:#9B6A1F; --lchpf-accent:#22c55e; --lchpf-bg:#9B6A1F; --lchpf-now:#22c55e; --lchpf-timechip:#d1d5db;
  --lchpf-text:#0f172a; --lchpf-btn-bg:#0b6b8a; --lchpf-btn-text:#ffffff; --lchpf-container-max: 1200px;
}
.lchpf-wrap{max-width:var(--lchpf-container-max); }
.lchpf-wrap.align-center{margin-left:auto;margin-right:auto}
.lchpf-wrap.align-left{margin-left:0;margin-right:auto}
.lchpf-wrap.align-full{max-width:100%}
.lchpf-card{background:var(--lchpf-bg);border-radius:22px;padding:14px;box-shadow:0 12px 40px rgba(0,0,0,.15);color:var(--lchpf-text)}
.lchpf-topbar{display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,.08);backdrop-filter:blur(6px);border-radius:20px;padding:10px 14px;margin-bottom:12px;color:#fff;position:relative}
.lchpf-daytitle{font-size:20px;font-weight:800}
.lchpf-nav{border:0;background:rgba(255,255,255,.12);width:42px;height:42px;border-radius:999px;color:#fff;font-size:20px;display:flex;align-items:center;justify-content:center;box-shadow:inset 0 0 0 2px rgba(255,255,255,.18);cursor:pointer}
.lchpf-cta{border:0;border-radius:999px;padding:10px 16px;background:linear-gradient(180deg,var(--lchpf-btn-bg),#0b4fa6);color:var(--lchpf-btn-text);font-weight:900;box-shadow:0 8px 22px rgba(0,0,0,.18)}
.lchpf-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.lchpf-tabs{display:flex;gap:8px;flex-wrap:wrap}
.lchpf-tab{border:0;background:rgba(255,255,255,.1);color:#fff;font-weight:700;padding:8px 12px;border-radius:999px;cursor:pointer;opacity:.85;transition:.2s}
.lchpf-tab[aria-selected="true"],.lchpf-tab:hover{opacity:1;box-shadow:0 0 0 2px var(--lchpf-accent) inset}
.lchpf-day{display:none}.lchpf-day.is-active{display:block}
.lchpf-onair{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.14);color:#fff;border-radius:16px;padding:8px 12px;margin:2px 0 8px}
.lchpf-onair .now-badge{background:var(--lchpf-now);color:#fff;border-radius:10px;padding:4px 8px;font-weight:900}
.lchpf-onair .onair-text{font-weight:800}
.lchpf-onair .onair-day{margin-left:auto;opacity:.85}

/* Base item */
.lchpf-item{display:grid;grid-template-columns:68px 56px 1fr;align-items:center;gap:12px;background:#e9eef6;border-radius:999px 22px 22px 999px;padding:14px;margin:14px 0;position:relative;overflow:visible;border:3px solid transparent}
.lchpf-item.is-now{border-color:var(--lchpf-accent)}
.lchpf-time{font-weight:800;color:#1f2937;display:flex;justify-content:flex-end}
.lchpf-timechip{background:var(--lchpf-timechip);padding:6px 10px;border-radius:12px;font-weight:800}
.lchpf-avatar{width:60px;height:60px;border-radius:50%;object-fit:cover;border:6px solid #fff;box-shadow:0 6px 16px rgba(0,0,0,.18)}
.lchpf-title{margin:0;font-weight:900;color:var(--lchpf-text)}
.lchpf-sub{color:#334155;font-weight:700}
.lchpf-badges{position:absolute;left:10px;top:6px}
.lchpf-badges .now{background:var(--lchpf-now);color:#fff;border-radius:12px;padding:6px 10px;font-weight:900;box-shadow:0 6px 12px rgba(0,0,0,.15)}

/* Layout variations */
.layout-modern .lchpf-card{background:#fff;border-radius:18px;border:1px solid #eef2f7;box-shadow:0 8px 24px rgba(15,23,42,.06);color:#0f172a}
.layout-minimal .lchpf-card{background:#fff}
.layout-atlantic .lchpf-card{background:transparent;box-shadow:none}
.layout-atlantic .lchpf-item{grid-template-columns:90px 1fr;border-radius:22px;background:#0b2a55;color:#fff}
.layout-atlantic .lchpf-item.is-now{background:#d1cc00;color:#111}
.layout-grid .lchpf-grid{display:grid;grid-template-columns:1fr;gap:12px}
@media (min-width:1024px){ .layout-grid .lchpf-grid{grid-template-columns:repeat(7,1fr);gap:14px} }
.layout-grid .lchpf-grid-day{background:rgba(255,255,255,.08);border-radius:16px;padding:8px}
.layout-grid .lchpf-grid-head{color:#fff;font-weight:900;margin:6px 8px}
.layout-grid .lchpf-item{border-radius:16px;background:#0b2a55;color:#fff;margin:8px 0;grid-template-columns:60px 1fr}
.layout-grid .lchpf-item.is-now{background:#d1cc00;color:#111}

/* Compact mode */
.lchpf-card[data-compact="1"] .lchpf-item{margin:8px 0;padding:10px;border-radius:28px}
.lchpf-card[data-compact="1"] .lchpf-avatar{width:48px;height:48px;border-width:4px}
.lchpf-card[data-compact="1"] .lchpf-timechip{padding:4px 8px}
.lchpf-card[data-compact="1"] .lchpf-title{font-size:16px}
.lchpf-card[data-compact="1"] .lchpf-sub{font-size:13px}
.lchpf-card[data-compact="1"] .lchpf-topbar{padding:8px 12px}

/* Mobile adjustments */
@media (max-width:767px){
  .lchpf-tabs{display:none!important}
  .lchpf-cta{display:none!important}
  .layout-modern .lchpf-card{background:#fff;border:1px solid #eef2f7;box-shadow:0 8px 24px rgba(15,23,42,.06)}
  .layout-minimal .lchpf-card{background:#fff;border:1px solid #e5e7eb;box-shadow:0 6px 18px rgba(15,23,42,.05)}
  .layout-grid .lchpf-card{background:#fff;border:1px solid #eef2f7;box-shadow:0 8px 24px rgba(15,23,42,.06)}
  .layout-atlantic .lchpf-card{background:transparent;box-shadow:none}
  .lchpf-card{padding-top:8px;padding-left:10px;padding-right:10px}
  .lchpf-header{margin:4px 6px 6px}
  .lchpf-topbar{margin-bottom:6px}
  .lchpf-item{grid-template-columns:56px 48px 1fr;gap:8px;padding:12px 10px;margin:10px 0}
  .lchpf-avatar{width:52px;height:52px;border-width:4px}
  .lchpf-timechip{padding:4px 8px}
}


/* Inline locutor next to title */
.lchpf-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:2px 0 4px}
.lchpf-title .lchpf-locutor{font-weight:700;opacity:.85;font-size:.9em}

/* Compact heights */
.lchpf-item{margin:8px 0!important}
.lchpf-body{padding:6px 8px}
.lchpf-time .lchpf-timechip{padding:6px 8px;font-size:12px}
.lchpf-avatar{width:56px;height:56px;border-radius:16px}
@media(min-width:1024px){
  .lchpf-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
}


/* === Two-column row: Program (left) | Presenter (right) === */
.lchpf-rowline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:2px 0 2px;
  padding:0;
  min-height:auto;
}
.lchpf-rowline .lchpf-prog{
  font-weight:800;
  font-size:18px;
  line-height:1.1;
  flex:1 1 auto;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.lchpf-rowline .lchpf-presenter{
  font-weight:700;
  font-size:14px;
  line-height:1.1;
  flex:0 0 auto;
  margin-left:12px;
  opacity:.9;
  max-width:45%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-align:right;
}

/* === Tighter item spacing and elements === */
.lchpf-item{margin:8px 0!important;padding:10px 12px;border-radius:16px}
.lchpf-body{padding:0}
.lchpf-time .lchpf-timechip{padding:4px 8px;font-size:12px}
.lchpf-avatar{width:48px;height:48px;border-radius:14px}

/* Optional: denser grid on wide screens */
@media(min-width:1024px){
  .lchpf-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
}


/* === Single-line compact layout (program | presenter) with time chip aligned === */
.lchpf-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:14px;
  margin:6px 0!important;
}

.lchpf-avatar{flex:0 0 auto;width:44px;height:44px;border-radius:12px}

.lchpf-time{flex:0 0 auto;white-space:nowrap}
.lchpf-time .lchpf-timechip{padding:4px 8px;font-size:12px;line-height:1;border-radius:10px}

.lchpf-body{flex:1 1 auto;min-width:0;padding:0}

/* one single horizontal line: program (left) | presenter (right) */
.lchpf-rowline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  width:100%;
  min-height:auto;
}

.lchpf-rowline .lchpf-prog,
.lchpf-rowline .lchpf-presenter{
  font-weight:800; /* negrito solicitado */
}

.lchpf-rowline .lchpf-prog{
  font-size:18px;           /* mantém tamanho atual */
  line-height:1.1;
  flex:1 1 auto;
  overflow:hidden;
  text-overflow:ellipsis;
}

.lchpf-rowline .lchpf-presenter{
  font-size:14px;           /* mantém tamanho atual */
  line-height:1.1;
  flex:0 0 auto;
  max-width:45%;
  text-align:right;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* grid 2x em telas largas (mantém) */
@media(min-width:1024px){
  .lchpf-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
}


/* --- FORCE SINGLE-LINE LAYOUT, NO WRAPS, BOLD --- */

/* Works whether markup is: 
   (A) <h4 class="lchpf-title"></h4><div class="lchpf-sub"></div>
   or 
   (B) <div class="lchpf-rowline"><span class="lchpf-prog"></span><span class="lchpf-presenter"></span></div>
*/

/* A) Title + Sub in same line */
.lchpf-item .lchpf-body{display:flex;align-items:center;justify-content:space-between;gap:12px}
.lchpf-item .lchpf-title{margin:0!important;font-weight:800!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.lchpf-item .lchpf-sub{margin:0!important;font-weight:800!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:45%!important;text-align:right}

/* B) Rowline (prog | presenter) */
.lchpf-rowline{display:flex;align-items:center;justify-content:space-between;gap:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}
.lchpf-rowline .lchpf-prog{font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lchpf-rowline .lchpf-presenter{font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:45%;text-align:right}

/* Make the whole item tighter */
.lchpf-item{padding:8px 10px;border-radius:14px;margin:6px 0!important}
.lchpf-time .lchpf-timechip{padding:4px 8px;font-size:12px;line-height:1;border-radius:10px}

/* Two-column grid on desktop remains */
@media(min-width:1024px){
  .lchpf-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
}


/* ===== FIX: compact single-line, visible separator, no white space ===== */
.lch-pf .lchpf-item{
  display:grid!important;
  grid-template-columns: 72px 1fr!important; /* time chip | content */
  align-items:center!important;
  padding:6px 10px!important;
  min-height:auto!important;
  margin:6px 0!important;
  border-radius:14px!important;
}
.lch-pf .lchpf-time{justify-content:flex-start!important}
.lch-pf .lchpf-time .lchpf-timechip{padding:4px 8px!important;font-size:12px!important;line-height:1!important;border-radius:10px!important}

.lch-pf .lchpf-body{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-width:0!important;
  white-space:nowrap!important;
}

.lch-pf .lchpf-title{
  margin:0!important;
  font-weight:800!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  line-height:1.1!important;
}

.lch-pf .lchpf-sub{
  margin:0!important;
  font-weight:800!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  max-width:45%!important;
  text-align:right!important;
}

/* add visible separator between title and presenter (old markup) */
.lch-pf .lchpf-body .lchpf-sub::before{
  content:" | ";
  display:inline-block;
  margin:0 8px;
  opacity:.85;
  font-weight:800;
}

/* If rowline markup exists, keep one line left/right */
.lch-pf .lchpf-rowline{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:8px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;width:100%!important
}
.lch-pf .lchpf-rowline .lchpf-prog,
.lch-pf .lchpf-rowline .lchpf-presenter{font-weight:800!important}
.lch-pf .lchpf-rowline .lchpf-presenter{max-width:45%!important;text-align:right!important}

/* remove extra top/bottom spacing from any headings/paragraphs inside body */
.lch-pf .lchpf-body h1,
.lch-pf .lchpf-body h2,
.lch-pf .lchpf-body h3,
.lch-pf .lchpf-body h4,
.lch-pf .lchpf-body p{margin:0!important}
