.elt-dialog {
    width: min(1000px, calc(100vw - 32px));
    max-width: none;
    height: min(640px, calc(100vh - 32px));
    max-height: none;
    margin: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
}

.elt-dialog::backdrop {
    background: rgba(25, 31, 40, .42);
}

.elt-dialog__panel,
.elt-dialog__frame {
    width: 100%;
    height: 100%;
}

.elt-dialog__frame {
    display: block;
    border: 0;
    background: transparent;
}

.elt-dialog-open {
    overflow: hidden;
}

.trial-lecture-frame {
    min-width: 0;
    min-height: 100%;
    margin: 0;
    overflow: hidden;
    color: #212529;
    background: transparent;
    font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
}

.trial-lecture-frame *,
.trial-lecture-frame *::before,
.trial-lecture-frame *::after {
    box-sizing: border-box;
}

.trial-lecture-frame .elt-frame {
    position: relative;
    width: 100%;
    height: 100vh;
    padding: 24px 26px;
    overflow: hidden;
    border: 4px solid #212529;
    background: #fff;
}

.trial-lecture-frame .elt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 45px;
    margin: 0;
    padding: 0;
    border: 0;
}

.trial-lecture-frame .elt-title {
    display: flex;
    align-items: center;
    gap: 9px;
}

.trial-lecture-frame .elt-title h1 {
    margin: 0;
    color: #212529;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.04em;
}

.trial-lecture-frame .elt-title > span {
    padding: 4px 7px;
    border-radius: 3px;
    color: #8b5b00;
    background: #ffefc4;
    font-size: 11px;
    font-weight: 700;
}

.trial-lecture-frame .elt-close {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    color: #888;
    background: transparent;
    font-size: 34px;
    font-weight: 200;
    line-height: 30px;
    cursor: pointer;
}

.trial-lecture-frame .elt-video {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 10px;
    height: 380px;
    margin: 0 0 9px;
}

.trial-lecture-frame .elt-viewer,
.trial-lecture-frame .elt-player {
    width: 100%;
    height: 100%;
}

.trial-lecture-frame .elt-player {
    position: relative;
    overflow: hidden;
    background: #000;
}

.trial-lecture-frame .elt-player iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.trial-lecture-frame .elt-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
    background: #000;
    font-size: 14px;
}

.trial-lecture-frame .elt-loading[hidden] {
    display: none;
}

.trial-lecture-frame .elt-list {
    height: 100%;
    overflow-y: auto;
    border: 1px solid #ddd;
    background: #fff;
}

.trial-lecture-frame .elt-list .video-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    width: 100%;
    min-height: 67px;
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px solid #e5e5e5;
    color: #222;
    background: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.trial-lecture-frame .elt-list .video-item:hover,
.trial-lecture-frame .elt-list .video-item.is-active {
    background: #fff9e9;
}

.trial-lecture-frame .elt-list .thumb {
    position: relative;
    display: block;
    width: 72px;
    height: 46px;
    overflow: hidden;
    background: #888;
}

.trial-lecture-frame .elt-list .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    opacity: .8;
}

.trial-lecture-frame .elt-list .thumb .play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25px;
    height: 25px;
    border: 2px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.trial-lecture-frame .elt-list .thumb .play::after {
    position: absolute;
    top: 5px;
    left: 8px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid #fff;
    content: "";
}

.trial-lecture-frame .elt-list .text {
    min-width: 0;
}

.trial-lecture-frame .elt-list .text strong,
.trial-lecture-frame .elt-list .text > span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trial-lecture-frame .elt-list .text strong {
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 800;
}

.trial-lecture-frame .elt-list .text > span {
    color: #999;
    font-size: 10px;
}

.trial-lecture-frame .elt-info {
    min-height: 124px;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #ddd;
    background: #fff;
}

.trial-lecture-frame .elt-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 34px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.trial-lecture-frame .elt-meta .difficulty,
.trial-lecture-frame .elt-meta .frequency {
    display: flex;
    align-items: center;
    gap: 7px;
}

.trial-lecture-frame .elt-stars {
    display: inline-flex;
    gap: 1px;
    color: #d7d7d7;
}

.trial-lecture-frame .elt-stars .is-on {
    color: #d9a600;
}

.trial-lecture-frame .elt-stars--purple .is-on {
    color: #8d63be;
}

.trial-lecture-frame .elt-meta .badge__tag {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 8px;
    border-radius: 3px;
    color: #a35d00;
    background: #fff1d1;
    font-size: 11px;
    font-weight: 700;
}

.trial-lecture-frame .elt-meta .badge__tag.style-03 {
    color: #216856;
    background: #e6f6ef;
}

.trial-lecture-frame .elt-meta .badge__tag.style-04 {
    color: #a35d00;
    background: #fff1d1;
}

.trial-lecture-frame .elt-position {
    margin-left: auto;
    color: #888;
    font-size: 11px;
}

.trial-lecture-frame .elt-desc {
    padding-top: 12px;
    color: #555;
    font-size: 12px;
    line-height: 1.6;
}

.trial-lecture-frame .elt-desc p {
    margin: 0;
}

.trial-lecture-frame .elt-empty {
    position: absolute;
    inset: 70px 26px 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    background: #fff;
}

.trial-lecture-frame .elt-empty[hidden] {
    display: none;
}

.trial-lecture-frame .elt-toast {
    position: fixed;
    z-index: 10;
    left: 50%;
    bottom: 18px;
    padding: 9px 16px;
    border-radius: 999px;
    color: #fff;
    background: rgba(33, 37, 41, .92);
    font-size: 12px;
    opacity: 0;
    transform: translate(-50%, 10px);
    transition: .2s ease;
    pointer-events: none;
}

.trial-lecture-frame .elt-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 767px) {
    .elt-dialog {
        width: 100vw;
        height: 100dvh;
    }

    .trial-lecture-frame {
        background: #fff;
    }

    .trial-lecture-frame .elt-frame {
        height: 100dvh;
        padding: 15px 13px calc(15px + env(safe-area-inset-bottom));
        overflow-y: auto;
        border: 0;
    }

    .trial-lecture-frame .elt-title h1 {
        font-size: 18px;
    }

    .trial-lecture-frame .elt-video {
        display: block;
        height: auto;
    }

    .trial-lecture-frame .elt-player {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .trial-lecture-frame .elt-list {
        display: flex;
        height: 112px;
        margin-top: 8px;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .trial-lecture-frame .elt-list .video-item {
        flex: 0 0 150px;
        display: block;
        min-height: 0;
        padding: 7px;
        border-right: 1px solid #e5e5e5;
        border-bottom: 0;
    }

    .trial-lecture-frame .elt-list .thumb {
        width: 100%;
        height: 60px;
        margin-bottom: 5px;
    }

    .trial-lecture-frame .elt-list .text strong {
        margin: 0;
        font-size: 11px;
    }

    .trial-lecture-frame .elt-list .text > span {
        display: none;
    }

    .trial-lecture-frame .elt-info {
        margin-top: 8px;
        padding: 11px;
    }

    .trial-lecture-frame .elt-meta {
        flex-wrap: wrap;
        gap: 7px;
        font-size: 11px;
    }

    .trial-lecture-frame .elt-position {
        width: 100%;
        margin-left: 0;
    }

    .trial-lecture-frame .elt-desc {
        font-size: 11px;
    }
}
