.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;
    }
}
