/* Spirit Radio Player Styles - Elegant Design */

.radio-player {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.player-artwork-container {
    position: relative;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 320px;
}

.player-artwork {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-artwork.playing {
    animation: artwork-glow 3s ease-in-out infinite;
}

@keyframes artwork-glow {
    0%, 100% {
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 16px 50px rgba(0, 102, 204, 0.35);
    }
}

.player-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.player-info {
    text-align: center;
}

.player-status {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.8rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

.player-status.status-live {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: var(--dark-blue);
    animation: pulse-status 2s ease-in-out infinite;
}

.player-status.status-offline {
    background: rgba(108, 117, 125, 0.1);
    color: var(--text-gray);
}

.player-status.status-ready {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.player-status.status-loading {
    background: rgba(0, 102, 204, 0.15);
    color: var(--primary-blue);
}

.player-status.status-error {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

@keyframes pulse-status {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.05);
    }
}

.player-song-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.player-artist {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
}

.player-bottom {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.player-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 0.5rem;
}

.powered-by-live365 {
    display: inline-block;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.powered-by-live365:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.powered-by-live365 img {
    height: 44px;
    width: auto;
}

.player-play-btn {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: var(--white);
    border: none;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(255, 152, 0, 0.35);
    flex-shrink: 0;
    position: relative;
}

.player-play-btn::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.player-play-btn:hover::before {
    opacity: 0.3;
}

.player-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(255, 152, 0, 0.45);
}

.player-play-btn:active {
    transform: scale(0.98);
}

.player-play-btn.playing {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.35);
}

.player-play-btn.playing::before {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
}

.player-play-btn.playing:hover {
    box-shadow: 0 12px 32px rgba(0, 102, 204, 0.45);
}

.player-play-btn .play-icon {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 3px; /* Optical centering for play icon */
}

.player-play-btn.playing .play-icon {
    margin-left: 0;
}

.player-volume-control {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
}

.player-volume-icon {
    font-size: 1.1rem;
    color: var(--text-gray);
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.player-volume-icon:hover {
    color: var(--primary-blue);
}

.player-volume-slider {
    flex: 1;
    height: 5px;
    border-radius: 3px;
    background: var(--light-gray);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.player-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-blue);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.player-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 10px rgba(0, 102, 204, 0.4);
}

.player-volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-blue);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.player-volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 10px rgba(0, 102, 204, 0.4);
}

.player-volume-value {
    font-size: 0.85rem;
    color: var(--text-gray);
    min-width: 35px;
    text-align: right;
}

/* Compact Player (for embedding in hero) */
.radio-player.compact {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.radio-player.compact .player-song-title {
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.radio-player.compact .player-artist {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.radio-player.compact .player-status.status-ready {
    background: rgba(40, 167, 69, 0.25);
    color: #a3e635;
}

.radio-player.compact .player-volume-icon {
    color: rgba(255, 255, 255, 0.9);
}

.radio-player.compact .player-volume-icon:hover {
    color: var(--white);
}

.radio-player.compact .player-volume-value {
    color: rgba(255, 255, 255, 0.9);
}

.radio-player.compact .player-volume-slider {
    background: rgba(255, 255, 255, 0.2);
}

.radio-player.compact .player-volume-slider::-webkit-slider-thumb {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.radio-player.compact .player-volume-slider::-moz-range-thumb {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}


.radio-player.compact .powered-by-live365 img {
    filter: brightness(0) invert(1);
    opacity: 0.5;
}

.radio-player.compact .powered-by-live365:hover img {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .radio-player {
        padding: 2rem;
    }
    
    .player-artwork-container {
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .radio-player {
        padding: 1.5rem;
        max-width: 360px;
    }
    
    .player-artwork-container {
        max-width: 260px;
        margin-bottom: 1.5rem;
    }
    
    .player-song-title {
        font-size: 1.3rem;
    }
    
    .player-artist {
        font-size: 1rem;
    }
    
    .player-play-btn {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
    }
    
    .powered-by-live365 img {
        height: 36px;
    }
    
    .player-volume-value {
        font-size: 0.8rem;
        min-width: 30px;
    }
}

