body {
    margin: 0;
    font-family: sans-serif;
    background-image: url('https://onedrive-index-web.pages.dev/api/raw?path=/Websites/Image/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: -1;
}

.container {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.sidebar {
    width: 25%;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    transition: transform 0.3s ease;
    transform: translateX(-100%);
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 15;
}

.sidebar.open {
    transform: translateX(0);
}

.playlist-area {
    padding: 15px;
}

.link-area {
    padding: 15px;
}

.playlist-area h2 {
    margin-top: 0;
    padding-left: 15px;
}

.sidebar.open .playlist-area {
        padding-top: 35px;
    }

#playlist {
    list-style: none;
    padding: 0;
}

#playlist li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    line-height: 1.2;
}

#playlist li:last-child {
    border-bottom: none;
}

#playlist li.playing {
    background-color: #e0f7fa;
    font-weight: bold;
}

#playlist li button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 1em;
    color: #555;
    padding: 4px;
}

#playlist li button:hover {
    color: #000;
}

.link-area {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.link-area input {
    margin-right: 0;
    padding: 8px;
    border: 1px solid #aaa;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box;
}

.link-area button {
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    width: 100%;
}

.link-area button:hover {
    background-color: #0056b3;
}

.menu-toggle {
    position: absolute;
    top: 20px;
    left: 10px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.6em;
    color: #333;
    z-index: 20;
    display: block;
    margin-right: 10px;
    line-height: 1;
}

.main-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

#music-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(33, 33, 33, 0.9);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    box-sizing: border-box;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

#current-song-info {
    flex: 1;
    margin-right: 15px;
    text-align: center;
    color: #fff;
    font-size: 1em;
}

#music-player button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5em;
    color: #eee;
    margin: 0 8px;
}

#music-player button:hover {
    color: #fff;
}

#repeat-button.active,
#shuffle-button.active {
    color: #4CAF50;
}

.lang-toggle {
    position: fixed;
    top: 20px;
    right: 65px;
    background-color: transparent;
    border: 1px solid #555;
    color: #555;
    cursor: pointer;
    font-size: 0.9em;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 10;
}

.lang-toggle:hover {
    color: #333;
    border-color: #333;
}

#fullscreen-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.4em;
    color: #555;
    z-index: 10;
}

audio::-webkit-media-controls {
    display: none;
}

#progress-bar {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    margin: 0;
    border-radius: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
}

#progress-bar::-webkit-slider-thumb,
#progress-bar::-moz-range-thumb {
    opacity: 0;
    -webkit-appearance: none;
    appearance: none;
    width: 0;
    height: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
}

#prev-button, #next-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5em;
    color: #eee;
    margin: 0 8px;
}

#prev-button:hover, #next-button:hover {
    color: #fff;
}


@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -60%;
        width: 60%;
        height: 100%;
        z-index: 15;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    }

    .sidebar.open {
        transform: translateX(100%);
    }

    .main-content {
        margin-left: 0;
    }

    .playlist-area h2 {
        padding-top: 30px;
        padding-left: 15px;
    }

    .sidebar.open .playlist-area {
        padding-top: 35px;
    }

    #music-player {
        padding: 8px;
    }

    #current-song-info {
        font-size: 0.9em;
        margin-right: 8px;
    }

    #music-player button,
    #prev-button, #next-button {
        font-size: 1.4em;
        margin: 0 4px;
    }


    .lang-toggle {
        right: 65px;
    }

    .playlist-title-text {
        font-size: 1.1em;
        left: 50px;
        top: 21px;
        z-index: 25;
    }
}

.playlist-title-text {
    position: fixed;
    top: 21px;
    left: 55px;
    color: #333;
    font-size: 1.2em;
    font-weight: bold;
    line-height: 1.4em;
    z-index: 25;
}