/* =============================================================================================
//
//                            ███████╗ ████████╗  ██████╗  ██████╗
//                            ██╔════╝ ╚══██╔══╝ ██╔═══██╗ ██╔══██╗
//                            ███████╗    ██║    ██║   ██║ ██████╔╝
//                            ╚════██║    ██║    ██║   ██║ ██╔═══╝
//                            ███████║    ██║    ╚██████╔╝ ██║
//                            ╚══════╝    ╚═╝     ╚═════╝  ╚═╝
//
//                              NE PAS TOUCHER LE CODE CI-DESSOUS
//                            SAUF SI VOUS SAVEZ CE QUE VOUS FAITES
//
// ============================================================================================= */

:root {
    --background-overlay-shadow: 0 0 17.77vh 8.88vh #000f inset;
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    font-family: 'Inter', Arial, sans-serif;
    background: #000;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.loading-bar {
    position: absolute;
    left: 50%;
    bottom: 2.5vh;
    transform: translateX(-50%);
    width: 30.2vh;
    height: 1vh;
    z-index: 20;
    border-radius: 0.3vh;
    overflow: hidden;
    backdrop-filter: blur(0.8vh);
    background: rgba(255, 255, 255, 0.1);
}

.loading-bar::-webkit-progress-bar {
    background: transparent;
}

.loading-bar::-webkit-progress-value {
    background: rgba(255, 255, 255, 0.3);
    border-top-right-radius: 0.2vh;
    border-bottom-right-radius: 0.2vh;
    transition: width 0.2s linear;
}

.preview-container {
    font-family: 'Bebas Neue', sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
}

.preview-main-text {
    font-size: 3.7vh;
    color: #fff;
    letter-spacing: 0.17vh;
    text-align: center;
    margin: 0;
    padding: 0 3.55vh;
}

.preview-sub-text {
    font-size: 2.22vh;
    color: #d4d4d4;
    letter-spacing: 0.17vh;
    text-align: center;
    margin: 0;
    padding: 0 3.55vh;
}

.preview-watermark {
    font-size: 1.48vh;
    color: #a8a8a8;
    letter-spacing: 0.1vh;
    text-align: center;
    margin: 0;
    position: absolute;
    bottom: 2.5vh;
}

.splash-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 50;
    background-color: #000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s linear;
    display: flex;
    justify-content: center;
    align-items: center;
}

#splash-img {
    width: 100%;
    max-width: 177.78vh; /* Bloque l'image du splash au format 16:9 pour ne perdre aucune info */
    height: 100%;
    object-fit: cover;
}

.main-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 233.33vh; /* Bloque au format 21:9 */
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s linear;
}

.left-container {
    position: absolute;
    left: 5vh;
    z-index: 10;
}

.command {
    display: flex;
    align-items: center;
    gap: 0.92vh;
    margin: 0.6vh 0;
    margin-left: 0.92vh;
}

.command-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.77vh;
    padding: 0.27vh 0.74vh;
    background: rgba(255, 255, 255, 0.08);
    border: 0.09vh solid rgba(255, 255, 255, 0.12);
    border-radius: 0.46vh;
    backdrop-filter: blur(0.8vh);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.85vh;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.9);
}

.command-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.92vh;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.8);
}

.title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.7vh;
    font-weight: 400;
    letter-spacing: 0.08vh;
    color: #ffffffe5;
    z-index: 10;
    text-transform: uppercase;
}

.logo-container {
    position: absolute;
    right: 0vh;
    display: flex;
    align-items: center;
    z-index: 10;
}

.logo-container img {
    height: 15vh;
}

.server-name p {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.7vh;
    font-weight: 400;
    letter-spacing: 0.08vh;
    color: #fff;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.background-container,
.background-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
}

.background-container {
    z-index: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        filter 0.2s ease-out,
        opacity 0.3s linear;
}

.background-video {
    pointer-events: none;
    position: absolute;
}

.background-video.ambient {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.1);
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    filter: blur(4vh) brightness(0.4);
}

.background-video.main {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 233.33vh;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 0 5vh rgba(0, 0, 0, 0.8);
}

.background-overlay {
    pointer-events: none;
    z-index: 1;
    width: 100%;
    max-width: 233.33vh; /* Bloque au format 21:9 */
    box-shadow: var(--background-overlay-shadow);
}

@keyframes backgroundFadeInOut {
    0% {
        opacity: 0;
    }
    5%,
    95% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.logo img {
    position: fixed;
    top: -1.77vh;
    left: 3.55vh;
    z-index: 4;
    height: 25vh;
}

.music-player-container {
    position: absolute;
    bottom: 2vh;
    left: 2.48vh;
    z-index: 5;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(0.5vh);
    border: 0.18vh solid rgba(255, 255, 255, 0.1);
    border-radius: 1.11vh;
    padding: 1.8vh 2.31vh;
    width: 24.88vh;
    min-width: 18.51vh;
    box-shadow: 0 0.74vh 2.96vh rgba(0, 0, 0, 0.2);
    transition: background 80ms linear;
    display: none;
}

.music-player-container:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0.74vh 2.96vh rgba(0, 0, 0, 0.2);
}

.music-info {
    display: flex;
    align-items: center;
}

.song-icon {
    width: 5.33vh;
    height: 5.33vh;
    margin-bottom: 0.8vh;
    margin-right: 1.42vh;
    flex-shrink: 0;
    border-radius: 10%;
    object-fit: cover;
}

.song-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 1vh;
}

.song-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2vh;
    color: #fff;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.08vh;
}

.song-artist {
    font-family: 'Inter', sans-serif;
    font-size: 1.2vh;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.music-controls {
    display: flex;
    align-items: center;
    gap: 0.88vh;
    margin-bottom: 0.5vh;
}

.control-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.2vh;
    border-radius: 20%;
    transition: background 0.1s linear;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.control-btn svg {
    width: 2.66vh;
    height: 2.66vh;
    min-width: 1.85vh;
    min-height: 1.85vh;
}

.play-icon,
.pause-icon {
    display: none;
}

.control-btn.playing .pause-icon {
    display: block;
}

.control-btn:not(.playing) .play-icon {
    display: block;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.53vh;
    flex: 1;
}

.volume-icon,
.mute-icon {
    display: none;
}

.control-btn:not(.muted) .volume-icon {
    display: block;
}

.control-btn.muted .mute-icon {
    display: block;
}

.volume-slider {
    flex: 1;
    height: 0.64vh;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.27vh;
    width: 100%;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1.11vh;
    height: 1.11vh;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 1.11vh;
    height: 1.11vh;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    appearance: none;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 0.88vh;
}

.progress-bar {
    flex: 1;
    height: 0.55vh;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.2vh;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: rgba(78, 128, 236, 0.658);
    width: 0%;
    border-radius: 0.2vh;
    transition: width 0.1s linear;
    position: relative;
}

#separator {
    margin: 0 0.21vh;
}

.time-display {
    display: flex;
    font-family: 'Inter', sans-serif;
    font-size: 1.18vh;
    color: rgba(255, 255, 255, 0.7);
    min-width: 3.7vh;
    justify-content: flex-end;
}

.time-display span {
    font-weight: 300;
}
