/* ============================================================================
   RADIO COUVIN • COLONNE 1 (CKOI / Shortcodes dynamiques)
   Version : 3.4 — FIX Conflits
   Auteur : Christophe Delire
============================================================================ */

/* ------------------------------
   Layout Desktop final
------------------------------ */
#radio-couvin-container .rcl-col1 {
    flex: 0 0 30%;
    max-width: 30%;
    min-width: 260px;

    display: flex;
    flex-direction: column;
    height: 100%;
    background: #000;

    border-radius: 20px;
    padding: 10px;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

/* Header visuel 16:9 */
.rcl-col1-header {
    width: 100%;
    aspect-ratio: 16/9;
    background: #111;
    background-size: cover !important;
    background-position: center !important;
    flex-shrink: 0;
    border-bottom: 1px solid #222;
}

/* Contenu shortcode / CKOI */
#rcl-col1-dynamic {
    flex: 1 1 auto;
    overflow: hidden;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Empêcher l'étirement par les shortcodes */
#rcl-col1-dynamic *,
.rcl-col1-ckoi {
    max-width: 100%;
    box-sizing: border-box;
}

/* ------------------------------
   CKOI (items)
------------------------------ */
.rcl-col1-ckoi-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    margin-bottom: 6px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 6px;
    backdrop-filter: blur(4px);
    transition: background .2s;
}

.rcl-col1-ckoi-item:hover {
    background: rgba(255,255,255,0.08);
}

/* Cover */
.rcl-col1-ckoi-cover {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.rcl-col1-ckoi-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Métadonnées */
.rcl-col1-ckoi-meta {
    flex: 1;
    overflow: hidden;
    color: #fff;
}

.rcl-col1-ckoi-title {
    font-size: .95rem;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rcl-col1-ckoi-artist {
    font-size: .75rem;
    opacity: .8;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Action */
.rcl-col1-ckoi-action {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ff0099;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: .75rem;
    cursor: pointer;
    transition: transform .15s;
    flex-shrink: 0;
}

.rcl-col1-ckoi-action:hover {
    transform: scale(1.1);
}

/* ------------------------------
   Adaptation Mobile
------------------------------ */
@media (max-width: 980px) {
    #radio-couvin-container .rcl-col1 {
        flex: 1 1 auto;
        max-width: 100%;
        min-width: 100%;
        border-radius: 0;
    }
}
/* ============================================================
   PATCH UX — Flèches fixées au bas de l'écran
   Christophe — 26/11/2025
============================================================ */

/* On force les flèches hors du flux colonne */
#rcl-prev,
#rcl-next {
    position: fixed !important;        /* 🔥 change tout : fixé écran */
    bottom: 12px !important;           /* toujours visibles */
    z-index: 999999 !important;
    opacity: 0.95 !important;

    backdrop-filter: blur(6px);
    background: rgba(0,0,0,0.40);
    border-radius: 10px;
    padding: 6px 12px;

    transform: none !important;
}

/* Placement horizontal */
#rcl-prev { left: 20px !important; }
#rcl-next { right: 20px !important; }

/* PLAYER — Boutons play/stop toujours visibles */
.rcl-player-compact .rcl-controls {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;

    transform: translateX(-50%) !important;

    z-index: 9999999 !important;

    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(10px);

    padding: 8px 14px;
    border-radius: 12px;

    display: flex;
    gap: 12px;
}

/* Empêche les collisions avec d'autres éléments */
#rcl-play,
#rcl-stop {
    font-size: 22px !important;
    padding: 6px 12px !important;
}