.kinoo-reader-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    box-sizing: border-box;
    overflow-y: auto;
    padding: 32px 18px;
    background: #000;
    color: #fff;
    font-family: inherit;
}

.kinoo-reader-gate[hidden] {
    display: none !important;
}

.reader-gate-card {
    width: min(100%, 450px);
    box-sizing: border-box;
    padding: 36px;
    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 24px;
    background: #171719;
    text-align: center;
    box-shadow: 0 24px 90px rgba(0, 0, 0, .45);
}

.reader-gate-gift {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 164, 52, .2), rgba(255, 164, 52, 0) 72%);
    color: #ffb44a;
}

.reader-gate-gift svg {
    width: 42px;
    height: 42px;
    filter: drop-shadow(0 0 15px rgba(255, 164, 52, .5));
}

.reader-gate-card h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.55rem, 6vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.2;
}

.reader-gate-description {
    max-width: 340px;
    margin: 12px auto 30px;
    color: #aaaab2;
    font-size: .95rem;
    line-height: 1.55;
}

.reader-gate-progress-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #b5b5bc;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .09em;
}

#readerGateCount {
    color: #f5f5f7;
    font-size: .8rem;
    letter-spacing: .02em;
}

.reader-gate-progress {
    height: 5px;
    overflow: hidden;
    border-radius: 99px;
    background: #34343a;
}

.reader-gate-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f29a35, #ffc15d);
    transition: width .25s ease;
}

.reader-gate-action {
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
    padding: 0 20px;
    border: 0;
    border-radius: 13px;
    background: #fff;
    color: #111;
    cursor: pointer;
    font: inherit;
    font-size: .83rem;
    font-weight: 850;
    letter-spacing: .045em;
    transition: background .16s ease, transform .16s ease;
}

.reader-gate-action:hover {
    transform: translateY(-1px);
    background: #f1f1f1;
}

.reader-gate-action:focus-visible {
    outline: 3px solid #ffae45;
    outline-offset: 4px;
}

.reader-gate-action svg {
    width: 19px;
    height: 19px;
}

.reader-gate-error {
    margin: 12px 0 0;
    color: #ff8c79;
    font-size: .84rem;
    line-height: 1.45;
}

.reader-gate-error[hidden] {
    display: none;
}

.reader-gate-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 22px;
    padding: 14px;
    border: 1px solid rgba(239, 153, 60, .62);
    border-radius: 12px;
    background: rgba(0, 0, 0, .28);
    color: #e3d2bf;
    text-align: left;
}

.reader-gate-warning > span {
    flex: 0 0 auto;
}

.reader-gate-warning p {
    margin: 0;
    font-size: .82rem;
    line-height: 1.5;
}

.reader-gate-warning strong {
    color: #ffb45a;
}

.reader-gate-footer {
    max-width: 400px;
    margin: 0;
    color: #77777f;
    font-size: .76rem;
    line-height: 1.5;
    text-align: center;
}

#playerOverlay.gate-active .player-plein-ecran {
    display: none;
}

#playerOverlay.gate-active .close-btn {
    z-index: 10001;
    color: #aaaab2;
}

@media (max-width: 520px) {
    .kinoo-reader-gate {
        gap: 16px;
        padding: 54px 16px 24px;
    }

    .reader-gate-card {
        padding: 28px 22px;
    }

    .reader-gate-gift {
        width: 66px;
        height: 66px;
        margin-bottom: 18px;
    }

    .reader-gate-gift svg {
        width: 38px;
        height: 38px;
    }

    .reader-gate-description {
        margin-bottom: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reader-gate-progress span,
    .reader-gate-action {
        transition: none;
    }
}

/* ===== Refonte : thème cyan Kinoo ===== */
.kinoo-reader-gate {
    background: radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, .14), transparent 55%), #05080b;
}
.reader-gate-card {
    border: 1px solid rgba(34, 211, 238, .22);
    background: linear-gradient(180deg, rgba(14, 24, 30, .92), rgba(9, 13, 17, .96));
    box-shadow: 0 30px 100px rgba(0, 0, 0, .6), 0 0 60px rgba(34, 211, 238, .08);
}
.reader-gate-gift {
    background: radial-gradient(circle, rgba(34, 211, 238, .22), rgba(34, 211, 238, 0) 72%);
    color: #22d3ee;
}
.reader-gate-gift svg { filter: drop-shadow(0 0 16px rgba(34, 211, 238, .55)); }
.reader-gate-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 12px;
    border-radius: 99px;
    background: rgba(34, 211, 238, .12);
    border: 1px solid rgba(34, 211, 238, .35);
    color: #67e8f9;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.reader-gate-progress { height: 7px; background: rgba(255, 255, 255, .08); }
.reader-gate-progress span {
    background: linear-gradient(90deg, #06b6d4, #67e8f9);
    box-shadow: 0 0 14px rgba(34, 211, 238, .6);
}
.reader-gate-steps {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}
.reader-gate-steps li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .18);
    transition: all .25s ease;
}
.reader-gate-steps li.fait {
    border-color: #22d3ee;
    background: #22d3ee;
    box-shadow: 0 0 12px rgba(34, 211, 238, .8);
}
.reader-gate-action {
    background: linear-gradient(135deg, #22d3ee, #0891b2);
    color: #031317;
    box-shadow: 0 10px 30px rgba(34, 211, 238, .28);
}
.reader-gate-action:hover { background: linear-gradient(135deg, #67e8f9, #06b6d4); }
.reader-gate-action:focus-visible { outline-color: #67e8f9; }
.reader-gate-action.pret {
    background: linear-gradient(135deg, #4ade80, #16a34a);
    box-shadow: 0 10px 30px rgba(74, 222, 128, .3);
    animation: reader-gate-pulse 1.6s ease-in-out infinite;
}
.reader-gate-warning {
    border-color: rgba(34, 211, 238, .3);
    background: rgba(34, 211, 238, .05);
}
.reader-gate-warning strong { color: #67e8f9; }
.reader-gate-premium {
    margin: 16px 0 0;
    color: #f5c542;
    font-size: .8rem;
}
@keyframes reader-gate-pulse {
    50% { transform: scale(1.025); }
}
@media (prefers-reduced-motion: reduce) {
    .reader-gate-action.pret { animation: none; }
}
