/* player/css/player.css */
.player-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a2e;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Player Info */
.player-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    flex: 1;
}

.player-info img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.player-track-info h4 {
    color: white;
    font-size: 14px;
    margin: 0;
}

.player-track-info p {
    color: #888;
    font-size: 12px;
    margin: 0;
}

.player-fav {
    background: none;
    border: none;
    color: #555;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s;
}

.player-fav.active {
    color: #ff4444;
}

.player-fav:hover {
    color: #ff4444;
}

/* Main Controls */
.player-main-controls {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.player-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-buttons button {
    background: none;
    border: none;
    color: #aaa;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 5px;
}

.player-buttons button:hover {
    color: white;
}

.play-btn-main {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white !important;
    font-size: 18px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn-main:hover {
    transform: scale(1.1);
}

.player-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 500px;
}

.player-progress span {
    color: #888;
    font-size: 12px;
    min-width: 40px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: #333;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s;
}

.progress-bar input[type="range"] {
    position: absolute;
    top: -6px;
    left: 0;
    width: 100%;
    height: 16px;
    opacity: 0;
    cursor: pointer;
}

/* Volume */
.player-volume {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.player-volume button {
    background: none;
    border: none;
    color: #aaa;
    font-size: 18px;
    cursor: pointer;
}

.volume-bar {
    width: 80px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    position: relative;
}

.volume-bar input[type="range"] {
    position: absolute;
    top: -6px;
    left: 0;
    width: 100%;
    height: 16px;
    opacity: 0;
    cursor: pointer;
}

/* Expand Button */
.player-expand {
    background: none;
    border: none;
    color: #aaa;
    font-size: 16px;
    cursor: pointer;
    padding: 5px 10px;
}

.player-expand:hover {
    color: white;
}

/* Expanded Player */
.player-expanded {
    display: none;
    background: #1a1a2e;
    padding: 30px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.player-expanded.active {
    display: block;
}

.expanded-content {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.expanded-cover {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.expanded-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expanded-content h2 {
    color: white;
    font-size: 22px;
    margin: 10px 0 5px;
}

.expanded-content p {
    color: #888;
    font-size: 16px;
}

.expanded-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.expanded-progress span {
    color: #888;
    font-size: 12px;
}

.expanded-progress .progress-bar {
    flex: 1;
}

.expanded-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.expanded-controls button {
    background: none;
    border: none;
    color: #aaa;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s;
}

.expanded-controls button:hover {
    color: white;
}

.expanded-controls .play-btn-main {
    width: 60px;
    height: 60px;
    font-size: 24px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .player-controls {
        padding: 10px 15px;
        gap: 10px;
    }
    
    .player-info {
        min-width: 140px;
    }
    
    .player-info img {
        width: 40px;
        height: 40px;
    }
    
    .player-track-info h4 {
        font-size: 12px;
    }
    
    .player-track-info p {
        font-size: 10px;
    }
    
    .player-volume {
        min-width: 80px;
    }
    
    .volume-bar {
        width: 50px;
    }
    
    .player-progress span {
        font-size: 10px;
        min-width: 30px;
    }
    
    .player-buttons button {
        font-size: 14px;
    }
    
    .play-btn-main {
        width: 32px;
        height: 32px;
        font-size: 14px !important;
    }
    
    .expanded-cover {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .player-info {
        min-width: 100px;
    }
    
    .player-info img {
        width: 30px;
        height: 30px;
    }
    
    .player-track-info h4 {
        font-size: 11px;
    }
    
    .player-volume {
        display: none;
    }
}