* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #fff;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.header {
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
}

.header h1 i {
    margin-right: 10px;
}

.header-controls {
    display: flex;
    gap: 10px;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
    padding: 30px;
}

.player-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.album-art {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.album-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.album-placeholder.paused {
    animation-play-state: paused;
}

.song-info {
    text-align: center;
    padding: 10px;
}

.song-info h2 {
    font-size: 22px;
    margin-bottom: 8px;
    word-wrap: break-word;
}

.song-info p {
    font-size: 16px;
    opacity: 0.8;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.progress-container span {
    min-width: 45px;
    font-size: 14px;
    opacity: 0.9;
}

.progress-bar {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    cursor: pointer;
    outline: none;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.progress-bar::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
}

.btn-control {
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-control:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.btn-control.active {
    background: rgba(255, 255, 255, 0.4);
    color: #ffd700;
}

.btn-play {
    width: 70px;
    height: 70px;
    border: none;
    background: #fff;
    color: #764ba2;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-play:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.volume-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    cursor: pointer;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

#volumeValue {
    min-width: 45px;
    font-size: 14px;
    opacity: 0.9;
}

.lyrics-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 20px;
    min-height: 150px;
    max-height: 300px;
    overflow-y: auto;
}

.lyrics-content {
    text-align: center;
    line-height: 2;
}

.lyrics-content p {
    margin: 8px 0;
    opacity: 0.6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lyrics-content p:hover {
    opacity: 0.8;
}

.lyrics-content p.current {
    opacity: 1;
    color: #ffd700;
    font-size: 18px;
    font-weight: 600;
}

.no-lyrics {
    opacity: 0.6;
    font-style: italic;
}

.playlist-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.playlist-header {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.playlist-header h3 {
    font-size: 18px;
}

.playlist-header h3 i {
    margin-right: 8px;
}

#songCount {
    font-size: 14px;
    opacity: 0.8;
}

.playlist {
    flex: 1;
    overflow-y: auto;
    max-height: 500px;
}

.playlist-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.playlist-item.active {
    background: rgba(255, 255, 255, 0.2);
    border-left: 4px solid #ffd700;
}

.playlist-item.playing {
    background: rgba(255, 255, 255, 0.15);
}

.playlist-item .song-icon {
    font-size: 16px;
    opacity: 0.7;
}

.playlist-item .song-info {
    flex: 1;
    text-align: left;
    padding: 0;
}

.playlist-item .song-info h4 {
    font-size: 14px;
    margin-bottom: 4px;
    word-wrap: break-word;
}

.playlist-item .song-info p {
    font-size: 12px;
    opacity: 0.7;
    margin: 0;
}

.playlist-item .song-info .repository-tag {
    background: rgba(255, 215, 0, 0.3);
    color: #ffd700;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 8px;
    display: inline-block;
}

.playlist-item .song-duration {
    font-size: 12px;
    opacity: 0.7;
    min-width: 40px;
    text-align: right;
}

.empty-playlist {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    opacity: 0.6;
}

.empty-playlist i {
    font-size: 48px;
    margin-bottom: 15px;
}

.empty-playlist p {
    margin: 5px 0;
    font-size: 14px;
}

.footer {
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    font-size: 13px;
    opacity: 0.8;
}

.footer i {
    margin-right: 5px;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .playlist-section {
        max-height: 400px;
    }
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .header {
        padding: 15px 20px;
    }

    .header h1 {
        font-size: 20px;
    }

    .main-content {
        padding: 20px;
    }

    .album-art {
        width: 150px;
        height: 150px;
    }

    .album-placeholder {
        font-size: 60px;
    }

    .song-info h2 {
        font-size: 18px;
    }

    .song-info p {
        font-size: 14px;
    }

    .btn-control {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .btn-play {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .controls {
        gap: 15px;
    }

    .footer {
        font-size: 11px;
        padding: 12px 20px;
    }

    .footer span {
        display: none;
    }
}