/* ==========================================
   Audio Player Styles
   ========================================== */

/* ---------- Mini Player ---------- */
.mini-player {
    position: fixed;
    bottom: var(--navbar-height);
    left: 0; right: 0;
    height: var(--mini-player-height);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 10px;
    z-index: 99;
    cursor: pointer;
    padding-bottom: 0;
}

.mini-player-progress {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--border);
}

.mini-player-progress-fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.5s linear;
}

.mini-player-cover {
    width: 44px; height: 44px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bg-card);
    flex-shrink: 0;
}

.mini-player-info {
    flex: 1;
    min-width: 0;
}

.mini-player-title {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-player-category {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mini-player-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: transform 0.1s;
    flex-shrink: 0;
}
.mini-player-btn:active { transform: scale(0.9); }

/* ---------- Full Player (overlay) ---------- */
.full-player {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 200;
    display: flex;
    flex-direction: column;
    padding: 20px;
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(20px, var(--safe-bottom));
    animation: slideUp 0.3s ease;
    overflow-y: auto;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
}

.full-player.closing {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    to { transform: translateY(100%); }
}

/* Top bar */
.fp-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.fp-close {
    font-size: 1.5rem;
    padding: 8px;
    color: var(--text-secondary);
}

.fp-now-playing {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.fp-options {
    font-size: 1.5rem;
    padding: 8px;
    color: var(--text-secondary);
}

/* Cover */
.fp-cover-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.fp-cover {
    width: min(280px, 70vw);
    height: min(280px, 70vw);
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    background: var(--bg-card);
}

/* Info */
.fp-info {
    text-align: center;
    margin-bottom: 24px;
}

.fp-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.fp-category {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Progress bar */
.fp-progress {
    margin-bottom: 8px;
    cursor: pointer;
    padding: 8px 0;
}

.fp-progress-track {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    position: relative;
}

.fp-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    position: relative;
    transition: width 0.2s linear;
}

.fp-progress-thumb {
    position: absolute;
    right: -6px; top: -4px;
    width: 12px; height: 12px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(233, 69, 96, 0.5);
}

.fp-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Controls */
.fp-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.fp-btn-secondary {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: all 0.1s;
}
.fp-btn-secondary:active { transform: scale(0.9); }
.fp-btn-secondary.active { color: var(--accent); }

.fp-btn-skip {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.fp-btn-play {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
    transition: all 0.15s;
}
.fp-btn-play:active { transform: scale(0.93); }

/* Speed control */
.fp-speed {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
}
.fp-speed.active { color: var(--accent); border-color: var(--accent); }

/* Bottom actions */
.fp-bottom {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.fp-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 8px;
}
.fp-action-icon { font-size: 1.2rem; }
.fp-action.active { color: var(--accent); }
