* {
    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;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
}

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

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-size: 1.1em;
    opacity: 0.9;
}

.player {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.album-art {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.player-info {
    text-align: center;
    margin-bottom: 20px;
}

.player-info h2 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-info p {
    color: #999;
    font-size: 0.9em;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.btn {
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn:hover {
    background: #667eea;
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
}

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

.play-btn {
    background: #667eea;
    color: white;
    width: 70px;
    height: 70px;
    font-size: 2em;
}

.play-btn:hover {
    background: #764ba2;
}

.play-btn.playing {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(102, 126, 234, 0); }
}

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

.progress-bar {
    flex: 1;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.progress {
    height: 100%;
    background: #667eea;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.progress-container span {
    font-size: 0.85em;
    color: #666;
    min-width: 40px;
}

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

.volume-container input {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

.volume-container input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

.volume-container input::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
}

#volume-percent {
    font-size: 0.85em;
    color: #666;
    min-width: 35px;
}

.playlist {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

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

.playlist ul {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
}

.playlist li {
    padding: 10px;
    background: #f9f9f9;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    color: #666;
}

.playlist li:hover {
    background: #efefef;
    color: #333;
}

.playlist li.active {
    background: #667eea;
    color: white;
    font-weight: bold;
}

/* Share Section Styles */
.share-section {
    margin-top: 20px;
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.share-text {
    color: #333;
    font-size: 0.95em;
    margin-bottom: 10px;
}

.share-link {
    color: #667eea;
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.share-link:hover {
    color: #764ba2;
    transform: scale(1.05);
    display: inline-block;
}

.share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.share-icon {
    width: 18px;
    height: 18px;
}

.x-btn {
    background: #000000;
}

.x-btn:hover {
    background: #1DA1F2;
    transform: translateY(-2px);
}

.fb-btn {
    background: #1877f2;
}

.fb-btn:hover {
    background: #0d65d9;
    transform: translateY(-2px);
}

.copy-btn {
    background: #28a745;
}

.copy-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.share-btn:active {
    transform: translateY(0);
}

footer {
    text-align: center;
    color: white;
    margin-top: 30px;
    font-size: 0.9em;
    opacity: 0.9;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.8em;
    }

    .player {
        padding: 20px;
    }

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

    .btn {
        width: 45px;
        height: 45px;
        font-size: 1.2em;
    }

    .play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.8em;
    }
    
    .share-btn {
        padding: 6px 14px;
        font-size: 0.8em;
    }
    
    .share-icon {
        width: 14px;
        height: 14px;
    }
}
