#aeu-player-link {
    margin-top: 0px;
    display: flex;
    justify-content: center;
    width: 100%;

    .sidebar_button {
        display: flex;
        width: 270px;
        height: 185px;
        cursor: pointer;
        background: url('images/sidebar.png') no-repeat;
        background-position: auto;
    }
}
/*
#wpadminbar {
    display: none;
}
*/

#aeu-player {
    display: none;
    flex-direction: column;
    width: fit-content;
    height: 100%;
    align-self: center;
    background-color: #ffffff00;
    background-image: none;
    border-radius: 5px;
    margin-left: auto;
    margin-right: auto;

    div, li {
        user-select: none;
    }

    #player {
        position: relative;
        display: flex;
        background: url('images/bg.png');
        width: 506px;
        height: 159px;

        >div.track {
            font-family: 'Amstrad CPC', monospace;
            display: flex;
            font-size: 11px;
            color: #d0d0d0;
            flex-direction: column;
            position: relative;
            left:154px;
            top: 16px;
            width: 331px;
            height: 40px;

            >.album {
                top:18px;
                height: 20px;
                overflow: hidden;
            }
            >.title {
                height: 20px;
                overflow: hidden;
            }
        }

        >div.image {
            position: absolute;
            background-repeat: no-repeat;
            top: 14px;
            left: 19px;
            width: 113px;
            height: 113px;
            border: 0px;
            border-radius: 12px;
            background-size: 113px 113px;
            div {
                width: 113px;
                height: 113px;
                border-radius: 12px;
                background-image: url('images/thumb.png');
                background-size: 113px 113px;
            }
        }

        div.imagezoom {
            position: absolute;
            display: none;
            z-index: 100;
            width: 250px;
            height: 250px;
            border: 1px solid black;
            background-size: 250px 250px;
            background-repeat: no-repeat;
            user-select: none;
        }

        >.ratebox {
            position: absolute;
            cursor: pointer;
            top: 128px;
            left: 28px;
            width:98px;
            height: 29px;
            .currate {
                position: absolute;
                user-select: none;
                max-width: 88px;
                height: 19px;
                margin:5px;
                background: url('images/currate.png');
                background-position: 0px 0px;
                background-repeat: no-repeat;
            }

            .myrate {
                position: absolute;
                user-select: none;
                max-width: 88px;
                height: 19px;
                margin:5px;
                background: url('images/myrate.png');
                background-position: 0px 0px;
                background-repeat: no-repeat;
            }
        }

        >div.buttons {
            position: absolute;
            display: flex;
            flex-direction: row;
            align-items: center;
            top: 108px;
            left: 152px;
            width: 209px;
            height: 33px;
            margin:0px;
            padding: 0px;

            .button, .button:hover, .button:focus {
                cursor: pointer;
                min-width: 0;
                box-shadow: none;
                outline: none;
                border-radius: 50%;
                border: none;
                background-color: #ffffff00;
                background-position: 0px 0px;
                margin:0px;
                padding: 0px;
            }

            .small {
                width: 33px;
                height: 33px;
            }

            .small:active {
                background-position: 66px 0px;
            }

            .big {
                width: 44px;
                height: 44px;
            }

            .big:active {
                background-position: 88px 0px;
            }

            .previous {
                background-image: url('images/previous_button.png');
            }

            .stop {
                background-image: url('images/stop_button.png');
            }

            .play {
                background-image: url('images/play_button.png');
            }

            .pause {
                background-image: url('images/pause_button.png');
            }

            .next {
                background-image: url('images/next_button.png');
            }

            .playmode {
                &.shuffle {
                    background-image: url('images/shuffle_button.png');
                }
                &.repeat {
                    background-image: url('images/repeat_button.png');
                }
            }

            .download {
                background-image: url('images/download_button.png');
            }

        }
        .trackbar, .volumebar {
            cursor: pointer;
        }

        .trackbar {
            position: absolute;
            top: 70px;
            left: 152px;
            width: 330px;
            height: 20px;

            .progress {
                position: absolute;
                top: 9px;
                left: 3px;
                width: 0px;
                height: 7px;
                background-image: url('images/progress_bar.png');
            }
            .knob {
                position: relative;
                top: 3px;
                width: 20px;
                height: 20px;
                background-image: url('images/indicator.png');
                user-select: none;
            }
        }

        .volumebar {
            position: absolute;
            top: 109px;
            left: 373px;
            width: 108px;
            height: 20px;

            .progress {
                position: absolute;
                top: 9px;
                left: 3px;
                width: 0px;
                height: 7px;
                background-image: url('images/volume_bar.png');
            }
            .knob {
                position: relative;
                top: 3px;
                width: 20px;
                height: 20px;
                background-image: url('images/indicator.png');
                user-select: none;
            }
        }

    }

    #playlist, #selector {
        width: 506px;
        margin-bottom: 30px;

        .header, .footer {
            width: 506px;
            height: 11px;
            background-image: url('images/playlist_tb.png');
            background-repeat: no-repeat;
        }
        .footer {
            background-position: 0px -11px;
        }

        .body {
            width: 100%;
            height: 100%;
            background-image: url('images/playlist_bg.png');
            background-size: 100% 100%;
            padding-left:20px;
            padding-right:20px;
            align-self: center;
        }
    }


    #playlist {
        border: 1px solid salmon;
    }

    /* Choix de la playlist */
    .aeu-select {
        position: relative;
        width: 500px;
        margin: 10px 3px 0 3px;

        select {
            display: block;
            width: 100%;
            height: 40px;
            padding: 0 40px 0 14px;
            border: 1px solid #111111;
            border-radius: 3px;
            background-color: #333333;
            color: #dddddd;
            font-size: 16px;
            letter-spacing: 0.5px;
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
        }
        select:focus-visible {
            outline: 2px solid #888888;
        }
        option {
            background-color: #333333;
            color: #dddddd;
        }
        &::after {
            content: '';
            position: absolute;
            right: 16px;
            top: 17px;
            border-left: 6px solid transparent;
            border-right: 6px solid transparent;
            border-top: 7px solid #bbbbbb;
            pointer-events: none;
        }
    }

    /* Filtre par lettre */
    .aeu-letters {
        display: flex;
        width: 500px;
        margin: 6px 3px 0 3px;
        gap: 1px;

        .aeu-letter {
            flex: 1 1 0;
            min-width: 0;
            height: 24px;
            padding: 0;
            border: 1px solid #111111;
            border-radius: 2px;
            background-color: #333333;
            color: #cccccc;
            font-family: 'Amstrad CPC', monospace;
            font-size: 11px;
            line-height: 22px;
            cursor: pointer;
        }
        .aeu-letter[data-letter=""] {
            flex: 0 0 38px;
        }
        .aeu-letter:hover:not(:disabled) {
            background-color: #555555;
        }
        .aeu-letter.active {
            background-color: #777777;
            color: #ffffff;
        }
        .aeu-letter:disabled {
            color: #555555;
            cursor: default;
        }
    }

    .playlist-view {
        position: relative;
        border: 1px solid #111111;
        width: 500px;
        height: 580px;
        margin-top: 6px;
        margin-left: 3px;
        margin-right: 3px;
        background-color: #333333;

        ul {
            display: none;
            list-style: none;
            margin: 0px;
            padding: 0px;
            width: 500px;
            height: 580px;
            overflow-y: scroll;
            scrollbar-color: #333333 #222222;
            scrollbar-width: thin;
        }

        li {
            margin: 0px;
            padding: 10px;
            color: #dddddd;
            cursor: pointer;
        }

        li[hidden] {
            display: none;
        }

        li.aeu-empty {
            cursor: default;
            color: #888888;
            font-style: italic;
        }

        li.broken {
            color: #888888;
            text-decoration: line-through;
        }

        li.playing {
            background-color: #555555;
        }

        li:hover {
            background-color: #555555;
        }

    }
}

/* ---------- Petit lecteur [aeu_player_mini] ---------- */
.aeu-mini {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    font-size: 13px;
    line-height: 1.3;

    *, *::before, *::after {
        box-sizing: border-box;
    }

    .aeu-mini__heading {
        margin-bottom: 6px;
        font-family: 'Amstrad CPC', monospace;
        font-size: 13px;
        text-align: center;
    }

    .aeu-mini__body {
        padding: 10px;
        color: #dddddd;
        border: 1px solid #111111;
        border-radius: 8px;
        background: linear-gradient(#3c3c3c, #1f1f1f);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    }

    .aeu-mini__top {
        display: flex;
        gap: 10px;
        align-items: stretch;
    }

    .aeu-mini__image {
        flex: 0 0 34%;
        min-width: 72px;
        max-width: 160px;
        aspect-ratio: 4 / 3;
        align-self: flex-start;
        border: 1px solid #111111;
        border-radius: 6px;
        background: #2a2a2a url('images/thumb.png') center / cover no-repeat;
    }

    .aeu-mini__screen {
        flex: 1 1 auto;
        min-width: 0;
        padding: 6px 8px;
        border: 1px solid #111111;
        border-radius: 4px;
        background-color: #1a1a1a;
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
        font-family: 'Amstrad CPC', monospace;
        font-size: 11px;
    }

    .aeu-mini__title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: #eeeeee;
    }

    .aeu-mini__album {
        margin-top: 4px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        color: #999999;
    }

    .aeu-mini__progress, .aeu-mini__volume {
        position: relative;
        height: 8px;
        border-radius: 4px;
        background-color: #111111;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
        cursor: pointer;

        .aeu-mini__fill {
            width: 0%;
            height: 100%;
            border-radius: 4px;
            background: linear-gradient(#ffffff, #b8b8b8);
            pointer-events: none;
        }
    }

    .aeu-mini__progress {
        margin: 10px 0 8px 0;
    }

    .aeu-mini__controls {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .aeu-mini__btn, .aeu-mini__btn:hover, .aeu-mini__btn:focus {
        flex: 0 0 auto;
        min-width: 0;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 50%;
        box-shadow: none;
        outline: none;
        background-color: transparent;
        background-position: 0 0;
        background-repeat: no-repeat;
        cursor: pointer;
    }
    .aeu-mini__prev, .aeu-mini__next {
        width: 33px;
        height: 33px;
    }
    .aeu-mini__prev {
        background-image: url('images/previous_button.png');
    }
    .aeu-mini__next {
        background-image: url('images/next_button.png');
    }
    .aeu-mini__prev:active, .aeu-mini__next:active {
        background-position: -33px 0;
    }
    .aeu-mini__play {
        width: 44px;
        height: 44px;
        background-image: url('images/play_button.png');
    }
    .aeu-mini__play:active {
        background-position: -44px 0;
    }
    &.is-playing .aeu-mini__play {
        background-image: url('images/pause_button.png');
    }
    .aeu-mini__btn:focus-visible {
        outline: 2px solid #888888;
    }

    .aeu-mini__volume {
        flex: 1 1 auto;
        margin-left: 8px;
        height: 6px;
    }

    .aeu-mini__mode {
        width: 33px;
        height: 33px;
        background-image: url('images/repeat_button.png');
    }
    &.is-shuffle .aeu-mini__mode {
        background-image: url('images/shuffle_button.png');
    }
    .aeu-mini__mode:active {
        background-position: -33px 0;
    }

    .aeu-mini__selects {
        display: flex;
        gap: 6px;
        margin: 0 0 8px 0;
    }
    .aeu-mini__playlist, .aeu-mini__letter {
        display: block;
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
        margin: 0;
        padding: 4px 26px 4px 8px;
        border: 1px solid #111111;
        border-radius: 4px;
        color: #eeeeee;
        background: #1a1a1a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23aaa'/%3E%3C/svg%3E") right 9px center / 10px 6px no-repeat;
        font: 12px/1.3 'Amstrad CPC', monospace;
        appearance: none;
        -webkit-appearance: none;
        cursor: pointer;
        height: auto;
        min-height: 0;
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
    }
    .aeu-mini__letter {
        flex: 0 0 64px;
        width: 64px;
    }
    .aeu-mini__playlist option, .aeu-mini__letter option {
        color: #eeeeee;
        background: #1a1a1a;
    }
    .aeu-mini__letter option:disabled {
        color: #555555;
    }

    .aeu-mini__toggle, .aeu-mini__toggle:hover, .aeu-mini__toggle:focus {
        display: block;
        width: 100%;
        margin: 10px 0 0 0;
        padding: 5px 8px;
        border: 1px solid #111111;
        border-radius: 4px;
        color: #cccccc;
        background: #2a2a2a;
        box-shadow: none;
        font-size: 12px;
        line-height: 1.3;
        text-align: left;
        text-transform: none;
        letter-spacing: normal;
        cursor: pointer;
    }
    .aeu-mini__toggle::after {
        content: '▾';
        float: right;
        transition: transform .2s;
    }
    &.is-open .aeu-mini__toggle::after {
        transform: rotate(180deg);
    }
    .aeu-mini__toggle:hover {
        color: #ffffff;
    }

    .aeu-mini__panel {
        margin-top: 6px;
    }
    .aeu-mini__panel[hidden] {
        display: none;
    }
    .aeu-mini__list {
        max-height: 220px;
        margin: 0;
        padding: 2px 0;
        overflow-y: auto;
        list-style: none;
        border: 1px solid #111111;
        border-radius: 4px;
        background-color: #1a1a1a;
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
        scrollbar-color: #555555 #1a1a1a;
        scrollbar-width: thin;

        li {
            margin: 0;
            padding: 3px 8px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            color: #cccccc;
            font: 11px/1.4 'Amstrad CPC', monospace;
            cursor: pointer;
            list-style: none;
        }
        li::before {
            content: none;
        }
        li:hover {
            color: #ffffff;
            background-color: #2e2e2e;
        }
        li.is-current {
            color: #111111;
            background-color: #dddddd;
        }
        li.aeu-mini__empty {
            color: #777777;
            cursor: default;
            background: none;
        }
    }

    .aeu-mini__open {
        display: block;
        margin-top: 8px;
        font-size: 12px;
        color: #aaaaaa;
        text-align: right;
        text-decoration: none;
    }
    .aeu-mini__open:hover {
        color: #ffffff;
    }
}
