/* پلیر ساده و مدرن */
.nava-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10000;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.player-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    align-items: center;
}

/* اطلاعات ترک */
.player-track-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}

.track-cover {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.track-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-details {
    flex: 1;
    min-width: 0;
}

.track-title {
    font-size: 14px;
    font-weight: 500;
    color: white;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 12px;
    color: #b3b3b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.like-btn {
    background: none;
    border: none;
    color: #b3b3b3;
    cursor: pointer;
    font-size: 14px;
    padding: 8px;
    transition: color 0.2s;
}

.like-btn:hover {
    color: #1db954;
}

.like-btn.liked {
    color: #1db954;
}

/* کنترل‌های پخش */
.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.control-btn {
    background: none;
    border: none;
    color: #b3b3b3;
    cursor: pointer;
    font-size: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.control-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.control-btn.active {
    color: #1db954;
}

.control-btn.play-btn {
    background: white;
    color: black;
    width: 36px;
    height: 36px;
    font-size: 14px;
}

.control-btn.play-btn:hover {
    transform: scale(1.05);
}

.control-btn.play-btn.playing {
    background: #1db954;
    color: white;
}

/* نوار پیشرفت */
.player-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: center;
    width: 100%;
    max-width: 500px;
}

.time {
    font-size: 11px;
    color: #b3b3b3;
    font-variant-numeric: tabular-nums;
    min-width: 40px;
}

.progress-container {
    flex: 1;
    height: 12px;
    display: flex;
    align-items: center;
}

.progress-bar {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #1db954;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-bar:hover::-webkit-slider-thumb {
    opacity: 1;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: #1db954;
    border-radius: 2px;
    transition: width 0.1s linear;
}

/* کنترل صدا */
.player-volume {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: end;
    min-width: 120px;
}

.volume-btn {
    background: none;
    border: none;
    color: #b3b3b3;
    cursor: pointer;
    font-size: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.volume-bar {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #1db954;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.volume-bar:hover::-webkit-slider-thumb {
    opacity: 1;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .player-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
        padding: 10px 0;
    }
    
    .player-track-info {
        justify-self: start;
    }
    
    .player-progress {
        order: 2;
        grid-column: 1;
        justify-self: center;
        width: 90%;
    }
    
    .player-volume {
        display: none;
    }
    
    .player-controls {
        gap: 12px;
    }
    
    .nava-player {
        height: auto;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .player-track-info {
        min-width: auto;
    }
    
    .track-details {
        display: none;
    }
    
    .player-controls {
        gap: 8px;
    }
    
    .control-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .control-btn.play-btn {
        width: 32px;
        height: 32px;
    }
}