/* style-pro.css - Ergonomie TuneIn complète */

.pmp-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding-bottom: 110px;
}

.pmp-cat-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 35px 0 15px 0;
    color: #111;
}

/* Slider horizontal d'émissions */
.pmp-slider {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 15px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.pmp-show-card {
    flex: 0 0 180px;
    width: 180px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.pmp-show-card:hover {
    transform: translateY(-4px);
}

.pmp-show-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.pmp-no-img {
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #888;
}

.pmp-show-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 8px;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* En-tête de la vue Détail Émission */
.pmp-back-btn {
    background: #f1f1f1;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.pmp-back-btn:hover { background: #e5e5e5; }

.pmp-show-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    background: #fafafa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.pmp-header-cover {
    width: 180px;
    height: 180px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pmp-header-text { flex: 1; }
.pmp-show-header-title { margin-top: 0; font-size: 1.8rem; color: #111; }
.pmp-show-header-desc { color: #555; font-size: 0.95rem; line-height: 1.6; }

/* Ligne d'un Épisode dans la liste */
.pmp-episode-row {
    padding: 16px 15px;
    border-bottom: 1px solid #eee;
    transition: background 0.15s;
}
.pmp-episode-row:hover { background: #fdfdfd; }

.pmp-episode-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pmp-ep-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #111;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s, background 0.15s;
}
.pmp-ep-play-btn:hover {
    background: #333;
    transform: scale(1.05);
}

.pmp-ep-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.pmp-episode-meta { flex: 1; min-width: 0; }
.pmp-episode-title { font-weight: 600; font-size: 1.05rem; color: #222; }

.pmp-btn-toggle-desc {
    background: none;
    border: none;
    color: #0066cc;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    margin-top: 6px;
    font-weight: 600;
}
.pmp-btn-toggle-desc:hover { text-decoration: underline; }

/* Accordéon Descriptif */
.pmp-episode-desc {
    margin-top: 15px;
    padding: 15px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.6;
    border-left: 3px solid #0066cc;
}
.pmp-episode-desc img { max-width: 100%; height: auto; border-radius: 6px; margin: 10px 0; }
.pmp-episode-desc a { color: #0066cc; text-decoration: underline; }

/* ==========================================================
   ALIGNEMENT STRICT DES RÉSEAUX SOCIAUX SUR UNE LIGNE
   ========================================================== */
.plp-social-links,
.pmp-episode-desc .plp-social-links {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    margin-top: 20px !important;
    margin-bottom: 10px !important;
    flex-wrap: wrap !important;
}

.plp-social-links a,
.pmp-episode-desc .plp-social-links a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: transform 0.2s ease !important;
}

.plp-social-links a:hover {
    transform: scale(1.15) !important;
}

.plp-social-links img,
.pmp-episode-desc .plp-social-links img {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 4px !important;
}

/* Sticky Player Global */
.pmp-sticky-player {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 72px;
    background: #181818;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 99999;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
}

.pmp-player-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.pmp-player-img {
    width: 46px;
    height: 46px;
    border-radius: 4px;
    object-fit: cover;
    background: #333;
}

.pmp-player-meta { flex: 0 0 220px; overflow: hidden; }
.pmp-player-title {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.pmp-player-subtitle { display: block; font-size: 0.75rem; color: #aaa; margin-top: 2px; }

.pmp-player-controls {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.pmp-ctrl-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s;
}
.pmp-ctrl-btn:hover { transform: scale(1.05); }

.pmp-seek-container { flex: 1; display: flex; align-items: center; gap: 10px; }
.pmp-seek-container input[type="range"] { flex: 1; cursor: pointer; }
#pmp-player-time { font-size: 0.8rem; color: #ccc; white-space: nowrap; }

/* Adaptation mobile */
@media (max-width: 768px) {
    .pmp-show-header { flex-direction: column; align-items: center; text-align: center; }
    .pmp-player-meta { display: none; }
    .pmp-show-card { flex: 0 0 140px; width: 140px; }
    .pmp-show-cover { height: 140px; }
}
