/* Hide audio element completely */
.srp-radio-player audio {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

/* Elementor compatibility for background controls */
.elementor-widget-radio_player .srp-radio-player {
    background-color: inherit !important;
    background-image: inherit !important;
    background-size: inherit !important;
    background-repeat: inherit !important;
    background-position: inherit !important;
}

/* Elementor compatibility for subtitle color */
.elementor-widget-radio_player .srp-subtitle {
    color: inherit !important;
}

.srp-radio-player {
    display: inline-block;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    position: relative;
}

.srp-radio-player:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.srp-player-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.srp-player-container.right {
    flex-direction: row;
}

.srp-player-container.left {
    flex-direction: row-reverse;
}

.srp-play-button {
    width: 50px;
    height: 50px;
    border: 2px solid #ff0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: white;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.srp-play-triangle {
    width: 0;
    height: 0;
    border-left: 12px solid #ff0000;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    margin-left: 3px;
    transition: all 0.3s ease;
}

.srp-pause-bars {
    display: none;
    width: 16px;
    height: 16px;
    position: relative;
}

.srp-pause-bars::before,
.srp-pause-bars::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 16px;
    background-color: var(--pause-color, #ff0000);
    transition: all 0.3s ease;
}

.srp-pause-bars::before {
    left: 2px;
}

.srp-pause-bars::after {
    right: 2px;
}

.srp-text-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.srp-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: #ff0000;
    line-height: 1.2;
}

.srp-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e3a8a;
    line-height: 1.2;
}

/* Playing state */
.srp-radio-player.playing .srp-play-button {
    background: #ff0000;
}

.srp-radio-player.playing .srp-play-triangle {
    display: none;
}

.srp-radio-player.playing .srp-pause-bars {
    display: block;
}

.srp-radio-player.playing .srp-pause-bars::before,
.srp-radio-player.playing .srp-pause-bars::after {
    background-color: white;
}

/* Loading state */
.srp-radio-player.loading .srp-play-button {
    animation: pulse 1.5s infinite;
}

/* Error state */
.srp-radio-player.error .srp-play-button {
    border-color: #dc3545;
    background: #dc3545;
}

.srp-radio-player.error .srp-play-triangle {
    border-left-color: white;
}

.srp-radio-player.error .srp-pause-bars::before,
.srp-radio-player.error .srp-pause-bars::after {
    background-color: white;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive design */
@media (max-width: 480px) {
    .srp-radio-player {
        padding: 12px 15px;
    }
    
    .srp-play-button {
        width: 40px;
        height: 40px;
    }
    
    .srp-play-triangle {
        border-left-width: 10px;
        border-top-width: 6px;
        border-bottom-width: 6px;
    }
    
    .srp-pause-bars {
        width: 12px;
        height: 12px;
    }
    
    .srp-pause-bars::before,
    .srp-pause-bars::after {
        width: 2px;
        height: 12px;
    }
    
    .srp-pause-bars::before {
        left: 1px;
    }
    
    .srp-pause-bars::after {
        right: 1px;
    }
    
    .srp-subtitle {
        font-size: 12px;
    }
    
    .srp-title {
        font-size: 14px;
    }
}

/* All Streams Display */
.srp-all-streams {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.srp-stream-item {
    display: flex;
    justify-content: center;
}

.srp-all-streams .srp-radio-player {
    width: 100%;
    max-width: 400px;
}
