/* =====================================================
   TEMA INSTITUCIONAL – BOCA DEL RÍO
   Restreamer / PlayerSite (Template Custom)
   ===================================================== */

:root {
  --boca-azul: #45a9ff;
  --boca-gris: #a6a6a6;
  --boca-blanco: #ffffff;
  --boca-negro: #0f172a;
}

/* ---------- RESET CONTROLADO ---------- */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--boca-negro);
  background-color: #ffffff;

  /* Fondo técnico en alpha */
  background-image: url('https://www.bocadelrio.gob.mx/wp-content/uploads/2026/01/2-scaled.png');
  background-repeat: repeat;
  background-size: 600px auto;
  background-position: top left;
}

/* ---------- HEADER ---------- */
.boca-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  background-color: #ffffff;
  border-bottom: 4px solid var(--boca-azul);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 9999;
}

.boca-header img {
  height: 46px;
  width: auto;
}

/* ---------- CONTENEDOR PRINCIPAL ---------- */
.boca-main {
  padding-top: 96px;
  max-width: 100%;
}

/* ---------- LAYOUT (SIDEBAR + PLAYER) ---------- */
.boca-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  padding: 0 24px 40px;
}

/* ---------- SIDEBAR ---------- */
.boca-sidebar {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  height: calc(100vh - 140px);
  overflow-y: auto;
}

/* Asegura visibilidad del contenido inyectado */
.boca-sidebar * {
  font-family: 'Poppins', sans-serif;
}

/* ---------- CONTENIDO ---------- */
.boca-content {
  min-width: 0;
}

/* ---------- TARJETA DEL PLAYER ---------- */
.boca-card {
  background-color: #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  overflow: hidden;
}

/* ---------- HEADER DEL PLAYER ---------- */
.boca-card-header {
  background-color: var(--boca-azul);
  color: #ffffff;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  letter-spacing: .3px;
}

/* ---------- EN VIVO ---------- */
.boca-live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
}

.boca-dot {
  width: 10px;
  height: 10px;
  background-color: #ff2d2d;
  border-radius: 50%;
  animation: bocaPulse 1.4s infinite;
}

@keyframes bocaPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: .6; }
  100% { transform: scale(1); opacity: 1; }
}

/* ---------- PLAYER REAL (CRÍTICO) ---------- */
#player,
.boca-player {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background-color: #000000;
}

/* VIDEO / IFRAME INYECTADO */
#player video,
#player iframe,
.boca-player video,
.boca-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- INFO ---------- */
.boca-info {
  padding: 20px;
}

.boca-info h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--boca-azul);
}

.boca-info p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.6;
}

/* ---------- FOOTER ---------- */
.boca-footer {
  text-align: center;
  font-size: .8rem;
  color: var(--boca-gris);
  padding: 24px 12px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .boca-layout {
    grid-template-columns: 1fr;
  }

  .boca-sidebar {
    height: auto;
  }
}
