﻿/* ============================================
           MINI PODCAST - ESTILOS INDEPENDIENTES
           ============================================ */

.mini-podcast *,
.mini-podcast *::before,
.mini-podcast *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.mini-podcast {
    --mp-primary: #7c3aed;
    --mp-primary-hover: #6d28d9;
    --mp-primary-light: #ede9fe;
    --mp-bg: #ffffff;
    --mp-bg-alt: #f5f3ff;
    --mp-text: #1f2937;
    --mp-text-light: #6b7280;
    --mp-border: #e5e7eb;
    --mp-shadow: 0 10px 40px -10px rgba(124, 58, 237, 0.15);
    --mp-radius: 20px;
    --mp-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 400px;
    margin: 40px auto;
}

.mp-card {
    background: var(--mp-bg);
    border-radius: var(--mp-radius);
    padding: 24px;
    box-shadow: var(--mp-shadow);
    border: 1px solid var(--mp-border);
    transition: var(--mp-transition);
    position: relative;
    overflow: hidden;
}

    .mp-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--mp-primary), #a78bfa);
    }

    .mp-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 50px -10px rgba(124, 58, 237, 0.25);
    }

/* Header con badge */
.mp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.mp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--mp-primary-light);
    color: var(--mp-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .mp-badge svg {
        width: 12px;
        height: 12px;
        animation: pulse 2s infinite;
    }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.mp-duration {
    font-size: 0.875rem;
    color: var(--mp-text-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Contenido principal */
.mp-content {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.mp-cover {
    position: relative;
    flex-shrink: 0;
}

    .mp-cover img {
        width: 100px;
        height: 100px;
        border-radius: 12px;
        object-fit: cover;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transition: var(--mp-transition);
    }

.mp-card:hover .mp-cover img {
    transform: scale(1.05);
}

/* Efecto de ondas sonoras */
.mp-waves {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 40px;
    height: 40px;
    background: var(--mp-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
}

    .mp-waves span {
        display: block;
        width: 3px;
        height: 12px;
        background: white;
        margin: 0 2px;
        border-radius: 2px;
        animation: wave 1s ease-in-out infinite;
    }

        .mp-waves span:nth-child(1) {
            animation-delay: 0s;
            height: 8px;
        }

        .mp-waves span:nth-child(2) {
            animation-delay: 0.1s;
            height: 16px;
        }

        .mp-waves span:nth-child(3) {
            animation-delay: 0.2s;
            height: 10px;
        }

@keyframes wave {
    0%, 100% {
        transform: scaleY(0.5);
    }

    50% {
        transform: scaleY(1);
    }
}

/* Info del episodio */
.mp-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mp-episode {
    font-size: 0.75rem;
    color: var(--mp-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.mp-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mp-text);
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mp-host {
    font-size: 0.875rem;
    color: var(--mp-text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

    .mp-host::before {
        content: '';
        width: 6px;
        height: 6px;
        background: #10b981;
        border-radius: 50%;
    }

/* Controles de audio */
.mp-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--mp-border);
}

.mp-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--mp-primary);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--mp-transition);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    flex-shrink: 0;
}

    .mp-play-btn:hover {
        background: var(--mp-primary-hover);
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
    }

    .mp-play-btn:active {
        transform: scale(0.95);
    }

    .mp-play-btn svg {
        width: 20px;
        height: 20px;
        margin-left: 2px;
    }

    .mp-play-btn.playing svg {
        margin-left: 0;
    }

/* Barra de progreso */
.mp-progress-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mp-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--mp-text-light);
    font-weight: 500;
}

.mp-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--mp-bg-alt);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.mp-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--mp-primary), #a78bfa);
    border-radius: 3px;
    transition: width 0.1s linear;
    position: relative;
}

    .mp-progress-fill::after {
        content: '';
        position: absolute;
        right: -8px;
        top: 50%;
        transform: translateY(-50%);
        width: 12px;
        height: 12px;
        background: white;
        border: 2px solid var(--mp-primary);
        border-radius: 50%;
        opacity: 0;
        transition: opacity 0.2s;
    }

.mp-progress-bar:hover .mp-progress-fill::after {
    opacity: 1;
}

/* Botones secundarios */
.mp-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.mp-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--mp-border);
    background: var(--mp-bg);
    color: var(--mp-text);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--mp-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

    .mp-btn:hover {
        background: var(--mp-bg-alt);
        border-color: var(--mp-primary);
        color: var(--mp-primary);
    }

    .mp-btn svg {
        width: 16px;
        height: 16px;
    }

.mp-btn-primary {
    background: var(--mp-primary);
    color: white;
    border-color: var(--mp-primary);
}

    .mp-btn-primary:hover {
        background: var(--mp-primary-hover);
        color: white;
    }

/* Responsive */
@media (max-width: 480px) {
    .mini-podcast {
        margin: 20px;
        max-width: 100%;
    }

    .mp-card {
        padding: 20px;
    }

    .mp-content {
        gap: 12px;
    }

    .mp-cover img {
        width: 80px;
        height: 80px;
    }

    .mp-title {
        font-size: 1rem;
    }
}

/* Animación de entrada */
@keyframes mpFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mini-podcast {
    animation: mpFadeIn 0.6s ease forwards;
}
