:root {
    --mp-tile: 16px;
    --mp-sheet: url("/system/player/player_skins/player_test.png");
}

.mini-player {
    position: relative;
    width: 320px;
    height: 48px;
    box-sizing: border-box;
    image-rendering: pixelated;
}

.mp-panel {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(17, 16px);
    grid-template-rows: repeat(3, 16px);
    pointer-events: none;
}

.mp-slice {
    width: 16px;
    height: 16px;
    background-image: var(--mp-sheet);
    background-repeat: no-repeat;
    image-rendering: pixelated;
}

.mp-button {
    width: 16px;
    height: 16px;
    padding: 0;
    border: 0;
    appearance: none;
    -webkit-appearance: none;
    background-color: transparent;
    background-image: var(--mp-sheet);
    background-position: -48px 0;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    position: relative;
    flex: 0 0 16px;
}

.mp-button.pressed {
    background-position: -48px -16px;
}

.mp-icon {
    display: block;
    width: 16px;
    height: 16px;
    background-image: var(--mp-sheet);
    image-rendering: pixelated;
    position: absolute;
    inset: 0;
}

.mp-play {
    background-position: -48px -32px;
}

.mp-pause {
    background-position: -48px -48px;
}

.mp-tl { background-position: 0 0; }
.mp-t  { background-position: -16px 0; }
.mp-tr { background-position: -32px 0; }

.mp-l  { background-position: 0 -16px; }
.mp-c  { background-position: -16px -16px; }
.mp-r  { background-position: -32px -16px; }

.mp-bl { background-position: 0 -32px; }
.mp-b  { background-position: -16px -32px; }
.mp-br { background-position: -32px -32px; }

.mp-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    height: 100%;
    padding: 8px 12px;
    box-sizing: border-box;
}

.mp-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.mp-title {
    line-height: 16px;
    align-self: flex-start;
    width: fit-content;
}

.mp-progress {
    display: flex;
    gap: 0;
    height: 16px;
}

.mp-segment {
    display: block;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;

    background-image: var(--mp-sheet);
    background-position: 0 -48px;
    background-repeat: no-repeat;

    image-rendering: pixelated;
}

.mp-segment.filled {
    background-position: -16px -48px;
}

.mp-progress-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.mp-time {
    flex: 0 0 auto;
    white-space: nowrap;
}

.mp-title,
.mp-time {
    font-family: 'Consolas', "Liberation Mono", "DejaVu Sans Mono", monospace !important;
    font-size: 10px;
    font-weight: bold;
    line-height: 12px;
    padding: 1px 3px;
    background: rgba(0, 0, 0, 0.35);
    text-shadow:
        1px 0 0 rgba(0, 0, 0, 0.8),
        0 1px 0 rgba(0, 0, 0, 0.8);
}