/* Estilos base */
#venus-radio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #121212 0%, #1a1a1a 100%);
    color: #ffffff;
    border-top: 1px solid #282828;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease;
    height: auto;
}

.player-container {
    position: relative;
    height: auto;
}

/* Player Minimizado (nuevo) */
.player-minimized {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    height: 70px;
    background: linear-gradient(135deg, #121212 0%, #1a1a1a 100%);
    border-top: 1px solid #282828;
}

.minimized-left {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.minimized-cover {
    width: 50px;
    height: 50px;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
}

.minimized-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

#venus-radio-player.playing .minimized-cover img {
    animation: rotate 20s linear infinite;
}

.minimized-track-info {
    flex: 1;
    min-width: 0;
    margin-right: 15px;
}

.minimized-title {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.minimized-artist {
    font-size: 12px;
    color: #b3b3b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.minimized-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.minimized-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.minimized-btn {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 14px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.minimized-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.minimized-main-btn {
    background: linear-gradient(135deg, #ff4081 0%, #ff79b0 100%);
    color: white;
    width: 36px;
    height: 36px;
    font-size: 14px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(255, 64, 129, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.minimized-main-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(255, 64, 129, 0.5);
}

.minimized-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    gap: 15px;
}

.minimized-vote-buttons {
    display: flex;
    gap: 5px;
}

.minimized-vote-btn {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 12px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.minimized-vote-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#like-btn-minimized.active, #like-btn-minimized:hover {
    color: #1db954;
}

#dislike-btn-minimized.active, #dislike-btn-minimized:hover {
    color: #ff4081;
}

.minimized-volume {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 120px;
}

#volume-slider-minimized {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    background: #404040;
    border-radius: 2px;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
    cursor: pointer;
}

#volume-slider-minimized:hover {
    opacity: 1;
}

#volume-slider-minimized::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s;
}

#volume-slider-minimized::-webkit-slider-thumb:active {
    transform: scale(1.2);
}

#mute-btn-minimized {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 14px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

#mute-btn-minimized:hover {
    color: #ffffff;
}

.expand-btn {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 16px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.expand-btn:hover {
    color: #ffffff;
}

/* Player Expandido Mejorado */
.player-expanded {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    min-height: 400px;
    background: linear-gradient(135deg, #121212 0%, #1a1a1a 100%);
    display: none;
}

.expanded-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid #282828;
}

.station-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.station-logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.station-name h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #ff4081;
}

.live-indicator {
    background-color: #ff4081;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: 10px;
}

.minimize-btn {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 16px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.minimize-btn:hover {
    color: #ffffff;
}

.expanded-content {
    display: flex;
    flex: 1;
    padding: 20px;
    gap: 30px;
    flex-wrap: wrap;
}

.main-player-section {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 400px;
}

.cover-art-expanded {
    position: relative;
    width: 280px;
    height: 280px;
    margin-bottom: 25px;
    flex-shrink: 0;
}

.cover-art-expanded img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

#venus-radio-player.playing .cover-art-expanded img {
    transform: scale(1.02);
}

.vinyl-ring-expanded {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#venus-radio-player.playing .vinyl-ring-expanded {
    opacity: 1;
    animation: rotate 20s linear infinite;
}

.playback-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

#venus-radio-player:not(.playing) .playback-indicator {
    opacity: 1;
}

.playback-indicator i {
    font-size: 24px;
    color: #ffffff;
}

.track-info-expanded {
    text-align: center;
    margin-bottom: 25px;
    width: 100%;
    padding: 0 10px;
}

.title-expanded {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.artist-expanded {
    font-size: 18px;
    color: #b3b3b3;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.album-expanded {
    font-size: 14px;
    color: #888;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.progress-container-expanded {
    width: 100%;
    max-width: 500px;
    margin-bottom: 25px;
    padding: 0 10px;
}

.progress-bar-expanded {
    width: 100%;
    height: 6px;
    background-color: #404040;
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-expanded {
    height: 100%;
    background: linear-gradient(90deg, #ff4081 0%, #ff79b0 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

.time-info-expanded {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #b3b3b3;
}

.player-controls-expanded {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.vote-btn-expanded, .secondary-btn-expanded {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 20px;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.vote-btn-expanded:hover, .secondary-btn-expanded:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#like-btn-expanded.active, #like-btn-expanded:hover {
    color: #1db954;
}

#dislike-btn-expanded.active, #dislike-btn-expanded:hover {
    color: #ff4081;
}

.secondary-btn-expanded:hover {
    color: #ffffff;
}

.main-btn-expanded {
    background: linear-gradient(135deg, #ff4081 0%, #ff79b0 100%);
    color: white;
    width: 70px;
    height: 70px;
    font-size: 28px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 15px rgba(255, 64, 129, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.main-btn-expanded:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 64, 129, 0.5);
}

.volume-control-expanded {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 200px;
}

#volume-slider-expanded {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    background: #404040;
    border-radius: 3px;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
    cursor: pointer;
}

#volume-slider-expanded:hover {
    opacity: 1;
}

#volume-slider-expanded::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s;
}

#volume-slider-expanded::-webkit-slider-thumb:active {
    transform: scale(1.2);
}

#mute-btn-expanded {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 18px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

#mute-btn-expanded:hover {
    color: #ffffff;
}

.additional-info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
    min-width: 300px;
    border-left: 1px solid #282828;
    padding-left: 30px;
}

.program-info h4, .social-share-expanded h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #ff4081;
    font-weight: 600;
}

.program-details div {
    margin-bottom: 8px;
    font-size: 14px;
}

#program-name {
    font-weight: 600;
    color: #ffffff;
}

#program-host {
    color: #b3b3b3;
}

#program-time {
    color: #1db954;
    font-style: italic;
}

.vote-display-expanded {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.likes-count, .dislikes-count {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    padding: 10px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
}

.likes-count {
    color: #1db954;
}

.dislikes-count {
    color: #ff4081;
}

.social-share-expanded .share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn-expanded {
    color: #b3b3b3;
    font-size: 18px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.05);
}

.share-btn-expanded:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.venue-link-expanded a {
    color: #b3b3b3;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
    padding: 10px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
}

.venue-link-expanded a:hover {
    color: #ff4081;
    background-color: rgba(255, 255, 255, 0.1);
}

.venue-link-expanded i {
    font-size: 16px;
}

/* Contenedor de anuncios de video */
.adsense-video-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 12px;
    overflow: hidden;
    display: none;
    z-index: 10001;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.adsense-video-content {
    width: 100%;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adsense-video-content ins {
    display: block;
    width: 100%;
    height: 100%;
}

/* Fade message */
.fade-message {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff4081;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 64, 129, 0.4);
}

.fade-message.show {
    opacity: 1;
}

/* Estilos para anuncios de AdSense */
.adsense-ad-container {
    position: relative;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
    transition: opacity 0.3s ease;
}

.adsense-ad-container.horizontal {
    height: 90px;
    margin: 0 15px;
}

.adsense-ad-container.vertical {
    height: 250px;
    margin: 20px 0;
}

.adsense-ad-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adsense-ad-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adsense-ad-content ins {
    display: block;
    width: 100%;
    height: 100%;
}

/* Animaciones */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.2); opacity: 0; }
}

.vote-animation {
    animation: pulse 0.5s ease;
}

/* Reproductor móvil horizontal */
.mobile-play-button {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ff4081 0%, #ff79b0 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(255, 64, 129, 0.4);
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 1200px) {
    .expanded-content {
        flex-direction: column;
        gap: 25px;
    }
    
    .additional-info-section {
        border-left: none;
        border-top: 1px solid #282828;
        padding-left: 0;
        padding-top: 25px;
        min-width: auto;
        width: 100%;
    }
    
    .cover-art-expanded {
        width: 240px;
        height: 240px;
    }
    
    .social-share-expanded .share-buttons {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .expanded-content {
        padding: 15px;
    }
    
    .cover-art-expanded {
        width: 200px;
        height: 200px;
    }
    
    .title-expanded {
        font-size: 22px;
    }
    
    .artist-expanded {
        font-size: 16px;
    }
    
    .player-controls-expanded {
        gap: 15px;
    }
    
    .vote-btn-expanded, .secondary-btn-expanded {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .main-btn-expanded {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .additional-info-section {
        gap: 20px;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .player-expanded {
        min-height: 100vh;
        overflow-y: auto;
    }
    
    .expanded-content {
        flex-direction: row;
        padding: 15px;
    }
    
    .main-player-section {
        min-height: auto;
        justify-content: flex-start;
        padding-top: 20px;
    }
    
    .cover-art-expanded {
        width: 150px;
        height: 150px;
        margin-bottom: 15px;
    }
    
    .track-info-expanded {
        margin-bottom: 15px;
    }
    
    .title-expanded {
        font-size: 18px;
    }
    
    .artist-expanded {
        font-size: 14px;
    }
    
    .album-expanded {
        font-size: 12px;
    }
    
    .progress-container-expanded {
        margin-bottom: 15px;
    }
    
    .player-controls-expanded {
        margin-bottom: 20px;
        gap: 10px;
    }
    
    .additional-info-section {
        border-left: 1px solid #282828;
        border-top: none;
        padding-left: 20px;
        padding-top: 0;
        min-width: 200px;
    }
    
    /* Mostrar botón de play en móviles en orientación horizontal */
    .mobile-play-button {
        display: flex;
    }
}

@media (max-width: 768px) {
    .player-minimized {
        padding: 8px 12px;
        height: 60px;
    }
    
    .minimized-cover {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    
    .minimized-title {
        font-size: 12px;
    }
    
    .minimized-artist {
        font-size: 11px;
    }
    
    .minimized-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .minimized-main-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .minimized-vote-btn {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .minimized-volume {
        width: 100px;
        display: none;
    }
    
    .player-expanded {
        min-height: auto;
    }
    
    .expanded-content {
        padding: 15px;
    }
    
    .cover-art-expanded {
        width: 180px;
        height: 180px;
    }
    
    .title-expanded {
        font-size: 20px;
    }
    
    .artist-expanded {
        font-size: 16px;
    }
    
    .player-controls-expanded {
        gap: 15px;
    }
    
    .vote-btn-expanded, .secondary-btn-expanded {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .main-btn-expanded {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .additional-info-section {
        gap: 20px;
    }
    
    .social-share-expanded .share-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .minimized-center {
        display: none;
    }
    
    .minimized-vote-buttons {
        display: none;
    }
    
    .expanded-header {
        padding: 10px 15px;
    }
    
    .station-name h3 {
        font-size: 16px;
    }
    
    .cover-art-expanded {
        width: 150px;
        height: 150px;
    }
    
    .title-expanded {
        font-size: 18px;
    }
    
    .artist-expanded {
        font-size: 14px;
    }
    
    .album-expanded {
        font-size: 12px;
    }
    
    .player-controls-expanded {
        gap: 10px;
    }
    
    .vote-btn-expanded, .secondary-btn-expanded {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .main-btn-expanded {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .program-info h4, .social-share-expanded h4 {
        font-size: 14px;
    }
    
    .program-details div {
        font-size: 12px;
    }
    
    .likes-count, .dislikes-count {
        font-size: 14px;
    }
    
    .share-btn-expanded {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .additional-info-section {
        gap: 15px;
    }
}

@media (max-width: 360px) {
    .cover-art-expanded {
        width: 130px;
        height: 130px;
    }
    
    .title-expanded {
        font-size: 16px;
    }
    
    .artist-expanded {
        font-size: 13px;
    }
    
    .player-controls-expanded {
        gap: 8px;
    }
    
    .vote-btn-expanded, .secondary-btn-expanded {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .main-btn-expanded {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}