/*
 * Player Nexon Styles - Diseño basado en radiohd.es
 */

/* Contenedor principal del reproductor */
.player-nexon-container {
    font-family: 'Inter', sans-serif;
    max-width: 600px;
    margin: 30px auto;
    background-color: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    color: #f0f0f0;
    display: flex;
    flex-direction: column;
}

/* Encabezado con pestañas */
.player-nexon-header {
    display: flex;
    justify-content: center;
    padding: 15px;
    background-color: #2a2a2a;
    border-bottom: 1px solid #3a3a3a;
}

.player-nexon-tab {
    background: none;
    border: none;
    color: #a0a0a0;
    padding: 10px 20px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.player-nexon-tab:hover {
    background-color: #3a3a3a;
    color: #ffffff;
}

.player-nexon-tab.active {
    background: linear-gradient(135deg, #007bff, #8a2be2); /* Degradado azul-púrpura */
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Contenido de las pestañas */
.player-nexon-content {
    padding: 20px;
}

.player-nexon-tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.player-nexon-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Controles de radio */
.radio-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    padding: 15px 0;
}

.player-button {
    background: linear-gradient(135deg, #007bff, #8a2be2); /* Degradado para el botón */
    color: #ffffff;
    border: none;
    border-radius: 8px; /* Cuadrado con esquinas redondeadas */
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.player-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
}

.radio-info {
    flex-grow: 1;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 15px;
}

.album-art-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-color: #333;
    object-fit: cover;
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.song-details {
    display: flex;
    flex-direction: column;
}

.station-name {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    color: #f0f0f0;
    margin-bottom: 5px;
}

.current-song-title {
    display: block;
    font-size: 0.9em;
    color: #a0a0a0;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.volume-control i {
    font-size: 1.2em;
    color: #a0a0a0;
}

#volume-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #3a3a3a;
    border-radius: 5px;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
    cursor: pointer;
}

#volume-slider:hover {
    opacity: 1;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

#volume-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Estilos específicos para el reproductor de TV */
.tv-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 8px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
}

.tv-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.tv-placeholder-message {
    text-align: center;
    color: #a0a0a0;
    padding: 50px 20px;
    font-size: 1.1em;
    line-height: 1.5;
}

/* Responsividad */
@media (max-width: 768px) {
    .player-nexon-container {
        margin: 15px;
    }

    .radio-controls {
        flex-direction: column;
        gap: 15px;
    }

    .player-button {
        width: 50px;
        height: 50px;
        font-size: 1.5em;
    }

    .radio-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .album-art-placeholder {
        width: 80px;
        height: 80px;
    }

    .station-name {
        font-size: 1.3em;
    }

    .volume-control {
        width: 100%;
        justify-content: center;
    }
}