/* RS Unified Music Display Plugin Styles */



/* ===== RESET AND BASE STYLES ===== */

.rs-grid-wrapper *,

.rs-sgplus-wrapper * {

    box-sizing: border-box;

}



/* ===== SCROLLER STYLES ===== */

.rs-scroller-wrapper {

    margin: 20px 0;

    position: relative;

}



.rs-scroller-title {

font-size: 2.25rem !important;
line-height: 2.5rem !important;
margin-bottom: 10px;
color: #333;

}

.rs-scroller-byline {

    font-size: 0.9em;

    color: #666;

    margin-bottom: 15px;

}



.rs-scroller {

    display: flex;

    gap: 15px;

    overflow-x: auto;

    padding: 10px 0;

    scroll-behavior: smooth;

}



.rs-scroller::-webkit-scrollbar {

    height: 8px;

}



.rs-scroller::-webkit-scrollbar-track {

    background: #f1f1f1;

    border-radius: 4px;

}



.rs-scroller::-webkit-scrollbar-thumb {

    background: #888;

    border-radius: 4px;

}



.rs-scroller::-webkit-scrollbar-thumb:hover {

    background: #555;

}



.rs-feed-item {

    flex: 0 0 300px; /* Increased width for horizontal layout */

    background: #fff;

    border-radius: 8px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.1);

    overflow: hidden;

    transition: transform 0.3s ease, box-shadow 0.3s ease;

    display: flex; /* Make it a flex container */

}



.rs-feed-item:hover {

    transform: translateY(-2px);

    box-shadow: 0 4px 15px rgba(0,0,0,0.15);

}



.rs-feed-item-inner {

    display: flex; /* Horizontal layout */

    width: 100%;

    align-items: center;

}



.rs-feed-thumb {

    width: 80px; /* Fixed width for thumbnail */

    height: 80px; /* Fixed height for thumbnail */

    flex-shrink: 0; /* Don't shrink the thumbnail */

    overflow: hidden;

    background: #f5f5f5;

}



.rs-feed-thumb img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: opacity 0.3s ease;

}



.rs-feed-thumb img:hover {

    opacity: 0.9;

}



.rs-feed-meta {

    padding: 15px;

    flex: 1; /* Take up remaining space */

    min-width: 0; /* Allow text to truncate properly */

}



.rs-feed-title {

    font-weight: bold;

    font-size: 0.95em;

    color: #333;

    margin-bottom: 5px;

    line-height: 1.3;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}



.rs-feed-artist {

    font-size: 0.85em;

    color: #666;

    line-height: 1.2;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}



/* ===== GRID STYLES ===== */

.rs-grid-wrapper,

.rs-sgplus-wrapper {

    display: grid !important;

    gap: 20px;

    margin: 20px 0;

    width: 100%;

    clear: both;

}



/* Grid column classes - using !important to override any conflicts */

.rs-grid-wrapper.rs-cols-1,

.rs-sgplus-wrapper.rs-cols-1 { 

    grid-template-columns: 1fr !important;

}

.rs-grid-wrapper.rs-cols-2,

.rs-sgplus-wrapper.rs-cols-2 { 

    grid-template-columns: repeat(2, 1fr) !important;

}

.rs-grid-wrapper.rs-cols-3,

.rs-sgplus-wrapper.rs-cols-3 { 

    grid-template-columns: repeat(3, 1fr) !important;

}

.rs-grid-wrapper.rs-cols-4,

.rs-sgplus-wrapper.rs-cols-4 { 

    grid-template-columns: repeat(4, 1fr) !important;

}

.rs-grid-wrapper.rs-cols-5,

.rs-sgplus-wrapper.rs-cols-5 { 

    grid-template-columns: repeat(5, 1fr) !important;

}

.rs-grid-wrapper.rs-cols-6,

.rs-sgplus-wrapper.rs-cols-6 { 

    grid-template-columns: repeat(6, 1fr) !important;

}



.rs-grid-title,

.rs-sgplus-title {

    font-size: 1.8em;

    margin-bottom: 10px;

    color: #333;

    text-align: center;

}



.rs-grid-byline,

.rs-sgplus-byline {

    font-size: 1em;

    color: #666;

    margin-bottom: 20px;

    text-align: center;

}



.rs-grid-item,

.rs-sgplus-item {

    background: #fff;

    border-radius: 0;

    box-shadow: 0 4px 12px rgba(0,0,0,0.1);

    overflow: hidden;

    transition: transform 0.3s ease, box-shadow 0.3s ease;

    display: block !important;

    float: none !important;

    width: auto !important;

    margin: 0 !important;

    position: relative;

}



.rs-grid-item:hover,

.rs-sgplus-item:hover {

    transform: translateY(-4px);

    box-shadow: 0 8px 25px rgba(0,0,0,0.15);

}



.rs-grid-item img,

.rs-sgplus-item img {

    width: 100%;

    aspect-ratio: 1 / 1; /* Forces square aspect ratio */

    object-fit: cover;

    display: block;

    border-radius: 0;

    transition: transform 0.3s ease;

}



.rs-grid-item:hover img,

.rs-sgplus-item:hover img {

    transform: scale(1.05);

}



.rs-grid-meta,

.rs-sgplus-meta {

    padding: 15px;

}



.rs-grid-time,

.rs-sgplus-time {

    font-size: 0.75em;

    color: #999;

    margin-bottom: 8px;

    text-transform: uppercase;

    letter-spacing: 0.5px;

}



.rs-grid-title-meta,

.rs-sgplus-title-meta {

    font-weight: bold;

    font-size: 1em;

    color: #333;

    margin-bottom: 5px;

    line-height: 1.3;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}



.rs-grid-artist-meta,

.rs-sgplus-artist-meta {

    font-size: 0.9em;

    color: #666;

    line-height: 1.2;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}


/* ===== NOW PLAYING BUTTON STYLES ===== */
/* ===== NOW PLAYING BUTTON STYLES ===== */

.current-artist-button .rs-artist-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0px 0;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 999px;
    border: 2px solid #0080a2;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: auto;
    max-width: 100%;
    position: relative;
}

.current-artist-button .rs-button-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.current-artist-button .rs-artist-info:hover {
    background: #e9ecef;
    border-color: #006d8a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,128,162,0.2);
}

/* Images - normal state */
.current-artist-button .rs-artist-image,
.current-artist-button a .rs-artist-image,
.current-artist-button .rs-button-link .rs-artist-image {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    object-fit: cover;
    border: 1px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.current-artist-button .rs-dj-image-button,
.current-artist-button a .rs-dj-image-button,
.current-artist-button .rs-button-link .rs-dj-image-button {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    object-fit: cover;
    border: 1px solid #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    flex-shrink: 0;
    margin-left: 6px !important;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.current-artist-button .rs-separator {
    margin: 0 8px !important;
    font-size: 0.9em;
    color: #ccc;
    font-weight: 300;
}

.current-artist-button .rs-dj-label {
    margin: 0 !important;
    font-size: 0.9em;
    color: #0080a2;
    font-weight: 600;
}

.current-artist-button .rs-dj-name-button {
    margin: 0 !important;
    font-size: 0.9em;
    color: #333;
    font-weight: 500;
}

.current-artist-button .rs-button-text {
    display: inline;
    /* REMOVED: pointer-events: none; */
}

.current-artist-button .rs-now-playing-label {
    margin: 0 !important;
    font-size: 0.9em;
    color: #0080a2;
    font-weight: 600;
}

.current-artist-button .rs-song-title {
    margin: 0 !important;
    font-size: 0.9em !important;
    color: #333;
    font-weight: 600;
}

.current-artist-button .rs-artist-name {
    margin: 0 !important;
    font-size: 0.9em !important;
    color: #666;
    font-weight: 400;
}

.current-artist-button .rs-artist-info,
.current-artist-button .rs-button-link {
    white-space: nowrap;
    overflow: visible !important;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.current-artist-button img {
    pointer-events: auto !important;
}

.current-artist-button {
    position: relative;
    overflow: visible !important;
}

/* JavaScript-created overlay image */
/* JavaScript-created overlay image */
.rs-image-overlay {
    position: absolute !important;
    width: 200px !important;
    height: 200px !important;
    z-index: 2147483647 !important;
    border-radius: 8px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6) !important;
    pointer-events: none !important;
    border: 2px solid white !important;
    object-fit: cover !important;
    display: none;
    transition: opacity 0.3s ease;
}

.rs-image-overlay.show {
    display: block !important;
    opacity: 1;
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .current-artist-button .rs-artist-info {
        gap: 6px;
        padding: 6px;
    }
    
    .current-artist-button .rs-artist-image,
    .current-artist-button a .rs-artist-image,
    .current-artist-button .rs-button-link .rs-artist-image {
        width: 28px !important;
        height: 28px !important;
    }
    
    .current-artist-button .rs-dj-image-button,
    .current-artist-button a .rs-dj-image-button,
    .current-artist-button .rs-button-link .rs-dj-image-button {
        width: 28px !important;
        height: 28px !important;
    }
    
    .current-artist-button .rs-separator {
        margin: 0 4px !important;
    }
    
    .current-artist-button .rs-song-title,
    .current-artist-button .rs-artist-name,
    .current-artist-button .rs-now-playing-label,
    .current-artist-button .rs-dj-label,
    .current-artist-button .rs-dj-name-button {
        font-size: 0.8em;
    }
}

/* ===== SHARED LOADING STYLES ===== */

.rs-loading {

    position: absolute;

    top: 50%;

    right: 20px;

    transform: translateY(-50%);

    background: rgba(0,0,0,0.8);

    color: white;

    padding: 8px 15px;

    border-radius: 20px;

    font-size: 0.8em;

    z-index: 10;

    animation: pulse 1.5s ease-in-out infinite alternate;

}



@keyframes pulse {

    from { opacity: 0.6; }

    to { opacity: 1; }

}



/* ===== ERROR STYLES ===== */

.rs-error {

    background: #ffe6e6;

    border: 1px solid #ffcccc;

    color: #cc0000;

    padding: 10px;

    border-radius: 4px;

    font-size: 0.9em;

    margin-bottom: 10px;

}



/* ===== NOW PLAYING WIDGET ALWAYS VERTICAL - SPECIFIC TARGETING ===== */

.sidebar-main .rs-now-playing-container,

.widget .rs-now-playing-container,

.sidebar .rs-now-playing-container,

[class*="sidebar"] .rs-now-playing-container,

[class*="widget"] .rs-now-playing-container,

aside .rs-now-playing-container,

[id*="sidebar"] .rs-now-playing-container,

[id*="widget"] .rs-now-playing-container,

#rs-now-playing-widget .rs-now-playing-container {


    display: flex !important;
    flex-direction: column !important;

    text-align: center !important;

    gap: 15px !important;

    max-width: 100% !important;

    align-items: center !important;

}



.sidebar-main .rs-album-art,

.widget .rs-album-art,

.sidebar .rs-album-art,

[class*="sidebar"] .rs-album-art,

[class*="widget"] .rs-album-art,

aside .rs-album-art,

[id*="sidebar"] .rs-album-art,

[id*="widget"] .rs-album-art,

#rs-now-playing-widget .rs-album-art {

    width: 100% !important;

    max-width: 600px !important;

    margin: 0 auto !important;

}



.sidebar-main .rs-album-art img,

.widget .rs-album-art img,

.sidebar .rs-album-art img,

[class*="sidebar"] .rs-album-art img,

[class*="widget"] .rs-album-art img,

aside .rs-album-art img,

[id*="sidebar"] .rs-album-art img,

[id*="widget"] .rs-album-art img,

#rs-now-playing-widget .rs-album-art img {

    width: 100% !important;

    height: auto !important;

    max-width: 300px !important;

}



.sidebar-main .rs-song-title,

.widget .rs-song-title,

.sidebar .rs-song-title,

[class*="sidebar"] .rs-song-title,

[class*="widget"] .rs-song-title,

aside .rs-song-title,

[id*="sidebar"] .rs-song-title,

[id*="widget"] .rs-song-title,

#rs-now-playing-widget .rs-song-title {

    font-size: 0.9em !important;

}



.sidebar-main .rs-artist-name,

.widget .rs-artist-name,

.sidebar .rs-artist-name,

[class*="sidebar"] .rs-artist-name,

[class*="widget"] .rs-artist-name,

aside .rs-artist-name,

[id*="sidebar"] .rs-artist-name,

[id*="widget"] .rs-artist-name,

#rs-now-playing-widget .rs-artist-name {

    font-size: 0.9em !important;

    margin: 5px 0 10px 0 !important;

}



/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1200px) {

    .rs-grid-wrapper.rs-cols-6,

    .rs-sgplus-wrapper.rs-cols-6 { 

        grid-template-columns: repeat(4, 1fr) !important; 

    }

    .rs-grid-wrapper.rs-cols-5,

    .rs-sgplus-wrapper.rs-cols-5 { 

        grid-template-columns: repeat(3, 1fr) !important; 

    }

}



@media (max-width: 768px) {

    .rs-feed-item {

        flex: 0 0 150px;

    }

    

    .rs-feed-thumb {

        height: 150px;

    }

    

    .rs-feed-meta {

        padding: 10px;

    }

    

    .rs-loading {

        right: 10px;

        font-size: 0.7em;

        padding: 6px 12px;

    }

    

    /* Start reducing columns on tablet */

    .rs-grid-wrapper.rs-cols-4,

    .rs-grid-wrapper.rs-cols-5,

    .rs-grid-wrapper.rs-cols-6,

    .rs-sgplus-wrapper.rs-cols-4,

    .rs-sgplus-wrapper.rs-cols-5,

    .rs-sgplus-wrapper.rs-cols-6 {

        grid-template-columns: repeat(2, 1fr) !important;

    }

    

    .rs-grid-wrapper.rs-cols-3,

    .rs-sgplus-wrapper.rs-cols-3 {

        grid-template-columns: repeat(2, 1fr) !important;

    }

    

    .rs-grid-item img,

    .rs-sgplus-item img {

        aspect-ratio: 1 / 1;

        height: auto;

    }

    

    .rs-grid-meta,

    .rs-sgplus-meta {

        padding: 12px;

    }

}



@media (max-width: 600px) {

    /* SCROLLER: Single column on mobile with limited items */

    .rs-scroller {

        display: flex;

        flex-direction: column !important;

        gap: 15px;

        overflow: visible !important;

    }

    

    .rs-feed-item {

        flex: none !important;

        width: 100% !important;

        max-width: none !important;

    }

    

    /* Hide items beyond the 3rd on mobile */

    .rs-feed-item:nth-child(n+4) {

        display: none !important;

    }

    

    .rs-feed-item-inner {

        display: flex !important;

        align-items: center;

        width: 100%;

    }

    

    .rs-feed-thumb {

        width: 80px !important;

        height: 80px !important;

        flex-shrink: 0;

    }

    

    .rs-feed-meta {

        flex: 1;

        padding: 15px;

        min-width: 0;

    }

    

    /* GRID: Single column on mobile */

    div.rs-sgplus-wrapper.rs-cols-3,

    div.rs-sgplus-wrapper.rs-cols-1,

    div.rs-sgplus-wrapper.rs-cols-2,

    div.rs-sgplus-wrapper.rs-cols-4,

    div.rs-sgplus-wrapper.rs-cols-5,

    div.rs-sgplus-wrapper.rs-cols-6 {

        display: grid !important;

        grid-template-columns: 1fr !important;

        gap: 20px !important;

    }

    

    div.rs-sgplus-item {

        width: 100% !important;

        max-width: none !important;

        margin: 0 auto !important;

    }

}



@media (max-width: 480px) {

    .rs-scroller {

        gap: 10px;

    }

    

    .rs-feed-item {

        flex: 0 0 120px;

    }

    

    .rs-feed-thumb {

        height: 120px;

    }

    

    .rs-feed-meta {

        padding: 8px;

    }

    

    .rs-feed-title {

        font-size: 0.85em;

    }

    

    .rs-feed-artist {

        font-size: 0.75em;

    }

    

    /* Now Playing Button Mobile Adjustments */

    .current-artist-button .rs-artist-info {

        gap: 6px;

        padding: 6px;

    }

    

    .current-artist-button .rs-artist-image {

        width: 28px !important;

        height: 28px !important;

    }

    

    .current-artist-button .rs-dj-image-button {

        width: 28px !important;

        height: 28px !important;

    }

    

    /* Adjust mobile hover scaling */

    .current-artist-button .rs-artist-image:hover {

        transform: scale(7.14); /* 28px * 7.14 = 200px */

    }

    

    .current-artist-button .rs-dj-image-button:hover {

        transform: scale(7.14); /* 28px * 7.14 = 200px */

    }

    

    .current-artist-button .rs-separator {

        margin: 0 4px !important;

    }

    

    .current-artist-button .rs-song-title,

    .current-artist-button .rs-artist-name,

    .current-artist-button .rs-now-playing-label,

    .current-artist-button .rs-dj-label,

    .current-artist-button .rs-dj-name-button {

        font-size: 0.8em;

    }

    

    /* FORCE SINGLE COLUMN ON MOBILE - More specific selectors */

    .rs-grid-wrapper,

    .rs-sgplus-wrapper,

    .rs-grid-wrapper.rs-cols-1,

    .rs-grid-wrapper.rs-cols-2,

    .rs-grid-wrapper.rs-cols-3,

    .rs-grid-wrapper.rs-cols-4,

    .rs-grid-wrapper.rs-cols-5,

    .rs-grid-wrapper.rs-cols-6,

    .rs-sgplus-wrapper.rs-cols-1,

    .rs-sgplus-wrapper.rs-cols-2,

    .rs-sgplus-wrapper.rs-cols-3,

    .rs-sgplus-wrapper.rs-cols-4,

    .rs-sgplus-wrapper.rs-cols-5,

    .rs-sgplus-wrapper.rs-cols-6 {

        grid-template-columns: 1fr !important;

        gap: 15px !important;

        display: grid !important;

    }

    

    .rs-grid-title,

    .rs-sgplus-title {

        font-size: 1.4em;

    }

    

    .rs-grid-item,

    .rs-sgplus-item {

        width: 100% !important;

        max-width: none !important;

        margin: 0 !important;

    }

    

    .rs-grid-item img,

    .rs-sgplus-item img {

        width: 100% !important;

        height: auto !important;

        aspect-ratio: 1 / 1 !important;

        max-height: none !important;

    }

}



/* ===== ANIMATION STYLES ===== */

.rs-feed-item,

.rs-grid-item,

.rs-sgplus-item {

    animation: slideIn 0.5s ease forwards;

}



@keyframes slideIn {

    from {

        opacity: 0;

        transform: translateX(20px);

    }

    to {

        opacity: 1;

        transform: translateX(0);

    }

}



/* Fade transitions for smooth updates */

.rs-scroller,

.rs-grid-wrapper,

.rs-sgplus-wrapper {

    transition: opacity 0.3s ease;

}



/* ===== UTILITY CLASSES ===== */

.rs-text-center { text-align: center; }

.rs-text-left { text-align: left; }

.rs-text-right { text-align: right; }



.rs-mb-10 { margin-bottom: 10px; }

.rs-mb-15 { margin-bottom: 15px; }

.rs-mb-20 { margin-bottom: 20px; }



.rs-p-10 { padding: 10px; }

.rs-p-15 { padding: 15px; }

.rs-p-20 { padding: 20px; }

/* ===== FIX FOR NOW PLAYING BUTTON LINK - ADDED AT END ===== */
.current-artist-button a.rs-button-link {
    display: inline-block !important;
    text-decoration: none !important;
}

/* Override the pointer-events to make text clickable */
.current-artist-button .rs-button-text {
    pointer-events: auto !important;
}

/* Ensure the link styling shows on hover */
.current-artist-button a.rs-button-link:hover .rs-artist-info {
    background: #e9ecef;
    border-color: #006d8a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}