/* AzuraCast Now Playing Styles */
.azuracast-now-playing {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 400px;
    margin: 20px auto;
}

.azuracast-loading {
    text-align: center;
    padding: 40px;
    background: #f5f5f5;
    border-radius: 10px;
}

.azuracast-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: azuracast-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes azuracast-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.azuracast-container {
    background: linear-gradient(145deg, #2c3e50, #1a2530);
    border-radius: 15px;
    padding: 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.azuracast-theme-light .azuracast-container {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    color: #333;
}

.azuracast-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.azuracast-theme-light .azuracast-header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.azuracast-station-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 5px;
    color: #3498db;
}

.azuracast-station-description {
    font-size: 14px;
    opacity: 0.8;
}

.azuracast-player {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.azuracast-albart {
    position: relative;
    flex-shrink: 0;
}

.azuracast-album-art {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.azuracast-play-controls {
    position: absolute;
    bottom: -10px;
    right: -10px;
}

.azuracast-play-btn {
    background: #3498db;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.4);
}

.azuracast-play-btn:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.azuracast-play-btn svg {
    fill: currentColor;
}

.azuracast-song-info {
    flex-grow: 1;
}

.azuracast-song-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
}

.azuracast-theme-light .azuracast-song-title {
    color: #333;
}

.azuracast-song-artist {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.azuracast-song-album {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 15px;
}

.azuracast-progress-container {
    margin-top: 10px;
}

.azuracast-time-display {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.azuracast-progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    overflow: hidden;
}

.azuracast-theme-light .azuracast-progress-bar {
    background: rgba(0,0,0,0.1);
}

.azuracast-progress {
    height: 100%;
    background: #3498db;
    width: 0%;
    transition: width 1s linear;
}

.azuracast-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.azuracast-btn {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 10px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.azuracast-theme-light .azuracast-btn {
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
    color: #333;
}

.azuracast-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.azuracast-theme-light .azuracast-btn:hover {
    background: rgba(0,0,0,0.1);
}

.azuracast-btn svg {
    fill: currentColor;
}

.azuracast-song-history {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.azuracast-theme-light .azuracast-song-history {
    background: rgba(0,0,0,0.05);
}

.azuracast-song-history h4 {
    margin: 0 0 10px;
    font-size: 16px;
}

.azuracast-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.azuracast-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.azuracast-theme-light .azuracast-history-item {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.azuracast-history-item:last-child {
    border-bottom: none;
}

.azuracast-history-song {
    flex-grow: 1;
}

.azuracast-history-title {
    display: block;
    font-size: 14px;
}

.azuracast-history-artist {
    display: block;
    font-size: 12px;
    opacity: 0.7;
}

.azuracast-history-time {
    font-size: 11px;
    opacity: 0.6;
    white-space: nowrap;
}

.azuracast-stream-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    opacity: 0.7;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.azuracast-theme-light .azuracast-stream-info {
    border-top: 1px solid rgba(0,0,0,0.1);
}

.azuracast-error {
    color: #e74c3c;
    text-align: center;
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .azuracast-player {
        flex-direction: column;
        text-align: center;
    }
    
    .azuracast-album-art {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
    
    .azuracast-play-controls {
        bottom: 10px;
        right: 50%;
        transform: translateX(50%);
    }
    
    .azuracast-controls {
        flex-wrap: wrap;
    }
    
    .azuracast-btn {
        min-width: calc(50% - 5px);
    }
}