body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #000;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

#container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#visualizer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.5;
    transform: translateY(0);
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

#visualizer.paused {
    transform: translateY(100%);
    opacity: 0;
}

.content-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.cover {
    width: 40vw;
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    cursor: pointer;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.track-container {
    position: absolute;
    width: 60vw;
    max-width: 400px;
    height: 10vh;
    max-height: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    overflow: hidden;
    z-index: 2;
    top: calc(50% + 10vh); /* Динамический отступ под обложкой */
}

#track-title {
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: 3vh;
    white-space: nowrap;
}

/* Медиа-запросы для разных размеров экрана */
@media (max-width: 768px) {
    .cover {
        width: 50vw;
        max-width: 150px;
    }
    .track-container {
        width: 80vw;
        max-width: 300px;
        height: 8vh;
        max-height: 30px;
        top: calc(50% + 8vh);
    }
    #track-title {
        font-size: 2.5vh;
    }
}

@media (max-width: 480px) {
    .cover {
        width: 60vw;
        max-width: 120px;
    }
    .track-container {
        width: 90vw;
        max-width: 250px;
        height: 6vh;
        max-height: 25px;
        top: calc(50% + 6vh);
    }
    #track-title {
        font-size: 2vh;
    }
}

.controls {
    position: absolute;
    bottom: 2vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

#play-stop-btn {
    background-color: #ffcc00;
    border: none;
    width: 15vw;
    max-width: 60px;
    height: 15vw;
    max-height: 60px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
    transition: transform 0.2s, background-color 0.3s;
    display: none;
}

#play-stop-btn:hover {
    transform: scale(1.1);
}

#play-stop-btn:active {
    transform: scale(0.95);
}

/* Иконка Play */
#play-stop-btn.play::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 3.5vh solid transparent;
    border-bottom: 3.5vh solid transparent;
    border-left: 5vw solid #000;
    max-width: 20px;
    max-height: 15px;
}

/* Иконка Pause */
#play-stop-btn.pause::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translateY(-50%);
    width: 2vw;
    max-width: 8px;
    height: 5vh;
    max-height: 20px;
    background-color: #000;
}

#play-stop-btn.pause::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 65%;
    transform: translateY(-50%);
    width: 2vw;
    max-width: 8px;
    height: 5vh;
    max-height: 20px;
    background-color: #000;
}