/* Encart « En direct maintenant » de /app/introduction */
#pylLiveSection[hidden] { display: none; }

.pyl-live-card {
    display: grid;
    grid-template-columns: 11.5rem minmax(0, 1fr);
    height: 9rem;
    overflow: hidden;
    padding: 0;
    text-decoration: none;
    color: inherit;
    border-color: rgba(145, 70, 255, .45);
}

.pyl-live-card:hover,
.pyl-live-card:focus-visible {
    border-color: rgba(145, 70, 255, .9);
    transform: translateY(-2px);
}

.pyl-live-media {
    height: 100%;
    background: linear-gradient(135deg, rgba(145, 70, 255, .35), rgba(0, 0, 0, .55));
}

.pyl-live-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pyl-live-body {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
    padding: .6rem .8rem;
}

.pyl-live-head {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
}

.pyl-live-logo {
    flex: 0 0 auto;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    object-fit: cover;
}

.pyl-live-name {
    margin: 0;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pyl-live-game {
    margin: 0;
    min-height: 1.2em;
    opacity: .8;
    font-size: .85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pyl-live-title {
    margin: 0;
    flex: 1 1 auto;
    min-height: 0;
    font-size: .85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pyl-live-viewers {
    flex: 0 0 auto;
    margin: 0;
    font-size: .85rem;
    font-weight: 600;
    color: #ff4d4d;
}

.pyl-live-viewers::before {
    content: "";
    display: inline-block;
    width: .55rem;
    height: .55rem;
    margin-right: .4rem;
    border-radius: 50%;
    background: #ff4d4d;
}

@media (prefers-reduced-motion: reduce) {
    .pyl-live-card:hover,
    .pyl-live-card:focus-visible { transform: none; }
}

/* Une seule ligne qui défile horizontalement (boutons, glisser, molette ou flèches du clavier) */
.pyl-live-carousel { position: relative; }

.pyl-live-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: .25rem .1rem .75rem;
    -ms-overflow-style: none;
}

.pyl-live-track .pyl-live-card {
    flex: 0 0 min(26rem, 88%);
}

.pyl-live-nav {
    position: absolute;
    top: 3.6rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    background: rgba(15, 15, 20, .85);
    color: #fff;
    cursor: pointer;
}

/* Plus spécifique que la règle générale du thème (html[data-section] *) qui impose une barre fine */
html[data-section] .pyl-live-track { scrollbar-width: none; }
.pyl-live-track::-webkit-scrollbar { display: none; }

.pyl-live-nav[hidden] { display: none; }
.pyl-live-nav--prev { left: -.6rem; }
.pyl-live-nav--next { right: -.6rem; }
.pyl-live-nav:hover,
.pyl-live-nav:focus-visible { border-color: rgba(145, 70, 255, .9); }
