/* ============================================
   ALERTAPBA — Estilos adicionales
   Popup · Mobile Nav · Animaciones
   ============================================ */

/* MENÚ MOBILE */
.mobile-menu {
  display: none;
  background: #0d0d0d;
  border-bottom: 2px solid #cc0000;
  position: sticky;
  top: 58px;
  z-index: 99;
}
.mobile-menu.is-open { display: block; }
.mobile-menu .site-nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}
.mobile-menu .site-nav a {
  padding: 12px 20px;
  border-right: none;
  border-bottom: 1px solid #161616;
  font-size: 13px;
}
.mobile-menu .site-nav a:first-child { border-left: none; }
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  font-size: 20px;
  padding: 4px;
}
@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }
}

/* BREAKING TICKER ANIMACIÓN */
.breaking-bar__text {
  animation: ticker 40s linear infinite;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.breaking-bar__text:hover { animation-play-state: paused; }

/* ARTICLE BODY — imágenes dentro de la nota */
.article-body img {
  width: 100%;
  border-radius: 4px;
  margin: 20px 0;
}
.article-body figure {
  margin: 20px 0;
}
.article-body figcaption {
  font-size: 11px;
  color: #555;
  font-style: italic;
  margin-top: 6px;
  padding-left: 4px;
}
.article-body blockquote {
  border-left: 3px solid #cc0000;
  background: #130000;
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 0 4px 4px 0;
}
.article-body blockquote p {
  color: #cc6666;
  font-size: 14px;
  margin: 0;
}
.article-body ul, .article-body ol {
  padding-left: 20px;
  margin-bottom: 20px;
}
.article-body li {
  font-size: 16px;
  color: #ddd;
  line-height: 1.8;
  margin-bottom: 6px;
}
.article-body a {
  color: #cc0000;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body a:hover { color: #ff3333; }
.article-body hr {
  border: none;
  border-top: 1px solid #1e1e1e;
  margin: 28px 0;
}

/* TARJETA HOVER MOBILE */
@media (max-width: 768px) {
  .news-card { margin-bottom: 2px; border-radius: 0; border-left: none; border-right: none; }
  .news-card:first-child { border-top: none; }
  .ad-wrap { padding: 7px 14px; }
  .article-header { padding: 0 14px; }
  .numero-bar { padding: 7px 14px; }
  .numero-bar__btn span { font-size: 10px; }
  .urgency-bar { padding: 0; }
  .breaking-bar { padding: 5px 14px; }
  .site-footer__main { padding: 20px 14px; }
  .site-footer__bottom { padding: 12px 14px 28px; }
}

/* TRANSICIÓN SUAVE EN LINKS */
.news-card, .sports-card, .weekend-card, .popular-item {
  transition: border-color .15s, background .15s;
}

/* SCROLLBAR PERSONALIZADA */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #1e1e1e; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: #cc0000; }

/* SELECCIÓN DE TEXTO */
::selection { background: #cc0000; color: #fff; }

/* ============================================
   RADIO PLAYER — botón compacto en header
   ============================================ */
.radio-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1a0404;
  border: 1px solid #cc0000;
  border-radius: 20px;
  padding: 5px 12px 5px 10px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s;
  white-space: nowrap;
  max-width: 160px;
}
.radio-btn:hover { background: #2a0606; }
.radio-btn.playing { background: #cc0000; border-color: #cc0000; }
.radio-btn__icon { color: #cc0000; flex-shrink: 0; }
.radio-btn.playing .radio-btn__icon { color: #fff; }
.radio-btn__label {
  font-size: 10px;
  color: #cc0000;
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1;
}
.radio-btn.playing .radio-btn__label { color: #fff; }
.radio-btn__label strong { color: #fff; margin-left: 2px; }
.radio-btn.playing .radio-btn__label strong { color: #fff; }

/* Mobile — más compacto */
@media (max-width: 768px) {
  .radio-btn {
    padding: 4px 10px 4px 8px;
    max-width: 140px;
  }
  .radio-btn__label { font-size: 9px; }
}
@media (max-width: 380px) {
  .radio-btn__label { display: none; }
  .radio-btn { padding: 5px 8px; }
}

/* ============================================
   PJAX — transición suave al cambiar de contenido
   ============================================ */
#pjax-content {
  transition: opacity .12s ease;
}
#pjax-content.is-loading {
  opacity: .35;
}

/* ============================================
   GRUPO PLATA MEDIA — texto puro, una línea
   ============================================ */
.grupo-plata-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  margin-top: 4px;
  flex-wrap: nowrap;
}
.grupo-plata-rayo {
  color: #e50914;
  flex-shrink: 0;
}
.grupo-plata-nombre {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #666;
  white-space: nowrap;
}
.grupo-plata-sep {
  font-size: 9px;
  color: #2a2a2a;
  flex-shrink: 0;
}

/* Opciones de ancho del editor Koenig (requeridas por Ghost) */
.article-body .kg-width-wide {
  width: 100%;
  max-width: var(--max-width);
  margin-left: 50%;
  transform: translateX(-50%);
}
.article-body .kg-width-full {
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}
.article-body .kg-width-wide img,
.article-body .kg-width-full img {
  width: 100%;
  display: block;
}
