.hmp-sticky-player {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: minmax(230px, 330px) 168px 70px minmax(280px, 1fr) 62px 76px 96px 72px 72px 66px;
    align-items: stretch;
    min-height: 58px;
    background: #000;
    color: #fff;
    border-top: 2px solid #8f883e;
    box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.44);
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0;
}

.hmp-sticky-player * {
    box-sizing: border-box;
}

.hmp-now {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 8px 14px 8px 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.hmp-cover {
    width: 42px;
    height: 42px;
    object-fit: cover;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hmp-meta {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.hmp-meta strong,
.hmp-meta span,
.hmp-meta small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.05;
}

.hmp-meta strong {
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

.hmp-meta span {
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.hmp-meta small {
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
    font-weight: 700;
}

.hmp-transport {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.hmp-icon-button,
.hmp-panel-button {
    appearance: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 900;
    letter-spacing: 0;
    cursor: pointer;
}

.hmp-icon-button:disabled,
.hmp-panel-button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.hmp-icon-button {
    display: grid;
    place-items: center;
    min-width: 0;
    height: 100%;
    padding: 0;
}

.hmp-icon-button svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.hmp-toggle svg {
    width: 36px;
    height: 36px;
}

.hmp-pause-icon,
.hmp-toggle.hmp-is-playing .hmp-play-icon {
    display: none;
}

.hmp-toggle.hmp-is-playing .hmp-pause-icon {
    display: block;
}

.hmp-time,
.hmp-duration {
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.hmp-time {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.hmp-duration {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.hmp-wave {
    position: relative;
    align-self: center;
    height: 34px;
    margin: 0 12px;
    overflow: hidden;
    background: #030303;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.hmp-wave::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    pointer-events: none;
    transform: translateY(-50%);
}

.hmp-wave-canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.hmp-wave-playhead {
    position: absolute;
    inset: 0 auto 0 0;
    display: block;
    width: 0;
    background: transparent;
    border-right: 1px solid rgba(255, 255, 255, 0.54);
    pointer-events: none;
}

.hmp-panel-button {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 58px;
    padding: 4px 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
}

.hmp-panel-button svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.hmp-panel-button small {
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
}

.hmp-loop {
    grid-template-rows: 16px 28px;
    color: #fff;
}

.hmp-loop strong {
    font-size: 12px;
    line-height: 1;
}

.hmp-loop[aria-pressed="true"] {
    color: #2aff58;
}

.hmp-nonstop[aria-pressed="true"],
.hmp-favorite[aria-pressed="true"] {
    color: #e21b2d;
}

.hmp-favorite svg {
    width: 31px;
    height: 31px;
}

.hmp-share {
    grid-template-rows: 28px 12px;
    color: #fff;
}

.hmp-share svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.hmp-sticky-toggle {
    grid-template-rows: 26px 12px;
}

.hmp-sticky-toggle span {
    font-size: 26px;
    line-height: 0.6;
}

.hmp-sticky-player.hmp-sticky-off {
    left: auto;
    width: 66px;
    grid-template-columns: 66px;
    min-height: 58px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.hmp-sticky-player.hmp-sticky-off > :not(.hmp-sticky-toggle) {
    display: none;
}

.hmp-sticky-player.hmp-sticky-off .hmp-sticky-toggle {
    display: grid;
    min-height: 58px;
    border-right: 0;
}

@media (max-width: 980px) {
    .hmp-sticky-player {
        grid-template-columns: minmax(170px, 1fr) 118px 58px 72px 62px;
    }

    .hmp-wave,
    .hmp-duration,
    .hmp-loop,
    .hmp-share,
    .hmp-sticky-toggle {
        display: none;
    }

    .hmp-transport {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 560px) {
    .hmp-sticky-player {
        grid-template-columns: minmax(150px, 1fr) 58px 54px;
        min-height: 60px;
    }

    .hmp-now {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
        padding: 8px 10px;
    }

    .hmp-transport {
        display: contents;
    }

    .hmp-prev,
    .hmp-next,
    .hmp-time,
    .hmp-nonstop,
    .hmp-favorite {
        display: none;
    }

    .hmp-toggle,
    .hmp-panel-button {
        min-height: 60px;
        border-left: 1px solid rgba(255, 255, 255, 0.12);
        border-right: 0;
    }
}
