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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

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

.header p {
    font-size: 14px;
    opacity: 0.9;
}

.description {
    padding: 20px;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.description-section {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
}

.description-section:last-child {
    margin-bottom: 0;
}

.description-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s;
}

.description-header:hover {
    background: #e9ecef;
}

.description-header h3 {
    font-size: 14px;
    color: #667eea;
    font-weight: bold;
    margin: 0;
}

.description-toggle {
    font-size: 20px;
    color: #667eea;
    transition: transform 0.3s;
}

.description-toggle.expanded {
    transform: rotate(180deg);
}

.description-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.description-content.expanded {
    max-height: 500px;
}

.description-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 0;
    padding: 0 15px 15px 15px;
}

.player {
    padding: 20px;
    background: #f8f9fa;
}

.now-playing {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.now-playing h2 {
    font-size: 14px;
    color: #667eea;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.now-playing .title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.now-playing .info {
    font-size: 14px;
    color: #666;
}

audio {
    width: 100%;
    margin-top: 15px;
    border-radius: 10px;
}

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

/* Control buttons */
.control-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #6b7bef;
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, transform 0.12s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.22);
    min-width: 48px;
}

.control-btn:active {
    transform: translateY(1px) scale(0.98);
}

.control-btn:hover,
.control-btn:focus {
    background: #5a6be6;
    box-shadow: 0 6px 18px rgba(91, 101, 230, 0.28);
}

/* Main play/pause button - larger and more prominent */
.main-play-btn {
    padding: 20px 30px;
    font-size: 1.9rem;
    font-weight: 900;
    min-width: 120px;
    background: linear-gradient(135deg, #5466e6 0%, #764ba2 100%);
    box-shadow: 0 14px 44px rgba(86, 103, 238, 0.36);
    transition: background 0.22s, transform 0.12s, box-shadow 0.12s;
}

.main-play-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.main-play-btn:focus {
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.18), 0 10px 30px rgba(86, 103, 238, 0.30);
}

.playlist {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

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

.playlist-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

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

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

.playlist-item .number {
    font-size: 18px;
    font-weight: bold;
    margin-right: 15px;
    min-width: 30px;
    color: #667eea;
}

.playlist-item.active .number {
    color: white;
}

.playlist-item .track-title {
    flex: 1;
    font-size: 15px;
}

.playlist-item .duration {
    font-size: 13px;
    opacity: 0.7;
    margin-left: 10px;
}

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

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

.playlist::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.playlist::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

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

    .description {
        padding: 15px;
    }

    .description-header h3 {
        font-size: 15px;
    }

    .description-content p {
        font-size: 13px;
    }

    /* Increase hit targets for mobile (WCAG recommended: >=48px) */
    .controls {
        gap: 14px;
    }

    .control-btn {
        padding: 14px;
        font-size: 16px;
        min-width: 56px;
        height: 56px;
    }

    .main-play-btn {
        padding: 16px 26px;
        font-size: 1.6rem;
        min-width: 120px;
        height: 64px;
        box-shadow: 0 16px 48px rgba(86, 103, 238, 0.36);
    }

    .playlist {
        max-height: 300px;
    }

    .playlist-item {
        padding: 12px;
    }

    .playlist-item .track-title {
        font-size: 14px;
    }
}
