/* Основные стили радио-плеера */
#drp-radio-sticky-bar {
    position: fixed;
    z-index: 999999;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 50px;
    padding: 10px 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid #e0e0e0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    width: auto;
    min-width: 320px;
}

/* Позиции */
.drp-position-bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.drp-position-bottom-left {
    bottom: 20px;
    left: 20px;
}

.drp-position-bottom-right {
    bottom: 20px;
    right: 20px;
}

.drp-position-top-center {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.drp-position-top-left {
    top: 20px;
    left: 20px;
}

.drp-position-top-right {
    top: 20px;
    right: 20px;
}

.drp-radio-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.drp-radio-title {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

.drp-radio-title strong { color: #d32f2f; }

.drp-radio-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

#drp-radio-play-pause {
    background: #1a1a1a;
    border: none;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50% !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 0;
}

#drp-icon-play {
    margin-left: 3px;
}

#drp-radio-play-pause:hover { 
    background: #d32f2f; 
    transform: scale(1.05); 
}

.drp-radio-status {
    font-size: 10px;
    font-weight: bold;
    color: #d32f2f;
    border: 1px solid #d32f2f;
    padding: 2px 6px;
    border-radius: 4px;
    animation: drp-blink 1.5s infinite;
}

.drp-volume-container { 
    position: relative;
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

#drp-radio-volume {
    width: 80px;
    height: 6px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #d32f2f 0%, #d32f2f 70%, #e0e0e0 70%, #e0e0e0 100%);
    border-radius: 3px;
    outline: none;
    margin: 0;
    padding: 0;
}

/* Стили для WebKit браузеров */
#drp-radio-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #1a1a1a;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s;
}

#drp-radio-volume::-webkit-slider-thumb:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

/* Стили для Firefox */
#drp-radio-volume::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #1a1a1a;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#drp-radio-volume::-moz-range-track {
    background: #e0e0e0;
    height: 6px;
    border-radius: 3px;
}

#drp-radio-volume::-moz-range-progress {
    background: #d32f2f;
    height: 6px;
    border-radius: 3px;
}

.drp-volume-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    white-space: nowrap;
}

.drp-volume-tooltip:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1a1a1a;
}

#drp-radio-volume:hover + .drp-volume-tooltip,
.drp-volume-tooltip.show {
    opacity: 1;
}

.drp-volume-icon {
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s;
}

.drp-volume-icon:hover {
    transform: scale(1.1);
}

.drp-volume-icon.muted {
    opacity: 0.5;
}

@keyframes drp-blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Адаптация для мобильных */
@media (max-width: 480px) {
    #drp-radio-sticky-bar { 
        bottom: 10px !important;
        left: 7px !important;
        right: 7px !important;
        top: auto !important;
        transform: none !important;
        width: calc(100% - 14px) !important;
        min-width: auto !important;
        padding: 8px 15px !important; 
    }
    
    .drp-radio-title { font-size: 12px; }
    
    .drp-radio-content {
        gap: 10px;
    }
    
    #drp-radio-volume {
        width: 60px;
    }
    
    .drp-volume-tooltip {
        display: none;
    }
}

/*my*/
/* Улучшенная адаптация для мобильных */
@media (max-width: 480px) {
    #drp-radio-sticky-bar { 
       
         /*Принудительно прижимаем к низу и растягиваем */
        bottom: 15px !important;
        left: 10px !important;
        right: 10px !important;
        top: auto !important;
        transform: none !important;
        
        /* Сбрасываем фиксированную ширину */
        width: auto !important;
        min-width: 0 !important;
        max-width: calc(100% - 20px) !important;
        
        /* Оптимизируем внутренние отступы */
        padding: 8px 12px !important;
        border-radius: 30px !important; /* Чуть меньше радиус для узких экранов */
    }
    
    .drp-radio-content {
        gap: 10px;
        justify-content: space-between;
    }
    
    .drp-radio-title { 
        font-size: 13px;
        /* Позволяет тексту занимать свободное место, но не вытеснять кнопки */
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px; 
    }
    
    .drp-radio-status {
        font-size: 8px;
        padding: 1px 4px;
    }

    .drp-radio-controls {
        gap: 8px;
    }

    #drp-radio-play-pause {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
    
    /* Скрываем громкость на очень узких экранах, если она мешает, 
       либо просто делаем её еще компактнее */
    #drp-radio-volume {
        width: 50px;
    }
    
    .drp-volume-container {
        gap: 4px;
    }

    .drp-volume-tooltip {
        display: none !important;
    }
}