/* Ranking de anuncios más vistos - Parque Berrío */
.pbrk {
  --pbrk-accent: #e8452c;
  --pbrk-ink: #1d2329;
  --pbrk-muted: #5f6770;
  --pbrk-line: #e3e6ea;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: none;
  min-height: 56px;
  margin: 0;
  padding: 0;            /* los temas suelen darle relleno a <section> */
  float: none;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  border-top: 1px solid var(--pbrk-line);
  border-bottom: 1px solid var(--pbrk-line);
  color: var(--pbrk-ink);
  font-family: inherit;
  /* Sin position, z-index, transform ni mask: no se dibuja encima de los menús del tema */
}
.pbrk *, .pbrk *::before, .pbrk *::after { box-sizing: border-box; }
.pbrk[hidden] { display: none !important; }

/* ---------- Título fijo ---------- */
.pbrk-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  padding: 0 14px 0 max(14px, calc((100% - 1200px) / 2));
  background: var(--pbrk-ink);
  color: #fff;
  white-space: nowrap;
}
.pbrk-live {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pbrk-accent);
  box-shadow: 0 0 0 0 var(--pbrk-accent);
  animation: pbrk-pulse 1.6s ease-out infinite;
}
@keyframes pbrk-pulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 69, 44, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(232, 69, 44, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 69, 44, 0); }
}
.pbrk-title { font-weight: 800; font-size: 15px; }
.pbrk-period { font-size: 12px; opacity: 0.7; }

/* ---------- Franja que se desliza ---------- */
.pbrk-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.pbrk-viewport::-webkit-scrollbar { display: none; }

.pbrk-list {
  display: flex;
  gap: 6px;
  width: max-content;
  margin: 0;
  padding: 7px 8px;
  list-style: none;
}
.pbrk-item { flex: 0 0 auto; margin: 0; padding: 0; }
.pbrk-item a {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 14px 0 4px;
  border: 1px solid var(--pbrk-line);
  border-radius: 999px;
  background: #fff;
  color: var(--pbrk-ink);
  text-decoration: none;
}
.pbrk-item a:hover { border-color: var(--pbrk-accent); color: var(--pbrk-ink); text-decoration: none; }
.pbrk-item a:focus-visible { outline: 3px solid var(--pbrk-accent); outline-offset: 2px; }

.pbrk-pos {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 13px;
  background: #eef0f2;
  color: var(--pbrk-ink);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.pbrk-pos--top { background: var(--pbrk-accent); color: #fff; }

.pbrk-thumb {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: #eef0f2;
}
.pbrk-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pbrk-thumb:empty { display: none; }

.pbrk-name {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}
.pbrk-views { font-size: 12px; color: var(--pbrk-muted); white-space: nowrap; }

.pbrk-pause {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0 max(10px, calc((100% - 1200px) / 2)) 0 6px;
  padding: 0;
  border: 1px solid var(--pbrk-line);
  border-radius: 50%;
  background: #fff;
  color: var(--pbrk-ink);
  cursor: pointer;
}
.pbrk-pause:focus-visible { outline: 3px solid var(--pbrk-accent); outline-offset: 2px; }
.pbrk-pause .pbrk-i-play { display: none; }
.pbrk-pause[aria-pressed="true"] .pbrk-i-pause { display: none; }
.pbrk-pause[aria-pressed="true"] .pbrk-i-play { display: block; }
.pbrk-pause[hidden] { display: none !important; }

.pbrk-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Celular ---------- */
@media (max-width: 767.98px) {
  .pbrk-head { padding: 0 10px; }
  .pbrk-period { display: none; }
  .pbrk-title { font-size: 13px; }
  .pbrk-name { max-width: 160px; font-size: 13px; }
  .pbrk-views { display: none; }
  .pbrk-pause { margin-right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .pbrk-live { animation: none; }
}
