/* Playback UI: playing-matra highlight, tabla bol badge, and the floating bottom player control bar. */

/* Sound Player Styles */
.matraCell.playingTaal {
    background: #fff1b8 !important;
    box-shadow: inset 0 0 0 3px #d9a400 !important;
    z-index: 2;
}

.matraCell.playingMatra {
    background: #f3e8ff !important;
    box-shadow: inset 0 0 0 3px #a855f7 !important;
    z-index: 2;
}

.matraCell.playingMatra.playingTaal {
    background: #fff1b8 !important;
    box-shadow: inset 0 0 0 3px #d9a400 !important;
    z-index: 2;
}

input[type="range"] {
    width: 100%;
    accent-color: var(--accent);
    cursor: pointer;
}

/* Corner Tabla Bol Badges */
.tablaBolBadge {
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 9px;
    font-weight: 700;
    color: var(--text-soft, #64748b);
    opacity: 0.45;
    pointer-events: none;
    user-select: none;
    z-index: 2;
    transition: all 0.1s ease-out;
    text-transform: capitalize;
}

.matraCell.playingTaal .tablaBolBadge {
    color: #b45309 !important;
    opacity: 1 !important;
    transform: scale(1.15);
    font-weight: 850;
}

/* Floating bottom player control bar */
.floatingPlayerBar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 1000;
    width: min(480px, calc(100vw - 32px));
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    padding: 10px 18px;
    color: #f8fafc;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.floatingPlayerBar.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.floatingPlayerContent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.floatingPlayerStatus {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    color: #e2e8f0;
}

.floatingPlayerStatus strong {
    color: #3b82f6;
}

.floatingPlayerActions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.floatingPlayerBtn {
    border: none;
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: #3b82f6;
    color: white;
    transition: all 0.2s ease;
}

.floatingPlayerBtn:hover {
    background: #2563eb;
    transform: scale(1.03);
}

.floatingPlayerBtn.danger {
    background: #ef4444;
}

.floatingPlayerBtn.danger:hover {
    background: #dc2626;
}

.floatingPlayerBtn.secondary {
    background: #475569;
    color: #f1f5f9;
}

.floatingPlayerBtn.secondary:hover {
    background: #334155;
}