/* Estilos para la cuadrícula de radios */
.mdr-radios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    padding: 20px;
    justify-items: center;
}

/* Estilos de la tarjeta individual */
.mdr-radio-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    width: 100%;
}

.mdr-radio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.mdr-radio-logo {
    max-width: 80px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 5px;
    object-fit: contain;
}

.mdr-radio-item h3 {
    margin: 0;
    font-size: 1.2em;
    color: #333;
    margin-bottom: 5px;
}

/* Estilos para el reproductor fijo en la parte inferior */
#mdr-floating-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1a1a1a;
    color: #fff;
    padding: 10px 20px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

#mdr-floating-player.mdr-hidden {
    transform: translateY(100%);
}

#mdr-floating-player:not(.mdr-hidden) {
    transform: translateY(0);
}

#mdr-player-content {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: space-between;
}

#mdr-audio-element {
    display: none;
}

.mdr-player-controls {
    display: flex;
    align-items: center;
    flex-grow: 1;
    gap: 15px;
    flex-wrap: wrap;
}

#mdr-play-pause-btn {
    background: none !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff"><path d="M8 5v14l11-7z"/></svg>') !important;
    width: 40px !important;
    height: 40px !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border: none !important;
    cursor: pointer !important;
}

#mdr-play-pause-btn.mdr-pause-btn {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff"><path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/></svg>') !important;
}

#mdr-play-pause-btn.mdr-play-btn {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff"><path d="M8 5v14l11-7z"/></svg>') !important;
}

.mdr-volume-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.81 5 3.54 5 6.71s-2.11 5.9-5 6.71v2.06c4.01-.91 7-4.42 7-8.77s-2.99-7.86-7-8.77z"/></svg>') !important;
    width: 20px !important;
    height: 20px !important;
    background-size: cover !important;
}

#mdr-radio-info-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
    min-width: 150px;
}

#mdr-current-radio-name {
    font-size: 1em;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#mdr-current-radio-logo {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    object-fit: contain;
    display: none;
}

#mdr-current-radio-logo.mdr-visible-logo {
    display: block;
}

.mdr-volume-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

#mdr-volume-slider {
    width: 80px;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: #555;
    border-radius: 5px;
    outline: none;
}

#mdr-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: #0073aa;
    border-radius: 50%;
    cursor: pointer;
}

#mdr-volume-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #0073aa;
    border-radius: 50%;
    cursor: pointer;
}

/* Media queries para adaptar el reproductor a pantallas más pequeñas */
@media (max-width: 768px) {
    .mdr-radios-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
}