.playerbar {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 8px 16px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}

.playerbar-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.playerbar-cover {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-hover);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.playerbar-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playerbar-text {
    min-width: 0;
    flex: 1;
}

.playerbar-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playerbar-artist {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playerbar-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.playerbar-time {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    min-width: 36px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.playerbar-slider-container {
    flex: 1;
    height: 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.playerbar-slider-track {
    width: 100%;
    height: 4px;
    background: var(--bg-hover);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.playerbar-slider-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    width: 0%;
    transition: none;
}

.playerbar-slider-container:hover .playerbar-slider-track {
    height: 6px;
}

.playerbar-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.playerbar-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    transition: all var(--transition);
    color: var(--text-secondary);
}

.playerbar-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.playerbar-btn.active {
    color: var(--accent);
}

.playerbar-btn-play {
    width: 40px;
    height: 40px;
    font-size: 20px;
    color: var(--text-primary);
}

.playerbar-volume {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.playerbar-volume-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
}

.playerbar-volume-slider {
    width: 100px;
    height: 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.playerbar-volume-track {
    width: 100%;
    height: 4px;
    background: var(--bg-hover);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.playerbar-volume-fill {
    height: 100%;
    background: var(--text-muted);
    border-radius: 2px;
    width: 80%;
}

/* No song loaded state */
.playerbar-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}
