:root {
    --disc-size: 500px;
    --disc-cover-size: 200px;
    --controlpanel-width: 400px;
    --main-width: initial;

    --my-shadow-effect: drop-shadow(4px 4px 16px rgba(0, 0, 0, 0.35));
}

@media only screen and (max-width: 1000px) {
    :root {
        --disc-size: 300px;
        --disc-cover-size: 120px;
        --controlpanel-width: 100%;
        --main-width: 100%;
    }
}

body {
    height: 100svh;
    width: 100svw;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
}

#main {
    display: flex;
    flex-direction: row;
    padding: 1rem;
    gap: 1rem;
    width: var(--main-width);
    border-radius: 12px;
    background: repeating-linear-gradient(90deg, hsl(10, 25%, 15%), hsl(10, 20%, 20%) 2px, hsl(10, 25%, 15%) 4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 0 0 5px rgba(0, 0, 0, 0.3), inset 0 2px 2px rgba(255, 255, 255, 0.2);
}

@media only screen and (max-width: 1000px) {
    #main {
        flex-direction: column;
    }
}

.glowEffect {
    text-shadow: 0 0 6px var(--color-theme-70);
}

/* ================================================== */

#turntable {
    position: relative;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: var(--my-shadow-effect);
}

@keyframes spinAnim {
    100% {
        transform: rotate(360deg);
    }
}

#disc {
    height: var(--disc-size);
    width: var(--disc-size);
    transform-origin: center center;
    border-radius: 9999px;
    cursor: grab;
    padding: 4px;
    background: hsl(0, 0%, 8%);
    border: solid 2px hsl(0, 0%, 6%);

    transform: rotate(0deg);
    animation: spinAnim 7s linear infinite;
    animation-play-state: paused;
}

#main.playing #disc {
    animation-play-state: running;
}

#discbody {
    position: relative;
    width: 100%;
    height: 100%;
    background: teal;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: solid 0.5rem rgb(0, 0, 0);
    background: repeating-radial-gradient(#111 0, #111 2px, #222 3px, #111 4px);
    transition: all ease 0.25s;
}

#discbody:hover {
    transform: scale(1.05);
}

#discbody::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(135deg, transparent 35%, hsla(0, 0%, 100%, 0.08) 50%, transparent 65%);
}

#disccover {
    width: var(--disc-cover-size);
    height: var(--disc-cover-size);
    border-radius: 9999px;
    border: solid 0.5rem #000000;
    user-select: none;
}

#arm {
    position: absolute;
    top: -0%;
    left: -10%;
    width: 100%;
    cursor: grab;

    transform-origin: 20% 50%;
    transform: rotate(-15deg);
    transition: all ease-in-out 0.5s;
}

#arm img {
    filter: var(--my-shadow-effect);
}

#main.playing #arm {
    transform: rotate(8deg);
}

/* ================================================== */

#controlpanel {
    position: relative;
    width: var(--controlpanel-width);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    background: linear-gradient(to bottom, #2a2a2a, #1a1a1a);
    box-shadow: inset 0 0 20px #000;
}

#progressBar {
    width: 100%;
    height: 6px;
    background: var(--color-theme-10);
    border: solid 1px var(--color-theme-10);
    border-radius: 9999px;
    cursor: pointer;
}

#progressBar #progressBarChild {
    width: 0%;
    height: 100%;
    background: var(--color-theme);
    border-radius: 9999px;
    box-shadow: 0 0 6px var(--color-theme-70);
    transition: all ease 0.2s;
}

#audioTrackName {
    font-size: 1.0rem;
    font-weight: 600;
}

#audioArtistName {
    font-size: 0.8rem;
}

#audioCurrent,
#audioDuration {
    font-size: 0.8rem;
}

#audioSubtitles {
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

#audioSubtitles #displaySubtitles {
    text-align: center;
    line-height: 1.2;
}

#screen {
    position: relative;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 1);
    border: 1px solid #444;
    border-bottom: 1px solid #666;
    background: hsl(35, 100%, 5%);
}

#btnsGroup {
    display: flex;
    justify-content: space-around;
    border-radius: 9999px;
    padding: 1rem;
    background: hsl(0, 0%, 8%);
    border: 1px solid black;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.1);
}

#btnsGroup button {
    border-radius: 9999px;
    height: 42px;
    width: 42px;
    background: transparent;
    transition: all ease 0.1s;
}

#btnsGroup button:hover {
    color: var(--color-theme);
    text-shadow: 0 0 6px var(--color-theme-70);
}

#btnsGroup button.button-loop-shuffle-active {
    background: hsla(0, 0%, 100%, 0.1);
    color: var(--color-theme);
    text-shadow: 0 0 6px var(--color-theme-70);
}

/* ================================================== */