:root {
    --primary-color: #003366;
    --secondary-color: #336699;
    --accent-color: #6699cc;
    --text-color: #333333;
    --text-light: #666666;
    --background-color: #fff6ef;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --highlight-color: #ff6600;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    padding: 0;
}

/* Estilos del menú de navegación */
.navigation {
    background: rgba(255, 255, 255, 0.85);
    font-size: 22px;
    font-weight: bold;
    color: rgb(129, 131, 13);
    padding: 8px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-nav {
    align-items: center;
}

.vivo {
    /* la opcion EN VIVO */
    padding-left: 2.5em;
    color: #ff8800;
    font-size: 15px;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 2.5px;
    text-shadow: #7a7a7a 1px 3px 0, #aba8a8 1px 8px 5px;
}

.menulist {
    padding-left: 0.8em;
    color: #023466;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    margin-left: 1.6em;
}

/*  el efecto de subrayado del menu  */
.hover-underline-animation {
    display: inline-block;
    position: relative;
    color: #015077;
}

.hover-underline-animation:after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ff8800;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.hover-underline-animation:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.navbar-toggler {
    border: none;
    padding: 3px 6px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 52, 102, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.2em;
    height: 1.2em;
}

/* Estilos del reproductor - Versión compacta */
.radio-player {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
    max-width: 1020px;
    margin: 20px auto;
}

.player-header {
    background-color: #0f5499;
    color: white;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.station-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.station-logo {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
}

.station-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.station-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
}

.station-slogan {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 3px;
}

.listeners {
    text-align: right;
    font-size: 0.8rem;
}

.listeners-count {
    font-weight: 600;
    font-size: 1rem;
    margin-top: 3px;
}

.player-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 25px;
}

.now-playing {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.album-art-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.album-art {
    width: 220px;
    height: 220px;
    /* border-radius: 50%; para poner la caratula redonda se pone 50% */
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    /*animation: rotateAlbum 20s linear infinite;  la animacion
    animation-play-state: paused; */
    z-index: 2;
}

.album-art.playing {
    animation-play-state: running;
}

@keyframes rotateAlbum {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Barras de onda verticales */
.wave-bars {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 60px;
    gap: 4px;
    margin-top: 15px;
}

.wave-bar {
    width: 6px;
    background: var(--primary-color);
    border-radius: 3px;
    animation: waveBar 1.5s ease-in-out infinite;
    animation-play-state: paused;
}

.wave-bars.playing .wave-bar {
    animation-play-state: running;
}

/* Animaciones individuales para cada barra */
.wave-bar:nth-child(1) { animation-delay: 0s; height: 10px; }
.wave-bar:nth-child(2) { animation-delay: 0.1s; height: 20px; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; height: 30px; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; height: 40px; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; height: 50px; }
.wave-bar:nth-child(6) { animation-delay: 0.5s; height: 40px; }
.wave-bar:nth-child(7) { animation-delay: 0.6s; height: 30px; }
.wave-bar:nth-child(8) { animation-delay: 0.7s; height: 20px; }
.wave-bar:nth-child(9) { animation-delay: 0.8s; height: 10px; }
.wave-bar:nth-child(10) { animation-delay: 0.9s; height: 20px; }
.wave-bar:nth-child(11) { animation-delay: 1.0s; height: 30px; }
.wave-bar:nth-child(12) { animation-delay: 1.1s; height: 40px; }
.wave-bar:nth-child(13) { animation-delay: 1.2s; height: 50px; }
.wave-bar:nth-child(14) { animation-delay: 1.3s; height: 40px; }
.wave-bar:nth-child(15) { animation-delay: 1.4s; height: 30px; }

@keyframes waveBar {
    0%, 100% {
        transform: scaleY(0.5);
        opacity: 0.7;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.track-info {
    text-align: center;
}

.track-artist {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 6px;
    min-height: 1.4em;
}

.track-title {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 4px;
    min-height: 1.2em;
}

.track-album {
    font-size: 0.85rem;
    color: var(--text-light);
    min-height: 1.1em;
}

.player-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.control-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.control-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.play-btn {
    width: 50px;
    height: 50px;
    background-color: var(--highlight-color);
}

.play-btn:hover {
    background-color: #e55c00;
}

.control-btn i {
    font-size: 1rem;
}

.play-btn i {
    font-size: 1.2rem;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.volume-icon {
    font-size: 1rem;
    color: var(--primary-color);
}

.volume-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 5px;
    border-radius: 4px;
    background: var(--border-color);
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.player-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px;
    background-color: rgba(0, 51, 102, 0.05);
    border-radius: 6px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #4CAF50;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.status-text {
    font-size: 0.8rem;
    color: var(--text-light);
}

.player-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.current-info {
    background-color: rgba(0, 51, 102, 0.03);
    border-radius: 6px;
    padding: 16px;
}

.info-header {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.info-body {
    line-height: 1.6;
    font-size: 0.9rem;
}

.info-body span {
    display: block;
    margin-bottom: 4px;
}

.recent-tracks {
    background-color: rgba(0, 51, 102, 0.03);
    border-radius: 6px;
    padding: 16px;
    max-height: 350px;
    overflow-y: auto;
}

.recent-header {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.track-list {
    list-style: none;
}

.track-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.track-item:last-child {
    border-bottom: none;
}

.track-cover {
    width: 35px;
    height: 35px;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
}

.track-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-details {
    flex: 1;
}

.track-artist-sm {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-color);
}

.track-title-sm {
    font-size: 0.75rem;
    color: var(--text-light);
}

.player-footer {
    background-color: #0f5499;
    color: white;
    padding: 12px 25px;
    text-align: center;
    font-size: 0.75rem;
}

.oculto {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .player-body {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 18px;
    }
    
    .player-header {
        padding: 12px 18px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .listeners {
        text-align: center;
    }
    
    .station-name {
        font-size: 1.3rem;
    }
    
    .album-art {
        width: 180px;
        height: 180px;
    }
    
    .wave-bars {
        height: 50px;
    }
    
    .wave-bar {
        width: 5px;
    }
    
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        padding: 12px;
        border-radius: 6px;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 8px;
    }
    
    .player-body {
        padding: 15px;
    }
    
    .controls {
        gap: 8px;
    }
    
    .control-btn {
        width: 38px;
        height: 38px;
    }
    
    .play-btn {
        width: 45px;
        height: 45px;
    }
    
    .album-art {
        width: 150px;
        height: 150px;
    }
    
    .wave-bars {
        height: 40px;
        gap: 3px;
    }
    
    .wave-bar {
        width: 4px;
    }
    
    .menulist {
        margin-left: 1em;
        font-size: 12px;
    }
    
    .vivo {
        padding-left: 1.5em;
        font-size: 13px;
    }
}
/* para ocultar "comprar este album" */
a.ccbuy {
    visibility: hidden !important;
}
/* aqui para quitar la caratula pequeña y alinear hacia la derecha un poco*/
.cccover {
    display:none !important;
}

.cctrack .ccdetails_withcover {
    margin-left: 20px !important;
}
/* ********** */
