/* Satyro Connect (connect.js): devices button in the player bar, device picker, "Tocando em" strip, toast. */
.sc-btn {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-right: 6px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #b3b3b3;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.sc-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}
.sc-btn svg {
    width: 18px;
    height: 18px;
}
.sc-btn.is-remote {
    color: #22d36b;
}
.sc-btn.sc-floating {
    position: fixed;
    right: 16px;
    bottom: 104px;
    z-index: 300;
    width: 40px;
    height: 40px;
    background: #282828;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.sc-btn:focus-visible,
.sc-menu button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.sc-menu {
    position: fixed;
    z-index: 400;
    width: min(340px, calc(100vw - 24px));
    max-height: min(70vh, 520px);
    overflow-y: auto;
    padding: 16px 8px 8px;
    border-radius: 10px;
    background: #282828;
    color: #ffffff;
    font-family: 'Figtree', 'Inter', system-ui, sans-serif;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    animation: sc-in 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes sc-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}
.sc-h {
    margin: 4px 8px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #b3b3b3;
}
.sc-h + .sc-row,
.sc-row + .sc-h {
    margin-top: 0;
}
.sc-row + .sc-h {
    margin-top: 14px;
}
.sc-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.sc-row:not(:disabled):not(.is-current):hover {
    background: rgba(255, 255, 255, 0.08);
}
.sc-row:disabled {
    cursor: default;
    opacity: 0.6;
}
.sc-row svg {
    flex: none;
    width: 24px;
    height: 24px;
    color: #b3b3b3;
}
.sc-row.is-current svg,
.sc-row.is-current strong,
.sc-row.is-playing small {
    color: #22d36b;
}
.sc-row span {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}
.sc-row strong {
    font-size: 0.95rem;
    font-weight: 700;
}
.sc-row small {
    font-size: 0.8rem;
    color: #b3b3b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sc-go {
    flex: none;
    height: 30px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #000000;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.12s ease;
}
.sc-go:hover {
    transform: scale(1.04);
}
.sc-empty {
    margin: 4px 8px 8px;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #b3b3b3;
}

/* Remote mode (connect.js): Feishin's own player bar shows the other device's song. Its play/pause icon is replaced
   by one that follows the remote state; the devices button turns green and names the device. */
html.sc-remote #player-bar button:has(> .sc-icon) > :not(.sc-icon),
html.sc-remote #player-bar button:has(> .sc-icon) svg:not(.sc-icon) {
    display: none !important;
}
#player-bar .sc-icon {
    width: 18px;
    height: 18px;
}
html.sc-remote #player-bar .mantine-Slider-bar {
    background: #22d36b !important;
}
.sc-btn.is-remote {
    width: auto;
    max-width: 260px;
    gap: 6px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    color: #22d36b;
    font-family: 'Figtree', 'Inter', system-ui, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
}
.sc-btn.is-remote svg {
    flex: none;
}
.sc-btn.is-remote span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sc-btn.is-remote:hover {
    color: #22d36b;
    background: rgba(34, 211, 107, 0.12);
}

.sc-toast {
    position: fixed;
    left: 50%;
    bottom: 120px;
    z-index: 500;
    max-width: min(420px, calc(100vw - 32px));
    padding: 10px 16px;
    border-radius: 8px;
    background: #ffffff;
    color: #000000;
    font-family: 'Figtree', 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translate(-50%, 8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.sc-toast.is-on {
    opacity: 1;
    transform: translate(-50%, 0);
}
@media (prefers-reduced-motion: reduce) {
    .sc-menu { animation: none; }
    .sc-toast { transition: none; }
}

/* "Tocar aqui": when the browser blocks starting audio in a tab that wasn't clicked, one tap continues playback. */
.sc-tap {
    position: fixed;
    left: 50%;
    bottom: 128px;
    z-index: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
    border-radius: 999px;
    background: #22d36b;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    transform: translateX(-50%);
    font-family: 'Figtree', 'Inter', system-ui, sans-serif;
    animation: sc-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.sc-tap-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: min(420px, calc(100vw - 96px));
    padding: 8px 20px 8px 8px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #000000;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.sc-tap-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #000000;
    color: #22d36b;
}
.sc-tap-icon svg {
    width: 20px;
    height: 20px;
}
.sc-tap-btn span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.sc-tap-btn strong {
    font-size: 1rem;
    font-weight: 800;
}
.sc-tap-btn small {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sc-tap-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.12);
    color: #000000;
    font-size: 1.2rem;
    cursor: pointer;
}
.sc-tap-btn:focus-visible,
.sc-tap-close:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 2px;
}
