/* PodcastHub — Loading Overlay Component */
.ph-loading-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    background: rgba(15, 15, 26, 0.88);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    font-family: 'Inter', -apple-system, sans-serif;
}
.ph-loading-overlay.active { display: flex; }

.ph-loading-card {
    text-align: center;
    padding: 32px 40px;
    background: rgba(30, 30, 50, 0.95);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    min-width: 280px;
    max-width: 360px;
}

.ph-loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #7c3aed;
    border-radius: 50%;
    animation: ph-spin 0.8s linear infinite;
    margin: 0 auto 14px;
}
@keyframes ph-spin { to { transform: rotate(360deg); } }

.ph-loading-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    animation: ph-pulse 1.5s ease-in-out infinite;
}
@keyframes ph-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

.ph-loading-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 6px;
}

.ph-loading-sub {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 14px;
}

.ph-loading-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}
.ph-loading-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    border-radius: 3px;
    transition: width 0.3s ease;
}
.ph-loading-bar-fill.indeterminate {
    width: 40%;
    animation: ph-slide 1.2s ease-in-out infinite;
}
@keyframes ph-slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

.ph-loading-pct {
    font-size: 0.7rem;
    color: #64748b;
}

.ph-loading-cancel {
    margin-top: 12px;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    font-size: 0.75rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}
.ph-loading-cancel:hover {
    border-color: #f87171;
    color: #f87171;
}
