/* Global box-sizing para incluir padding y border en el cálculo de ancho y alto */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #2c3e50;
    color: #ecf0f1;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Alinear al inicio en vez de al centro verticalmente */
    height: auto;
    margin: 0;
    padding: 20px; /* Espaciado general */
}

/* Barra de búsqueda */
#searchBar {
    width: 80%;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #e74c3c;
    font-size: 1em;
}

/* Contenedor principal de la radio */
.radio-container {
    text-align: center;
    background-color: #34495e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    width: 100%;
    overflow-y: auto;
}

/* Estilo de cada emisora */
.emisora {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

/* Contenedor de la estación para categorías y favoritos */
.station {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background-color: #e74c3c;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin: 5px 0;
}

.station img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
}

.station span {
    font-size: 1.2em;
}

.station:hover {
    background-color: #c0392b;
}

/* Botón de favorito (estrella) */
.favorite-btn {
    font-size: 1.5em;
    cursor: pointer;
    user-select: none;
    color: gold;
    margin-left: auto; /* Empuja el botón a la derecha */
}


/* Botón de reproducción */
.play-button {
    background: none;
    border: none;
    color: #ecf0f1;
    font-size: 1.2em;
    cursor: pointer;
    margin-left: auto;
}

.play-button:hover {
    color: #bdc3c7;
}

/* Sistema de pestañas para seleccionar categorías */
.tabs {
    display: flex;
    flex-wrap: wrap; /* Permitir que los botones se envuelvan en múltiples líneas si es necesario */
    justify-content: center;
    margin-bottom: 20px;
}

.tab-button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 5px; /* Espaciado entre botones */
    border-radius: 5px;
    flex: 1 1 auto; /* Permitir que los botones se ajusten al espacio disponible */
    min-width: 100px; /* Ancho mínimo para cada botón */
    text-align: center;
}

.tab-button.active {
    background-color: #c0392b;
}

.tab-button:hover {
    background-color: #c0392b;
}

/* Menú para seleccionar el dispositivo de salida de audio */
#audioOutput {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #e74c3c;
    font-size: 1em;
    width: 80%;
}

/* Reproductor de audio */
audio {
    width: 100%;
    margin-top: 20px;
}

/* Botones generales */
button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #c0392b;
}

/* Estilos del footer */
footer {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    background-color: #34495e;
    color: #ecf0f1;
    width: 100%;
    box-shadow: 0px -1px 5px rgba(0, 0, 0, 0.5);
}

footer a {
    color: #ecf0f1 !important; /* Forzar el color blanco */
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Clases adicionales */
.resaltado { 			
    background-color: #BDC3C7; 			
    font-weight: bold; 		
}

.link {
    color: #ecf0f1 !important; /* Forzar el color blanco */
    text-decoration: none;
}
@media (max-width: 600px) {
    .tab-button {
        padding: 8px 12px;
        font-size: 0.9em;
        min-width: 80px;
    }

    #searchBar, #audioOutput {
        width: 100%;
    }
}
