.ra-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ra-modal[hidden] {
    display: none;
}

.ra-modal__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.ra-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 1100px;
    background-color: var(--ra-color-bg-soft);
    border-radius: var(--ra-radius-lg);
    overflow: hidden;
    border: 1px solid var(--ra-color-border-strong);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.ra-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--ra-color-border);
    gap: 16px;
}

.ra-modal__title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.ra-modal__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    transition: background-color 0.18s ease;
}

.ra-modal__close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.ra-modal__close svg {
    width: 22px;
    height: 22px;
}

.ra-modal__body {
    flex: 1;
    background-color: #000000;
    aspect-ratio: 16 / 9;
    min-height: 360px;
}

.ra-modal__body iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
