/*
 * ElshadaiFM Radio Player Styles
 * Modern sticky radio player with Royal Blue and Golden Yellow theme
 */

/* ==========================================================================
   RADIO PLAYER STYLES
   ========================================================================== */

.radio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    color: #333333;
    z-index: 9999;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.player-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 100%;
    min-height: 60px;
    position: relative;
}

/* Album Art / Logo */
.player-artwork {
    flex-shrink: 0;
}

.artwork-image {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, #14539a, #0d3a6b);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.artwork-image .logo-icon {
    font-size: 20px;
    filter: grayscale(1) brightness(2);
}

/* Main Player Section */
.player-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    max-width: 33%;
}

.track-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.track-title {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.track-artist {
    font-size: 12px;
    color: #666666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* Play Button */
.play-button {
    width: 40px;
    height: 40px;
    border: none;
    background: #14539a;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
    align-self: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.play-button:hover {
    background: #0d3a6b;
    transform: translateX(-50%) scale(1.05);
}

.play-button svg {
    margin-left: 1px; /* Slight offset for play icon visual balance */
}

.pause-icon svg {
    margin-left: 0; /* No offset for pause icon */
}

/* Right Section */
.player-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    max-width: 33%;
    justify-content: flex-end;
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-toggle {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    color: #666666;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.volume-toggle:hover {
    background: #f5f5f5;
    color: #333333;
}

.volume-slider {
    width: 70px;
    height: 4px;
    background: #e5e5e5;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #14539a;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #14539a;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.player-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    color: #666666;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.action-btn:hover {
    background: #f5f5f5;
    color: #333333;
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 768px) {
    .player-content {
        padding: 10px 16px;
        gap: 12px;
    }
    
    .artwork-image {
        width: 40px;
        height: 40px;
    }
    
    .artwork-image .logo-icon {
        font-size: 18px;
    }
    
    .play-button {
        width: 36px;
        height: 36px;
    }
    
    .volume-slider {
        width: 60px;
    }
}

@media (max-width: 600px) {
    .player-volume {
        display: none;
    }
    
    .action-btn:not(.share-listening) {
        display: none;
    }
    
    .player-right {
        max-width: auto;
    }
}

@media (max-width: 480px) {
    .player-content {
        gap: 8px;
    }
    
    .track-title {
        font-size: 13px;
    }
    
    .track-artist {
        font-size: 11px;
    }
}

/* Adjust body padding to account for sticky player */
body {
    padding-bottom: 72px;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 68px;
    }
}