/* --- Estilos generales --- */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    line-height: 1.8;
    font-weight: 400;
    background-color: #1e1e1e;
    color: #fff;
    margin: 0;
    padding: 0;
  }
  
  /* --- Encabezado, navegación y pie de página --- */
  header, footer {
    margin: 0 4rem;
    padding: 1rem;
    background-color: #f0f0f0;
    text-align: center;
  }
  
  nav, footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.75rem 0;
  }
  
  /* --- Enlaces --- */
  a {
    text-decoration: none;
    color: #ff6f6f;
  }
  
  a:hover {
    color: #d47e7e;
  }
  
  /* --- Layout principal --- */
  main {
    display: grid;
    max-width: 1380px;
    margin: 1.75rem auto;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.25rem;
  }
  
  /* --- Tarjetas de emisoras --- */
  .card-container {
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    padding: 13px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }
  
  .card-container:hover {
    transform: scale(1.02);
  }
  @media (max-width: 668px) {
    .card-container {
      width: 90%;
      box-sizing: border-box; /* Incluye padding y border en el width */
      margin: 0 auto;
      padding: 1rem; /* Ajusta si es necesario */
    }
  }
  /* Contenedor para logo y botón */
  .logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }
  
  /* Imagen de la emisora */
  .radio-logo {
    width: 80px;
    object-fit: contain;
  }
  
  /* Información interna */
  .info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  /* Encabezado de la tarjeta */
  .info .header {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  /* Título de la radio */
  .radio-title {
    display: inline-block;
    transition: transform 0.3s ease-in-out;
  }
  .radio-title.moving {
    animation: moveLeftRight 0.6s infinite alternate ease-in-out;
  }
  @keyframes moveLeftRight {
    0% { transform: translateX(0); }
    100% { transform: translateX(10px); }
  }
  
  /* Barras de audio animadas */
  .audio-bars {
    display: flex;
    gap: 3px;
    align-items: center;
  }
  .audio-bars .bar {
    width: 4px;
    height: 10px;
    background: #4caf50;
    animation: bounce 1s infinite ease-in-out;
  }
  .audio-bars .bar:nth-child(2) { animation-delay: 0.2s; }
  .audio-bars .bar:nth-child(3) { animation-delay: 0.4s; }
  @keyframes bounce {
    0%, 100% { height: 10px; }
    50% { height: 30px; }
  }
  
  /* Botón de reproducción */
  .play-radio {
    background-color: #ff6f6f;
    color: #1a1a1e;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 13px;

    font-weight: 600; /* Más grueso */
    /* Opcional: agregar un sutil sombra de texto */
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
    display: inline-flex;
    align-items: center;
    white-space: nowrap; /* Evita que el contenido se rompa en varias líneas */
    gap: 0.3rem; /* Espacio entre icono y texto */
    padding: 0.5rem 1rem;
    min-height: 43px; /* Aumenta la altura mínima del botón */
  }
  .play-radio:hover {
    background-color: #9e4f4f;
  }
  
  /* Badges */
  .badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .badge {
    background-color: #181818;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
  }
  
  /* Iconos (usa tu librería de íconos o define estilos propios) */
  .icon-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #3f3f44;
  }
  .icon-button:hover {
    color: #ff6f6f;
  }
  
  /* Audio y controles */
  .footer audio {
    width: 100%;
    margin-top: 0.5rem;
  }
  .volume-control {
    display: none;
  }
  
  /* Widget de Facebook */
  #FBSlideLikeBox_left {
    background: url(https://i.ibb.co/Qd5dyk8/border-top1.png) no-repeat 650px 0;
    float: left;
    height: 362px;
    position: fixed;
    left: -650px;
    padding-right: 42px;
    top: 15%;
    width: 650px;
    z-index: 2000;
  }
  #FBSlideLikeBox_left #FBSlideLikeBox2_left { position: relative; width: auto; }
  #FBSlideLikeBox_left #FBSlideLikeBox3_left {
    height: 486px;
    position: absolute;
    right: 0;
    width: 650px;
    border: 3px solid #26b559;
    background: #242428;
  }
  
  @media (max-width:768px) {
    nav, footer { flex-direction: column; }
    #FBSlideLikeBox_left { display: none !important; }
  }
  .card-container.active {
    border: 2px solid #28a745; /* Verde */
    box-shadow: 0 0 10px #28a745;
    transition: border 0.3s ease, box-shadow 0.3s ease;
  }
/*/


/* Asegúrate de que tus elementos <i> con la clase "icon" se muestren correctamente */
.icon {
  display: inline-block;
  vertical-align: middle;
  font-size: 0.9rem; /* Tamaño más pequeño */
  margin-right: 0.3rem; /* Espaciado entre ícono y texto */
}
  
/* Si deseas definir animación para el spinner y no usar Font Awesome, por ejemplo: */
.spinner:before {
  content: "\f110"; /* Código para el spinner de Font Awesome; ajusta si es necesario */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Para los demás íconos, usa las clases de Font Awesome, por ejemplo: */
.play-circle-fill:before {
  content: "\f144"; /* Código para "play circle" */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}
.stop-circle-fill:before {
  content: "\f28d"; /* Código para "stop circle" */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}
.slash-circle:before {
  content: "\f057"; /* Código para "slash circle" */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}
