/* Karaoke widget accents */
:root{
    --fox-purple: #644394;
    --fox-cyan: #1cc9cb;
}

.fbk-wrap{
    width: 100%;
    border: 2px solid currentColor;
    border-radius: 16px;
    padding: 1rem;
    background: rgba(255,255,255,0.04);
}

.fbk-header{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.fbk-h2{ margin: 0; font-size: 1.35rem; font-weight: 900; }
.fbk-sub{ margin: 0.25rem 0 0 0; opacity: 0.85; }

.fbk-search{
    margin-left: auto;
    min-width: min(360px, 100%);
}

.fbk-input{
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.25);
    background: rgba(0,0,0,0.25);
    color: inherit;
}

.fbk-input:focus-visible{
    outline: 3px solid var(--fox-cyan);
    outline-offset: 3px;
    border-color: var(--fox-cyan);
}

.fbk-table-wrap{
    overflow-x: auto;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.18);
}

.fbk-table{
    width: 100%;
    border-collapse: collapse;
    min-width: 560px; /* ensures columns don't crush */
}

.fbk-table thead{
    background: rgba(0,0,0,0.25);
}

.fbk-table th,
.fbk-table td{
    padding: 0.75rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.14);
}

.fbk-table tbody tr:hover{
    background: rgba(28, 201, 203, 0.08); /* fox-cyan tint */
}

.fbk-th{
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.2rem 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.fbk-th:focus-visible{
    outline: 3px solid var(--fox-purple);
    outline-offset: 3px;
    border-radius: 10px;
}

.fbk-th.is-active{
    color: var(--fox-cyan);
}

.fbk-sort::before{
    content: "↕";
    opacity: 0.65;
}

.fbk-th.is-active .fbk-sort::before{
    content: "↑";
    opacity: 0.95;
}

.fbk-th.is-active.is-desc .fbk-sort::before{
    content: "↓";
    opacity: 0.95;
}

.fbk-empty{
    margin-top: 0.75rem;
    text-align: center;
    opacity: 0.85;
    font-weight: 700;
}

.fbk-sr-only{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.fbk-wrap header {
    background-color: inherit;
}

.fbk-wrap thead td, .fbk-wrap th > button {
    color: #644394;
}

@media (max-width: 720px){
    .fbk-header{
        flex-direction: column;
        align-items: stretch;
    }
    .fbk-search{
        margin-left: 0;
        min-width: 0;
    }
}
