/* Frogames Podcast Player Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700;900&display=swap');

:root {
    --pdc-primary: #449cb9;
    --pdc-primary-dark: #2a7a94;
    --pdc-primary-glow: rgba(68, 156, 185, 0.5);
    --pdc-bg-dark: #0f172a;
    --pdc-glass-border: rgba(68, 156, 185, 0.3);
    --pdc-text-muted: #94a3b8;
}

/* FAB (Floating Action Button) */
.podcast-fab {
    position: fixed;
    bottom: 15px;
    /* Volvemos abajo a la derecha */
    right: 15px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--pdc-primary), var(--pdc-primary-dark));
    box-shadow:
        0 10px 25px -5px var(--pdc-primary-glow),
        inset 0 0 15px rgba(255, 255, 255, 0.3);
    cursor: pointer;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: float-podcast 6s ease-in-out infinite;
}

.podcast-fab:hover {
    transform: scale(1.1) rotate(5deg);
}

.podcast-fab.active {
    transform: rotate(-90deg) scale(0.9);
    background: #1e293b;
    box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.5);
}

.podcast-fab i {
    color: white;
    width: 28px;
    height: 28px;
}

/* PLAYER CARD */
.podcast-player-card {
    position: fixed;
    bottom: 90px;
    /* Aparece encima del botón (15px + 75px offset) */
    right: 15px;
    width: 350px;
    max-width: 90vw;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--pdc-glass-border);
    border-radius: 20px;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.podcast-player-card.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.player-header {
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    font-family: 'Outfit', sans-serif;
}

.player-title {
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

.player-title i {
    color: var(--pdc-primary);
    width: 18px;
    height: 18px;
}

.player-close {
    background: none;
    border: none;
    color: var(--pdc-text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s;
}

.player-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.player-content {
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Tabs */
.player-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    gap: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--pdc-text-muted);
    padding: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s;
}

.tab-btn i {
    width: 14px;
    height: 14px;
}

.tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: white;
    background: var(--pdc-primary);
    box-shadow: 0 4px 10px var(--pdc-primary-glow);
}

/* Fix for Embed Containers */
.embed-container {
    width: 100%;
    height: 352px;
    background: #000;
    display: none;
    align-items: center;
    justify-content: center;
}

.embed-container.active {
    display: flex;
}

/* ANIMATIONS */
@keyframes float-podcast {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Tooltip */
.podcast-tooltip {
    position: absolute;
    bottom: 75px;
    left: 50%;
    background: #1e293b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    z-index: 1000000;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Outfit', sans-serif;
}

.podcast-fab:hover .podcast-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* MOBILE HIDING & OVERRIDES */
@media (max-width: 768px) {

    .podcast-fab,
    .podcast-player-card,
    #podcast-widget-root {
        display: none !important;
    }
}