/* Salvapantallas musical: ajustes integrados en la cabecera del reproductor expandido. */

.artist-portal-mini-player__visualizer canvas {
    background: #080d10;
}

.artist-portal-mini-player__visualizer.is-ss-unsupported {
    background: radial-gradient(ellipse at 50% 85%, rgba(120, 60, 170, 0.55), transparent 60%), linear-gradient(180deg, #05060f, #1a0d2e 70%, #2a1240);
}

.artist-portal-mini-player__visualizer.is-ss-unsupported canvas {
    visibility: hidden;
}

.jj-ss-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    gap: 0.5rem;
}

.jj-ss-panel {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    z-index: 6;
    box-sizing: border-box;
    width: min(23rem, calc(100vw - 2.4rem));
    max-height: calc(100vh - 8.5rem);
    overflow-y: auto;
    padding: 1rem 1.1rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.8rem;
    background: rgba(14, 14, 16, 0.96);
    box-shadow: 0 0 0 1px rgba(215, 232, 60, 0.035), 0 24px 50px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(20px);
    color: #f6f6f1;
    font: 600 0.78rem/1.3 "B612", sans-serif;
}

.jj-ss-panel[hidden] {
    display: none;
}

.jj-ss-field {
    display: grid;
    gap: 0.3rem;
    margin: 0 0 0.65rem;
}

.jj-ss-field__label {
    color: rgba(255, 255, 255, 0.72);
    font: 700 0.68rem/1.2 "B612", sans-serif;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.jj-ss-field--switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.jj-ss-select {
    box-sizing: border-box;
    width: 100%;
    height: var(--artist-control-height, 42px);
    padding: 0 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.55rem;
    background-color: #111315;
    color: #f6f6f1;
    font: 600 0.82rem/1 "B612", sans-serif;
}

.jj-ss-select:focus-visible {
    border-color: var(--artist-private-accent, #d7e83c);
    outline: none;
    box-shadow: 0 0 0 1px var(--artist-private-accent, #d7e83c);
}

.jj-ss-select option {
    background: #111315;
    color: #f6f6f1;
}

.jj-ss-range__wrap {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.jj-ss-range {
    flex: 1 1 auto;
    min-width: 0;
    accent-color: var(--artist-private-accent, #d7e83c);
}

.jj-ss-range__value {
    flex: 0 0 3rem;
    color: #f6f6f1;
    font: 700 0.78rem/1 "B612", sans-serif;
    text-align: right;
}

.jj-ss-switch {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 2.6rem;
    height: 1.5rem;
    margin: 0;
    cursor: pointer;
}

.jj-ss-switch input[type="checkbox"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
}

.jj-ss-switch__track {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    transition: background-color 0.18s ease, border-color 0.18s ease;
    pointer-events: none;
}

.jj-ss-switch__track::after {
    position: absolute;
    top: 50%;
    left: 0.2rem;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    background: #f7f7ef;
    content: "";
    transform: translateY(-50%);
    transition: transform 0.18s ease, background-color 0.18s ease;
}

.jj-ss-switch input:checked + .jj-ss-switch__track {
    border-color: #d7e83c;
    background: rgba(215, 232, 60, 0.85);
}

.jj-ss-switch input:checked + .jj-ss-switch__track::after {
    background: #15150f;
    transform: translate(1.1rem, -50%);
}

.jj-ss-switch input:focus-visible + .jj-ss-switch__track {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.jj-ss-status {
    margin: 0.2rem 0 0;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.62);
    font: 600 0.72rem/1.3 "B612", sans-serif;
}

.jj-ss-diagnostics {
    position: absolute;
    top: 5.2rem;
    left: 1.2rem;
    z-index: 4;
    margin: 0;
    padding: 0.45rem 0.7rem;
    border-radius: 0.4rem;
    background: rgba(0, 0, 0, 0.6);
    color: #d7e83c;
    font: 600 0.68rem/1.45 ui-monospace, Consolas, monospace;
    pointer-events: none;
    white-space: pre;
}

/* Con los ajustes abiertos la cabecera no se desvanece por inactividad. */
.artist-portal-mini-player__expanded.is-ss-open.is-idle .artist-portal-mini-player__modal-header {
    opacity: 1 !important;
    pointer-events: auto;
}
