:root {
  --yara-yellow: #FFD700;
  --yara-blue: #1E3A8A;
  --yara-black: #000000;
  --yara-white: #FFFFFF;
  --yara-gray: #1a1a1a;
}
/* ========== WIDGET BASE ========== */
.yara-nowplaying, .yara-history, .yara-top8,
.yara-social-feed, .yara-ai-facts {
  background: var(--yara-gray);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  color: var(--yara-white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  border-left: 5px solid var(--yara-yellow);
}
.widget-title {
  color: var(--yara-yellow);
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--yara-blue);
  padding-bottom: 8px;
}
/* ========== NOW PLAYING ========== */
.yara-nowplaying {
  text-align: center;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
}
.np-song {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--yara-yellow);
  display: block;
}
.np-artist-name, .np-show-name, .np-host-name {
  color: var(--yara-white);
  font-weight: normal;
}
.np-artist, .np-show, .np-host {
  margin: 8px 0;
  font-size: 0.95rem;
}
/* ========== TOP 8 ========== */
.top8-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.top8-list li {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #333;
}
.top-position {
  background: var(--yara-blue);
  color: var(--yara-yellow);
  font-weight: bold;
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 15px;
}
.top-song {
  font-weight: bold;
  flex: 1;
}
.top-artist {
  color: #aaa;
  font-size: 0.85rem;
}
/* ========== HISTORIAL ========== */
.history-list {
  list-style: none;
  padding: 0;
  max-height: 300px;
  overflow-y: auto;
}
.history-list li {
  padding: 8px 0;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  justify-content: space-between;
}
.history-time {
  color: var(--yara-yellow);
  font-size: 0.7rem;
}
/* ========== SOCIAL FEED ========== */
.social-message {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #2a2a2a;
  border-radius: 12px;
  margin-bottom: 12px;
}
.msg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.msg-content {
  flex: 1;
}
.msg-content strong {
  color: var(--yara-yellow);
}
.msg-content p {
  margin: 4px 0;
  font-size: 0.9rem;
}
.social-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}
/* 🔘 BOTONES DE REDES SOCIALES (MODIFICADOS) */
.social-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-size: 0; /* Oculta texto interno si existe para mostrar solo el icono */
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  position: relative;
}
.social-icon:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  filter: brightness(1.15);
}
/* Iconos originales integrados vía CSS */
.social-icon::before {
  font-size: 1.1rem;
  display: block;
  line-height: 1;
}
.social-icon.fb { background: #1877f2; }
.social-icon.fb::before { content: "f"; font-weight: 800; font-family: Arial, sans-serif; }

.social-icon.ig { background: #e4405f; }
.social-icon.ig::before { content: "📷"; }

.social-icon.x { background: #000000; border: 1px solid #333; }
.social-icon.x::before { content: "𝕏"; font-weight: bold; font-family: system-ui, sans-serif; }

.social-icon.tg { background: #0088cc; }
.social-icon.tg::before { content: "✈️"; }
/* ========== AI FACTS ========== */
.ai-fact-text {
  font-style: italic;
  background: #2a2a2a;
  padding: 15px;
  border-radius: 12px;
  margin: 10px 0;
}
.yara-ai-refresh {
  background: var(--yara-blue);
  color: var(--yara-yellow);
  border: none;
  padding: 8px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}
.yara-ai-refresh:hover {
  background: var(--yara-yellow);
  color: var(--yara-black);
}
/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .np-song { font-size: 1.2rem; }
  .top8-list li { flex-wrap: wrap; }
  .top-position { width: 28px; height: 28px; font-size: 0.8rem; }
}