/* =========================================================
   BASE SITE
   ========================================================= */

:root {
    --global-player-height: 0px;

    /*
     * Height of a hosting-provider overlay fixed to the bottom
     * of the browser window. JavaScript updates this only when
     * such an overlay is actually detected.
     */
    --hosting-bottom-overlay-height: 0px;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;

    /* The JS keeps --global-player-height in sync with the actual
       fixed player height, including when the EQ panel is opened. */
    padding-bottom: calc(
        var(--global-player-height) +
        var(--hosting-bottom-overlay-height) +
        24px
    );
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white,
                0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}


/* =========================================================
   GLOBAL AUDIO PLAYER
   ========================================================= */

.global-audio-player {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--hosting-bottom-overlay-height);
    z-index: 1050;

    width: 100%;
    max-height: 85vh;
    overflow-x: hidden;
    overflow-y: auto;

    padding: 10px 16px 12px;

    background: #111;
    color: #fff;

    border-top: 1px solid #3a3a3a;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.30);
}

.player-row {
    width: 100%;
}

/* Row 1: song | transport | seek */
.player-row-main {
    display: grid;
    grid-template-columns:
        minmax(240px, 320px)
        auto
        minmax(300px, 1fr);
    align-items: center;
    gap: 22px;
}

/* Row 2: volume | shuffle/crossfade | EQ controls */
.player-row-tools {
    display: grid;
    grid-template-columns:
        minmax(170px, auto)
        minmax(220px, auto)
        minmax(420px, 1fr);
    align-items: center;
    gap: 24px;

    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid #2b2b2b;
}


/* =========================================================
   SONG INFO
   ========================================================= */

.player-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.global-player-cover {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
}

.global-player-cover img {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
}

.global-player-info {
    min-width: 0;
}

.global-player-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.global-player-status {
    margin-top: 2px;
    font-size: 0.78rem;
    color: #aaa;
}


/* =========================================================
   TRANSPORT
   ========================================================= */

.player-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.global-player-controls {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.global-player-button {
    min-width: 42px;
    height: 38px;
    padding: 0 10px;

    border: 0;
    border-radius: 6px;

    background: #303030;
    color: #fff;
    cursor: pointer;
}

.global-player-button:hover {
    background: #474747;
}

.global-player-button:active {
    transform: translateY(1px);
}

.global-main-play {
    min-width: 50px;
    height: 44px;
    font-size: 1.15rem;
    background: #2962ff;
}

.global-main-play:hover {
    background: #3d70ff;
}


/* =========================================================
   SEEK / PROGRESS
   ========================================================= */

.player-right {
    min-width: 0;
}

.global-player-progress {
    display: grid;
    grid-template-columns: 42px minmax(150px, 1fr) 42px;
    align-items: center;
    gap: 9px;

    width: 100%;
    font-size: 0.8rem;
}

.global-player-progress input[type="range"] {
    width: 100%;
    min-width: 0;
    cursor: pointer;
}


/* =========================================================
   VOLUME
   ========================================================= */

.global-player-volume {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.global-player-volume input[type="range"] {
    width: 120px;
    cursor: pointer;
}


/* =========================================================
   SHUFFLE / CROSSFADE
   ========================================================= */

.global-player-options {
    display: flex;
    align-items: center;
    gap: 22px;
    white-space: nowrap;
}

.global-player-options .form-check {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.global-player-options .form-check-input {
    margin-top: 0;
    cursor: pointer;
}

.global-player-options .form-check-label {
    margin: 0;
    font-size: 0.82rem;
    color: #ddd;
    cursor: pointer;
}


/* =========================================================
   EQ TOOLBAR
   ========================================================= */

.global-player-eq-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;

    min-width: 0;
    white-space: nowrap;
}

.global-player-eq-tools strong {
    flex: 0 0 auto;
}

.global-player-eq-tools select {
    width: 140px;
    flex: 0 0 140px;
}

#globalEqPower.btn-danger {
    background-color: #842029;
}

.global-preamp {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.global-preamp label {
    margin: 0;
    font-size: 0.8rem;
}

.global-preamp input[type="range"] {
    width: 100px;
    cursor: pointer;
}

#globalPreampValue {
    display: inline-block;
    width: 52px;
    font-size: 0.8rem;
    color: #ccc;
    text-align: left;
}


/* =========================================================
   EQ PANEL / SPECTRUM
   ========================================================= */

.global-eq-panel {
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #333;
}

.global-spectrum {
    display: block;
    width: 100%;
    height: 100px;
    margin-bottom: 12px;
    background: #080808;
    border-radius: 6px;
}

.global-eq-bands {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 14px;

    width: 100%;
    overflow-x: auto;
    padding: 2px 4px 6px;
}

.global-eq-band {
    flex: 0 0 45px;
    min-width: 45px;
    text-align: center;
}

.global-eq-slider {
    width: 24px;
    height: 110px;
    writing-mode: vertical-lr;
    direction: rtl;
    cursor: pointer;
}

.global-eq-value {
    min-height: 20px;
    font-size: 0.75rem;
    color: #bbb;
}

.global-eq-label {
    margin-top: 4px;
    font-size: 0.8rem;
    color: #ddd;
}

.song-play-button {
    white-space: nowrap;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .player-row-main {
        grid-template-columns: minmax(220px, 1fr) auto;
        gap: 12px 18px;
    }

    .player-right {
        grid-column: 1 / -1;
    }

    .player-row-tools {
        grid-template-columns: auto auto;
        gap: 10px 20px;
    }

    .global-player-eq-tools {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}


/* =========================================================
   SMALL TABLET / LARGE PHONE
   ========================================================= */

@media (max-width: 800px) {

    .global-audio-player {
        padding: 9px 10px 11px;
    }

    .player-row-main,
    .player-row-tools {
        grid-template-columns: 1fr;
    }

    .player-left,
    .player-center,
    .player-right,
    .global-player-volume,
    .global-player-options,
    .global-player-eq-tools {
        width: 100%;
    }

    .player-center,
    .global-player-volume,
    .global-player-options,
    .global-player-eq-tools {
        justify-content: center;
    }

    .global-player-eq-tools {
        flex-wrap: wrap;
        white-space: normal;
    }

    .global-preamp {
        flex: 1 1 220px;
        justify-content: center;
    }

    .global-spectrum {
        height: 80px;
    }

    .global-eq-bands {
        justify-content: flex-start;
        gap: 9px;
    }

    .global-eq-slider {
        height: 95px;
    }
}


/* =========================================================
   PHONE
   ========================================================= */

@media (max-width: 600px) {

    .global-player-cover {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .global-player-cover img {
        width: 46px;
        height: 46px;
    }

    .global-player-controls {
        gap: 5px;
    }

    .global-player-button {
        min-width: 38px;
        padding: 0 7px;
    }

    .global-main-play {
        min-width: 48px;
    }

    .global-player-progress {
        grid-template-columns: 38px 1fr 38px;
        gap: 6px;
    }

    .global-player-volume input[type="range"] {
        width: 150px;
    }

    .global-player-options {
        gap: 20px;
    }

    .global-player-eq-tools select {
        width: 120px;
        flex-basis: 120px;
    }

    .global-preamp input[type="range"] {
        width: 130px;
    }

    .global-spectrum {
        height: 70px;
    }

    .global-eq-band {
        flex-basis: 40px;
        min-width: 40px;
    }

    .global-eq-slider {
        height: 85px;
    }
}


/* Songs table AJAX pagination */
#songsResults {
    scroll-margin-top: 12px;
}

#songsResults.songs-results-loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.12s ease-in-out;
}


/* =========================================================
   DARK MODE
   Saved by Views/Setup/Index.cshtml in localStorage.
   ========================================================= */

html.dark-mode {
    color-scheme: dark;
}

html.dark-mode body {
    background: #121212;
    color: #e7e7e7;
}

html.dark-mode .bg-white,
html.dark-mode .navbar.bg-white {
    background-color: #1b1b1b !important;
}

html.dark-mode .navbar,
html.dark-mode .border-top,
html.dark-mode .border-bottom {
    border-color: #383838 !important;
}

html.dark-mode .navbar-light .navbar-brand,
html.dark-mode .navbar-light .navbar-nav .nav-link,
html.dark-mode .text-dark {
    color: #ededed !important;
}

html.dark-mode .navbar-light .navbar-toggler {
    border-color: #666;
    background: #e6e6e6;
}

html.dark-mode .text-muted {
    color: #aaa !important;
}

html.dark-mode .card {
    background-color: #1d1d1d;
    color: #ededed;
    border-color: #3b3b3b;
}

html.dark-mode .form-control,
html.dark-mode .form-select {
    background-color: #202020;
    color: #f0f0f0;
    border-color: #4b4b4b;
}

html.dark-mode .form-control:focus,
html.dark-mode .form-select:focus {
    background-color: #242424;
    color: #fff;
}

html.dark-mode .form-control::placeholder {
    color: #8f8f8f;
}

html.dark-mode .table {
    --bs-table-bg: #171717;
    --bs-table-color: #ededed;
    --bs-table-border-color: #3a3a3a;
    --bs-table-hover-bg: #242424;
    --bs-table-hover-color: #fff;
    color: #ededed;
}

html.dark-mode .table > :not(caption) > * > * {
    background-color: #171717;
    color: #ededed;
    border-color: #3a3a3a;
}

html.dark-mode .table-hover > tbody > tr:hover > * {
    background-color: #242424;
    color: #fff;
}

html.dark-mode .table-dark > :not(caption) > * > * {
    background-color: #0b0b0b;
    color: #fff;
}

html.dark-mode .page-link {
    background-color: #202020;
    color: #b9d2ff;
    border-color: #454545;
}

html.dark-mode .page-item.active .page-link {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

html.dark-mode .page-item.disabled .page-link {
    background-color: #171717;
    color: #707070;
    border-color: #3b3b3b;
}

html.dark-mode .btn-outline-secondary {
    color: #d4d4d4;
    border-color: #777;
}

html.dark-mode .btn-outline-secondary:hover {
    background-color: #555;
    color: #fff;
}

html.dark-mode .btn-outline-primary {
    color: #7fb0ff;
    border-color: #4f8df7;
}

html.dark-mode .alert-success {
    color: #bde7c7;
    background-color: #153b20;
    border-color: #28643a;
}

html.dark-mode .alert-warning {
    color: #ffe4a6;
    background-color: #49380d;
    border-color: #6d5514;
}

html.dark-mode .footer {
    background-color: #121212;
    color: #aaa !important;
}

html.dark-mode pre {
    color: #ededed;
}

.setup-card {
    max-width: 760px;
}


/* =========================================================
   PLAYBACK QUEUE
   ========================================================= */

.global-queue-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.global-queue-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    border-radius: 999px;
    background: #0d6efd;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.global-queue-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1085;
    background: rgba(0, 0, 0, 0.42);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.global-queue-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.global-queue-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1090;

    width: min(470px, 94vw);
    height: calc(
        100vh -
        var(--hosting-bottom-overlay-height)
    );

    display: flex;
    flex-direction: column;

    background: #fff;
    color: #212529;
    border-left: 1px solid #d8d8d8;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.22);

    transform: translateX(102%);
    transition: transform 0.2s ease;
}

.global-queue-panel.is-open {
    transform: translateX(0);
}

.global-queue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 18px 15px;
    border-bottom: 1px solid #ddd;
}

.global-queue-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px 120px;
}

.global-queue-section {
    margin-bottom: 24px;
}

.global-queue-section h6 {
    font-weight: 700;
}

.global-queue-now-playing {
    margin-top: 9px;
}

.global-queue-now-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.global-queue-cover {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    background: #e5e5e5;
}

.global-queue-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.global-queue-song-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.global-queue-song-subtitle {
    margin-top: 2px;
    font-size: 0.78rem;
    color: #6c757d;
}

.global-queue-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.global-queue-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 8px 9px;
    border: 1px solid #ddd;
    border-radius: 7px;
}

.global-queue-item-main {
    min-width: 0;
}

.global-queue-play {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}

.global-queue-play:hover .global-queue-song-title {
    text-decoration: underline;
}

.global-queue-item-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.global-queue-mini-button {
    min-width: 29px;
    height: 29px;
    padding: 0 6px;
    border: 1px solid #bbb;
    border-radius: 5px;
    background: transparent;
    color: inherit;
    line-height: 1;
}

.global-queue-mini-button:hover {
    background: rgba(127, 127, 127, 0.13);
}

.global-queue-mini-button:disabled {
    opacity: 0.35;
    cursor: default;
}

.global-queue-source {
    display: inline-block;
    margin-top: 3px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #e9ecef;
    color: #555;
    font-size: 0.67rem;
    font-weight: 600;
}

.global-queue-empty {
    padding: 12px 4px;
    color: #777;
    font-size: 0.86rem;
}

body.global-queue-open {
    overflow: hidden;
}

html.dark-mode .global-queue-panel {
    background: #171717;
    color: #ededed;
    border-color: #3c3c3c;
}

html.dark-mode .global-queue-header,
html.dark-mode .global-queue-now-card,
html.dark-mode .global-queue-item {
    border-color: #3c3c3c;
}

html.dark-mode .global-queue-song-subtitle,
html.dark-mode .global-queue-empty {
    color: #aaa;
}

html.dark-mode .global-queue-source {
    background: #303030;
    color: #ddd;
}

html.dark-mode .global-queue-mini-button {
    border-color: #555;
    color: #ededed;
}

html.dark-mode .global-queue-cover {
    background: #2a2a2a;
}

html.dark-mode .global-queue-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

@media (max-width: 600px) {
    .global-queue-panel {
        width: 100vw;
    }

    .global-queue-content {
        padding-bottom: 150px;
    }

    .global-queue-item-actions {
        gap: 2px;
    }

    .global-queue-mini-button {
        min-width: 27px;
        padding: 0 5px;
    }
}


/* =========================================================
   KARAOKE / SYNCHRONIZED LYRICS
   ========================================================= */

.global-lyrics-toggle {
    white-space: nowrap;
}

.global-lyrics-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1085;
    background: rgba(0, 0, 0, 0.42);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.global-lyrics-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.global-lyrics-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1092;

    width: min(680px, 96vw);
    height: calc(
        100vh -
        var(--hosting-bottom-overlay-height)
    );

    display: flex;
    flex-direction: column;

    background: #111;
    color: #f4f4f4;
    border-left: 1px solid #333;
    box-shadow: -10px 0 34px rgba(0, 0, 0, 0.30);

    transform: translateX(102%);
    transition: transform 0.20s ease;
}

.global-lyrics-panel.is-open {
    transform: translateX(0);
}

.global-lyrics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 20px 15px;
    border-bottom: 1px solid #333;
}

.global-lyrics-header .btn-close {
    flex: 0 0 auto;
    filter: invert(1) grayscale(100%) brightness(200%);
}

.global-lyrics-content {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    padding: clamp(26px, 6vh, 70px) 24px 150px;
}

.global-lyrics-message {
    max-width: 520px;
    margin: 24px auto;
    padding: 18px;
    text-align: center;
    color: #bbb;
}

.global-lyrics-line {
    display: block;
    width: 100%;
    max-width: 610px;
    margin: 0 auto 10px;
    padding: 10px 12px;

    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;

    text-align: left;
    font-size: clamp(1.05rem, 1.5vw, 1.38rem);
    font-weight: 600;
    line-height: 1.55;

    opacity: 0.34;
    cursor: pointer;

    transform: scale(0.985);
    transform-origin: left center;

    transition:
        opacity 0.15s ease,
        transform 0.15s ease,
        background 0.15s ease;
}

.global-lyrics-line:hover {
    opacity: 0.78;
    background: rgba(255, 255, 255, 0.055);
}

.global-lyrics-line.is-active {
    opacity: 1;
    transform: scale(1);
    background: rgba(255, 255, 255, 0.075);
}

.global-lyrics-word {
    display: inline;
    border-radius: 4px;
    transition:
        color 0.08s linear,
        background 0.08s linear,
        opacity 0.08s linear;
}

.global-lyrics-word + .global-lyrics-word::before {
    content: " ";
}

.global-lyrics-word.is-active {
    color: #ffd54f;
    background: rgba(255, 213, 79, 0.10);
    text-shadow: 0 0 14px rgba(255, 213, 79, 0.18);
}

.global-lyrics-line.is-past {
    opacity: 0.20;
}

body.global-lyrics-open {
    overflow: hidden;
}

html.dark-mode .global-lyrics-panel {
    background: #0f0f0f;
    color: #f1f1f1;
    border-color: #333;
}

html.dark-mode .global-lyrics-header {
    border-color: #333;
}

@media (max-width: 600px) {
    .global-lyrics-panel {
        width: 100vw;
    }

    .global-lyrics-content {
        padding-left: 14px;
        padding-right: 14px;
        padding-bottom: 170px;
    }

    .global-lyrics-line {
        font-size: 1.12rem;
        padding-left: 9px;
        padding-right: 9px;
    }
}

/* SunoCar parity: 8/16-band EQ, mono, named presets (web only) */
.sunoweb-eq-mode{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.sunoweb-eq-mode-button,.sunoweb-named-eq button{font-size:11px;padding:5px 8px;background:#292929;color:#eee;border:1px solid #666;border-radius:5px}
.sunoweb-eq-mode-button[aria-pressed="true"]{background:#efbb19;color:#111;border-color:#efbb19}
.sunoweb-eq-mode label{white-space:nowrap;font-size:12px;margin:0 4px;display:flex;align-items:center;gap:4px}
.sunoweb-band-hidden{display:none!important}
.global-eq-bands.sunoweb-eq-16{display:grid;grid-template-columns:repeat(16,minmax(24px,1fr));min-width:560px;overflow-x:auto}
.global-eq-bands.sunoweb-eq-16 .global-eq-band{min-width:24px}
.global-eq-bands.sunoweb-eq-16 .global-eq-label{font-size:9px}
.global-eq-panel{overflow-x:auto}
.sunoweb-named-eq{display:flex;gap:7px;align-items:center;padding:8px 8px 12px;flex-wrap:wrap}
.sunoweb-named-eq input,.sunoweb-named-eq select{min-width:130px;max-width:200px;border-radius:4px;padding:5px;background:#222;color:#eee;border:1px solid #666;font-size:12px}

/* Browser-safe SunoCar-inspired sound profile controls */
.sunoweb-sound-options{margin:10px 8px;border:1px solid #4b4b4b;border-radius:8px;padding:7px 10px;color:#e9e9e9;background:#181818}
.sunoweb-sound-options summary{cursor:pointer;font-size:12px;font-weight:700}
.sunoweb-audio-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:9px 14px;padding:10px 0}
.sunoweb-audio-grid label{display:flex;flex-direction:column;gap:5px;font-size:12px}
.sunoweb-audio-grid label:has(input[type=checkbox]){flex-direction:row;align-items:center}
.sunoweb-audio-grid select{max-width:240px}
.sunoweb-audio-grid select,.sunoweb-audio-grid input[type=range]{accent-color:#ffc107}
.sunoweb-audio-grid output{color:#ffc107;font-variant-numeric:tabular-nums}
.sunoweb-sound-options small{color:#aaa;font-size:10px}


/* V24.8 — Sound Profiles & Car Audio Enhancements: actual vertical controls.
   Preserve native input[type=range] elements and their IDs so the Web Audio
   engine and saved values continue to work. This is not the main volume slider. */
.sunoweb-audio-grid.sunoweb-audio-vertical-layout {
    display: flex;
    align-items: stretch;
    gap: 14px;
    min-width: 0;
    padding: 10px 0 6px;
}
.sunoweb-audio-vertical-layout .sunoweb-audio-switches {
    flex: 0 0 185px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
    padding: 6px 2px;
}
.sunoweb-audio-vertical-layout .sunoweb-audio-switches label {
    min-width: 0;
}
.sunoweb-audio-vertical-layout .sunoweb-audio-switches select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.sunoweb-audio-vertical-layout .sunoweb-audio-slider-scroll {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: thin;
}
.sunoweb-audio-vertical-layout .sunoweb-audio-vertical-bands {
    display: grid;
    grid-template-columns: repeat(6, minmax(94px, 1fr));
    min-width: 600px;
    gap: 6px;
    padding: 4px 2px 12px;
}
.sunoweb-audio-vertical-layout .sunoweb-audio-vertical-band {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    min-width: 0;
    min-height: 0;
    text-align: center;
    font-size: 11px;
}
.sunoweb-audio-vertical-layout .sunoweb-audio-vertical-band > span {
    display: flex;
    justify-content: center;
    align-items: end;
    min-height: 38px;
    line-height: 1.2;
}
.sunoweb-audio-vertical-layout .sunoweb-audio-vertical-band > output {
    min-height: 17px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.sunoweb-audio-vertical-layout .sunoweb-audio-vertical-band > input[type="range"] {
    appearance: auto;
    -webkit-appearance: auto;
    writing-mode: vertical-lr;
    direction: rtl; /* Maximum at the top, minimum at the bottom. */
    display: block;
    flex: none;
    width: 26px;
    height: 155px;
    min-width: 26px;
    min-height: 105px;
    max-width: 26px;
    max-height: 155px;
    margin: 3px auto 0;
    padding: 0;
    cursor: pointer;
    /* Keep the existing theme-specific accent colour unchanged. */
    touch-action: none; /* Drag the thumb; scroll the bank from the gaps. */
}
@media (max-width: 720px) {
    .sunoweb-audio-grid.sunoweb-audio-vertical-layout {
        flex-direction: column;
        gap: 4px;
    }
    .sunoweb-audio-vertical-layout .sunoweb-audio-switches {
        flex: none;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 15px;
        padding: 2px 0;
    }
    .sunoweb-audio-vertical-layout .sunoweb-audio-switches > label:first-child {
        flex: 1 1 150px;
        max-width: 215px;
    }
    .sunoweb-audio-vertical-layout .sunoweb-audio-vertical-band > input[type="range"] {
        height: 125px;
        max-height: 125px;
    }
}


/* V24.9 — one slider bank at a time inside the existing EQ panel.
   Sound Profiles expanded: show its six vertical controls instead of
   8/16-band EQ sliders. Collapsed: restore original EQ sliders unchanged.
   The spectrum analyser and saved profile/quality controls are independent. */
#globalEqPanel.suno-sound-profile-active > .global-eq-bands {
    display: none !important;
}
#globalEqPanel > .sunoweb-sound-options {
    margin-top: 3px;
    margin-bottom: 7px;
}
#globalEqPanel.suno-sound-profile-active > .sunoweb-sound-options {
    border-color: var(--metal-accent, #8a7580);
}
