/**
 * Pôli Podcast - Modern Frontend Styles
 * Version: 2.0.0
 * 
 * Features:
 * - Glassmorphism effects
 * - Smooth animations & transitions
 * - Skeleton loading states
 * - Dark mode support
 * - Micro-interactions
 * - Modern typography
 */

/* ==========================================================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ========================================================================== */

:root {
    /* Primary Colors */
    --ps-primary: #6366f1;
    --ps-primary-light: #818cf8;
    --ps-primary-dark: #4f46e5;
    --ps-primary-rgb: 99, 102, 241;
    
    /* Secondary Colors */
    --ps-secondary: #ec4899;
    --ps-secondary-light: #f472b6;
    --ps-secondary-dark: #db2777;
    
    /* Accent Colors */
    --ps-accent: #14b8a6;
    --ps-accent-light: #2dd4bf;
    --ps-accent-dark: #0d9488;
    
    /* Neutral Colors - Light Mode */
    --ps-bg-primary: #ffffff;
    --ps-bg-secondary: #f8fafc;
    --ps-bg-tertiary: #f1f5f9;
    --ps-bg-elevated: #ffffff;
    
    --ps-text-primary: #0f172a;
    --ps-text-secondary: #475569;
    --ps-text-tertiary: #94a3b8;
    --ps-text-inverse: #ffffff;
    
    --ps-border-color: #e2e8f0;
    --ps-border-light: #f1f5f9;
    
    /* Glassmorphism */
    --ps-glass-bg: rgba(255, 255, 255, 0.7);
    --ps-glass-border: rgba(255, 255, 255, 0.5);
    --ps-glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --ps-glass-blur: 20px;
    
    /* Shadows */
    --ps-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --ps-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --ps-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --ps-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --ps-shadow-glow: 0 0 40px rgba(var(--ps-primary-rgb), 0.3);
    
    /* Typography */
    --ps-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ps-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --ps-text-xs: 0.75rem;
    --ps-text-sm: 0.875rem;
    --ps-text-base: 1rem;
    --ps-text-lg: 1.125rem;
    --ps-text-xl: 1.25rem;
    --ps-text-2xl: 1.5rem;
    --ps-text-3xl: 1.875rem;
    --ps-text-4xl: 2.25rem;
    
    /* Spacing */
    --ps-space-1: 0.25rem;
    --ps-space-2: 0.5rem;
    --ps-space-3: 0.75rem;
    --ps-space-4: 1rem;
    --ps-space-5: 1.25rem;
    --ps-space-6: 1.5rem;
    --ps-space-8: 2rem;
    --ps-space-10: 2.5rem;
    --ps-space-12: 3rem;
    --ps-space-16: 4rem;
    
    /* Border Radius */
    --ps-radius-sm: 0.375rem;
    --ps-radius-md: 0.5rem;
    --ps-radius-lg: 0.75rem;
    --ps-radius-xl: 1rem;
    --ps-radius-2xl: 1.5rem;
    --ps-radius-full: 9999px;
    
    /* Transitions */
    --ps-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --ps-transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --ps-transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --ps-transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Z-index */
    --ps-z-dropdown: 100;
    --ps-z-sticky: 200;
    --ps-z-fixed: 300;
    --ps-z-modal: 400;
    --ps-z-tooltip: 500;
    --ps-z-mini-player: 1000;
    
    /* Platform Colors */
    --ps-spotify: #1DB954;
    --ps-apple: #FC3C44;
    --ps-google: #4285F4;
    --ps-youtube: #FF0000;
    --ps-amazon: #FF9900;
    --ps-overcast: #FC7E0F;
    --ps-pocketcasts: #F43E37;
    --ps-castbox: #F55B23;
    --ps-stitcher: #3D3D3D;
    --ps-deezer: #FEAA2D;
    --ps-soundcloud: #FF5500;
    --ps-rss: #FFA500;
}

/* ==========================================================================
   DARK MODE
   ========================================================================== */

[data-theme="dark"],
.ps-dark-mode {
    --ps-bg-primary: #0f172a;
    --ps-bg-secondary: #1e293b;
    --ps-bg-tertiary: #334155;
    --ps-bg-elevated: #1e293b;
    
    --ps-text-primary: #f8fafc;
    --ps-text-secondary: #cbd5e1;
    --ps-text-tertiary: #64748b;
    --ps-text-inverse: #0f172a;
    
    --ps-border-color: #334155;
    --ps-border-light: #1e293b;
    
    --ps-glass-bg: rgba(30, 41, 59, 0.8);
    --ps-glass-border: rgba(51, 65, 85, 0.5);
    --ps-glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    --ps-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --ps-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --ps-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --ps-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

/* Auto dark mode based on system preference */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --ps-bg-primary: #0f172a;
        --ps-bg-secondary: #1e293b;
        --ps-bg-tertiary: #334155;
        --ps-bg-elevated: #1e293b;
        
        --ps-text-primary: #f8fafc;
        --ps-text-secondary: #cbd5e1;
        --ps-text-tertiary: #64748b;
        --ps-text-inverse: #0f172a;
        
        --ps-border-color: #334155;
        --ps-border-light: #1e293b;
        
        --ps-glass-bg: rgba(30, 41, 59, 0.8);
        --ps-glass-border: rgba(51, 65, 85, 0.5);
        --ps-glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */

.poli-podcast-container {
    font-family: var(--ps-font-sans);
    font-size: var(--ps-text-base);
    line-height: 1.6;
    color: var(--ps-text-primary);
    background-color: var(--ps-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.poli-podcast-container *,
.poli-podcast-container *::before,
.poli-podcast-container *::after {
    box-sizing: border-box;
}

.poli-podcast-container img {
    max-width: 100%;
    height: auto;
    display: block;
}

.poli-podcast-container button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */

@keyframes ps-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ps-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ps-fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ps-scale-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes ps-slide-in-right {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes ps-slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes ps-slide-up {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes ps-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes ps-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes ps-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes ps-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes ps-wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

@keyframes ps-glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(var(--ps-primary-rgb), 0.3); }
    50% { box-shadow: 0 0 40px rgba(var(--ps-primary-rgb), 0.6); }
}

@keyframes ps-equalizer {
    0%, 100% { height: 10%; }
    50% { height: 100%; }
}

@keyframes ps-waveform {
    0% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
    100% { transform: scaleY(0.5); }
}

/* Animation utility classes */
.ps-animate-fade-in {
    animation: ps-fade-in var(--ps-transition-base) ease-out;
}

.ps-animate-fade-in-up {
    animation: ps-fade-in-up var(--ps-transition-slow) ease-out;
}

.ps-animate-scale-in {
    animation: ps-scale-in var(--ps-transition-base) ease-out;
}

.ps-animate-slide-in-right {
    animation: ps-slide-in-right var(--ps-transition-slow) ease-out;
}

/* Staggered animations for lists */
.ps-stagger-animation > * {
    opacity: 0;
    animation: ps-fade-in-up var(--ps-transition-slow) ease-out forwards;
}

.ps-stagger-animation > *:nth-child(1) { animation-delay: 0ms; }
.ps-stagger-animation > *:nth-child(2) { animation-delay: 50ms; }
.ps-stagger-animation > *:nth-child(3) { animation-delay: 100ms; }
.ps-stagger-animation > *:nth-child(4) { animation-delay: 150ms; }
.ps-stagger-animation > *:nth-child(5) { animation-delay: 200ms; }
.ps-stagger-animation > *:nth-child(6) { animation-delay: 250ms; }
.ps-stagger-animation > *:nth-child(7) { animation-delay: 300ms; }
.ps-stagger-animation > *:nth-child(8) { animation-delay: 350ms; }
.ps-stagger-animation > *:nth-child(9) { animation-delay: 400ms; }
.ps-stagger-animation > *:nth-child(10) { animation-delay: 450ms; }
.ps-stagger-animation > *:nth-child(n+11) { animation-delay: 500ms; }

/* ==========================================================================
   SKELETON LOADING STATES
   ========================================================================== */

.ps-skeleton {
    position: relative;
    overflow: hidden;
    background: var(--ps-bg-tertiary);
    border-radius: var(--ps-radius-md);
}

.ps-skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    background-size: 200% 100%;
    animation: ps-shimmer 1.5s infinite;
}

.ps-skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
    border-radius: var(--ps-radius-sm);
}

.ps-skeleton-text:last-child {
    width: 70%;
}

.ps-skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: 1em;
}

.ps-skeleton-image {
    aspect-ratio: 1;
    width: 100%;
}

.ps-skeleton-button {
    height: 2.5rem;
    width: 120px;
    border-radius: var(--ps-radius-full);
}

/* Skeleton Episode Card */
.ps-skeleton-card {
    background: var(--ps-bg-elevated);
    border-radius: var(--ps-radius-xl);
    padding: var(--ps-space-6);
    display: flex;
    flex-direction: column;
    gap: var(--ps-space-4);
}

.ps-skeleton-card .ps-skeleton-image {
    border-radius: var(--ps-radius-lg);
    height: 180px;
}

.ps-skeleton-card .ps-skeleton-content {
    display: flex;
    flex-direction: column;
    gap: var(--ps-space-2);
}

/* ==========================================================================
   GLASSMORPHISM COMPONENTS
   ========================================================================== */

.ps-glass {
    background: var(--ps-glass-bg);
    backdrop-filter: blur(var(--ps-glass-blur));
    -webkit-backdrop-filter: blur(var(--ps-glass-blur));
    border: 1px solid var(--ps-glass-border);
    box-shadow: var(--ps-glass-shadow);
}

.ps-glass-card {
    background: var(--ps-glass-bg);
    backdrop-filter: blur(var(--ps-glass-blur));
    -webkit-backdrop-filter: blur(var(--ps-glass-blur));
    border: 1px solid var(--ps-glass-border);
    box-shadow: var(--ps-glass-shadow);
    border-radius: var(--ps-radius-2xl);
    transition: all var(--ps-transition-base);
}

.ps-glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ps-shadow-xl), var(--ps-shadow-glow);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.ps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ps-space-2);
    padding: var(--ps-space-3) var(--ps-space-6);
    font-size: var(--ps-text-sm);
    font-weight: 600;
    border-radius: var(--ps-radius-full);
    transition: all var(--ps-transition-fast);
    position: relative;
    overflow: hidden;
}

.ps-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--ps-transition-fast);
}

.ps-btn:hover::before {
    opacity: 1;
}

.ps-btn:active {
    transform: scale(0.98);
}

/* Primary Button */
.ps-btn-primary {
    background: linear-gradient(135deg, var(--ps-primary) 0%, var(--ps-primary-dark) 100%);
    color: var(--ps-text-inverse);
    box-shadow: 0 4px 14px rgba(var(--ps-primary-rgb), 0.4);
}

.ps-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(var(--ps-primary-rgb), 0.5);
    transform: translateY(-2px);
}

/* Secondary Button */
.ps-btn-secondary {
    background: var(--ps-bg-tertiary);
    color: var(--ps-text-primary);
    border: 1px solid var(--ps-border-color);
}

.ps-btn-secondary:hover {
    background: var(--ps-bg-secondary);
    border-color: var(--ps-primary);
    color: var(--ps-primary);
}

/* Ghost Button */
.ps-btn-ghost {
    background: transparent;
    color: var(--ps-text-secondary);
}

.ps-btn-ghost:hover {
    background: var(--ps-bg-tertiary);
    color: var(--ps-primary);
}

/* Icon Button */
.ps-btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--ps-radius-full);
}

.ps-btn-icon svg {
    width: 20px;
    height: 20px;
}

/* Button Sizes */
.ps-btn-sm {
    padding: var(--ps-space-2) var(--ps-space-4);
    font-size: var(--ps-text-xs);
}

.ps-btn-lg {
    padding: var(--ps-space-4) var(--ps-space-8);
    font-size: var(--ps-text-base);
}

/* ==========================================================================
   EPISODE CARDS - MODERN LAYOUT
   ========================================================================== */

.ps-episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Mobile - une seule colonne */
@media (max-width: 640px) {
    .ps-episodes-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
}

/* ==========================================================================
   EPISODE CARD - NOUVEAU DESIGN ÉPURÉ
   ========================================================================== */

.ps-episode-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ps-episode-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: #d1d5db;
}

/* Image de l'épisode */
.ps-episode-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.ps-episode-image img {
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

/* Mode Cover (par défaut) - Image rognée pour remplir */
.ps-episode-image.ps-image-cover img,
.ps-episode-image:not(.ps-image-contain) img {
    object-fit: cover;
}

/* Mode Contain - Image entière visible */
.ps-episode-image.ps-image-contain {
    aspect-ratio: auto !important;
    min-height: 200px;
    max-height: 400px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ps-episode-image.ps-image-contain img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    object-position: center !important;
}

.ps-episode-card:hover .ps-episode-image img {
    transform: scale(1.05);
}

/* Bouton play overlay sur l'image */
.ps-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ps-primary, #1DB954);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(29, 185, 84, 0.4);
}

.ps-play-overlay svg {
    margin-left: 3px;
}

.ps-episode-card:hover .ps-play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.ps-play-overlay:hover {
    background: var(--ps-primary-hover, #1ed760);
    transform: translate(-50%, -50%) scale(1.1) !important;
}

/* Contenu de l'épisode */
.ps-episode-content {
    padding: 20px;
}

/* Badge épisode (S1E1) */
.ps-episode-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--ps-primary, #1DB954);
    background: rgba(29, 185, 84, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

/* Titre de l'épisode */
.ps-episode-title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ps-episode-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ps-episode-title a:hover {
    color: var(--ps-primary, #1DB954);
}

/* Métadonnées (date, durée) */
.ps-episode-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.ps-episode-date,
.ps-episode-duration {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #6b7280;
}

.ps-episode-date svg,
.ps-episode-duration svg {
    color: #9ca3af;
    flex-shrink: 0;
}

.ps-episode-explicit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #ef4444;
    border-radius: 3px;
}

/* Badge "Reprendre à X:XX" */
.ps-resume-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #1db954 0%, #1ed760 100%);
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(29, 185, 84, 0.3);
}

.ps-resume-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.4);
}

.ps-resume-badge:active {
    transform: scale(0.98);
}

.ps-resume-badge svg {
    flex-shrink: 0;
}

.ps-resume-badge span {
    position: relative;
    z-index: 1;
}

.ps-resume-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0 0 20px 20px;
    transition: width 0.3s ease;
}

/* Mobile */
@media (max-width: 480px) {
    .ps-resume-badge {
        padding: 6px 12px;
        font-size: 12px;
        width: 100%;
        justify-content: center;
    }
}

/* Description */
.ps-episode-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

/* ==========================================================================
   EPISODE ACTIONS (QR Code, etc.)
   ========================================================================== */

.ps-episode-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.ps-qr-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f3f4f6;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ps-qr-btn:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.ps-qr-btn svg {
    flex-shrink: 0;
}

/* Bouton Voir la page */
.ps-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #1DB954 0%, #17a34a 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ps-page-btn:hover {
    background: linear-gradient(135deg, #17a34a 0%, #15803d 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

.ps-page-btn svg {
    flex-shrink: 0;
}

/* Bouton Transcription */
.ps-transcript-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #6366f1;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ps-transcript-btn:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.ps-transcript-btn svg {
    flex-shrink: 0;
}

/* Bouton Chapitres */
.ps-chapters-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f59e0b;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ps-chapters-btn:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.ps-chapters-btn svg {
    flex-shrink: 0;
}

/* Chapters Modal */
.ps-chapters-modal {
    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;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.ps-chapters-modal.active {
    opacity: 1;
    visibility: visible;
}

.ps-chapters-modal__content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ps-chapters-modal.active .ps-chapters-modal__content {
    transform: scale(1);
}

.ps-chapters-modal__header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.ps-chapters-modal__title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ps-chapters-modal__title svg {
    color: #f59e0b;
}

.ps-chapters-modal__close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ps-chapters-modal__close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.ps-chapters-modal__body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

.ps-chapters-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ps-chapter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ps-chapter-item:hover {
    background: #f9fafb;
}

.ps-chapter-item:last-child {
    border-bottom: none;
}

.ps-chapter-item__time {
    flex-shrink: 0;
    padding: 6px 10px;
    background: #f59e0b;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    font-family: monospace;
    min-width: 55px;
    text-align: center;
}

.ps-chapter-item__title {
    flex: 1;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.ps-chapter-item__play {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #1DB954;
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
}

.ps-chapter-item:hover .ps-chapter-item__play {
    opacity: 1;
}

.ps-chapter-item__play:hover {
    transform: scale(1.1);
}

.ps-chapters-modal__loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .ps-chapters-modal__content {
        max-height: 95vh;
        margin: 10px;
    }
    
    .ps-chapter-item {
        padding: 12px 16px;
    }
    
    .ps-chapter-item__play {
        opacity: 1;
    }
}

/* Transcript Modal */
.ps-transcript-modal {
    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;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.ps-transcript-modal.active {
    opacity: 1;
    visibility: visible;
}

.ps-transcript-modal__content {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ps-transcript-modal.active .ps-transcript-modal__content {
    transform: scale(1);
}

.ps-transcript-modal__header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-shrink: 0;
}

.ps-transcript-modal__title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px;
}

.ps-transcript-modal__subtitle {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.ps-transcript-modal__close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ps-transcript-modal__close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.ps-transcript-modal__body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.ps-transcript-modal__text {
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
    white-space: pre-wrap;
}

.ps-transcript-modal__text strong {
    font-weight: 700;
    color: #1DB954;
}

.ps-transcript-modal__text p {
    margin-bottom: 16px;
}

.ps-transcript-modal__loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.ps-transcript-modal__timestamp {
    display: inline-block;
    background: #6366f1;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 8px;
    font-family: monospace;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .ps-transcript-modal__content {
        max-height: 95vh;
        margin: 10px;
    }
    
    .ps-transcript-modal__header {
        padding: 16px 20px;
    }
    
    .ps-transcript-modal__body {
        padding: 20px;
    }
    
    .ps-transcript-modal__text {
        font-size: 14px;
    }
}

/* QR Code Modal */
.ps-qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.ps-qr-modal.active {
    opacity: 1;
    visibility: visible;
}

.ps-qr-modal__content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ps-qr-modal.active .ps-qr-modal__content {
    transform: scale(1);
}

.ps-qr-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s ease;
}

.ps-qr-modal__close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.ps-qr-modal__title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px;
}

.ps-qr-modal__subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ps-qr-modal__code {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 16px;
    border: 2px solid #f3f4f6;
}

.ps-qr-modal__code img {
    display: block;
    width: 200px;
    height: 200px;
}

.ps-qr-modal__hint {
    font-size: 13px;
    color: #9ca3af;
    margin: 0 0 24px;
}

.ps-qr-modal__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.ps-qr-modal__actions button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ps-qr-download {
    background: #1DB954;
    color: white;
}

.ps-qr-download:hover {
    background: #17a34a;
}

.ps-qr-copy {
    background: #f3f4f6;
    color: #374151;
}

.ps-qr-copy:hover {
    background: #e5e7eb;
}

.ps-qr-copy.copied {
    background: #10b981;
    color: white;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .ps-qr-modal__content {
        padding: 24px 20px;
    }
    
    .ps-qr-modal__code img {
        width: 180px;
        height: 180px;
    }
    
    .ps-qr-modal__actions {
        flex-direction: column;
    }
    
    .ps-qr-modal__actions button {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   LECTEUR INLINE (SIMPLIFIÉ)
   ========================================================================== */

.ps-inline-player {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #1a1a2e;
    border-radius: 10px;
    margin-top: 4px;
    position: relative;
    z-index: 10;
}

.ps-inline-play-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--ps-primary, #1DB954);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: rgba(29, 185, 84, 0.3);
    touch-action: manipulation;
    position: relative;
    z-index: 20;
    /* iOS fix pour rendre cliquable */
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
}

.ps-inline-play-btn:hover,
.ps-inline-play-btn:active {
    background: var(--ps-primary-hover, #1ed760);
    transform: scale(1.05);
}

.ps-inline-play-btn:focus {
    outline: 2px solid var(--ps-primary, #1DB954);
    outline-offset: 2px;
}

.ps-inline-play-btn svg {
    width: 20px;
    height: 20px;
    fill: white !important;
    color: white !important;
    pointer-events: none;
    flex-shrink: 0;
}

.ps-inline-play-btn .ps-icon-play {
    margin-left: 3px;
}

.ps-inline-play-btn .ps-icon-pause {
    display: none;
}

.ps-inline-play-btn.playing .ps-icon-play {
    display: none;
}

.ps-inline-play-btn.playing .ps-icon-pause {
    display: block;
}

.ps-inline-progress {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ps-inline-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
}

.ps-inline-progress-fill {
    height: 100%;
    background: var(--ps-primary, #1DB954);
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s linear;
}

.ps-inline-time {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   MASQUER LES ANCIENS ÉLÉMENTS
   ========================================================================== */

/* Masquer tout élément audio natif */
.ps-episode-card audio,
.ps-episode-card .ps-audio-element,
.ps-episode-player audio,
audio.ps-audio-element {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
}

/* Masquer l'ancien lecteur */
.ps-episode-player {
    display: none !important;
}

/* Ancien badge (au cas où) */
.ps-episode-number {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--ps-primary, #1DB954);
    background: rgba(29, 185, 84, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .ps-episodes-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .ps-episode-card {
        border-radius: 12px;
        max-width: 100%;
    }
    
    .ps-episode-image-container {
        aspect-ratio: 16/9;
    }
    
    .ps-episode-content {
        padding: 16px;
    }
    
    .ps-episode-title {
        font-size: 16px;
        line-height: 1.4;
    }
    
    .ps-episode-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .ps-episode-meta {
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .ps-episode-description {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }
    
    .ps-inline-player {
        padding: 10px 12px;
    }
    
    .ps-inline-play-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
    
    .ps-inline-play-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* ==========================================================================
   LIST LAYOUT - MODERN
   ========================================================================== */

.ps-episodes-list {
    display: flex;
    flex-direction: column;
    gap: var(--ps-space-4);
}

.ps-episode-list-item {
    background: var(--ps-bg-elevated);
    border-radius: var(--ps-radius-xl);
    padding: var(--ps-space-4);
    display: flex;
    gap: var(--ps-space-4);
    transition: all var(--ps-transition-base);
    border: 1px solid var(--ps-border-light);
    align-items: center;
}

.ps-episode-list-item:hover {
    background: var(--ps-bg-secondary);
    border-color: var(--ps-primary);
    box-shadow: var(--ps-shadow-lg);
    transform: translateX(8px);
}

.ps-episode-list-item__image {
    width: 120px;
    height: 120px;
    border-radius: var(--ps-radius-lg);
    object-fit: cover;
    flex-shrink: 0;
    transition: transform var(--ps-transition-base);
}

.ps-episode-list-item:hover .ps-episode-list-item__image {
    transform: scale(1.05);
}

.ps-episode-list-item__content {
    flex: 1;
    min-width: 0;
}

.ps-episode-list-item__meta {
    display: flex;
    align-items: center;
    gap: var(--ps-space-3);
    margin-bottom: var(--ps-space-2);
    flex-wrap: wrap;
}

.ps-episode-list-item__title {
    font-size: var(--ps-text-base);
    font-weight: 600;
    color: var(--ps-text-primary);
    margin: 0 0 var(--ps-space-2) 0;
    transition: color var(--ps-transition-fast);
}

.ps-episode-list-item:hover .ps-episode-list-item__title {
    color: var(--ps-primary);
}

.ps-episode-list-item__description {
    font-size: var(--ps-text-sm);
    color: var(--ps-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.ps-episode-list-item__play-btn {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

/* ==========================================================================
   MINIMAL LAYOUT - MODERN
   ========================================================================== */

.ps-episodes-minimal {
    display: flex;
    flex-direction: column;
    gap: var(--ps-space-2);
}

.ps-episode-minimal {
    display: flex;
    align-items: center;
    gap: var(--ps-space-4);
    padding: var(--ps-space-3) var(--ps-space-4);
    border-radius: var(--ps-radius-lg);
    transition: all var(--ps-transition-fast);
    border: 1px solid transparent;
}

.ps-episode-minimal:hover {
    background: var(--ps-bg-secondary);
    border-color: var(--ps-border-color);
}

.ps-episode-minimal__number {
    font-size: var(--ps-text-sm);
    font-weight: 700;
    color: var(--ps-text-tertiary);
    width: 32px;
    text-align: center;
}

.ps-episode-minimal__play-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--ps-radius-full);
    background: var(--ps-bg-tertiary);
    color: var(--ps-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--ps-transition-fast);
}

.ps-episode-minimal:hover .ps-episode-minimal__play-btn {
    background: var(--ps-primary);
    color: white;
}

.ps-episode-minimal__info {
    flex: 1;
    min-width: 0;
}

.ps-episode-minimal__title {
    font-size: var(--ps-text-sm);
    font-weight: 500;
    color: var(--ps-text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ps-episode-minimal__duration {
    font-size: var(--ps-text-xs);
    color: var(--ps-text-tertiary);
}

/* ==========================================================================
   AUDIO PLAYER - MODERN
   ========================================================================== */

.ps-player {
    background: var(--ps-glass-bg);
    backdrop-filter: blur(var(--ps-glass-blur));
    -webkit-backdrop-filter: blur(var(--ps-glass-blur));
    border: 1px solid var(--ps-glass-border);
    border-radius: var(--ps-radius-2xl);
    padding: var(--ps-space-6);
    box-shadow: var(--ps-shadow-lg);
}

.ps-player--playing {
    animation: ps-glow-pulse 2s infinite;
}

/* Player Header */
.ps-player__header {
    display: flex;
    gap: var(--ps-space-5);
    margin-bottom: var(--ps-space-5);
}

.ps-player__artwork {
    width: 120px;
    height: 120px;
    border-radius: var(--ps-radius-xl);
    object-fit: cover;
    box-shadow: var(--ps-shadow-lg);
    transition: transform var(--ps-transition-base);
}

.ps-player--playing .ps-player__artwork {
    animation: ps-pulse 2s infinite;
}

.ps-player__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ps-player__title {
    font-size: var(--ps-text-xl);
    font-weight: 700;
    color: var(--ps-text-primary);
    margin: 0 0 var(--ps-space-2) 0;
}

.ps-player__podcast-name {
    font-size: var(--ps-text-sm);
    color: var(--ps-text-secondary);
    margin: 0;
}

/* Progress Bar */
.ps-player__progress-container {
    margin-bottom: var(--ps-space-4);
    position: relative;
}

.ps-player__progress-bar {
    height: 6px;
    background: var(--ps-bg-tertiary);
    border-radius: var(--ps-radius-full);
    cursor: pointer;
    position: relative;
    overflow: visible;
    transition: height var(--ps-transition-fast);
}

.ps-player__progress-bar:hover {
    height: 8px;
}

.ps-player__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ps-primary) 0%, var(--ps-secondary) 100%);
    border-radius: var(--ps-radius-full);
    position: relative;
    transition: width 0.1s linear;
}

.ps-player__progress-handle {
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--ps-shadow-md);
    opacity: 0;
    transition: opacity var(--ps-transition-fast), transform var(--ps-transition-fast);
}

.ps-player__progress-bar:hover .ps-player__progress-handle {
    opacity: 1;
}

.ps-player__progress-handle:hover {
    transform: translateY(-50%) scale(1.2);
}

/* Progress Preview on Hover */
.ps-player__progress-preview {
    position: absolute;
    bottom: calc(100% + 12px);
    background: var(--ps-text-primary);
    color: var(--ps-text-inverse);
    padding: var(--ps-space-1) var(--ps-space-2);
    border-radius: var(--ps-radius-sm);
    font-size: var(--ps-text-xs);
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity var(--ps-transition-fast);
    white-space: nowrap;
    z-index: 10;
}

.ps-player__progress-preview::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--ps-text-primary);
}

.ps-player__progress-bar:hover .ps-player__progress-preview {
    opacity: 1;
}

/* Buffered progress */
.ps-player__progress-buffered {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(var(--ps-primary-rgb), 0.2);
    border-radius: var(--ps-radius-full);
    pointer-events: none;
}

/* Time Display */
.ps-player__time {
    display: flex;
    justify-content: space-between;
    margin-top: var(--ps-space-2);
}

.ps-player__time-current,
.ps-player__time-total {
    font-size: var(--ps-text-xs);
    color: var(--ps-text-tertiary);
    font-variant-numeric: tabular-nums;
}

/* Player Controls */
.ps-player__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--ps-space-4);
}

.ps-player__btn {
    width: 48px;
    height: 48px;
    border-radius: var(--ps-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ps-text-secondary);
    background: var(--ps-bg-tertiary);
    transition: all var(--ps-transition-fast);
}

.ps-player__btn:hover {
    color: var(--ps-primary);
    background: rgba(var(--ps-primary-rgb), 0.1);
    transform: scale(1.1);
}

.ps-player__btn svg {
    width: 20px;
    height: 20px;
}

.ps-player__btn--main {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--ps-primary) 0%, var(--ps-primary-dark) 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(var(--ps-primary-rgb), 0.4);
}

.ps-player__btn--main:hover {
    background: linear-gradient(135deg, var(--ps-primary-light) 0%, var(--ps-primary) 100%);
    color: white;
    box-shadow: 0 12px 32px rgba(var(--ps-primary-rgb), 0.5);
}

.ps-player__btn--main svg {
    width: 28px;
    height: 28px;
}

/* Speed Control */
.ps-player__speed {
    position: relative;
}

.ps-player__speed-btn {
    font-size: var(--ps-text-xs);
    font-weight: 700;
    padding: var(--ps-space-2) var(--ps-space-3);
    border-radius: var(--ps-radius-full);
    background: var(--ps-bg-tertiary);
    color: var(--ps-text-secondary);
    transition: all var(--ps-transition-fast);
    min-width: 48px;
}

.ps-player__speed-btn:hover {
    background: var(--ps-primary);
    color: white;
}

.ps-player__speed-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--ps-bg-elevated);
    border-radius: var(--ps-radius-lg);
    box-shadow: var(--ps-shadow-xl);
    padding: var(--ps-space-2);
    display: none;
    z-index: var(--ps-z-dropdown);
    min-width: 100px;
    border: 1px solid var(--ps-border-color);
}

.ps-player__speed-dropdown.active {
    display: block;
    animation: ps-scale-in var(--ps-transition-fast) ease-out;
}

.ps-player__speed-option {
    display: block;
    width: 100%;
    padding: var(--ps-space-2) var(--ps-space-3);
    text-align: center;
    font-size: var(--ps-text-sm);
    color: var(--ps-text-secondary);
    border-radius: var(--ps-radius-md);
    transition: all var(--ps-transition-fast);
}

.ps-player__speed-option:hover,
.ps-player__speed-option.active {
    background: var(--ps-primary);
    color: white;
}

/* Volume Control */
.ps-player__volume {
    display: flex;
    align-items: center;
    gap: var(--ps-space-2);
}

.ps-player__volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    background: var(--ps-bg-tertiary);
    border-radius: var(--ps-radius-full);
    outline: none;
}

.ps-player__volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--ps-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: transform var(--ps-transition-fast);
}

.ps-player__volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.ps-player__volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--ps-primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* ==========================================================================
   FEATURED PLAYER - FULL WIDTH
   ========================================================================== */

.ps-featured-player {
    position: relative;
    border-radius: var(--ps-radius-2xl);
    overflow: hidden;
    background: linear-gradient(135deg, var(--ps-primary) 0%, var(--ps-secondary) 100%);
    padding: var(--ps-space-8);
    color: white;
}

.ps-featured-player__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.ps-featured-player__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(40px);
    opacity: 0.3;
    transform: scale(1.2);
}

.ps-featured-player__content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--ps-space-8);
    align-items: center;
}

.ps-featured-player__artwork {
    width: 200px;
    height: 200px;
    border-radius: var(--ps-radius-xl);
    object-fit: cover;
    box-shadow: var(--ps-shadow-xl);
}

.ps-featured-player__info {
    display: flex;
    flex-direction: column;
    gap: var(--ps-space-4);
}

.ps-featured-player__label {
    font-size: var(--ps-text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.ps-featured-player__title {
    font-size: var(--ps-text-3xl);
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.ps-featured-player__description {
    font-size: var(--ps-text-base);
    opacity: 0.9;
    margin: 0;
}

.ps-featured-player__controls {
    display: flex;
    align-items: center;
    gap: var(--ps-space-4);
    margin-top: var(--ps-space-4);
}

.ps-featured-player__play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    color: var(--ps-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--ps-transition-fast);
    box-shadow: var(--ps-shadow-lg);
}

.ps-featured-player__play-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--ps-shadow-xl);
}

.ps-featured-player__play-btn svg {
    width: 24px;
    height: 24px;
    margin-left: 2px;
}

/* ==========================================================================
   PLATFORM LINKS
   ========================================================================== */

.ps-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ps-space-3, 12px);
    justify-content: center;
}

.ps-platforms-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--ps-gray-900, #1a1a2e);
}

.ps-platform-link {
    display: inline-flex;
    align-items: center;
    gap: var(--ps-space-2, 8px);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    background-color: var(--platform-color, #6366f1);
}

.ps-platform-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.ps-platform-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
    color: white;
}

.ps-platform-link .ps-platform-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ps-platform-link .ps-platform-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.ps-platform-link .ps-platform-name {
    white-space: nowrap;
}

/* Logo image personnalisé */
.ps-platform-link .ps-platform-logo-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Force le blanc */
}

/* Platform-specific colors (fallback if --platform-color not set) */
.ps-platform-spotify { background-color: #1DB954 !important; }
.ps-platform-apple { background-color: #A855F7 !important; }
.ps-platform-google { background-color: #4285F4 !important; }
.ps-platform-youtube { background-color: #FF0000 !important; }
.ps-platform-amazon { background-color: #FF9900 !important; }
.ps-platform-overcast { background-color: #FC7E0F !important; }
.ps-platform-pocketcasts { background-color: #F43E37 !important; }
.ps-platform-castbox { background-color: #F55B23 !important; }
.ps-platform-stitcher { background-color: #000000 !important; }
.ps-platform-deezer { background-color: #A238FF !important; }
.ps-platform-soundcloud { background-color: #FF5500 !important; }
.ps-platform-rss { background-color: #EE802F !important; }
.ps-platform-podcastaddict { background-color: #F4842D !important; }

/* Style: Buttons (default) */
.ps-style-buttons .ps-platform-link {
    padding: 10px 20px;
    border-radius: 8px;
}

/* Style: Pills */
.ps-style-pills .ps-platform-link {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
}

/* Style: Icons only */
.ps-style-icons .ps-platform-link {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
}

.ps-style-icons .ps-platform-name {
    display: none;
}

/* Icon-only variant (legacy) */
.ps-platform-link--icon-only {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
}

/* ==========================================================================
   FILTERS BAR (Recherche + Filtres)
   ========================================================================== */

.ps-filters-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--ps-bg-secondary, #f8fafc);
    border-radius: 12px;
    border: 1px solid var(--ps-border-color, #e2e8f0);
}

.ps-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.ps-search-wrapper .ps-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ps-text-tertiary, #9ca3af);
    pointer-events: none;
}

.ps-search-wrapper .ps-search-input {
    width: 100%;
    padding: 12px 40px 12px 44px;
    font-size: 14px;
    color: var(--ps-text-primary, #1f2937);
    background: #fff;
    border: 1px solid var(--ps-border-color, #e2e8f0);
    border-radius: 8px;
    outline: none;
    transition: all 0.2s;
}

.ps-search-wrapper .ps-search-input:focus {
    border-color: var(--ps-primary, #1DB954);
    box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.1);
}

.ps-search-wrapper .ps-search-input::placeholder {
    color: var(--ps-text-tertiary, #9ca3af);
}

.ps-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: none;
    background: var(--ps-bg-tertiary, #e5e7eb);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ps-text-tertiary, #6b7280);
    transition: all 0.2s;
}

.ps-search-clear:hover {
    background: var(--ps-primary, #1DB954);
    color: white;
}

.ps-filters-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ps-filter-select {
    padding: 10px 32px 10px 14px;
    font-size: 14px;
    color: var(--ps-text-primary, #1f2937);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 10px center;
    border: 1px solid var(--ps-border-color, #e2e8f0);
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    transition: all 0.2s;
}

.ps-filter-select:focus {
    outline: none;
    border-color: var(--ps-primary, #1DB954);
    box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.1);
}

.ps-results-count {
    font-size: 13px;
    color: var(--ps-text-secondary, #6b7280);
    margin-left: auto;
    padding: 8px 12px;
    background: var(--ps-primary, #1DB954);
    color: #fff;
    border-radius: 20px;
    font-weight: 500;
}

.ps-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--ps-text-secondary, #6b7280);
}

.ps-no-results svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.ps-no-results p {
    font-size: 16px;
    margin-bottom: 16px;
}

.ps-reset-filters {
    padding: 10px 20px;
    background: var(--ps-primary, #1DB954);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.ps-reset-filters:hover {
    background: #17a34a;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .ps-filters-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ps-search-wrapper {
        max-width: none;
    }
    
    .ps-filters-group {
        width: 100%;
    }
    
    .ps-filter-select {
        flex: 1;
    }
    
    .ps-results-count {
        text-align: center;
        margin-left: 0;
    }
}

/* ==========================================================================
   SEARCH BOX
   ========================================================================== */

.ps-search-box {
    position: relative;
    max-width: 400px;
    margin-bottom: var(--ps-space-6);
}

.ps-search-box__input {
    width: 100%;
    padding: var(--ps-space-4) var(--ps-space-5);
    padding-left: var(--ps-space-12);
    font-size: var(--ps-text-base);
    font-family: inherit;
    color: var(--ps-text-primary);
    background: var(--ps-bg-secondary);
    border: 2px solid var(--ps-border-color);
    border-radius: var(--ps-radius-full);
    outline: none;
    transition: all var(--ps-transition-fast);
}

.ps-search-box__input:focus {
    border-color: var(--ps-primary);
    box-shadow: 0 0 0 4px rgba(var(--ps-primary-rgb), 0.1);
}

.ps-search-box__input::placeholder {
    color: var(--ps-text-tertiary);
}

.ps-search-box__icon {
    position: absolute;
    left: var(--ps-space-5);
    top: 50%;
    transform: translateY(-50%);
    color: var(--ps-text-tertiary);
    pointer-events: none;
}

.ps-search-box__icon svg {
    width: 20px;
    height: 20px;
}

.ps-search-box__clear {
    position: absolute;
    right: var(--ps-space-4);
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--ps-bg-tertiary);
    color: var(--ps-text-tertiary);
    display: none;
    align-items: center;
    justify-content: center;
    transition: all var(--ps-transition-fast);
}

.ps-search-box__input:not(:placeholder-shown) ~ .ps-search-box__clear {
    display: flex;
}

.ps-search-box__clear:hover {
    background: var(--ps-primary);
    color: white;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.ps-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--ps-space-2);
    margin-top: var(--ps-space-8);
}

.ps-pagination__btn {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--ps-text-sm);
    font-weight: 600;
    color: var(--ps-text-secondary);
    background: var(--ps-bg-secondary);
    border: 1px solid var(--ps-border-color);
    border-radius: var(--ps-radius-lg);
    transition: all var(--ps-transition-fast);
}

.ps-pagination__btn:hover:not(:disabled) {
    border-color: var(--ps-primary);
    color: var(--ps-primary);
    background: rgba(var(--ps-primary-rgb), 0.05);
}

.ps-pagination__btn--active {
    background: var(--ps-primary);
    color: white;
    border-color: var(--ps-primary);
}

.ps-pagination__btn--active:hover {
    background: var(--ps-primary-dark);
    color: white;
}

.ps-pagination__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ps-pagination__ellipsis {
    color: var(--ps-text-tertiary);
    padding: 0 var(--ps-space-2);
}

/* ==========================================================================
   LOADING STATES
   ========================================================================== */

.ps-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--ps-space-12);
}

.ps-loading__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--ps-bg-tertiary);
    border-top-color: var(--ps-primary);
    border-radius: 50%;
    animation: ps-spin 0.8s linear infinite;
}

.ps-loading__bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 32px;
}

.ps-loading__bar {
    width: 4px;
    height: 100%;
    background: var(--ps-primary);
    border-radius: var(--ps-radius-full);
    animation: ps-wave 1s ease-in-out infinite;
}

.ps-loading__bar:nth-child(1) { animation-delay: 0s; }
.ps-loading__bar:nth-child(2) { animation-delay: 0.1s; }
.ps-loading__bar:nth-child(3) { animation-delay: 0.2s; }
.ps-loading__bar:nth-child(4) { animation-delay: 0.3s; }
.ps-loading__bar:nth-child(5) { animation-delay: 0.4s; }

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */

.ps-empty-state {
    text-align: center;
    padding: var(--ps-space-16) var(--ps-space-8);
}

.ps-empty-state__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--ps-space-6);
    color: var(--ps-text-tertiary);
    opacity: 0.5;
}

.ps-empty-state__title {
    font-size: var(--ps-text-xl);
    font-weight: 700;
    color: var(--ps-text-primary);
    margin: 0 0 var(--ps-space-3) 0;
}

.ps-empty-state__description {
    font-size: var(--ps-text-base);
    color: var(--ps-text-secondary);
    margin: 0;
}

/* ==========================================================================
   MINI PLAYER - PERSISTENT BOTTOM BAR
   ========================================================================== */

.ps-mini-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ps-glass-bg);
    backdrop-filter: blur(var(--ps-glass-blur));
    -webkit-backdrop-filter: blur(var(--ps-glass-blur));
    border-top: 1px solid var(--ps-glass-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: var(--ps-z-mini-player);
    transform: translateY(100%);
    transition: transform var(--ps-transition-base);
}

.ps-mini-player.active {
    transform: translateY(0);
    animation: ps-slide-up var(--ps-transition-slow) ease-out;
}

.ps-mini-player__progress {
    height: 3px;
    background: var(--ps-bg-tertiary);
    cursor: pointer;
}

.ps-mini-player__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ps-primary) 0%, var(--ps-secondary) 100%);
    transition: width 0.1s linear;
}

.ps-mini-player__content {
    display: flex;
    align-items: center;
    gap: var(--ps-space-4);
    padding: var(--ps-space-3) var(--ps-space-4);
    max-width: 1400px;
    margin: 0 auto;
}

.ps-mini-player__artwork {
    width: 48px;
    height: 48px;
    border-radius: var(--ps-radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.ps-mini-player__info {
    flex: 1;
    min-width: 0;
}

.ps-mini-player__title {
    font-size: var(--ps-text-sm);
    font-weight: 600;
    color: var(--ps-text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ps-mini-player__podcast {
    font-size: var(--ps-text-xs);
    color: var(--ps-text-tertiary);
    margin: 0;
}

.ps-mini-player__controls {
    display: flex;
    align-items: center;
    gap: var(--ps-space-2);
}

.ps-mini-player__btn {
    width: 40px;
    height: 40px;
    border-radius: var(--ps-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ps-text-secondary);
    background: var(--ps-bg-tertiary);
    transition: all var(--ps-transition-fast);
}

.ps-mini-player__btn:hover {
    color: var(--ps-primary);
    background: rgba(var(--ps-primary-rgb), 0.1);
}

.ps-mini-player__btn--main {
    width: 48px;
    height: 48px;
    background: var(--ps-primary);
    color: white;
}

.ps-mini-player__btn--main svg {
    width: 24px;
    height: 24px;
    fill: white !important;
    color: white !important;
}

.ps-mini-player__btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.ps-mini-player__btn--main:hover {
    background: var(--ps-primary-dark);
    color: white;
}

.ps-mini-player__time {
    font-size: var(--ps-text-xs);
    color: var(--ps-text-tertiary);
    font-variant-numeric: tabular-nums;
    min-width: 80px;
    text-align: center;
}

/* Bouton vitesse de lecture */
.ps-mini-player__speed {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 32px;
    padding: 0 8px;
    border-radius: var(--ps-radius-md);
    background: var(--ps-bg-tertiary);
    color: var(--ps-text-secondary);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--ps-transition-fast);
    cursor: pointer;
    border: none;
}

.ps-mini-player__speed:hover {
    background: var(--ps-bg-secondary);
    color: var(--ps-text-primary);
}

.ps-mini-player__speed:active {
    transform: scale(0.95);
}

.ps-mini-player__speed span {
    pointer-events: none;
}

/* Bouton lecture continue */
.ps-mini-player__continuous {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 32px;
    border-radius: var(--ps-radius-md);
    background: var(--ps-bg-tertiary);
    color: var(--ps-text-tertiary);
    transition: all var(--ps-transition-fast);
    cursor: pointer;
    border: none;
}

.ps-mini-player__continuous:hover {
    background: var(--ps-bg-secondary);
    color: var(--ps-text-secondary);
}

.ps-mini-player__continuous.active {
    background: var(--ps-primary);
    color: white;
}

.ps-mini-player__continuous.active:hover {
    background: var(--ps-primary-dark);
}

.ps-mini-player__continuous svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.ps-mini-player__close {
    width: 32px;
    height: 32px;
    border-radius: var(--ps-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ps-text-tertiary);
    transition: all var(--ps-transition-fast);
}

.ps-mini-player__close:hover {
    color: var(--ps-text-primary);
    background: var(--ps-bg-tertiary);
}

/* Mini player volume (desktop only) */
.ps-mini-player__volume {
    display: none;
    align-items: center;
    gap: var(--ps-space-2);
}

@media (min-width: 768px) {
    .ps-mini-player__volume {
        display: flex;
    }
}

/* ==========================================================================
   WAVEFORM VISUALIZATION
   ========================================================================== */

.ps-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 40px;
    padding: var(--ps-space-2) 0;
}

.ps-waveform__bar {
    width: 3px;
    height: 100%;
    background: var(--ps-primary);
    border-radius: var(--ps-radius-full);
    transform-origin: bottom;
}

.ps-waveform--playing .ps-waveform__bar {
    animation: ps-waveform 0.5s ease-in-out infinite;
}

.ps-waveform__bar:nth-child(1) { animation-delay: 0s; height: 60%; }
.ps-waveform__bar:nth-child(2) { animation-delay: 0.1s; height: 80%; }
.ps-waveform__bar:nth-child(3) { animation-delay: 0.2s; height: 100%; }
.ps-waveform__bar:nth-child(4) { animation-delay: 0.3s; height: 70%; }
.ps-waveform__bar:nth-child(5) { animation-delay: 0.4s; height: 90%; }

/* Static waveform display */
.ps-waveform-static {
    height: 60px;
    display: flex;
    align-items: flex-end;
    gap: 1px;
    cursor: pointer;
    position: relative;
}

.ps-waveform-static__bar {
    flex: 1;
    background: var(--ps-bg-tertiary);
    border-radius: 1px;
    transition: background var(--ps-transition-fast);
    min-width: 2px;
}

.ps-waveform-static__bar--played {
    background: var(--ps-primary);
}

.ps-waveform-static:hover .ps-waveform-static__bar {
    opacity: 0.8;
}

/* ==========================================================================
   CHAPTERS
   ========================================================================== */

.ps-chapters {
    margin-top: var(--ps-space-6);
}

.ps-chapters__title {
    font-size: var(--ps-text-lg);
    font-weight: 700;
    color: var(--ps-text-primary);
    margin: 0 0 var(--ps-space-4) 0;
    display: flex;
    align-items: center;
    gap: var(--ps-space-2);
}

.ps-chapters__list {
    display: flex;
    flex-direction: column;
    gap: var(--ps-space-2);
}

.ps-chapter {
    display: flex;
    align-items: center;
    gap: var(--ps-space-4);
    padding: var(--ps-space-3) var(--ps-space-4);
    border-radius: var(--ps-radius-lg);
    background: var(--ps-bg-secondary);
    cursor: pointer;
    transition: all var(--ps-transition-fast);
    border: 1px solid transparent;
}

.ps-chapter:hover {
    background: var(--ps-bg-tertiary);
    border-color: var(--ps-border-color);
}

.ps-chapter--active {
    background: rgba(var(--ps-primary-rgb), 0.1);
    border-color: var(--ps-primary);
}

.ps-chapter__time {
    font-size: var(--ps-text-sm);
    font-weight: 600;
    color: var(--ps-primary);
    font-variant-numeric: tabular-nums;
    min-width: 50px;
}

.ps-chapter__info {
    flex: 1;
}

.ps-chapter__name {
    font-size: var(--ps-text-sm);
    font-weight: 500;
    color: var(--ps-text-primary);
    margin: 0;
}

.ps-chapter__duration {
    font-size: var(--ps-text-xs);
    color: var(--ps-text-tertiary);
}

.ps-chapter__play-icon {
    width: 24px;
    height: 24px;
    color: var(--ps-text-tertiary);
    opacity: 0;
    transition: opacity var(--ps-transition-fast);
}

.ps-chapter:hover .ps-chapter__play-icon,
.ps-chapter--active .ps-chapter__play-icon {
    opacity: 1;
    color: var(--ps-primary);
}

/* ==========================================================================
   THEME TOGGLE BUTTON
   ========================================================================== */

.ps-theme-toggle {
    position: fixed;
    bottom: var(--ps-space-6);
    right: var(--ps-space-6);
    width: 48px;
    height: 48px;
    border-radius: var(--ps-radius-full);
    background: var(--ps-bg-elevated);
    border: 1px solid var(--ps-border-color);
    box-shadow: var(--ps-shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ps-text-secondary);
    cursor: pointer;
    transition: all var(--ps-transition-fast);
    z-index: var(--ps-z-fixed);
}

.ps-theme-toggle:hover {
    transform: scale(1.1);
    color: var(--ps-primary);
}

.ps-theme-toggle svg {
    width: 24px;
    height: 24px;
}

.ps-theme-toggle__icon--dark {
    display: none;
}

[data-theme="dark"] .ps-theme-toggle__icon--light,
.ps-dark-mode .ps-theme-toggle__icon--light {
    display: none;
}

[data-theme="dark"] .ps-theme-toggle__icon--dark,
.ps-dark-mode .ps-theme-toggle__icon--dark {
    display: block;
}

/* Adjust mini player spacing when theme toggle is present */
.ps-mini-player.active ~ .ps-theme-toggle {
    bottom: calc(var(--ps-space-6) + 80px);
}

/* ==========================================================================
   SPOTIFY-LIKE LAYOUT
   ========================================================================== */

.ps-layout-spotify {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--ps-space-6);
    min-height: 600px;
}

/* Spotify Sidebar */
.ps-spotify-sidebar {
    background: var(--ps-bg-secondary);
    border-radius: var(--ps-radius-xl);
    padding: var(--ps-space-5);
    display: flex;
    flex-direction: column;
    gap: var(--ps-space-4);
    position: sticky;
    top: var(--ps-space-4);
    max-height: calc(100vh - var(--ps-space-8));
    overflow-y: auto;
}

.ps-spotify-sidebar__header {
    display: flex;
    align-items: center;
    gap: var(--ps-space-3);
    padding-bottom: var(--ps-space-4);
    border-bottom: 1px solid var(--ps-border-color);
}

.ps-spotify-sidebar__artwork {
    width: 64px;
    height: 64px;
    border-radius: var(--ps-radius-lg);
    object-fit: cover;
}

.ps-spotify-sidebar__podcast-name {
    font-size: var(--ps-text-lg);
    font-weight: 700;
    color: var(--ps-text-primary);
    margin: 0;
}

.ps-spotify-sidebar__episode-count {
    font-size: var(--ps-text-sm);
    color: var(--ps-text-tertiary);
}

/* Spotify Episode List */
.ps-spotify-episodes {
    display: flex;
    flex-direction: column;
    gap: var(--ps-space-1);
}

.ps-spotify-episode {
    display: flex;
    align-items: center;
    gap: var(--ps-space-3);
    padding: var(--ps-space-3);
    border-radius: var(--ps-radius-md);
    cursor: pointer;
    transition: all var(--ps-transition-fast);
}

.ps-spotify-episode:hover {
    background: var(--ps-bg-tertiary);
}

.ps-spotify-episode--active {
    background: rgba(var(--ps-primary-rgb), 0.15);
}

.ps-spotify-episode__number {
    font-size: var(--ps-text-sm);
    font-weight: 600;
    color: var(--ps-text-tertiary);
    min-width: 24px;
}

.ps-spotify-episode--active .ps-spotify-episode__number {
    color: var(--ps-primary);
}

.ps-spotify-episode__equalizer {
    display: none;
}

.ps-spotify-episode--playing .ps-spotify-episode__number {
    display: none;
}

.ps-spotify-episode--playing .ps-spotify-episode__equalizer {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
    min-width: 24px;
}

.ps-spotify-episode__equalizer-bar {
    width: 3px;
    background: var(--ps-primary);
    border-radius: 1px;
    animation: ps-equalizer 0.5s ease-in-out infinite;
}

.ps-spotify-episode__equalizer-bar:nth-child(1) { animation-delay: 0s; }
.ps-spotify-episode__equalizer-bar:nth-child(2) { animation-delay: 0.15s; }
.ps-spotify-episode__equalizer-bar:nth-child(3) { animation-delay: 0.3s; }

.ps-spotify-episode__info {
    flex: 1;
    min-width: 0;
}

.ps-spotify-episode__title {
    font-size: var(--ps-text-sm);
    font-weight: 500;
    color: var(--ps-text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ps-spotify-episode--active .ps-spotify-episode__title {
    color: var(--ps-primary);
}

.ps-spotify-episode__duration {
    font-size: var(--ps-text-xs);
    color: var(--ps-text-tertiary);
}

/* Spotify Main Content */
.ps-spotify-main {
    display: flex;
    flex-direction: column;
    gap: var(--ps-space-6);
}

.ps-spotify-now-playing {
    background: linear-gradient(135deg, var(--ps-primary) 0%, var(--ps-secondary) 100%);
    border-radius: var(--ps-radius-2xl);
    padding: var(--ps-space-8);
    color: white;
    position: relative;
    overflow: hidden;
}

.ps-spotify-now-playing__bg {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.ps-spotify-now-playing__content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--ps-space-6);
    align-items: center;
}

.ps-spotify-now-playing__artwork {
    width: 200px;
    height: 200px;
    border-radius: var(--ps-radius-xl);
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.ps-spotify-now-playing__info {
    display: flex;
    flex-direction: column;
    gap: var(--ps-space-3);
}

.ps-spotify-now-playing__label {
    font-size: var(--ps-text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.ps-spotify-now-playing__title {
    font-size: var(--ps-text-3xl);
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.ps-spotify-now-playing__description {
    font-size: var(--ps-text-sm);
    opacity: 0.9;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ps-spotify-now-playing__meta {
    display: flex;
    align-items: center;
    gap: var(--ps-space-4);
    font-size: var(--ps-text-sm);
    opacity: 0.8;
}

/* ==========================================================================
   CAROUSEL LAYOUT
   ========================================================================== */

.ps-carousel {
    position: relative;
    overflow: hidden;
}

.ps-carousel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--ps-space-5);
}

.ps-carousel__title {
    font-size: var(--ps-text-2xl);
    font-weight: 700;
    color: var(--ps-text-primary);
    margin: 0;
}

.ps-carousel__nav {
    display: flex;
    gap: var(--ps-space-2);
}

.ps-carousel__nav-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--ps-radius-full);
    background: var(--ps-bg-secondary);
    border: 1px solid var(--ps-border-color);
    color: var(--ps-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--ps-transition-fast);
}

.ps-carousel__nav-btn:hover:not(:disabled) {
    background: var(--ps-primary);
    border-color: var(--ps-primary);
    color: white;
}

.ps-carousel__nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ps-carousel__nav-btn svg {
    width: 20px;
    height: 20px;
}

.ps-carousel__track-wrapper {
    overflow: hidden;
    margin: 0 calc(var(--ps-space-4) * -1);
    padding: 0 var(--ps-space-4);
}

.ps-carousel__track {
    display: flex;
    gap: var(--ps-space-5);
    transition: transform var(--ps-transition-slow);
}

.ps-carousel__slide {
    flex: 0 0 320px;
    max-width: 320px;
}

/* Carousel Card */
.ps-carousel-card {
    background: var(--ps-bg-elevated);
    border-radius: var(--ps-radius-xl);
    overflow: hidden;
    transition: all var(--ps-transition-base);
    border: 1px solid var(--ps-border-light);
    height: 100%;
}

.ps-carousel-card:hover {
    transform: scale(1.02);
    box-shadow: var(--ps-shadow-xl);
}

.ps-carousel-card__image-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.ps-carousel-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ps-transition-slow);
}

.ps-carousel-card:hover .ps-carousel-card__image {
    transform: scale(1.05);
}

.ps-carousel-card__play-btn {
    position: absolute;
    bottom: var(--ps-space-4);
    right: var(--ps-space-4);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ps-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    transition: all var(--ps-transition-fast);
    box-shadow: 0 4px 12px rgba(var(--ps-primary-rgb), 0.4);
}

.ps-carousel-card:hover .ps-carousel-card__play-btn {
    opacity: 1;
    transform: translateY(0);
}

.ps-carousel-card__play-btn:hover {
    transform: scale(1.1);
    background: var(--ps-primary-light);
}

.ps-carousel-card__content {
    padding: var(--ps-space-4);
}

.ps-carousel-card__date {
    font-size: var(--ps-text-xs);
    color: var(--ps-text-tertiary);
    margin-bottom: var(--ps-space-2);
}

.ps-carousel-card__title {
    font-size: var(--ps-text-base);
    font-weight: 600;
    color: var(--ps-text-primary);
    margin: 0 0 var(--ps-space-2) 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ps-carousel-card__duration {
    font-size: var(--ps-text-xs);
    color: var(--ps-primary);
    font-weight: 600;
}

/* Carousel Dots */
.ps-carousel__dots {
    display: flex;
    justify-content: center;
    gap: var(--ps-space-2);
    margin-top: var(--ps-space-6);
}

.ps-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ps-bg-tertiary);
    transition: all var(--ps-transition-fast);
    cursor: pointer;
}

.ps-carousel__dot:hover {
    background: var(--ps-text-tertiary);
}

.ps-carousel__dot--active {
    background: var(--ps-primary);
    width: 24px;
    border-radius: var(--ps-radius-full);
}

/* ==========================================================================
   HERO LAYOUT
   ========================================================================== */

.ps-hero {
    position: relative;
    min-height: 500px;
    border-radius: var(--ps-radius-2xl);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.ps-hero__background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ps-hero__background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ps-hero__background-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.6) 40%,
        rgba(0, 0, 0, 0.3) 70%,
        transparent 100%
    );
}

.ps-hero__content {
    position: relative;
    z-index: 1;
    padding: var(--ps-space-10);
    width: 100%;
    color: white;
}

.ps-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--ps-space-2);
    padding: var(--ps-space-2) var(--ps-space-4);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--ps-radius-full);
    font-size: var(--ps-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--ps-space-4);
}

.ps-hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--ps-accent);
    border-radius: 50%;
    animation: ps-pulse 2s infinite;
}

.ps-hero__title {
    font-size: var(--ps-text-4xl);
    font-weight: 800;
    margin: 0 0 var(--ps-space-4) 0;
    line-height: 1.1;
    max-width: 700px;
}

.ps-hero__description {
    font-size: var(--ps-text-lg);
    opacity: 0.9;
    margin: 0 0 var(--ps-space-6) 0;
    max-width: 600px;
    line-height: 1.6;
}

.ps-hero__meta {
    display: flex;
    align-items: center;
    gap: var(--ps-space-6);
    margin-bottom: var(--ps-space-6);
    font-size: var(--ps-text-sm);
    opacity: 0.8;
}

.ps-hero__meta-item {
    display: flex;
    align-items: center;
    gap: var(--ps-space-2);
}

.ps-hero__meta-item svg {
    width: 16px;
    height: 16px;
}

.ps-hero__actions {
    display: flex;
    align-items: center;
    gap: var(--ps-space-4);
}

.ps-hero__play-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--ps-space-3);
    padding: var(--ps-space-4) var(--ps-space-8);
    background: white;
    color: var(--ps-text-primary);
    font-size: var(--ps-text-base);
    font-weight: 700;
    border-radius: var(--ps-radius-full);
    transition: all var(--ps-transition-fast);
    box-shadow: var(--ps-shadow-lg);
}

.ps-hero__play-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--ps-shadow-xl);
}

.ps-hero__play-btn svg {
    width: 24px;
    height: 24px;
}

.ps-hero__secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--ps-space-2);
    padding: var(--ps-space-4) var(--ps-space-6);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-size: var(--ps-text-sm);
    font-weight: 600;
    border-radius: var(--ps-radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--ps-transition-fast);
}

.ps-hero__secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Hero with side info */
.ps-hero--split {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 0;
}

.ps-hero--split .ps-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.ps-hero__sidebar {
    background: var(--ps-glass-bg);
    backdrop-filter: blur(var(--ps-glass-blur));
    padding: var(--ps-space-6);
    display: flex;
    flex-direction: column;
    gap: var(--ps-space-4);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.ps-hero__sidebar-title {
    font-size: var(--ps-text-lg);
    font-weight: 700;
    color: white;
    margin: 0;
}

.ps-hero__sidebar-episodes {
    display: flex;
    flex-direction: column;
    gap: var(--ps-space-2);
    flex: 1;
    overflow-y: auto;
}

.ps-hero__sidebar-episode {
    display: flex;
    align-items: center;
    gap: var(--ps-space-3);
    padding: var(--ps-space-3);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--ps-radius-lg);
    cursor: pointer;
    transition: all var(--ps-transition-fast);
}

.ps-hero__sidebar-episode:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ps-hero__sidebar-episode-image {
    width: 48px;
    height: 48px;
    border-radius: var(--ps-radius-md);
    object-fit: cover;
}

.ps-hero__sidebar-episode-info {
    flex: 1;
    min-width: 0;
}

.ps-hero__sidebar-episode-title {
    font-size: var(--ps-text-sm);
    font-weight: 500;
    color: white;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ps-hero__sidebar-episode-duration {
    font-size: var(--ps-text-xs);
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   TRANSCRIPTION
   ========================================================================== */

.ps-transcription {
    margin-top: var(--ps-space-6);
    background: var(--ps-bg-secondary);
    border-radius: var(--ps-radius-xl);
    overflow: hidden;
}

.ps-transcription__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--ps-space-4) var(--ps-space-5);
    border-bottom: 1px solid var(--ps-border-color);
}

.ps-transcription__title {
    font-size: var(--ps-text-base);
    font-weight: 600;
    color: var(--ps-text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--ps-space-2);
}

.ps-transcription__title svg {
    width: 20px;
    height: 20px;
    color: var(--ps-primary);
}

.ps-transcription__actions {
    display: flex;
    gap: var(--ps-space-2);
}

.ps-transcription__search {
    position: relative;
}

.ps-transcription__search-input {
    padding: var(--ps-space-2) var(--ps-space-4);
    padding-left: var(--ps-space-8);
    font-size: var(--ps-text-sm);
    background: var(--ps-bg-tertiary);
    border: 1px solid var(--ps-border-color);
    border-radius: var(--ps-radius-full);
    color: var(--ps-text-primary);
    width: 200px;
    outline: none;
    transition: all var(--ps-transition-fast);
}

.ps-transcription__search-input:focus {
    border-color: var(--ps-primary);
    box-shadow: 0 0 0 3px rgba(var(--ps-primary-rgb), 0.1);
}

.ps-transcription__search-icon {
    position: absolute;
    left: var(--ps-space-3);
    top: 50%;
    transform: translateY(-50%);
    color: var(--ps-text-tertiary);
    width: 16px;
    height: 16px;
}

.ps-transcription__content {
    max-height: 400px;
    overflow-y: auto;
    padding: var(--ps-space-5);
}

.ps-transcription__segment {
    display: flex;
    gap: var(--ps-space-4);
    padding: var(--ps-space-3) var(--ps-space-4);
    border-radius: var(--ps-radius-lg);
    cursor: pointer;
    transition: all var(--ps-transition-fast);
    margin-bottom: var(--ps-space-2);
}

.ps-transcription__segment:hover {
    background: var(--ps-bg-tertiary);
}

.ps-transcription__segment--active {
    background: rgba(var(--ps-primary-rgb), 0.1);
    border-left: 3px solid var(--ps-primary);
}

.ps-transcription__segment--highlight {
    background: rgba(255, 235, 59, 0.2);
}

.ps-transcription__timestamp {
    font-size: var(--ps-text-sm);
    font-weight: 600;
    color: var(--ps-primary);
    font-variant-numeric: tabular-nums;
    min-width: 60px;
    flex-shrink: 0;
}

.ps-transcription__text {
    font-size: var(--ps-text-sm);
    color: var(--ps-text-secondary);
    line-height: 1.6;
}

.ps-transcription__text mark {
    background: rgba(var(--ps-primary-rgb), 0.3);
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}

.ps-transcription__speaker {
    font-weight: 600;
    color: var(--ps-text-primary);
    margin-right: var(--ps-space-2);
}

.ps-transcription__download-btn {
    padding: var(--ps-space-2) var(--ps-space-4);
    font-size: var(--ps-text-sm);
    font-weight: 600;
    color: var(--ps-text-secondary);
    background: var(--ps-bg-tertiary);
    border-radius: var(--ps-radius-full);
    display: flex;
    align-items: center;
    gap: var(--ps-space-2);
    transition: all var(--ps-transition-fast);
}

.ps-transcription__download-btn:hover {
    background: var(--ps-primary);
    color: white;
}

.ps-transcription__download-btn svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   DOWNLOAD BUTTON
   ========================================================================== */

.ps-download-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--ps-space-2);
    padding: var(--ps-space-2) var(--ps-space-4);
    background: var(--ps-bg-tertiary);
    color: var(--ps-text-secondary);
    font-size: var(--ps-text-sm);
    font-weight: 600;
    border-radius: var(--ps-radius-full);
    transition: all var(--ps-transition-fast);
}

.ps-download-btn:hover {
    background: var(--ps-accent);
    color: white;
    transform: translateY(-2px);
}

.ps-download-btn svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   SHARE BUTTON & MODAL
   ========================================================================== */

.ps-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--ps-bg-tertiary);
    color: var(--ps-text-secondary);
    border-radius: var(--ps-radius-full);
    transition: all var(--ps-transition-fast);
}

.ps-share-btn:hover {
    background: var(--ps-primary);
    color: white;
    transform: scale(1.1);
}

.ps-share-modal {
    position: fixed;
    inset: 0;
    z-index: var(--ps-z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--ps-space-4);
    opacity: 0;
    visibility: hidden;
    transition: all var(--ps-transition-fast);
}

.ps-share-modal.active {
    opacity: 1;
    visibility: visible;
}

.ps-share-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.ps-share-modal__content {
    position: relative;
    background: var(--ps-bg-elevated);
    border-radius: var(--ps-radius-2xl);
    padding: var(--ps-space-6);
    max-width: 400px;
    width: 100%;
    box-shadow: var(--ps-shadow-xl);
    animation: ps-scale-in var(--ps-transition-base) ease-out;
}

.ps-share-modal__close {
    position: absolute;
    top: var(--ps-space-4);
    right: var(--ps-space-4);
    width: 32px;
    height: 32px;
    border-radius: var(--ps-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ps-text-tertiary);
    transition: all var(--ps-transition-fast);
}

.ps-share-modal__close:hover {
    background: var(--ps-bg-tertiary);
    color: var(--ps-text-primary);
}

.ps-share-modal__title {
    font-size: var(--ps-text-xl);
    font-weight: 700;
    color: var(--ps-text-primary);
    margin: 0 0 var(--ps-space-5) 0;
}

.ps-share-modal__preview {
    display: flex;
    gap: var(--ps-space-4);
    padding: var(--ps-space-4);
    background: var(--ps-bg-secondary);
    border-radius: var(--ps-radius-lg);
    margin-bottom: var(--ps-space-5);
}

.ps-share-modal__preview-image {
    width: 80px;
    height: 80px;
    border-radius: var(--ps-radius-md);
    object-fit: cover;
}

.ps-share-modal__preview-info {
    flex: 1;
}

.ps-share-modal__preview-title {
    font-size: var(--ps-text-sm);
    font-weight: 600;
    color: var(--ps-text-primary);
    margin: 0 0 var(--ps-space-1) 0;
}

.ps-share-modal__preview-podcast {
    font-size: var(--ps-text-xs);
    color: var(--ps-text-tertiary);
}

.ps-share-modal__platforms {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ps-space-3);
    margin-bottom: var(--ps-space-5);
}

.ps-share-modal__platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ps-space-2);
    padding: var(--ps-space-3);
    border-radius: var(--ps-radius-lg);
    transition: all var(--ps-transition-fast);
}

.ps-share-modal__platform:hover {
    background: var(--ps-bg-tertiary);
}

.ps-share-modal__platform-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--ps-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.ps-share-modal__platform-icon--twitter { background: #1DA1F2; }
.ps-share-modal__platform-icon--facebook { background: #4267B2; }
.ps-share-modal__platform-icon--linkedin { background: #0077B5; }
.ps-share-modal__platform-icon--whatsapp { background: #25D366; }
.ps-share-modal__platform-icon--telegram { background: #0088cc; }
.ps-share-modal__platform-icon--email { background: var(--ps-text-secondary); }

.ps-share-modal__platform-name {
    font-size: var(--ps-text-xs);
    color: var(--ps-text-secondary);
}

.ps-share-modal__copy {
    display: flex;
    gap: var(--ps-space-2);
}

.ps-share-modal__copy-input {
    flex: 1;
    padding: var(--ps-space-3) var(--ps-space-4);
    font-size: var(--ps-text-sm);
    background: var(--ps-bg-secondary);
    border: 1px solid var(--ps-border-color);
    border-radius: var(--ps-radius-lg);
    color: var(--ps-text-primary);
    outline: none;
}

.ps-share-modal__copy-btn {
    padding: var(--ps-space-3) var(--ps-space-4);
    background: var(--ps-primary);
    color: white;
    font-size: var(--ps-text-sm);
    font-weight: 600;
    border-radius: var(--ps-radius-lg);
    transition: all var(--ps-transition-fast);
}

.ps-share-modal__copy-btn:hover {
    background: var(--ps-primary-dark);
}

.ps-share-modal__copy-btn--copied {
    background: var(--ps-accent);
}

/* ==========================================================================
   KEYBOARD SHORTCUTS HINT
   ========================================================================== */

.ps-keyboard-hint {
    position: fixed;
    bottom: var(--ps-space-6);
    left: var(--ps-space-6);
    background: var(--ps-bg-elevated);
    border: 1px solid var(--ps-border-color);
    border-radius: var(--ps-radius-lg);
    padding: var(--ps-space-3) var(--ps-space-4);
    box-shadow: var(--ps-shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--ps-space-3);
    font-size: var(--ps-text-xs);
    color: var(--ps-text-secondary);
    z-index: var(--ps-z-fixed);
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--ps-transition-fast);
}

.ps-keyboard-hint.visible {
    opacity: 1;
    transform: translateY(0);
}

.ps-keyboard-hint kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 var(--ps-space-2);
    background: var(--ps-bg-tertiary);
    border: 1px solid var(--ps-border-color);
    border-radius: var(--ps-radius-sm);
    font-family: var(--ps-font-mono);
    font-size: var(--ps-text-xs);
    color: var(--ps-text-primary);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .ps-episodes-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .ps-featured-player__content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .ps-featured-player__artwork {
        margin: 0 auto;
    }
    
    .ps-featured-player__controls {
        justify-content: center;
    }
    
    /* Spotify Layout */
    .ps-layout-spotify {
        grid-template-columns: 1fr;
    }
    
    .ps-spotify-sidebar {
        position: static;
        max-height: none;
    }
    
    .ps-spotify-now-playing__content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .ps-spotify-now-playing__artwork {
        margin: 0 auto;
        width: 150px;
        height: 150px;
    }
    
    /* Hero Layout */
    .ps-hero--split {
        grid-template-columns: 1fr;
    }
    
    .ps-hero__sidebar {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Carousel */
    .ps-carousel__slide {
        flex: 0 0 280px;
        max-width: 280px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    :root {
        --ps-space-8: 1.5rem;
        --ps-space-10: 2rem;
        --ps-space-12: 2.5rem;
    }
    
    .ps-player__header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .ps-player__artwork {
        width: 160px;
        height: 160px;
    }
    
    .ps-episode-list-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ps-episode-list-item__image {
        width: 100%;
        height: 180px;
    }
    
    .ps-featured-player {
        padding: var(--ps-space-6);
    }
    
    .ps-featured-player__artwork {
        width: 150px;
        height: 150px;
    }
    
    .ps-featured-player__title {
        font-size: var(--ps-text-2xl);
    }
    
    .ps-mini-player__time {
        display: none;
    }
    
    /* Hero Layout */
    .ps-hero {
        min-height: 400px;
    }
    
    .ps-hero__content {
        padding: var(--ps-space-6);
    }
    
    .ps-hero__title {
        font-size: var(--ps-text-2xl);
    }
    
    .ps-hero__description {
        font-size: var(--ps-text-base);
    }
    
    .ps-hero__meta {
        flex-wrap: wrap;
        gap: var(--ps-space-3);
    }
    
    .ps-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ps-hero__play-btn,
    .ps-hero__secondary-btn {
        justify-content: center;
    }
    
    /* Transcription */
    .ps-transcription__header {
        flex-direction: column;
        gap: var(--ps-space-3);
        align-items: stretch;
    }
    
    .ps-transcription__search-input {
        width: 100%;
    }
    
    /* Share Modal */
    .ps-share-modal__platforms {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    :root {
        --ps-text-3xl: 1.5rem;
        --ps-text-4xl: 1.75rem;
    }
    
    .ps-episodes-grid {
        grid-template-columns: 1fr;
    }
    
    .ps-player {
        padding: var(--ps-space-4);
    }
    
    .ps-player__controls {
        gap: var(--ps-space-2);
    }
    
    .ps-player__btn {
        width: 40px;
        height: 40px;
    }
    
    .ps-player__btn--main {
        width: 56px;
        height: 56px;
    }
    
    .ps-player__volume {
        display: none;
    }
    
    .ps-pagination__btn {
        min-width: 40px;
        height: 40px;
    }
    
    .ps-mini-player__info {
        max-width: 100px;
    }
    
    /* Afficher les boutons skip sur mobile avec meilleure visibilité */
    .ps-mini-player__btn[data-ps-skip] {
        display: flex !important;
        width: 40px;
        height: 40px;
        min-width: 40px;
        background: #e5e7eb;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
    }
    
    .ps-mini-player__btn[data-ps-skip] svg {
        width: 20px;
        height: 20px;
        fill: #374151 !important;
        color: #374151 !important;
    }
    
    .ps-mini-player__btn[data-ps-skip]:active {
        background: #d1d5db;
        transform: scale(0.95);
    }
    
    /* Cacher volume et time sur mobile */
    .ps-mini-player__volume,
    .ps-mini-player__time {
        display: none;
    }
    
    /* Bouton vitesse sur mobile */
    .ps-mini-player__speed {
        min-width: 40px;
        height: 36px;
        padding: 0 6px;
        font-size: 12px;
        background: #e5e7eb;
        color: #374151;
        border-radius: 18px;
    }
    
    .ps-mini-player__speed:active {
        background: #d1d5db;
    }
    
    /* Bouton lecture continue sur mobile */
    .ps-mini-player__continuous {
        width: 36px;
        height: 36px;
        min-width: 36px;
        background: #e5e7eb;
        color: #374151;
        border-radius: 18px;
    }
    
    .ps-mini-player__continuous.active {
        background: #1DB954;
        color: white;
    }
    
    .ps-mini-player__continuous:active {
        transform: scale(0.95);
    }
    
    .ps-mini-player__continuous svg {
        width: 16px;
        height: 16px;
    }
    
    .ps-mini-player__btn--main {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }
    
    .ps-mini-player__btn--main svg {
        width: 24px;
        height: 24px;
        fill: white !important;
    }
    
    .ps-mini-player__close {
        width: 40px;
        height: 40px;
        min-width: 40px;
        background: #e5e7eb;
        border-radius: 50%;
    }
    
    .ps-mini-player__close svg {
        width: 18px;
        height: 18px;
        fill: #374151 !important;
    }
    
    .ps-mini-player__controls {
        gap: 8px;
    }
    
    /* Plateformes - sur mobile, cacher seulement le nom, pas l'icône */
    .ps-platforms {
        gap: 8px;
    }
    
    .ps-platform-link .ps-platform-name {
        display: none !important;
    }
    
    .ps-platform-link {
        width: 44px;
        height: 44px;
        padding: 0 !important;
        justify-content: center;
        border-radius: 50%;
    }
    
    .ps-platform-link .ps-platform-icon {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .ps-platform-link .ps-platform-icon svg {
        width: 20px;
        height: 20px;
    }
    
    /* Carousel */
    .ps-carousel__slide {
        flex: 0 0 260px;
        max-width: 260px;
    }
    
    .ps-carousel__nav {
        display: none;
    }
    
    /* Hero Layout */
    .ps-hero {
        min-height: 350px;
    }
    
    .ps-hero__badge {
        font-size: 10px;
    }
    
    .ps-hero__title {
        font-size: var(--ps-text-xl);
    }
    
    .ps-hero__description {
        font-size: var(--ps-text-sm);
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .ps-hero__play-btn {
        padding: var(--ps-space-3) var(--ps-space-6);
        font-size: var(--ps-text-sm);
    }
    
    /* Spotify */
    .ps-spotify-now-playing {
        padding: var(--ps-space-5);
    }
    
    .ps-spotify-now-playing__artwork {
        width: 120px;
        height: 120px;
    }
    
    .ps-spotify-now-playing__title {
        font-size: var(--ps-text-xl);
    }
    
    /* Share Modal */
    .ps-share-modal__platforms {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ps-share-modal__copy {
        flex-direction: column;
    }
    
    /* Transcription */
    .ps-transcription__segment {
        flex-direction: column;
        gap: var(--ps-space-2);
    }
    
    .ps-transcription__timestamp {
        min-width: auto;
    }
    
    /* Keyboard hint hidden on mobile */
    .ps-keyboard-hint {
        display: none;
    }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

/* Focus visible styles */
.poli-podcast-container *:focus-visible {
    outline: 2px solid var(--ps-primary);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .ps-stagger-animation > * {
        opacity: 1;
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --ps-border-color: currentColor;
        --ps-shadow-sm: none;
        --ps-shadow-md: none;
        --ps-shadow-lg: none;
    }
    
    .ps-episode-card,
    .ps-player,
    .ps-glass-card {
        border-width: 2px;
    }
}

/* Screen reader only content */
.ps-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .ps-player,
    .ps-player__controls,
    .ps-search-box,
    .ps-pagination,
    .ps-episode-card__play-overlay,
    .ps-mini-player,
    .ps-theme-toggle {
        display: none !important;
    }
    
    .ps-episode-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ==========================================================================
   WIDGETS SIDEBAR
   ========================================================================== */

/* Widget: Dernier épisode */
.ps-widget-latest {
    overflow: hidden;
}

.ps-widget-latest__image {
    position: relative;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
}

.ps-widget-latest__image img {
    width: 100%;
    height: auto;
    display: block;
}

.ps-widget-latest__play {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    background: var(--ps-primary, #1DB954);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.ps-widget-latest__play:hover {
    transform: scale(1.1);
    background: #17a34a;
}

.ps-widget-latest__content {
    padding: 0;
}

.ps-widget-latest__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ps-text-primary, #1f2937);
    margin: 0 0 6px;
    line-height: 1.3;
}

.ps-widget-latest__meta {
    font-size: 12px;
    color: var(--ps-text-secondary, #6b7280);
    margin-bottom: 8px;
}

.ps-widget-latest__desc {
    font-size: 13px;
    color: var(--ps-text-secondary, #6b7280);
    margin: 0;
    line-height: 1.5;
}

.ps-widget-latest__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 14px;
    background: var(--ps-primary, #1DB954);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ps-widget-latest__btn:hover {
    background: #17a34a;
}

/* Widget: Épisodes populaires */
.ps-widget-popular {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ps-widget-popular__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--ps-border-color, #e5e7eb);
}

.ps-widget-popular__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ps-widget-popular__item:first-child {
    padding-top: 0;
}

.ps-widget-popular__play {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--ps-primary, #1DB954);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.ps-widget-popular__play:hover {
    transform: scale(1.1);
    background: #17a34a;
}

.ps-widget-popular__info {
    flex: 1;
    min-width: 0;
}

.ps-widget-popular__title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--ps-text-primary, #1f2937);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ps-widget-popular__plays {
    display: block;
    font-size: 11px;
    color: var(--ps-text-secondary, #6b7280);
    margin-top: 2px;
}


/* ==========================================================================
   SUBSCRIBE FORM (Brevo)
   ========================================================================== */

.ps-subscribe-form {
    padding: 24px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    color: #fff;
}

.ps-subscribe-form--card {
    background: #fff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ps-subscribe-form--minimal {
    padding: 0;
    background: none;
    border-radius: 0;
}

.ps-subscribe-form__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
}

.ps-subscribe-form__title svg {
    color: var(--ps-primary, #1DB954);
}

.ps-subscribe-form--card .ps-subscribe-form__title {
    color: #1f2937;
}

.ps-subscribe-form__desc {
    font-size: 14px;
    opacity: 0.9;
    margin: 0 0 20px;
    line-height: 1.5;
}

.ps-subscribe-form--card .ps-subscribe-form__desc {
    color: #6b7280;
}

.ps-subscribe-form__fields {
    display: flex;
    gap: 10px;
}

.ps-subscribe-form--minimal .ps-subscribe-form__fields {
    max-width: 450px;
}

.ps-subscribe-form__input {
    flex: 1;
    padding: 14px 18px;
    font-size: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
    transition: all 0.2s ease;
}

.ps-subscribe-form__input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.ps-subscribe-form__input:focus {
    border-color: var(--ps-primary, #1DB954);
    background: rgba(255, 255, 255, 0.15);
}

.ps-subscribe-form--card .ps-subscribe-form__input {
    background: #fff;
    border-color: #e5e7eb;
    color: #1f2937;
}

.ps-subscribe-form--card .ps-subscribe-form__input::placeholder {
    color: #9ca3af;
}

.ps-subscribe-form--card .ps-subscribe-form__input:focus {
    border-color: var(--ps-primary, #1DB954);
}

.ps-subscribe-form__btn {
    padding: 14px 24px;
    background: var(--ps-primary, #1DB954);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ps-subscribe-form__btn:hover {
    background: #17a34a;
    transform: translateY(-1px);
}

.ps-subscribe-form__btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.ps-subscribe-form__message {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.ps-subscribe-form__message.success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.ps-subscribe-form__message.error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.ps-subscribe-form--card .ps-subscribe-form__message.success {
    background: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
}

.ps-subscribe-form--card .ps-subscribe-form__message.error {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.ps-subscribe-form__privacy {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 12px;
    opacity: 0.7;
}

.ps-subscribe-form--card .ps-subscribe-form__privacy {
    color: #6b7280;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .ps-subscribe-form__fields {
        flex-direction: column;
    }
    
    .ps-subscribe-form__btn {
        justify-content: center;
    }
}


/* ==========================================================================
   ACCESSIBILITÉ (A11Y)
   ========================================================================== */

/* Focus visible pour navigation clavier */
.ps-play-overlay:focus-visible,
.ps-episode-card:focus-visible,
.ps-btn:focus-visible,
.ps-chapters-btn:focus-visible,
.ps-transcript-btn:focus-visible,
.ps-qr-btn:focus-visible,
.ps-page-btn:focus-visible,
.ps-mini-player__btn:focus-visible,
.ps-filter-select:focus-visible,
.ps-search-input:focus-visible,
.ps-chapter-item:focus-visible,
.ps-widget-latest__play:focus-visible,
.ps-widget-popular__play:focus-visible,
.ps-subscribe-form__btn:focus-visible,
.ps-subscribe-form__input:focus-visible {
    outline: 3px solid var(--ps-primary, #1DB954);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(29, 185, 84, 0.2);
}

/* Skip link pour navigation */
.ps-skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ps-primary, #1DB954);
    color: #fff;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    text-decoration: none;
    z-index: 10001;
    transition: top 0.3s ease;
}

.ps-skip-link:focus {
    top: 0;
    outline: none;
}

/* Amélioration des contrastes */
.ps-episode-card__title {
    color: var(--ps-text-primary, #1f2937);
}

.ps-episode-card__meta {
    color: var(--ps-text-secondary, #4b5563);
}

.ps-episode-card__desc {
    color: var(--ps-text-secondary, #4b5563);
}

/* Mode focus visible uniquement au clavier (pas à la souris) */
.ps-play-overlay:focus:not(:focus-visible),
.ps-btn:focus:not(:focus-visible),
.ps-chapters-btn:focus:not(:focus-visible),
.ps-transcript-btn:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

/* Animation réduite pour préférence utilisateur */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .ps-episode-card,
    .ps-play-overlay,
    .ps-btn,
    .ps-mini-player {
        transition: none !important;
    }
}

/* États de lecture pour lecteurs d écran */
.ps-play-overlay[aria-pressed="true"] .ps-sr-only::after {
    content: " - En cours de lecture";
}

/* Indicateur de focus pour les cartes */
.ps-episode-card:focus-within {
    box-shadow: 0 0 0 2px var(--ps-primary, #1DB954);
}

/* Meilleur contraste pour les badges */
.ps-episode-card__badge {
    background: var(--ps-primary, #1DB954);
    color: #fff;
    font-weight: 600;
}

/* Taille de cible tactile minimum (44x44px) */
.ps-play-overlay,
.ps-mini-player__btn,
.ps-chapters-btn,
.ps-transcript-btn,
.ps-qr-btn,
.ps-chapter-item__play {
    min-width: 44px;
    min-height: 44px;
}

/* Zone de clic élargie pour les contrôles */
.ps-episode-actions button,
.ps-episode-actions a {
    position: relative;
}

.ps-episode-actions button::before,
.ps-episode-actions a::before {
    content: "";
    position: absolute;
    top: -4px;
    right: -4px;
    bottom: -4px;
    left: -4px;
}

/* Texte lisible */
.ps-episode-card__desc,
.ps-episode-card__meta {
    line-height: 1.6;
}

/* Espacement suffisant entre éléments interactifs */
.ps-episode-actions {
    gap: 8px;
}

/* Live region pour les annonces */
.ps-live-region {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

