.okm-smart-player {
    width: 100%;
    margin: 24px 0;
    direction: rtl;
    position: relative;
    z-index: 1;
}

.okm-smart-player__frame-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 220px;
    background: #070707;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
}

.okm-smart-player__native-shell,
.okm-smart-player__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.okm-smart-player__native-shell {
    display: grid;
    place-items: center;
    background: #000;
}

.okm-smart-player__video {
    display: block;
    border: 0;
    background: #000;
    object-fit: contain;
}

.okm-smart-player__loading,
.okm-smart-player__fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 10px;
    padding: 24px;
    color: #fff;
    background: radial-gradient(circle at 50% 35%, #1b4162, #070b12 72%);
    text-align: center;
    z-index: 1;
}

.okm-smart-player__loading {
    font-size: 15px;
}

.okm-smart-player__fallback strong,
.okm-smart-player__fallback span {
    display: block;
}

.okm-smart-player__fallback span {
    opacity: .86;
    line-height: 1.8;
}

.okm-smart-player__fallback-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.okm-smart-player__fallback-actions a {
    padding: 8px 15px;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}

.okm-smart-player__fallback-actions .okm-smart-player__buy {
    background: #f97316;
}

.okm-smart-player__fallback-actions .okm-smart-player__open {
    background: #4f46e5;
}

.okm-smart-player__loading[hidden],
.okm-smart-player__fallback[hidden] {
    display: none;
}

.okm-smart-player__bridge-frame {
    position: absolute;
    width: 1px;
    height: 1px;
    border: 0;
    opacity: 0;
    pointer-events: none;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
}

.okm-smart-player__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding: 10px 14px;
    color: #fff;
    background: linear-gradient(90deg, #26104d, #4d1d63);
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.8;
}

.okm-smart-player__message {
    flex: 1;
}

.okm-smart-player__buy {
    display: inline-block;
    flex: 0 0 auto;
    padding: 6px 13px;
    color: #fff !important;
    background: #f97316;
    border-radius: 7px;
    text-decoration: none !important;
    font-weight: 700;
    white-space: nowrap;
}

.okm-smart-player__close {
    flex: 0 0 auto;
    padding: 0 4px;
    color: #fff;
    background: transparent;
    border: 0;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.okm-smart-player__lock {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(4, 4, 10, .82);
    z-index: 3;
}

.okm-smart-player__lock[hidden],
.okm-smart-player__bar[hidden] {
    display: none;
}

.okm-smart-player__lock-card {
    max-width: 420px;
    padding: 26px;
    color: #fff;
    background: rgba(40, 20, 70, .96);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

.okm-smart-player__lock-card strong,
.okm-smart-player__lock-card span {
    display: block;
    margin-bottom: 12px;
}

.okm-smart-player__lock-card span {
    opacity: .88;
    line-height: 1.9;
}

.okm-sp-admin-warning {
    padding: 12px;
    color: #8a1c1c;
    background: #fff4f4;
    border-right: 4px solid #c53030;
}

@media (max-width: 600px) {
    .okm-smart-player__frame-wrap {
        min-height: 190px;
    }

    .okm-smart-player__bar {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .okm-smart-player__message {
        flex-basis: 100%;
    }
}
