/* Northern Soul Radio.co Integration Styles */

/* Now Playing Widget */
.nsr-now-playing {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.nsr-track-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nsr-artwork {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    position: relative;
}

.nsr-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nsr-artwork:hover img {
    transform: scale(1.05);
}

.nsr-track-info {
    flex: 1;
    min-width: 0;
}

/* Live badge removed - using your existing ON AIR indicator */
.nsr-live-badge {
    display: none;
}

@keyframes pulse-old {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.nsr-track-title {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.nsr-track-artist {
    margin: 0;
    font-size: 14px;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nsr-dj-name {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #e74c3c;
    font-weight: 500;
}

.nsr-dj-name::before {
    content: "🎧 ";
}

/* Recent Tracks */
.nsr-recent-tracks {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    max-width: 400px;
}

.nsr-recent-title {
    margin: 0 0 15px 0;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e74c3c;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
}

.nsr-track-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nsr-track-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.2s;
}

.nsr-track-list li:last-child {
    border-bottom: none;
}

.nsr-track-list li:hover {
    background: rgba(255,255,255,0.05);
    margin: 0 -10px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 6px;
}

.nsr-track-list img {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
}

.nsr-track-list .track-title {
    flex: 1;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nsr-track-list .track-time {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

.nsr-loading {
    text-align: center;
    color: #888;
    font-style: italic;
}

/* Radio Player */
.nsr-radio-player {
    background: #1a1a2e;
    padding: 15px;
    border-radius: 12px;
    max-width: 500px;
}

.nsr-radio-player audio {
    width: 100%;
    height: 40px;
    border-radius: 20px;
}

/* Live Status - Disabled since you have your own ON AIR indicator */
.nsr-live-status {
    display: none;
}

/* Compact Variants */
.nsr-now-playing.compact {
    padding: 12px;
    max-width: 300px;
}

.nsr-now-playing.compact .nsr-artwork {
    width: 60px;
    height: 60px;
}

.nsr-now-playing.compact .nsr-track-title {
    font-size: 14px;
}

.nsr-now-playing.compact .nsr-track-artist {
    font-size: 12px;
}

/* Widget/Sidebar Styles */
.nsr-now-playing.widget,
.nsr-recent-tracks.widget {
    max-width: 100%;
}

/* Animation for track changes */
.nsr-track-updating {
    animation: flash 0.5s ease;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Error State */
.nsr-error {
    color: #e74c3c;
    font-size: 14px;
    padding: 10px;
    text-align: center;
}

/* Responsive */
@media (max-width: 480px) {
    .nsr-now-playing,
    .nsr-recent-tracks {
        max-width: 100%;
    }

    .nsr-artwork {
        width: 80px;
        height: 80px;
    }

    .nsr-track-title {
        font-size: 16px;
    }
}

/* Next Track */
.nsr-next-track {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.nsr-next-title {
    margin: 0 0 15px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #f39c12;
    border-bottom: 2px solid #f39c12;
    padding-bottom: 10px;
}

.nsr-next-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nsr-next-artwork {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    opacity: 0.8;
}

.nsr-next-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nsr-next-info {
    flex: 1;
    min-width: 0;
}

.nsr-next-track-title {
    margin: 0;
    font-size: 14px;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-style: italic;
}

.nsr-next-track-title::before {
    content: "▶ ";
    color: #f39c12;
}
