/**
 * Radio Player Styles
 * Ella Radio Theme
 */

.radio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-player);
    background: #e20717;
    border-top: none;
    box-shadow: 0 -2px 10px rgba(60, 46, 37, 0.08);
}

.player-container {
    max-width: 1398px;
    width: 100%;
    margin: 0 auto;
    padding: 0.75rem 2rem;
}

@media (min-width: 1440px) {
    .player-container {
        padding: 0.75rem 0;
    }
}

@media (max-width: 768px) {
    .player-container {
        padding: 0.75rem 1rem;
    }
}

.player-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: space-between;
}

/* Player Info - Layout wie On-Air-Box */
.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0; /* Allow text truncation */
}

.player-cover {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: calc(var(--radius) * 0.5);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.player-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.player-cover-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

.player-text {
    flex: 1;
    min-width: 0;
}

.player-song {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.125rem 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-artist {
    font-size: 0.8125rem;
    color: #ffffff;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Player Time - wie On-Air-Box */
.player-time {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #ffffff;
    font-size: 0.75rem;
}

.player-time .time-icon {
    width: 16px;
    height: 16px;
}

.player-time .time-text {
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
}

/* Player Controls */
.player-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.player-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    border-radius: calc(var(--radius) * 0.5);
    transition: var(--transition-smooth);
}

.player-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.player-btn.player-play-pause:hover {
    background: #ffffff !important;
    color: #e20717 !important;
    transform: scale(1.05);
}

.player-play-pause {
    width: 48px;
    height: 48px;
    background: #ffffff !important;
    border: 2px solid #ffffff !important;
    border-radius: 50% !important;
    color: #e20717 !important;
    position: relative;
}

.player-play-pause:hover {
    background: #ffffff !important;
    color: #e10717 !important;
    box-shadow: 0 4px 12px rgba(225, 7, 23, 0.4);
    transform: scale(1.08);
}

.player-play-pause .play-icon,
.player-play-pause .pause-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

.player-play-pause .pause-icon {
    opacity: 0;
}

.player-play-pause.playing .play-icon {
    opacity: 0;
}

.player-play-pause.playing .pause-icon {
    opacity: 1;
}

/* pulse-glow animation removed */

/* Volume Control */
.player-volume {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-toggle {
    position: relative;
}

.volume-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease-in-out;
}

.volume-muted {
    opacity: 0;
}

.volume-toggle.muted .volume-high {
    opacity: 0;
}

.volume-toggle.muted .volume-muted {
    opacity: 1;
}

.volume-slider {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.volume-slider::-webkit-slider-thumb:hover {
    background: #e10717;
    box-shadow: 0 0 10px rgba(225, 7, 23, 0.5);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.volume-slider::-moz-range-thumb:hover {
    background: #e10717;
    box-shadow: 0 0 10px rgba(225, 7, 23, 0.5);
}

/* Social Media Links */
.player-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.player-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: #ffffff;
    text-decoration: none;
    border-radius: calc(var(--radius) * 0.5);
    transition: var(--transition-smooth);
}

.player-social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: scale(1.1);
}

.player-social-link svg {
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .player-content {
        gap: 0.75rem;
    }
    
    .player-cover {
        width: 48px;
        height: 48px;
    }
    
    .player-song {
        font-size: 0.875rem;
    }
    
    .player-artist {
        font-size: 0.75rem;
    }
    
    .player-btn {
        width: 36px;
        height: 36px;
    }
    
    .player-play-pause {
        width: 44px;
        height: 44px;
    }
    
    .volume-slider {
        display: none;
    }
}

@media (max-width: 480px) {
    .player-controls {
        gap: 0.25rem;
    }
    
    .player-prev,
    .player-next {
        display: none;
    }
    
    .player-social {
        gap: 0.375rem;
    }
    
    .player-social-link {
        width: 32px;
        height: 32px;
    }
    
    .player-social-link svg {
        width: 18px;
        height: 18px;
    }
}

/* Loading State - DISABLED */
.player-loading .player-play-pause {
    /* Loading state removed */
}
