.mrt-video-unavailable {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 8px;
    aspect-ratio: 16 / 9;
    padding: 20px;
    box-sizing: border-box;
    background: #075c49;
    color: #fff;
    text-align: center;
}

.mrt-video-unavailable span {
    font-size: 40px;
}

.mrt-video-hub > header {
    margin-bottom: 24px;
}

.mrt-video-submit-button {
    border: 0;
    font: inherit;
    cursor: pointer;
}

.mrt-video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.mrt-video-grid article {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    height: 100%;
}

.mrt-video-frame,
.mrt-video-unavailable {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.mrt-video-card-body {
    display: grid;
    grid-template-rows: auto auto 1fr;
    align-content: start;
    min-height: 150px;
}

.mrt-video-card-body h2,
.mrt-video-card-body p {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.mrt-video-card-body h2 {
    min-height: 2.5em;
    -webkit-line-clamp: 2;
}

.mrt-video-card-body p {
    margin: 3px 0 0;
    -webkit-line-clamp: 3;
}

.mrt-video-grid > .mrt-suite-empty {
    grid-column: 1 / -1;
}

.mrt-video-dialog {
    width: min(92vw, 600px);
    max-height: min(88vh, 760px);
    padding: 0;
    border: 0;
    border-radius: 24px;
    background: transparent;
    color: #17342c;
    box-shadow: 0 28px 80px rgba(5, 46, 37, .28);
}

.mrt-video-dialog::backdrop {
    background: rgba(8, 31, 25, .65);
    backdrop-filter: blur(5px);
}

.mrt-video-dialog-card {
    padding: 26px;
    border: 1px solid #c9ded6;
    border-radius: 24px;
    background: #fff;
}

.mrt-video-dialog-card > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.mrt-video-dialog-card header span {
    color: #08745c;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mrt-video-dialog-card h2 {
    margin: 4px 0 0;
    font-size: 32px;
}

.mrt-video-dialog-card > header button {
    display: grid;
    width: 42px;
    height: 42px;
    flex: none;
    place-items: center;
    padding: 0;
    border: 1px solid #c9ded6;
    border-radius: 13px;
    background: #eef6f3;
    color: #075c49;
    font-size: 25px;
    cursor: pointer;
}

.mrt-video-dialog-card > p {
    margin: 15px 0 20px;
    color: #536d65;
    line-height: 1.55;
}

.mrt-video-dialog-card form,
.mrt-video-dialog-card label {
    display: grid;
    gap: 7px;
}

.mrt-video-dialog-card form {
    gap: 14px;
}

.mrt-video-dialog-card label span {
    font-size: 12px;
    font-weight: 800;
}

.mrt-video-dialog-card input,
.mrt-video-dialog-card textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #bfd6ce;
    border-radius: 12px;
    background: #fbfdfc;
    color: #17342c;
    font: inherit;
}

.mrt-video-dialog-card input:focus,
.mrt-video-dialog-card textarea:focus {
    border-color: #08745c;
    outline: 3px solid rgba(8, 116, 92, .12);
}

.mrt-video-dialog-card form > small {
    color: #647970;
    line-height: 1.45;
}

body:has(.mrt-video-dialog[open]) {
    overflow: hidden;
}

@media (max-width: 900px) {
    .mrt-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .mrt-video-grid {
        grid-template-columns: 1fr;
    }

    .mrt-video-card-body {
        min-height: 0;
    }

    .mrt-video-dialog-card {
        padding: 20px;
    }

    .mrt-video-dialog-card h2 {
        font-size: 27px;
    }
}
