/* =========================================================
   SUPERAPE — BEAT DETAIL PLAYER
   Brutalist / editorial
   ========================================================= */

.footer-player {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;

    transform: translateY(100%);
    transition: transform 0.18s ease;

    background: #08080a;

    border-top: 3px solid #e53935;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    box-shadow: none;
}

.footer-player.visible {
    transform: translateY(0);
}

.footer-player-inner {
    width: min(100% - 24px, 1100px);

    margin: 0 auto;
    padding: 11px 0 12px;

    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;

    align-items: center;
}


/* =========================================================
   MAIN
   ========================================================= */

.footer-player-main {
    display: flex;
    align-items: center;

    gap: 12px;

    min-width: 0;
}

.footer-player-toggle {
    position: relative;

    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    padding: 0;

    background: #f2f2ef;

    border: 1px solid #f2f2ef;
    border-radius: 0;

    cursor: pointer;

    box-shadow: none;
}

.footer-player-toggle:hover {
    background: #ffffff;
    border-color: #ffffff;
}


/* PLAY */

.footer-player-toggle::before {
    content: '';

    position: absolute;
    top: 50%;
    left: 50%;

    width: 0;
    height: 0;

    transform: translate(-38%, -50%);

    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid #08080a;

    background: transparent;
    clip-path: none;
}

.footer-player-toggle::after {
    content: '';
    display: none;
}


/* PAUSE */

.footer-player-toggle.is-playing::before,
.footer-player-toggle.is-playing::after {
    content: '';

    position: absolute;
    top: 50%;

    width: 4px;
    height: 16px;

    background: #08080a;

    border: 0;
    clip-path: none;

    transform: translate(-50%, -50%);
}

.footer-player-toggle.is-playing::before {
    left: calc(50% - 5px);
}

.footer-player-toggle.is-playing::after {
    display: block;

    left: calc(50% + 5px);
}


/* =========================================================
   META
   ========================================================= */

.footer-player-meta {
    min-width: 0;
}

.footer-player-title {
    margin: 0 0 4px;

    color: #ffffff;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.02em;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-player-sub {
    color: #666670;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;

    text-transform: uppercase;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


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

.footer-player-bar {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;

    gap: 8px;

    align-items: center;
}

.footer-player-time {
    color: #777781;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 9px;
    font-weight: 700;
    line-height: 1;

    text-align: center;
    font-variant-numeric: tabular-nums;
}

.footer-player-progress {
    width: 100%;
    height: 14px;

    margin: 0;

    appearance: none;
    -webkit-appearance: none;

    background: transparent;

    cursor: pointer;
}

.footer-player-progress::-webkit-slider-runnable-track {
    width: 100%;
    height: 3px;

    background: #34343b;

    border-radius: 0;
}

.footer-player-progress::-webkit-slider-thumb {
    width: 10px;
    height: 10px;

    margin-top: -3.5px;

    appearance: none;
    -webkit-appearance: none;

    background: #e53935;

    border: 0;
    border-radius: 0;
}

.footer-player-progress::-moz-range-track {
    height: 3px;

    background: #34343b;

    border: 0;
    border-radius: 0;
}

.footer-player-progress::-moz-range-progress {
    height: 3px;

    background: #e53935;

    border-radius: 0;
}

.footer-player-progress::-moz-range-thumb {
    width: 10px;
    height: 10px;

    background: #e53935;

    border: 0;
    border-radius: 0;
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 700px) {

    .footer-player-inner {
        grid-template-columns:
            minmax(220px, 0.45fr)
            minmax(400px, 1fr);

        gap: 28px;

        padding-top: 10px;
        padding-bottom: 10px;
    }

    .footer-player-toggle {
        flex-basis: 50px;

        width: 50px;
        height: 50px;
    }

    .footer-player-title {
        font-size: 16px;
    }

    .footer-player-bar {
        grid-template-columns: 40px minmax(0, 1fr) 40px;

        gap: 10px;
    }

    .footer-player-time {
        font-size: 10px;
    }
}
