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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 800px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2em;
    color: #666;
}

.license-notice {
    background: #f8f9fa;
    border-left: 4px solid #764ba2;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.license-notice h2 {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 10px;
}

.license-notice p {
    font-size: 0.9em;
    color: #555;
    line-height: 1.6;
}

.player-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.album-art {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.album-art-placeholder {
    background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.track-info {
    text-align: center;
    margin-bottom: 25px;
    color: white;
}

.track-info h2 {
    font-size: 1.8em;
    margin-bottom: 8px;
    font-weight: 600;
}

.track-info p {
    font-size: 1.1em;
    opacity: 0.9;
}

.progress-container {
    margin-bottom: 25px;
}

.time-display {
    display: flex;
    justify-content: space-between;
    color: white;
    font-size: 0.9em;
    margin-bottom: 10px;
    font-weight: 500;
}

.progress-bar {
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    position: absolute;
    height: 100%;
    background: white;
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s linear;
}

.progress-bar input[type="range"] {
    position: absolute;
    width: 100%;
    height: 8px;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

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

.control-btn:active {
    transform: scale(0.95);
}

.play-btn {
    width: 80px;
    height: 80px;
    background: white;
    color: #764ba2;
    border: none;
}

.play-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.volume-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.volume-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.volume-btn:hover {
    transform: scale(1.1);
}

#volumeSlider {
    width: 120px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

#volumeSlider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

#volumeSlider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
}

.playlist {
    margin-bottom: 20px;
}

.playlist h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 15px;
}

.playlist-items {
    max-height: 300px;
    overflow-y: auto;
}

.playlist-item {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.playlist-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.playlist-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.playlist-item-info {
    flex: 1;
}

.playlist-item-title {
    font-weight: 600;
    font-size: 1em;
    margin-bottom: 3px;
}

.playlist-item-duration {
    font-size: 0.85em;
    opacity: 0.7;
}

.no-tracks {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-style: italic;
}

footer {
    text-align: center;
    color: #666;
    font-size: 0.9em;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* Scrollbar styling */
.playlist-items::-webkit-scrollbar {
    width: 8px;
}

.playlist-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.playlist-items::-webkit-scrollbar-thumb {
    background: #764ba2;
    border-radius: 4px;
}

.playlist-items::-webkit-scrollbar-thumb:hover {
    background: #667eea;
}

/* Responsive design */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    header h1 {
        font-size: 2em;
    }

    .track-info h2 {
        font-size: 1.3em;
    }

    .controls {
        gap: 15px;
    }

    .control-btn {
        width: 50px;
        height: 50px;
    }

    .play-btn {
        width: 70px;
        height: 70px;
    }
}
