body {
    background-color: black;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    display: flex;
    justify-content: center;
    margin: 0;
    overflow: hidden;
}

#container {
    width: 50%;
    min-width: 340px;
    background-color: hsla(0, 0%, 0%, 0.35);
    padding: 10px;
    border-radius: 10px;
    margin-top: 15px;
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    overflow-x: hidden;
    backdrop-filter: blur(4px);
    transition: opacity 0.6s ease;
}
#container::-webkit-scrollbar {
    width: 5px;
}
#container::-webkit-scrollbar-track {
    background: transparent; 
}
#container::-webkit-scrollbar-thumb {
    background-color: var(--main-color, #555555);
    border-radius: 4px;
}
#container::-webkit-scrollbar-thumb:hover {
    background-color: var(--main-color-hover, #888888);
}   

#hide-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    color: white;
    background-color: transparent;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-family: inherit;
    user-select: none;
    outline: none;
    margin: 0 1.5% 0 0;
    transition: color 0.3s ease;
}
#hide-btn:hover {
    color: var(--main-color, white);
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

.song-card {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 52px;
    border-radius: 10px;
    border: 1px solid hsla(0, 0%, 100%, 0.3);
    user-select: none;
    -webkit-user-select: none; 
    -moz-user-select: none;   
    -ms-user-select: none;
    background-color: hsla(0, 0%, 100%, 0);
    margin-bottom: 1px;
}
.song-card:hover{
    background-color: hsla(0, 0%, 100%, 0.1);
    transition: background-color 0.2s ease;
}

.active-card {
    background-color: var(--active-color, hsla(0, 0%, 100%, 0.24));
    transition: background-color 0.2s ease;
    border: 1px solid var(--main-color-border, (0, 0%, 100%, 0.3));
    box-shadow: 0 0 30px var(--active-color-hover);
    filter: drop-shadow(0 0 20px var(--active-color-hover));
}
.active-card:hover {
    background-color: var(--active-color-hover, hsla(0, 0%, 100%, 0.3));
    transition: background-color 0.2s ease; 
}

.song-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cover {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    object-fit: cover;
    margin: 6px;
    border: 1px solid var(--main-color-border, (0, 0%, 100%, 0.3));
}

h3 {
    font-weight: bold;
    margin: 0;
    font-size: 1em;
}

p {
    color: #d4d4d4;
    margin: 0;
    font-size: .75em;
}

.duration {
    font-weight: bold;
    margin-left: auto;
    color: #e4e4e4;
}

.play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    color: white;
    padding: 0px 15px 4px 10px;
    font-size: 1.5em;
    width: 50px;
    height: 50px;
    outline: none;
}

.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    display: none;
    filter: brightness(0.75);
    pointer-events: none;
    transition: filter 0.6s ease;
}
.video-bg-undimmed {
    filter: brightness(1);
}

.player {
    display: flex;
    box-shadow: 0 0 8px var(--active-color-hover);
    flex-direction: row;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%);
    z-index: 999;
    background-color: hsla(0, 0%, 0%, 0.6);
    width: 62%;
    border: 2px solid var(--active-color-hover, #ffffff75);
    height: 50px;
    border-radius: 18px;
    min-width: 380px;
    backdrop-filter: blur(4px);
    transition: border 0.5s ease;
    gap: 10px;
    filter: drop-shadow(0 0 80px var(--active-color-hover));
}

.duration-player {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    margin: 0 1.5% 0 0;
    font-size: 1.1em;
}

#player-play-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 0 0.5%;
    padding: 0 0 4px 0;
    color: white;
    transition: color 0.3s ease;
    font-size: 1.5em;
    flex-shrink: 0;
}
#player-play-btn:hover {
    color: var(--active-color-hover, white);
}
#player-play-btn svg {
    display: block;
}

.progress-bar {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    position: relative;
    z-index: 9999;
    margin-top: 22px;
}
.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--active-color-hover, white);
    cursor: pointer;
    transition: transform 0.1s ease;
    box-shadow: 0 0 10px var(--active-color-hover);
    filter: drop-shadow(0 0 1px var(--active-color-hover));
}
.progress-bar::-webkit-slider-runnable-track {
    width: 100%;
    cursor: pointer;
    border-radius: 5px;
}
.progress-bar::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.volume-slider {
    position: absolute;
    bottom: 44px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 210%;
    background-color: hsla(0, 0%, 0%, 0.8);
    border-radius: 15px;
    border: 1px solid var(--active-color-hover);
    backdrop-filter: blur(4px);
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.volume-container:hover .volume-slider {
    opacity: 1;
    visibility: visible;
}

#volume-slider {
    transform: rotate(-90deg);
    width: 80px; 
    height: 4px;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--active-color-hover, white);
    cursor: pointer;
    box-shadow: 0 0 5px var(--active-color-hover);
    filter: drop-shadow(0 0 8px var(--active-color-hover));
}
#volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.volume {
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    width: 50px;
    height: 50px;
}
.volume:hover {
    color: var(--active-color-hover, #ffffff);
}
.volume svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
    pointer-events: none;
}

.warning-container {
    margin: 0;
    display: flex;
    flex-direction: column;
    text-align: center;
    position: fixed;
    z-index: 1000;
    background-color: black;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    font-family: "Avenir Next", "Century Gothic", "Tw Cen MT", sans-serif;
    transition: opacity 0.5s ease;
    gap: 25px;
}
.warning-header {
    color: red;
    font-size: 5.4em;
    font-weight: bold;
    opacity: 0;
    transition: opacity 1.5s ease;
}
.warning-desc {
    font-size: 2em;
    width: 70%;
    font-weight: bold;
    opacity: 0;
    transition: opacity 2s ease;
}
.continue-btn {
    height: 16%;
    min-height: 100px;
    width: 30%;
    min-width: 360px;
    background-color: transparent;
    border: 4px solid red;
    color: white;
    font-size: 4rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.7s ease, opacity 2s ease;
    opacity: 0;
    box-sizing: border-box;
    pointer-events: none;
}
.continue-btn:hover {
    background-color: red;
}
.warning-container-hidden {
    opacity: 0;
    pointer-events: none;
}
.showing-up-trasition {
    opacity: 1;
    pointer-events: all;
}

#container, #player {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

body.idle-mode #container,
body.idle-mode #player {
    opacity: 0;
    pointer-events: none;
}
body.idle-mode #bg-video {
    filter: brightness(1);
}
body.idle-mode {
    cursor: none;
}