#ahna-player,
#ahna-mini {
    box-sizing: border-box;
    font-family: system-ui, sans-serif;
    z-index: 99990;
    color: #fff;
}
#ahna-player[hidden],
#ahna-mini[hidden] {
    display: none !important;
}
#ahna-player {
    position: fixed;
    bottom: calc(15px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 420px;
    padding: 33px 14px 12px;
    background: linear-gradient(135deg, #35353beb, #111117f5);
    backdrop-filter: blur(20px);
    border: 1px solid #ffffff22;
    border-radius: 14px;
    box-shadow: 0 8px 32px #0005;
}
#ahna-player button,
#ahna-mini button {
    font: inherit;
    color: inherit;
    border: 0;
    cursor: pointer;
    padding: 0;
    background: transparent;
    display: grid;
    place-items: center;
    box-shadow: none;
    line-height: 1;
}
#ahna-player button:focus-visible,
#ahna-mini button:focus-visible {
    outline: 2px solid #75dfbc;
    outline-offset: 3px;
}
.ahna-window {
    position: absolute;
    right: 8px;
    top: 5px;
    display: flex;
    gap: 5px;
}
.ahna-window button {
    width: 30px;
    height: 25px !important;
    font-size: 23px !important;
    border-radius: 6px;
}
.ahna-window button:hover {
    background: #ffffff22 !important;
}
.ahna-layout {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ahna-art {
    position: relative;
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    border-radius: 9px;
    overflow: hidden;
    background: #485568;
    display: grid;
    place-items: center;
    font-size: 28px;
}
.ahna-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ahna-controls {
    flex: 1;
    min-width: 0;
}
.ahna-title {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #eee;
    margin-bottom: 5px;
}
.ahna-times {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #aaa;
}
#ahna-progress {
    display: block;
    width: 100%;
    height: 14px;
    margin: 3px 0 8px;
    padding: 0;
    accent-color: white;
    cursor: pointer;
}
.ahna-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.ahna-buttons button {
    min-width: 30px;
    height: 34px;
    font-size: 18px !important;
}
.ahna-buttons button[data-ahna='speed'] {
    font-size: 12px !important;
}
.ahna-buttons .ahna-play {
    background: white !important;
    color: #202025 !important;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 20px !important;
}
#ahna-status {
    font-size: 12px;
    line-height: 1.5;
    margin: 8px 0 0;
    color: #f4dbb4;
}
#ahna-status:empty {
    display: none;
}
#ahna-mini {
    position: fixed;
    right: 20px;
    bottom: 30px;
    background: #253347;
    padding: 4px;
    display: flex;
    border-radius: 28px;
    border: 1px solid #ffffff30;
    box-shadow: 0 5px 18px #0003;
}
#ahna-mini button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
}
#ahna-mini button:hover {
    background: #ffffff22;
}
#ahna-mini.ahna-playing button:first-child {
    color: #69deb2;
}
#ahna-mini.ahna-closed button[data-ahna='play'] {
    display: none;
}
@media (max-width: 767px) {
    .ahna-art {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
    }
    #ahna-mini button {
        width: 44px;
        height: 44px;
    }
    .ahna-window button {
        width: 40px;
        height: 30px !important;
    }
    #ahna-player {
        padding-top: 39px;
    }
    .ahna-buttons button {
        min-height: 40px;
    }
    .ahna-layout {
        gap: 9px;
    }
}
@media print {
    #ahna-player,
    #ahna-mini {
        display: none !important;
    }
}
#ahna-player.ahna-inline {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: none;
    margin: 20px 0;
    box-sizing: border-box;
    z-index: 1;
}
#ahna-player .ahna-window .ahna-skip {
    width: auto !important;
    font-size: 12px !important;
    padding: 0 8px;
}
#ahna-player:not(.ahna-inline) .ahna-skip {
    display: none;
}
#ahna-player #ahna-progress {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 18px;
    min-height: 0;
    max-height: none;
    margin: 2px 0 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
    cursor: pointer;
}
#ahna-progress::-webkit-slider-runnable-track {
    height: 4px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(
        to right,
        #fff 0%,
        #fff var(--ahna-progress, 0%),
        #ffffff40 var(--ahna-progress, 0%),
        #ffffff40 100%
    );
    box-shadow: none;
}
#ahna-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    margin-top: -4px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px #0004;
}
#ahna-progress::-moz-range-track {
    height: 4px;
    border: 0;
    border-radius: 10px;
    background: #ffffff40;
    box-shadow: none;
}
#ahna-progress::-moz-range-progress {
    height: 4px;
    border-radius: 10px;
    background: #fff;
}
#ahna-progress::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px #0004;
}
#ahna-player #ahna-progress:focus-visible {
    outline: 2px solid #75dfbc;
    outline-offset: 2px;
    border-radius: 4px;
}
#ahna-player.ahna-horizontal {
    display: grid;
    grid-template-columns: 40px 18px 18px auto 32px minmax(
            40px,
            1fr
        ) 32px 36px 22px 18px 18px;
    align-items: center;
    gap: 10px;
    max-width: 620px;
    padding: 12px 14px;
    border: 1px solid #172337;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f2543;
    box-shadow: 0 2px 8px #15253c08;
    backdrop-filter: none;
}
#ahna-player.ahna-horizontal .ahna-layout,
#ahna-player.ahna-horizontal .ahna-controls,
#ahna-player.ahna-horizontal .ahna-times,
#ahna-player.ahna-horizontal .ahna-buttons,
#ahna-player.ahna-horizontal .ahna-window {
    display: contents;
}
#ahna-player.ahna-horizontal .ahna-art,
#ahna-player.ahna-horizontal .ahna-title,
#ahna-player.ahna-horizontal [data-ahna='reset'],
#ahna-player.ahna-horizontal .ahna-skip {
    display: none;
}
#ahna-player.ahna-horizontal button {
    min-width: 0;
    min-height: 0;
    width: auto;
    height: 28px;
    font-size: 14px !important;
    color: #8593a8;
}
#ahna-player.ahna-horizontal [data-ahna='play'] {
    grid-column: 1;
    grid-row: 1;
    width: 40px;
    height: 40px;
    background: #000 !important;
    color: #fff !important;
    border-radius: 50%;
    font-size: 20px !important;
}
#ahna-player.ahna-horizontal [data-ahna='prev'] {
    grid-column: 2;
    grid-row: 1;
}
#ahna-player.ahna-horizontal [data-ahna='next'] {
    grid-column: 3;
    grid-row: 1;
}
#ahna-player.ahna-horizontal .ahna-listen {
    grid-column: 4;
    grid-row: 1;
    white-space: nowrap;
    font-size: 12px;
    color: #0f2543;
}
#ahna-player.ahna-horizontal #ahna-elapsed {
    grid-column: 5;
    grid-row: 1;
}
#ahna-player.ahna-horizontal #ahna-progress {
    grid-column: 6;
    grid-row: 1;
    margin: 0;
    --ahna-progress: 0%;
}
#ahna-player.ahna-horizontal #ahna-total {
    grid-column: 7;
    grid-row: 1;
}
#ahna-player.ahna-horizontal #ahna-elapsed,
#ahna-player.ahna-horizontal #ahna-total {
    font: 10px/1.5 system-ui;
    color: #7185a4;
    text-align: center;
}
#ahna-player.ahna-horizontal [data-ahna='speed'] {
    grid-column: 8;
    grid-row: 1;
    height: 24px;
    padding: 2px 4px;
    background: #fff;
    border: 1px solid #e0e6ef;
    border-radius: 3px;
    font-size: 11px !important;
    color: #163c75;
}
#ahna-player.ahna-horizontal [data-ahna='mute'] {
    grid-column: 9;
    grid-row: 1;
}
#ahna-player.ahna-horizontal [data-ahna='minimize'] {
    grid-column: 10;
    grid-row: 1;
    font-size: 17px !important;
}
#ahna-player.ahna-horizontal [data-ahna='close'] {
    grid-column: 11;
    grid-row: 1;
    font-size: 17px !important;
}
#ahna-player.ahna-horizontal #ahna-status {
    grid-column: 1/-1;
    color: #a33e25;
    margin: 0;
}
#ahna-player.ahna-horizontal #ahna-progress::-webkit-slider-runnable-track {
    background: linear-gradient(
        to right,
        #0f2543 0%,
        #0f2543 var(--ahna-progress, 0%),
        #e1e7f0 var(--ahna-progress, 0%),
        #e1e7f0 100%
    );
}
#ahna-player.ahna-horizontal #ahna-progress::-webkit-slider-thumb {
    background: #000;
}
#ahna-player.ahna-horizontal #ahna-progress::-moz-range-track {
    background: #e1e7f0;
}
#ahna-player.ahna-horizontal #ahna-progress::-moz-range-progress {
    background: #0f2543;
}
#ahna-player.ahna-horizontal #ahna-progress::-moz-range-thumb {
    background: #000;
}
@media (max-width: 600px) {
    #ahna-player.ahna-horizontal {
        grid-template-columns: 40px 18px 18px minmax(
                35px,
                1fr
            ) 36px 22px 18px 18px;
        gap: 8px;
        padding: 10px;
    }
    #ahna-player.ahna-horizontal .ahna-listen {
        grid-column: 4;
    }
    #ahna-player.ahna-horizontal [data-ahna='speed'] {
        grid-column: 5;
    }
    #ahna-player.ahna-horizontal [data-ahna='mute'] {
        grid-column: 6;
    }
    #ahna-player.ahna-horizontal [data-ahna='minimize'] {
        grid-column: 7;
    }
    #ahna-player.ahna-horizontal [data-ahna='close'] {
        grid-column: 8;
    }
    #ahna-player.ahna-horizontal #ahna-elapsed {
        grid-column: 1;
        grid-row: 2;
    }
    #ahna-player.ahna-horizontal #ahna-progress {
        grid-column: 2/8;
        grid-row: 2;
    }
    #ahna-player.ahna-horizontal #ahna-total {
        grid-column: 8;
        grid-row: 2;
    }
}
#ahna-player.ahna-horizontal button svg,
#ahna-mini button svg {
    display: block;
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}
#ahna-player.ahna-horizontal [data-ahna='play'] svg {
    width: 25px;
    height: 25px;
}
#ahna-player.ahna-horizontal .ahna-listen {
    display: flex;
    align-items: center;
    gap: 5px;
}
#ahna-player.ahna-horizontal .ahna-listen svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
#ahna-player.ahna-horizontal button:hover {
    color: #203f65;
}
