.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.music-box {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.music-box:hover {
    transform: translateY(-5px);
}

.music-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.music-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

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

.time-info {
    font-size: 0.9rem;
    color: #666;
}

.progress-container {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 3px;
    width: 0;
    transition: width 0.1s ease;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-slider {
    flex: 1;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    cursor: pointer;
}

/* Bottom Player */
.bottom-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    border-top: 1px solid rgba(0,0,0,0.1);
    display: none;
    z-index: 999;
}

.bottom-player.active {
    display: block;
}

.player-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.current-song {
    min-width: 200px;
}

.current-song h4 {
    font-size: 1.7rem;
    color: #333;
    margin-bottom: 5px;
}

.current-song p {
    font-size: 1.2rem;
    color: #666;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.1);
}

.main-play-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 1.2rem;
}

.bottom-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.bottom-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 3px;
    width: 0;
    transition: width 0.1s ease;
}

.bottom-time {
    font-size: 0.8rem;
    color: #666;
    min-width: 40px;
    text-align: center;
}

.bottom-volume {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}

.bottom-volume-slider {
    width: 80px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.bottom-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    cursor: pointer;
}

.upload-btn {
    float: inline-end;
    background: var(--color-primary);
    color: #fff;
    padding: 13px;
    border-radius: 15px;
    font-size: 15px;
}

@media (max-width: 768px) {
    .player-content {
        flex-direction: column;
        gap: 10px;
    }

    .bottom-progress {
        order: -1;
        width: 100%;
    }

    .music-grid {
        grid-template-columns: 1fr;
    }
}

input {
    padding: initial;
}

/* Dark Mode */
body.active-dark-mode .music-box {
    background: #3c3f43;
}

body.active-dark-mode .music-title {
    color: #fff;
}

body.active-dark-mode .time-info {
    color: #fff;
}

body.active-dark-mode .bottom-player {
    background: #474e58;
}

body.active-dark-mode .bottom-time {
    color: #fff;
}

