/* Основные стили */
body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(#234, #1e1e1e);
    color: #fff;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}

/* Анимация загрузки */
.loader {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 6px solid #ffffff;
    border-top: 6px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loader p {
    margin-top: 20px;
    font-size: 18px;
    animation: fade 1.5s infinite alternate;
}

@keyframes fade {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Основной интерфейс */
.player {
    background-color: #1e1e1e;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.player.hidden {
    display: none;
}

.player.visible {
    opacity: 1;
}

.player {
    background: linear-gradient(#234, #1e1e1e);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Обложка трека */
.cover img {
    width: 300px;
    height: 300px;
    border-radius: 15px;
    object-fit: cover;
    margin-bottom: 20px;
}

/* Информация о треке */
.track-info h2 {
    font-size: 24px;
    margin: 0;
}

.track-info p {
    font-size: 16px;
    color: #b3b3b3;
    margin: 5px 0;
}

/* Прогресс-бар */
.progress-container {
    width: 90%;
    margin: 20px 0;
}

input[type="range"] {
    width: 100%;
    height: 5px;
    background: #444;
    border-radius: 5px;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

input[type="range"]:hover {
    opacity: 1;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: #1db954;
    border-radius: 50%;
    cursor: pointer;
}

/* Время трека */
.time {
    display: flex;
    justify-content: space-between;
    width: 90%;
    font-size: 14px;
    color: #b3b3b3;
    margin-bottom: 20px;
}

/* Управление */
.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.controls button {
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.2s;
}

.controls button:hover {
    color: #1db954;
}

/* Плейлист */
.playlist {
    width: 90%;
    text-align: left;
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.playlist h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.playlist ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.playlist li {
    padding: 15px;
    cursor: pointer;
    border-bottom: 1px solid #444;
    transition: background 0.2s;
}

.playlist li:hover {
    background: #333;
}
.footer {
    color: #555555;
    bottom: 0;
}