/* ── Haruby Radio Now Playing – Style ── */

.haruby-radio-widget {
    font-family: inherit !important;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    border-radius: 12px !important;
    padding: 20px 24px !important;
    margin: 20px 0 !important;
    color: #e0e0e0 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    max-width: 480px !important;
}

/* ── Status Bar ── */
.hrw-status-bar {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
    font-size: 0.85em !important;
}

.hrw-status-dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: #888 !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
    transition: background 0.4s !important;
}

.hrw-status-dot.online {
    background: #2ecc71 !important;
    box-shadow: 0 0 8px #2ecc71 !important;
    animation: hrw-pulse 1.5s infinite !important;
}

.hrw-status-dot.offline {
    background: #e74c3c !important;
}

@keyframes hrw-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

.hrw-status-text {
    color: #aaa !important;
    -webkit-text-fill-color: #aaa !important;
    font-size: 0.9em !important;
}

.hrw-listeners {
    margin-left: auto !important;
    color: #7ec8e3 !important;
    -webkit-text-fill-color: #7ec8e3 !important;
    font-size: 0.85em !important;
}

/* ── Now Playing ── */
.hrw-nowplaying {
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    padding-top: 14px !important;
}

.hrw-label {
    font-size: 0.75em !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: #7ec8e3 !important;
    -webkit-text-fill-color: #7ec8e3 !important;
    margin-bottom: 6px !important;
}

.hrw-artist {
    font-size: 1em !important;
    color: #aaa !important;
    -webkit-text-fill-color: #aaa !important;
    margin-bottom: 4px !important;
    transition: all 0.4s !important;
}

.hrw-title {
    font-size: 1.25em !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    line-height: 1.3 !important;
    transition: all 0.4s !important;
}

/* ── Playlist Widget ── */
#haruby-playlist-widget {
    max-width: 480px !important;
}

.hrw-playlist-header {
    font-size: 0.85em !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: #7ec8e3 !important;
    -webkit-text-fill-color: #7ec8e3 !important;
    margin-bottom: 14px !important;
}

.hrw-playlist-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    max-height: 340px !important;
    overflow-y: auto !important;
}

.hrw-playlist-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
    font-size: 0.9em !important;
    color: #ccc !important;
    -webkit-text-fill-color: #ccc !important;
}

.hrw-playlist-item:last-child {
    border-bottom: none !important;
}

.hrw-playlist-item .hrw-pl-time {
    color: #666 !important;
    -webkit-text-fill-color: #666 !important;
    font-size: 0.8em !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
    min-width: 38px !important;
}

.hrw-playlist-item .hrw-pl-info .hrw-pl-artist {
    color: #999 !important;
    -webkit-text-fill-color: #999 !important;
    font-size: 0.85em !important;
}

.hrw-playlist-item .hrw-pl-info .hrw-pl-title {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-weight: 600 !important;
}

.hrw-loading {
    color: #666 !important;
    -webkit-text-fill-color: #666 !important;
    font-style: italic !important;
}

/* ── Scrollbar ── */
.hrw-playlist-list::-webkit-scrollbar { width: 4px; }
.hrw-playlist-list::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 2px; }
.hrw-playlist-list::-webkit-scrollbar-thumb { background: rgba(126,200,227,0.3); border-radius: 2px; }

/* ── Mobile ── */
@media (max-width: 480px) {
    .haruby-radio-widget {
        padding: 16px !important;
        border-radius: 8px !important;
    }
    .hrw-title { font-size: 1.1em !important; }
}
