/* Player Enhancements Styles */

/* Playback Speed Modal */
.speed-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.speed-modal {
    background: var(--bg-card, #1e1e1e);
    border-radius: var(--radius-lg, 16px);
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.speed-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.speed-modal h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin: 0;
}

.speed-modal .close-btn {
    background: none;
    border: none;
    color: var(--text-secondary, #999);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.speed-modal .close-btn:hover {
    color: var(--text-primary, #fff);
}

.speed-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.speed-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: var(--radius-md, 12px);
    color: var(--text-primary, #fff);
    cursor: pointer;
    transition: all 0.2s;
}

.speed-option:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.speed-option.active {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold, #d4af37);
}

.speed-option .speed-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold, #d4af37);
    margin-bottom: 0.25rem;
}

.speed-option .speed-label {
    font-size: 0.75rem;
    color: var(--text-secondary, #999);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Speed Button in Player */
.speed-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: var(--gold, #d4af37);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.speed-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: scale(1.05);
}

.speed-btn .speed-value {
    font-size: 0.9rem;
}

/* Bookmark Button */
.bookmark-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary, #fff);
    cursor: pointer;
    transition: all 0.2s;
}

.bookmark-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold, #d4af37);
}

.bookmark-btn.active {
    background: rgba(212, 175, 55, 0.3);
    color: var(--gold, #d4af37);
    animation: bookmarkPulse 0.6s ease;
}

@keyframes bookmarkPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Listen Later Button */
.listen-later-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md, 8px);
    padding: 0.5rem 1rem;
    color: var(--text-primary, #fff);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.listen-later-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--gold, #d4af37);
}

.listen-later-btn.added {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4caf50;
    color: #4caf50;
}

.listen-later-btn i {
    font-size: 1rem;
}

/* Episode Card Actions */
.episode-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.episode-card-actions .btn {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .speed-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .speed-option {
        padding: 1rem 0.5rem;
    }
    
    .speed-option .speed-value {
        font-size: 1.25rem;
    }
    
    .speed-modal {
        padding: 1.5rem;
    }
}
