.mlbd-gate-host {
    position: relative !important;
    isolation: isolate;
}

.mlbd-player-gate-layer {
    position: absolute;
    z-index: 9999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 22px;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 48, 83, .10), transparent 44%),
        linear-gradient(145deg, rgba(7, 9, 14, .48), rgba(25, 6, 12, .56));
    color: #fff;
    text-align: center;
    backdrop-filter: blur(7px) saturate(.82);
    -webkit-backdrop-filter: blur(7px) saturate(.82);
    transition: opacity .55s, transform .55s;
}

.mlbd-player-gate-layer.is-unlocking {
    opacity: 0;
    transform: scale(1.025);
    pointer-events: none;
}

.mlbd-gate-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: #ff174d;
    filter: blur(125px);
    opacity: .08;
    animation: mlbdGateGlow 2.7s ease-in-out infinite;
}

.mlbd-gate-box {
    position: relative;
    z-index: 2;
    width: min(520px, 100%);
    padding: 28px;
    border: 1px solid rgba(255, 94, 121, .36);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(21, 23, 32, .76), rgba(10, 12, 19, .82));
    box-shadow: 0 24px 70px rgba(0, 0, 0, .38), 0 0 32px rgba(255, 24, 71, .07);
    backdrop-filter: blur(18px) saturate(1.12);
    -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.mlbd-gate-lock {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 17px;
    background: linear-gradient(135deg, #ff164c, #a5002c);
    box-shadow: 0 12px 32px rgba(255, 0, 59, .22), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.mlbd-gate-lock svg {
    display: block;
    width: 29px;
    height: 29px;
    overflow: visible;
    fill: none;
    stroke: #fff;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .22));
}

.mlbd-gate-lock svg circle {
    fill: #fff;
    stroke: none;
}

.mlbd-gate-eyebrow {
    margin-bottom: 6px;
    color: #ff496b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2.2px;
}

.mlbd-gate-box h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(21px, 3vw, 30px);
    line-height: 1.18;
}

.mlbd-gate-message {
    max-width: 430px;
    margin: 10px auto 17px;
    color: #d0d4de;
    font-size: 14px;
    line-height: 1.6;
}

.mlbd-gate-timer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 7px;
    margin: 0 0 4px;
}

.mlbd-gate-timer strong {
    color: #fff;
    font-size: 38px;
    line-height: 1;
    text-shadow: 0 0 24px rgba(255, 42, 82, .45);
}

.mlbd-gate-timer span {
    padding-bottom: 3px;
    color: #ff496b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.3px;
}

.mlbd-gate-state {
    min-height: 18px;
    margin: 8px 0 14px;
    color: #e2e4ea;
    font-size: 12px;
}

.mlbd-gate-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-width: 220px;
    padding: 13px 22px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff174d, #d40038);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(255, 0, 61, .25);
    transition: transform .2s, box-shadow .2s;
}

.mlbd-gate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(255, 0, 61, .36);
}

.mlbd-gate-unlock-icon {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
}

.mlbd-gate-unlock-icon svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mlbd-gate-unlock-icon svg circle {
    fill: currentColor;
    stroke: none;
}

.mlbd-gate-button.is-waiting {
    background: linear-gradient(135deg, rgba(74, 34, 47, .92), rgba(42, 30, 37, .94));
}

@keyframes mlbdGateGlow {
    50% {
        opacity: .13;
        transform: scale(1.12);
    }
}

@media (max-width: 640px) {
    .mlbd-player-gate-layer {
        padding: 10px;
        backdrop-filter: blur(5px) saturate(.82);
        -webkit-backdrop-filter: blur(5px) saturate(.82);
    }

    .mlbd-gate-box {
        padding: 18px 14px;
        border-radius: 16px;
    }

    .mlbd-gate-lock {
        width: 46px;
        height: 46px;
        margin-bottom: 10px;
        border-radius: 13px;
    }

    .mlbd-gate-lock svg {
        width: 24px;
        height: 24px;
    }

    .mlbd-gate-message {
        margin: 7px auto 10px;
        font-size: 12px;
        line-height: 1.45;
    }

    .mlbd-gate-timer strong {
        font-size: 30px;
    }

    .mlbd-gate-state {
        margin: 5px 0 9px;
        font-size: 11px;
    }

    .mlbd-gate-button {
        min-width: 190px;
        padding: 11px 16px;
    }

    .mlbd-gate-eyebrow {
        font-size: 9px;
    }

    .mlbd-gate-box h3 {
        font-size: 19px;
    }
}
