/* ============================================================
   GUITAR SCALE CATALOG
   Compact Scale Detail / Playback Layout
   ============================================================ */


/* ============================================================
   COMPACT SCALE TITLE AREA
   ============================================================ */

.page-hero.compact.scale-detail-hero {
    padding: 25px 0 27px;
}


.scale-detail-hero .compact-back-link {
    margin-bottom: 13px;

    font-size: 13px;
}


.scale-detail-hero .compact-title-row {
    align-items: center;
}


.scale-detail-hero h1 {
    margin: 5px 0 0;

    font-size: clamp(
        31px,
        4vw,
        43px
    );

    line-height: 1.02;
}


.scale-title-meta {
    display: flex;
    align-items: center;

    gap: 10px;

    flex-wrap: wrap;
}


.alternate-inline {
    color: var(--muted);

    font-size: 12px;
}


.compact-favorite {
    min-height: 38px;

    padding: 0 13px;

    font-size: 13px;
}


/* ============================================================
   COMPACT DETAIL BODY
   ============================================================ */

.compact-detail-section {
    padding-top: 22px;
    padding-bottom: 48px;
}


.compact-detail-grid {
    gap: 12px;
}


.compact-info-card {
    padding: 17px 19px;
}


.compact-note-row {
    margin-top: 10px;

    gap: 6px;
}


.compact-note-pill {
    min-width: 37px;
    width: 37px;
    height: 37px;

    font-size: 12px;
}


.compact-formula {
    margin-top: 9px;

    font-size: 16px;

    line-height: 1.45;
}


.compact-description-card {
    margin-top: 12px;

    padding: 14px 19px;
}


.compact-description-layout {
    display: grid;

    grid-template-columns:
        145px
        1fr;

    align-items: start;

    gap: 18px;
}


.compact-description-layout p {
    margin: 0;

    color: #b4c2ce;

    font-size: 14px;

    line-height: 1.55;
}


/* ============================================================
   PLAYBACK CONTROLS INSIDE FRETBOARD HEADER
   ============================================================ */

.compact-playback-panel {
    flex: 0 0 auto;

    display: flex;
    align-items: flex-end;

    gap: 9px;
}


.compact-playback-selects {
    display: flex;

    gap: 7px;
}


.playback-field {
    display: flex;

    flex-direction: column;

    gap: 4px;
}


.playback-field label {
    color: #aebdca;

    font-size: 10px;

    font-weight: 750;

    text-transform: uppercase;

    letter-spacing: 0.05em;
}


.compact-playback-field select {
    min-width: 112px;
    min-height: 34px;

    height: 34px;

    padding: 0 27px 0 9px;

    color: var(--text);

    background: #0e1620;

    border: 1px solid #334354;
    border-radius: 8px;

    outline: none;

    font-size: 12px;
}


.compact-playback-field select:focus {
    border-color: var(--blue);
}


.compact-playback-field select option {
    background: #101820;
}


.playback-buttons {
    display: flex;

    gap: 6px;

    flex-wrap: nowrap;
}


.compact-playback-buttons {
    align-items: center;
}


.compact-play-button,
.compact-stop-button {
    min-height: 34px;
    height: 34px;

    padding: 0 11px;

    border-radius: 8px;

    font-size: 12px;

    white-space: nowrap;
}


.stop-button {
    color: #e5edf5;

    background: #202b37;

    border: 1px solid #425161;

    cursor: pointer;

    font-weight: 750;
}


.stop-button:not(:disabled):hover {
    background: #293746;
}


.playback-buttons button:disabled {
    opacity: 0.45;

    cursor: default;

    transform: none;
}


.play-scale-button.is-playing {
    opacity: 0.65;
}


/* ============================================================
   PLAYBACK STATUS
   ============================================================ */

.playback-status {
    min-height: 0;

    margin: 0;

    color: #91a5b8;

    font-size: 11px;

    line-height: 1.35;

    text-align: right;
}


.playback-status::before {
    content: "●";

    margin-right: 5px;

    color: var(--blue-light);

    font-size: 7px;
}


/* ============================================================
   COMPACT FUTURE / JAM CARD
   ============================================================ */

.compact-future-card {
    margin-top: 12px;

    padding: 15px 19px;
}


.compact-future-layout {
    display: grid;

    grid-template-columns:
        auto
        1fr
        auto;

    align-items: center;

    gap: 22px;
}


.compact-future-layout h2 {
    margin: 3px 0 0;

    font-size: 17px;
}


.compact-future-layout p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.45;
}


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

@media (max-width: 1050px) {

    .fretboard-top-row {
        flex-direction: column;

        gap: 14px;
    }


    .compact-playback-panel {
        width: 100%;

        justify-content: flex-start;
    }


    .playback-status {
        text-align: left;
    }

}


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

@media (max-width: 700px) {

    .page-hero.compact.scale-detail-hero {
        padding: 20px 0 23px;
    }


    .scale-detail-hero h1 {
        font-size: 31px;
    }


    .compact-detail-section {
        padding-top: 16px;
    }


    .compact-detail-grid {
        grid-template-columns: 1fr;
    }


    .compact-description-layout {
        grid-template-columns: 1fr;

        gap: 7px;
    }


    .compact-playback-panel {
        align-items: stretch;

        flex-direction: column;
    }


    .compact-playback-selects {
        width: 100%;
    }


    .compact-playback-field {
        flex: 1;
    }


    .compact-playback-field select {
        width: 100%;
    }


    .compact-playback-buttons {
        width: 100%;
    }


    .compact-playback-buttons button {
        flex: 1;
    }


    .compact-future-layout {
        grid-template-columns: 1fr;

        gap: 8px;
    }


    .compact-future-layout .coming-soon {
        justify-self: start;
    }

}
