.seek-bar-background {
    width: 100%;
    height: 6px;
    position: absolute;
    top: 0;
    background:
        linear-gradient(to right, rgba(255, 140, 50, 0.69), rgba(255, 80, 200, 0.69), rgba(0, 255, 255, 0.69), rgba(180, 255, 100, 0.69), rgba(255, 255, 80, 0.69));
    border: none;
    border-radius: 3px;
    appearance: none;
    -webkit-appearance: none;
}

.seek-bar-background::-webkit-slider-thumb {
    visibility: hidden;
}

.seek-bar-background::-moz-range-thumb {
    visibility: hidden;
}

.seek-bar::-webkit-slider-runnable-track {
    height: 6px;
}

.seek-bar {
    width: 100%;
    height: 6px;
    align-self: center;
    background:
        linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) var(--percent, 0%),
            rgba(0, 0, 0, 0.51) var(--percent, 0%),
            rgba(0, 0, 0, 0.51) 100%);
    border: none;
    border-radius: 3px;
    appearance: none;
    -webkit-appearance: none;
    z-index: 1;
}

.seek-bar::-webkit-slider-thumb {
    width: 1px;
    height: 1px;
    margin-top: 2px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    -webkit-appearance: none;
    transform: scale(12);
}

.seek-bar::-moz-range-thumb {
    width: 1px;
    height: 1px;
    margin-top: 2px;
    background: #ccc;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transform: scale(12);
}

.seek-bar-glow {
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 6px;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 240, 0.99),
            transparent);
    animation: shine 3.6s linear infinite;
    opacity: 0;
}

.seek-bar-glow.loading {
    opacity: 1;
}

@keyframes shine {
    0% {
        left: -50%;
    }

    100% {
        left: 100%;
    }
}

.controls {
    width: 100%;
    padding: 0.4rem 3rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.left {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: left;
    vertical-align: middle;
    align-items: center;
}

.center {
    width: 500px;
    display: flex;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.audio-control-button {
    width: 40px;
    height: 40px;
    position: relative;
    background-color: rgba(255, 255, 255, 0.6);
    border: none;
    border-radius: 8px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
    background-size: cover;
    z-index: 2147483647;
}

.audio-control-button:active {
    background-color: rgba(150, 225, 245, 0.6);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
}

.previous-button {
    background-image: url("/icon/previous-button.svg");
}

.next-button {
    background-image: url("/icon/next-button.svg");
}

.play-pause-button {
    background-image: url("/icon/play-button.svg"), url("/icon/pause-button.svg");
    background-size: cover, 0 0;
}

.shuffle-button {
    background-image: url("/icon/shuffle-button.svg");
}

.repeat-button {
    background-image: url("/icon/repeat-all-button.svg"), url("/icon/repeat-one-button.svg");
    background-size: cover, 0 0;
}

.lyric-button {
    background-image: url("/icon/lyric-button.svg");
}

.audio-control-button.active {
    background-color: rgba(150, 225, 245, 0.8);
}

.knob {
    width: 50px;
    height: 50px;
    position: relative;
    cursor: pointer;
}

.knob-base {
    fill: rgba(0, 0, 0, 0.5);
    stroke: rgba(0, 0, 0, 0.7);
    stroke-width: 1;
}

.knob-indicator {
    stroke: rgba(255, 255, 255, 0.6);
    stroke-width: 5;
    stroke-linecap: round;
    transform-origin: 55px 55px;
    transition: transform 0.1s;
}

#audio-player {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.36s ease, visibility 0.36s ease;
}

#audio-player.visible {
    opacity: 1;
    visibility: visible;
}

#audio {
    visibility: hidden;
}

#control-box {
    width: 100%;
    height: 70px;
    position: fixed;
    bottom: 35px;
    left: 0;
    padding: 0;
    background:
        linear-gradient(to bottom, rgba(127, 127, 127, 0.75)),
        linear-gradient(to right, rgba(255, 140, 50, 0.51), rgba(255, 80, 200, 0.51), rgba(0, 255, 255, 0.51), rgba(180, 255, 100, 0.51), rgba(255, 255, 80, 0.51));
    color: rgba(255, 255, 255, 0.66);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 1000000;
}

#track-image {
    width: 45px;
    height: 45px;
    margin: 0 12px;
    border-radius: 4.5px;
}

#time {
    min-width: 90px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

#visualizer {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: -1;
}