/* ============================================
   HOME SIDEBAR - Q-PLAY
   Yellow: #FFD700
   ============================================ */

.home-sidebar {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── SIDEBAR SECTION ── */
.sidebar-section {
    background: #0d0a07;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 0, 0.06);
}

.sidebar-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sidebar-section__title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-section__view-all {
    color: #FFD700;
    font-size: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.sidebar-section__view-all:hover {
    color: #fff;
}

/* ── NOW PLAYING ── */
.sidebar-player__header {
    margin-bottom: 12px;
}

.sidebar-now-playing__content {
    min-height: 80px;
}

.sidebar-now-playing__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    text-align: center;
    color: #666;
}

.sidebar-now-playing__placeholder i {
    font-size: 32px;
    margin-bottom: 8px;
    color: #FFD700;
}

.sidebar-now-playing__placeholder p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.sidebar-now-playing__placeholder span {
    font-size: 12px;
    color: #666;
}

/* ── PLAYER CONTROLS ── */
.sidebar-player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 8px;
}

.sidebar-player-btn {
    background: transparent;
    border: none;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sidebar-player-btn:hover {
    color: #FFD700;
    background: rgba(255, 255, 0, 0.06);
}

.sidebar-player-btn--play {
    background: #FFD700;
    color: #0a0704;
    width: 38px;
    height: 38px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-player-btn--play:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 0, 0.3);
}

/* ── QUEUE / PLAYLIST ── */
.sidebar-queue__wrapper {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 16px;
    margin-top: 8px;
}

.sidebar-queue__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.sidebar-queue__header h4 {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-queue__header h4 i {
    font-size: 14px;
    color: #FFD700;
}

.sidebar-playlist-add-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 12px;
}

.sidebar-playlist-add-btn:hover {
    background: #FFD700;
    color: #000;
    transform: scale(1.05);
}

.sidebar-queue__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ── PLAYLIST GROUP ── */
.sidebar-playlist-group {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    overflow: hidden;
    transition: background 0.2s ease;
}

.sidebar-playlist-group:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-playlist-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.sidebar-playlist-header:hover {
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-playlist-name {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.sidebar-playlist-name i {
    color: #FFD700;
    font-size: 12px;
}

.sidebar-playlist-count {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 10px;
    border-radius: 12px;
}

.sidebar-playlist-toggle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
    margin-left: 4px;
}

.sidebar-playlist-toggle.rotated {
    transform: rotate(-180deg);
}

/* ── PLAYLIST SONGS (collapsed by default) ── */
.sidebar-playlist-songs {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 12px;
}

.sidebar-playlist-songs.expanded {
    max-height: 600px;
    padding: 0 12px 8px 12px;
}

/* ── INDIVIDUAL SONG (Compact List) ── */
.sidebar-playlist-song {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.sidebar-playlist-song:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-playlist-song-artwork {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-playlist-song-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-playlist-song-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.15);
    font-size: 10px;
}

.sidebar-playlist-song-info {
    flex: 1;
    min-width: 0;
}

.sidebar-playlist-song-title {
    display: block;
    font-size: 12.5px;
    color: #fff;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.sidebar-playlist-song-artist {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-playlist-song-index {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.15);
    min-width: 18px;
    text-align: right;
    flex-shrink: 0;
    font-weight: 400;
}

.sidebar-playlist-song-remove {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    transition: all 0.2s ease;
    opacity: 0;
    flex-shrink: 0;
}

.sidebar-playlist-song:hover .sidebar-playlist-song-remove {
    opacity: 1;
}

.sidebar-playlist-song-remove:hover {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.08);
}

/* ── EMPTY STATE ── */
.sidebar-queue__placeholder {
    text-align: center;
    padding: 20px 12px;
    color: rgba(255, 255, 255, 0.3);
}

.sidebar-queue__placeholder p {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 4px 0;
}

.sidebar-queue__placeholder span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
}

.sidebar-playlist-empty {
    text-align: center;
    padding: 12px;
    color: rgba(255, 255, 255, 0.2);
    font-size: 12px;
}

/* ── PLAYING INDICATOR ── */
.sidebar-playlist-song.playing {
    background: rgba(255, 215, 0, 0.04);
}

.sidebar-playlist-song.playing .sidebar-playlist-song-title {
    color: #FFD700;
    font-weight: 500;
}

/* ── ARTIST PROFILE ── */
.sidebar-artist-profile__content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-artist-profile__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #1a140f;
    border: 2px solid #FFD700;
}

.sidebar-artist-profile__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-artist-profile__avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #FFD700;
    background: #1a140f;
}

.sidebar-artist-profile__info {
    flex: 1;
    min-width: 0;
}

.sidebar-artist-profile__name {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 2px;
}

.sidebar-artist-profile__stats {
    color: #888;
    font-size: 12px;
    margin: 0 0 4px;
}

.sidebar-artist-profile__stats i {
    color: #FFD700;
}

.sidebar-artist-profile__meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #666;
}

.sidebar-artist-profile__meta i {
    color: #FFD700;
    margin-right: 4px;
}

.sidebar-artist-profile__empty {
    color: #666;
    text-align: center;
    padding: 12px;
    font-size: 13px;
}

/* ── STORE ── */
.sidebar-store__carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.sidebar-store__carousel::-webkit-scrollbar {
    height: 3px;
}

.sidebar-store__carousel::-webkit-scrollbar-thumb {
    background: #FFD700;
    border-radius: 10px;
}

.sidebar-store__item {
    flex: 0 0 120px;
    background: #0a0704;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.sidebar-store__item:hover {
    border-color: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.sidebar-store__item a {
    text-decoration: none;
    display: block;
}

.sidebar-store__item-image {
    height: 80px;
    background: #1a140f;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-store__item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-store__item-placeholder {
    font-size: 28px;
    color: #FFD700;
}

.sidebar-store__item-info {
    padding: 8px 10px;
}

.sidebar-store__item-info h5 {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-store__item-info p {
    color: #FFD700;
    font-size: 12px;
    font-weight: 700;
    margin: 0;
}

.sidebar-store__empty {
    color: #666;
    text-align: center;
    padding: 12px;
    font-size: 13px;
}

/* ── NEW RELEASES ── */
.sidebar-new-releases__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-new-releases__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sidebar-new-releases__item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-new-releases__artwork {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #1a140f;
    position: relative;
}

.sidebar-new-releases__artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-new-releases__artwork-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #FFD700;
}

.sidebar-new-releases__play {
    position: absolute;
    inset: 0;
    background: rgba(10, 7, 4, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-new-releases__item:hover .sidebar-new-releases__play {
    opacity: 1;
}

.sidebar-new-releases__info {
    flex: 1;
    min-width: 0;
}

.sidebar-new-releases__info h4 {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-new-releases__info p {
    color: #666;
    font-size: 11px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-new-releases__add {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #FFD700;
    font-size: 16px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sidebar-new-releases__add:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: scale(1.15);
    color: #fff;
    border-color: #FFD700;
}

.sidebar-new-releases__add.is-queued {
    background: #FFD700;
    color: #000;
    border-color: #FFD700;
}

.sidebar-new-releases__add i {
    pointer-events: none;
}

.sidebar-new-releases__empty {
    color: #666;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    list-style: none;
}

.sidebar-new-releases__empty p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 4px;
}

.sidebar-new-releases__empty span {
    font-size: 12px;
}

.sidebar-queue__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 280px;
    overflow-y: auto;
}

.sidebar-queue__item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sidebar-queue__play {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: inherit;
    text-align: left;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    min-width: 0;
}

.sidebar-queue__play:hover,
.sidebar-queue__item.is-current .sidebar-queue__play {
    background: rgba(255, 215, 0, 0.08);
}

.sidebar-queue__index {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    min-width: 16px;
}

.sidebar-queue__info {
    flex: 1;
    min-width: 0;
}

.sidebar-queue__info h4 {
    margin: 0;
    font-size: 12px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-queue__item.is-current .sidebar-queue__info h4 {
    color: #FFD700;
}

.sidebar-queue__info p {
    margin: 0;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-queue__playing {
    color: #FFD700;
    font-size: 11px;
}

.sidebar-queue__remove {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    padding: 4px 6px;
    opacity: 0;
}

.sidebar-queue__item:hover .sidebar-queue__remove {
    opacity: 1;
}

.sidebar-queue__remove:hover {
    color: #ff6b6b;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .home-sidebar {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .home-sidebar {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .sidebar-section {
        padding: 12px;
    }
}