/* ============================================
   Sonify — Player Styles
   Sticky bottom music player bar
   ============================================ */

.bottom-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--player-height);
    background: rgba(12, 12, 24, 0.92);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid rgba(168, 85, 247, 0.12);
    z-index: 1050;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 16px;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.bottom-player.active {
    transform: translateY(0);
}

/* ── Now Playing Info ─────────────────────── */
.player-song-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    max-width: 280px;
    flex: 1;
}

.player-cover {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.player-text {
    min-width: 0;
}

.player-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.player-artist {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
}

/* ── Center Controls ──────────────────────── */
.player-controls-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 2;
    max-width: 600px;
}

.player-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 6px;
}

.player-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-btn:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.player-btn-play {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--purple-500);
    color: #fff;
    font-size: 1.3rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(168, 85, 247, 0.4);
}

.player-btn-play:hover {
    background: var(--purple-400);
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.5);
}

/* ── Progress Bar ─────────────────────────── */
.player-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.player-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    width: 36px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.progress-bar-container {
    flex: 1;
    height: 4px;
    background: rgba(168, 85, 247, 0.15);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    transition: height var(--transition-fast);
}

.progress-bar-container:hover {
    height: 6px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple-500), var(--accent-magenta));
    border-radius: 2px;
    width: 0%;
    position: relative;
    transition: width 0.1s linear;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--purple-400);
    opacity: 0;
    transition: opacity var(--transition-fast);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

.progress-bar-container:hover .progress-fill::after {
    opacity: 1;
}

/* ── Volume ───────────────────────────────── */
.player-volume {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: flex-end;
    flex: 1;
}

.volume-icon {
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 90px;
    height: 4px;
    background: rgba(168, 85, 247, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--purple-400);
    cursor: pointer;
    box-shadow: 0 0 6px rgba(168, 85, 247, 0.5);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--purple-400);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 6px rgba(168, 85, 247, 0.5);
}

/* ── Spotify Embed inside player ──────────── */
.spotify-embed-wrapper {
    width: 100%;
    display: none;
}

.spotify-embed-wrapper iframe {
    border-radius: var(--radius-md);
}

/* ── Audio player section (uploaded songs) ── */
.audio-player-section {
    display: none;
    flex: 2;
    max-width: 600px;
    flex-direction: column;
    align-items: center;
}
.audio-player-section { display:flex; width:100%; }
.bottom-player { background:#15101def; border-top:1px solid #3a2947; }
.player-btn-play { background:#c198f5; color:#241231; }
.spotify-mode .player-controls-center { max-width:700px; }
.player-volume[hidden] { display:none!important; }
.spotify-navigation { display:none; align-items:center; gap:10px; }
.spotify-mode .spotify-navigation { display:flex; }
.spotify-navigation a { font-size:10px; color:#c4a0e6; white-space:nowrap; }
