/* ==========================================================================
   Milpartituras - Reproductor online de tablaturas (alphaTab)
   Estilos propios del reproductor. Diseno grande y legible: la partitura es
   el protagonista de la pagina.
   ========================================================================== */

.mp-player {
    margin: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

/* --- Barra de controles ------------------------------------------------- */
.mp-controls {
    background: #23272f;
    border-radius: 6px 6px 0 0;
    color: #fff;
    padding: 10px 14px;
    display: block;
    line-height: normal;
}

.mp-controls:before,
.mp-controls:after {
    content: "";
    display: table;
}
.mp-controls:after {
    clear: both;
}

.mp-btn {
    background: #3a4250;
    border: 0;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-size: 19px;
    height: 48px;
    margin: 0 5px 0 0;
    padding: 0;
    text-align: center;
    vertical-align: middle;
    width: 56px;
}
.mp-btn:hover {
    background: #4d5871;
}
.mp-btn[disabled] {
    cursor: default;
    opacity: 0.45;
}
.mp-btn.mp-active {
    background: #1f7bb6;
}

/* Boton principal de play mas grande que el resto */
.mp-btn.mp-play {
    background: #1f7bb6;
    width: 64px;
}
.mp-btn.mp-play:hover {
    background: #2c8fd0;
}
.mp-btn.mp-play[disabled] {
    background: #3a4250;
}

.mp-group {
    display: inline-block;
    margin: 0 16px 0 0;
    vertical-align: middle;
}

.mp-label {
    color: #aab3c0;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    margin-right: 7px;
    text-transform: uppercase;
    vertical-align: middle;
}

.mp-tempo select {
    background: #3a4250;
    border: 0;
    border-radius: 4px;
    color: #fff;
    font-size: 15px;
    height: 48px;
    padding: 0 8px;
    vertical-align: middle;
}

.mp-status {
    color: #aab3c0;
    float: right;
    font-size: 14px;
    line-height: 48px;
    max-width: 42%;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mp-status.mp-error {
    color: #ff9d9d;
    line-height: 1.4;
    padding-top: 10px;
}

/* --- Acciones destacadas en /song/ (reproducir + descargar) -------------- */
.song-actions {
    margin: 0 0 5px;
}

.song-actions .btn-song-player,
.song-actions .btn-song-download {
    border-radius: 4px;
    display: inline-block;
    font-size: 16px;
    line-height: normal;
    margin: 0 10px 8px 0;
    padding: 12px 20px;
    text-decoration: none;
    vertical-align: middle;
}

.song-actions .btn-song-player {
    background: #1f7bb6;
    color: #fff;
}
.song-actions .btn-song-player:hover {
    background: #2c8fd0;
    color: #fff;
}

.song-actions .btn-song-download {
    background: #f5f5f5;
    border: 1px solid #ccc;
    color: #333;
}
.song-actions .btn-song-download:hover {
    background: #ececec;
    color: #222;
}

/* --- Cursor de reproduccion ----------------------------------------------*/
/* alphaTab crea y posiciona estos divs pero NO les aplica color: cada web
   define su estilo (ver demo oficial de alphaTab). */
.mp-player .at-cursor-bar {
    background: #1f7bb6;
    opacity: 0.15;
}

.mp-player .at-cursor-beat {
    background: #d9534f;
}

/* Marco del area de la partitura */
.mp-score-frame {
    background: #fff;
    border: 1px solid #d5d5d5;
    border-top: 0;
}

/* Viewport con scroll propio: la cabecera y los anuncios permanecen fijos */
.mp-score-viewport {
    -webkit-overflow-scrolling: touch;
    height: 78vh;
    min-height: 520px;
    overflow: auto;
}

#mp-sheet {
    margin: 0 auto;
    max-width: 100%;
    padding: 22px 18px;
}

/* alphaTab inserta svg dentro de este div */
#mp-sheet svg {
    display: block;
    margin: 0 auto;
}

.mp-loading {
    color: #777;
    font-size: 16px;
    padding: 120px 20px;
    text-align: center;
}

/* --- Lista de pistas ---------------------------------------------------- */
.mp-tracks {
    background: #fff;
    border: 1px solid #d5d5d5;
    border-top: 0;
}

.mp-tracks-title {
    background: #f2f2f2;
    border-bottom: 1px solid #ddd;
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    letter-spacing: 1px;
    margin: 0;
    padding: 12px 16px;
    text-transform: uppercase;
}

.mp-tracks ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mp-tracks li {
    border-bottom: 1px solid #ececec;
    margin: 0;
    padding: 11px 16px;
}

.mp-tracks li:last-child {
    border-bottom: 0;
}

.mp-track-name {
    color: #222;
    display: inline-block;
    font-size: 15px;
    margin-right: 12px;
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.mp-track-drums {
    color: #999;
    font-size: 12px;
    margin-left: 5px;
    text-transform: uppercase;
}

.mp-track-mute {
    cursor: pointer;
    font-size: 14px;
    margin-left: 12px;
    vertical-align: middle;
}

.mp-track-vol {
    -webkit-appearance: none;
    appearance: none;
    background: #ccc;
    border-radius: 3px;
    height: 8px;
    vertical-align: middle;
    width: 110px;
}
.mp-track-vol::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: #1f7bb6;
    border-radius: 50%;
    cursor: pointer;
    height: 18px;
    width: 18px;
}
.mp-track-vol::-moz-range-thumb {
    background: #1f7bb6;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    height: 18px;
    width: 18px;
}

/* --- Enlaces bajo el reproductor ---------------------------------------- */
.mp-links {
    margin-top: 18px;
}
.mp-links a {
    margin-right: 20px;
}

/* --- Movil ---------------------------------------------------------------*/
@media only screen and (max-width: 767px) {
    .mp-controls {
        text-align: center;
    }
    .mp-btn {
        height: 44px;
        font-size: 17px;
        width: 50px;
    }
    .mp-btn.mp-play {
        width: 58px;
    }
    .mp-status {
        clear: both;
        float: none;
        line-height: 1.5;
        max-width: 100%;
        padding: 8px 0 2px;
        text-align: center;
    }
    .mp-tempo {
        display: block;
        margin: 10px 0 0;
    }
    .mp-tempo select {
        height: 42px;
    }
    .mp-score-viewport {
        height: 62vh;
        min-height: 320px;
    }
    #mp-sheet {
        padding: 14px 8px;
    }
    .mp-track-name {
        display: block;
        max-width: 100%;
        white-space: normal;
    }
}
