/* ===================================
   ESTILOS PARA EMISORAS CON PLAY BUTTONS
   =================================== */

/* Tabla de emisoras */
#emisoras-table {
    width: 100%;
    margin-top: 20px;
}

#emisoras-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s;
}

#emisoras-table tbody tr:hover {
    background-color: #f5f5f5;
}

#emisoras-table td {
    padding: 15px 10px;
    vertical-align: middle;
}

/* Información de emisora */
.emisora-info {
    display: flex;
    flex-direction: column;
}

.emisora-nombre {
    font-size: 18px;
    font-weight: bold;
    color: #243049;
    margin-bottom: 5px;
}

.emisora-frecuencia {
    font-size: 16px;
    color: #7CB342;
    font-weight: 600;
}

.emisora-ubicacion {
    color: #666;
}

.emisora-ubicacion .text-muted {
    font-size: 13px;
    color: #999;
    margin-top: 3px;
}

/* Botón de play de emisora - usando el mismo estilo que header-directo-play */
.emisora-play-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #2B2D2E;
    /* Fondo oscuro para que se vea el ícono blanco */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s, opacity 0.3s, background-color 0.3s;
    cursor: pointer;
}

.emisora-play-button:hover {
    transform: scale(1.1);
    background-color: #7CB342;
    /* Naranja al hacer hover */
}

.emisora-play-button:active {
    transform: scale(0.95);
}

/* Estados del botón - usando las mismas imágenes que header-directo-play */
.emisora-play-button.radio-paused {
    background-image: url('../images/headerTop-directoPlayBla.png');
}

.emisora-play-button.radio-playing {
    background-image: url('../images/headerTop-directoPlayNar.png');
}

.emisora-play-button.radio-loading {
    background-image: url('../images/headerTop-directoPlayBla.png');
    opacity: 0.6;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Responsive - Móvil pequeño (< 480px) */
@media (max-width: 480px) {
    .emisora-nombre {
        font-size: 14px;
    }

    .emisora-frecuencia {
        font-size: 13px;
    }

    .emisora-ubicacion .text-muted {
        font-size: 11px;
    }

    .emisora-play-button {
        width: 35px;
        height: 35px;
    }

    #emisoras-table td {
        padding: 8px 3px;
    }
}

/* Responsive - Móvil (480px - 640px) */
@media (min-width: 481px) and (max-width: 640px) {
    .emisora-nombre {
        font-size: 15px;
    }

    .emisora-frecuencia {
        font-size: 14px;
    }

    .emisora-play-button {
        width: 38px;
        height: 38px;
    }

    #emisoras-table td {
        padding: 10px 5px;
    }
}

/* Responsive - Tablet (641px - 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
    .emisora-nombre {
        font-size: 17px;
    }

    .emisora-frecuencia {
        font-size: 15px;
    }

    .emisora-play-button {
        width: 45px;
        height: 45px;
    }

    #emisoras-table td {
        padding: 12px 8px;
    }
}

/* Responsive - Desktop (> 1024px) */
@media (min-width: 1025px) {
    .emisora-nombre {
        font-size: 18px;
    }

    .emisora-frecuencia {
        font-size: 16px;
    }

    .emisora-play-button {
        width: 50px;
        height: 50px;
    }

    #emisoras-table td {
        padding: 15px 10px;
    }
}