/* YouTube Playlist Bar Styles */
:root {
    --ypb-bg-color: #1a1a1a;
    --ypb-text-color: #ffffff;
    --ypb-bar-height: 50px;
    --ypb-playlist-height: 250px;
}

#ypb-playlist-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--ypb-bar-height);
    background-color: var(--ypb-bg-color);
    color: var(--ypb-text-color);
    display: flex;
    align-items: center;
    z-index: 99999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
    transition: transform 0.3s ease-in-out;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

#ypb-player-container {
    width: 88px;
    height: var(--ypb-bar-height);
    flex-shrink: 0;
}

.ypb-controls {
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.ypb-control-btn {
    background: none;
    border: none;
    color: var(--ypb-text-color);
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    opacity: 0.8;
    transition: opacity 0.2s;
    line-height: 1;
}

.ypb-control-btn:hover {
    opacity: 1;
}

.ypb-track-info {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 15px;
    font-size: 14px;
}

.ypb-playlist-toggle {
    padding: 0 15px;
}

#ypb-playlist-container {
    position: absolute;
    bottom: var(--ypb-bar-height);
    left: 0;
    width: 100%;
    height: var(--ypb-playlist-height);
    background-color: var(--ypb-bg-color);
    overflow-y: auto;
    display: none;
    border-top: 1px solid rgba(255,255,255,0.1);
}

#ypb-playlist-bar.ypb-playlist-open #ypb-playlist-container {
    display: block;
}

#ypb-playlist-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

#ypb-playlist-list li {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

#ypb-playlist-list li:hover,
#ypb-playlist-list li.active {
    background-color: rgba(255,255,255,0.1);
}

#ypb-playlist-list img {
    width: 48px;
    height: 36px;
    margin-right: 10px;
    flex-shrink: 0;
}

#ypb-playlist-list span {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 600px) {
    .ypb-track-info {
        display: none;
    }
}
