* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: rgba(218, 165, 32, 0.3);
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
}

.container-fluid {
    flex: 1; /* Asegura que el contenedor principal ocupe todo el espacio disponible */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.logo {
    max-width: 100%;
    height: auto;
}

/* Estilos para el contenedor exclusivo de la imagen */
.container-artwork {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 225px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.np_track_artwork {
    width: 100%;
    -webkit-box-shadow: -1px -1px 29px -1px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: -1px -1px 29px -1px rgba(0, 0, 0, 0.75);
    box-shadow: -1px -1px 29px -1px rgba(0, 0, 0, 0.75);
    transition: 1s;
}

.np_track_artwork img {
    width: 100%;
    height: auto;
    display: block; /* Asegura que la imagen no tenga margen inferior */
}

#player {
    margin-top: 20px;
    background-color: #ad8a1f; /* Fondo inicial */
    border: 2px solid #003333;
    color: #003333; /* Color del texto para mayor contraste */
    font-size: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.3s, color 0.3s, border-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

@media (hover: hover) {
    #player:hover {
        opacity: 0.5; /* Opacidad al pasar el ratón */
        color: #003333; /* Mantener el color del texto */
        border-color: #003333;
    }
}

#player:focus {
    outline: none;
}

.volume-control-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

#volumeControl {
    appearance: none; /* Propiedad estándar */
    -webkit-appearance: none; /* Compatibilidad con navegadores WebKit */
    width: 125%;
    height: 8px;
    background: linear-gradient(to right, #003333 80%, #ccc 80%);
    outline: none;
    opacity: 0.9;
    transition: opacity .2s;
    margin: 0 10px;
    border-radius: 10px;
}

#volumeControl::-webkit-slider-thumb {
    appearance: none; /* Propiedad estándar */
    -webkit-appearance: none; /* Compatibilidad con navegadores WebKit */
    width: 16px;
    height: 16px;
    background: #003333;
    cursor: pointer;
    border-radius: 50%;
}

#volumeControl:hover {
    opacity: 1;
}

#volumeControl::-webkit-slider-thumb {
    -webkit-appearance: none; /* Quitar el estilo predeterminado de los navegadores webkit */
    appearance: none;
    width: 16px;
    height: 16px;
    background: #003333;
    cursor: pointer;
    border-radius: 50%;
}

#volumeControl::-moz-range-thumb,
#volumeControl::-ms-thumb {
    width: 16px;
    height: 16px;
    background: #003333;
    cursor: pointer;
    border-radius: 50%;
}

.volume-button {
    background: none;
    border: none;
    color: #003333;
    font-size: 26px;
    cursor: pointer;
    padding: 0 10px;
}

#np_current_artist {
    margin-top: 16px;
    color: #003333;
    text-align: center;
    font-size: 100%;
    font-weight: bold;
}

#np_current_title {
    margin-top: 5px;
    color: #003333;
    text-align: center;
    font-size: 100%;
    font-weight: normal;
}

.redes ul {
    list-style: none;
    display: flex;
    margin-top: 30px;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 0;
}

.redes ul li a {
    color: #DAA520;
    text-decoration: none;
    transition: 0.5s;
}

.redes ul li a:hover {
    opacity: 0.5;
}

.redes ul li a i {
    width: 40px;
    height: 40px;
    border: 2px solid #003333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

#footer {
    background-color: transparent; /* Fondo transparente */
    color: #003333; /* Color de texto oscuro */
    text-align: center;
    padding: 10px 0;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

#footer a {
    color: #003333; /* Color del enlace */
    text-decoration: none; /* Sin subrayado */
    font-weight: 600;
    transition: opacity 0.3s ease; /* Transición suave para opacidad */
}

#footer a:hover {
    opacity: 0.5; /* Opacidad al pasar el ratón */
}

@media (max-width: 600px) {
    #footer {
        font-size: 14px;
        padding: 8px 0;
    }
}

/* Banner PWA Install */
#install-banner {
    display: none; /* Inicialmente oculto */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #DAA520 !important; /* Color verde para el fondo */
    color: #003333; /* Color de texto */
    padding: 16px;
    text-align: center;
    z-index: 1000;
    font-family: Montserrat, sans-serif;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3); /* Sombra sutil para destacar */
}

#install-banner p {
    margin: 0;
    font-size: 14px;
}

#install-button,
#dismiss-button {
    background-color: #003333; /* Color de fondo del botón */
    color: #DAA520; /* Color de texto del botón */
    border: none;
    padding: 8px 16px;
    font-size: 12px;
    font-family: Montserrat, sans-serif;
    cursor: pointer;
    border-radius: 4px;
    margin: 0 5px;
    margin-top: 10px; /* Espacio adicional entre el mensaje y los botones */
    transition: background-color 0.3s, color 0.3s;
}

#install-button:hover,
#dismiss-button:hover {
    background-color: #DAA520; /* Fondo invertido al pasar el ratón */
    color: #003333; /* Texto invertido al pasar el ratón */
}

/* Popup: oculto por defecto */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: auto;
}

/* Contenedor del contenido del popup */
.popup-content {
    position: relative;
    margin: auto;
    top: 20px;
    background-color: #cce7eb;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
    width: 95%;
    max-width: 600px;
}

@media (min-width: 768px) {
    .popup-content {
        width: 60%;
        max-width: 500px;
    }
}

@media (max-width: 767px) {
    .popup-content {
        width: 90%;
        margin: 10px auto;
    }
}

/* Scroll personalizado */
.popup-content::-webkit-scrollbar {
    width: 8px;
}
.popup-content::-webkit-scrollbar-thumb {
    background-color: #007887;
    border-radius: 4px;
}
.popup-content::-webkit-scrollbar-track {
    background: #cce7eb;
}

/* Botón de cierre del popup */
.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

/* Selector de días con scroll horizontal */
.day-selector-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.day-selector-wrapper::-webkit-scrollbar {
    display: none;
}

/* Estilos de los botones de día */
.day-selector {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
}
.day-selector button {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 14px;
    border: 2px solid #A0CED4;
    background: #007887;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s, border-color 0.3s;
}
.day-selector button:hover,
.day-selector button:focus {
    background-color: #005b63;
    border-color: #A0CED4;
}
.day-selector button.active {
    background-color: #A0CED4;
    color: #007887;
    font-weight: bold;
}

/* Lista de programas */
#programList {
    margin-top: 20px;
}
.program-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
}
.program-item:last-child {
    border-bottom: none;
}
.program-time {
    font-size: 12px;
    color: #007887;
    text-align: center;
    min-width: 50px;
    margin-right: 10px;
    padding: 0 6px;
}
.program-item div {
    display: flex;
    flex-direction: column;
}
.program-name {
    font-weight: bold;
    color: #007887;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.program-name a {
    color: #007887;
    text-decoration: none;
}
.program-name a:hover {
    text-decoration: underline;
}
.program-host-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}
.program-host {
    font-size: 12px;
    color: #007887;
}

/* Botón de programación */
.program-button {
    background-color: transparent;
    color: #003333;
    padding: 10px 2px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 10px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}
.program-button:hover,
.program-button:active {
    color: #DAA520;
}

#programmingTitle {
    color: #007887;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
}

.program-item.current {
    background-color: #A0CED4;
    color: white;
    transition: background-color 0.5s ease;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 50% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0.8;
    }
}

/* Botón de podcast */
.podcast-button {
    display: inline-block;
    background-color: #007887;
    color: white;
    padding: 4px 8px;
    margin-top: 5px;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
    transition: background-color 0.3s;
    position: absolute;
    right: 20px;
}
.podcast-button:hover {
    background-color: #005b63;
}
