/* Lecture comments are a normal full-width block below the video description. */
#main-containter .mp-details-comments-below-description {
    display: block !important;
    float: none !important;
    clear: both !important;
    position: static !important;
    width: 100% !important;
    min-width: 0;
    margin: 1.25rem 0 0;
    border-top: 1px solid #d9dfe2;
}

#main-containter .mp-details-comments-below-description .mp-lecture-comments {
    --mp-comments-accent: #009682;
    display: block !important;
    float: none !important;
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    margin: 0;
    padding: 1.25rem 0 2rem;
    color: #0f0f0f;
    font-family: Roboto, Arial, sans-serif;
    font-size: 16px;
    box-sizing: border-box;
}

.mp-lecture-comments *,
.mp-lecture-comments *::before,
.mp-lecture-comments *::after { box-sizing: border-box; }

.mp-lecture-comments__header {
    display: flex !important;
    float: none !important;
    align-items: center;
    justify-content: flex-start;
    gap: .55rem;
    width: 100%;
    margin: 0 0 1.25rem;
    white-space: nowrap;
}
.mp-lecture-comments__header h2 {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    width: auto !important;
    margin: 0 !important;
    color: #0f0f0f;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}
.mp-lecture-comments__count {
    color: inherit;
    font: inherit;
}
.mp-lecture-comments__sort { position: relative; display: inline-flex; }
.mp-lecture-comments__sort-trigger {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 38px;
    padding: .35rem .55rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #0f0f0f;
    font: inherit;
    font-size: .95rem;
    font-weight: 500;
    cursor: pointer;
}
.mp-lecture-comments__sort-trigger:hover,
.mp-lecture-comments__sort-trigger[aria-expanded="true"] { background: #f2f2f2; }
.mp-lecture-comments__sort-trigger:focus-visible,
.mp-lecture-comments__sort-option:focus-visible { outline: 2px solid #0f0f0f; outline-offset: 2px; }
.mp-lecture-comments__sort-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.mp-lecture-comments__sort-menu {
    position: absolute;
    z-index: 5;
    top: calc(100% + .2rem);
    left: 0;
    min-width: 12rem;
    padding: 6px;
    border: 1px solid #e3e8eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
}
.mp-lecture-comments__sort-menu[hidden] { display: none !important; }
.mp-lecture-comments__sort-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #0f0f0f;
    text-align: left;
    font: inherit;
    font-size: .9375rem;
    line-height: 1.5;
    cursor: pointer;
}
.mp-lecture-comments__sort-option:hover { background: #f1f3f4; }
.mp-lecture-comments__sort-option.is-active { color: #006858; font-weight: 600; }
.mp-lecture-comments__sort-option.is-active::after {
    content: '';
    flex: 0 0 6px;
    width: 6px;
    height: 11px;
    margin-right: 4px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.mp-lecture-comments__composer.is-editing .mp-lecture-comments__compose-fields textarea { min-height: 42px; }

.mp-lecture-comments__forum-link {
    display: inline-flex !important;
    float: none !important;
    align-items: center;
    gap: .4rem;
    margin: -.5rem 0 1rem 3.25rem;
    color: #606060;
    font-size: .82rem;
    font-weight: 500;
    text-decoration: none;
}
.mp-lecture-comments__forum-link:hover,
.mp-lecture-comments__forum-link:focus-visible { color: #0f0f0f; text-decoration: underline; }

.mp-lecture-comments__composer {
    display: grid !important;
    float: none !important;
    position: static !important;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
    gap: .85rem;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    margin: 0 0 1.25rem;
}
.mp-lecture-comments__avatar,
.mp-lecture-comment__avatar {
    display: flex !important;
    align-items: center;
    justify-content: center;
    float: none !important;
    overflow: hidden;
    border-radius: 50%;
    background: #e5e5e5;
    color: #606060;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
}
.mp-lecture-comments__avatar,
.mp-lecture-comment__avatar { flex: 0 0 48px; width: 48px; height: 48px; font-size: 24px; }
.mp-comments-avatar {
    overflow: hidden;
    border-radius: 50%;
    line-height: 1;
}
.mp-lecture-comments__avatar.mp-profile-avatar,
.mp-lecture-comment__avatar.mp-profile-avatar {
    background-color: var(--mp-profile-avatar-bg, #009682);
    color: var(--mp-profile-avatar-fg, #fff);
}
.mp-lecture-comments__avatar.mp-profile-avatar--gray,
.mp-lecture-comment__avatar.mp-profile-avatar--gray { color: var(--mp-profile-avatar-fg, #404040); }
.mp-profile-avatar--image.mp-comments-avatar { background-color: transparent; }
.mp-lecture-comments__avatar.mp-comments-avatar { text-transform: none; }

.mp-lecture-comments__compose-fields {
    display: block !important;
    float: none !important;
    width: auto !important;
    min-width: 0;
    margin: 0;
}
.mp-lecture-comments__compose-fields textarea {
    display: block !important;
    float: none !important;
    width: 100% !important;
    min-width: 0;
    min-height: 38px;
    margin: 0 !important;
    padding: .45rem 0 .5rem;
    resize: vertical;
    border: 0 !important;
    border-bottom: 1px solid #c6c6c6 !important;
    border-radius: 0 !important;
    outline: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: #0f0f0f;
    font: inherit;
    font-size: 1rem;
    line-height: 1.5;
}
.mp-lecture-comments__compose-fields textarea::placeholder { color: #606060; opacity: 1; }
.mp-lecture-comments__compose-fields textarea:focus { border-bottom: 2px solid #0f0f0f !important; }
.mp-lecture-comments__compose-actions {
    display: flex !important;
    float: none !important;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
    min-height: 38px;
    margin: .45rem 0 0;
    padding: 0;
}
.mp-lecture-comments__compose-tools,
.mp-lecture-comments__compose-buttons { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.mp-lecture-comments__compose-tools { flex-wrap: wrap; }
.mp-lecture-comments__compose-buttons { margin-left: auto; flex: 0 0 auto; }
.mp-lecture-comments__timestamp { color: #606060; }
.mp-lecture-comments__composer:not(.is-editing) .mp-lecture-comments__timestamp { display: none !important; }
.mp-lecture-comments__timestamp.is-selected,
.mp-lecture-comments__selected-time { color: var(--mp-comments-accent); font-weight: 600; }
.mp-lecture-comments__selected-time { font-size: .82rem; }
.mp-lecture-comments__visibility-row {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem;
    margin: 0;
    padding-left: 0;
    border-left: 0;
    color: #606060;
    font-size: .82rem;
}
.mp-lecture-comments__visibility-row label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
.mp-lecture-comments__visibility-row select {
    width: auto;
    max-width: min(12rem, 38vw);
    min-height: 34px;
    padding: .3rem 2.1rem .3rem .8rem;
    border: 0;
    border-radius: 999px;
    appearance: none;
    background-color: #f2f2f2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%230f0f0f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    color: #0f0f0f;
    font: inherit;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.mp-lecture-comments__visibility-row select:hover { background-color: #e5e5e5; }
.mp-lecture-comments__visibility-row select:focus-visible { outline: 2px solid var(--mp-comments-accent); outline-offset: 2px; }
.mp-lecture-comments__visibility-row select:disabled { background-color: #f2f2f2; color: #606060; cursor: default; }
.mp-lecture-comments__visibility-row select option { background: #fff; color: #0f0f0f; }
.mp-lecture-comments__visibility-row select option:checked { background: #e5e5e5; color: #0f0f0f; }
.mp-lecture-comments__composer.is-editing .mp-lecture-comments__visibility-row { display: flex; }
.mp-lecture-comments__composer:not(.is-editing) .mp-lecture-comments__compose-actions { min-height: 0; margin: 0; }
.mp-lecture-comments__timestamp,
.mp-lecture-comments__cancel,
.mp-lecture-comment__action,
.mp-lecture-comment__replies-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    float: none !important;
    min-height: 34px;
    padding: .4rem .65rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #0f0f0f;
    font: inherit;
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
}
.mp-lecture-comments__timestamp { gap: .45rem; padding-inline: .55rem; white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.mp-lecture-comments__timestamp svg { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mp-lecture-comments__timestamp:hover,
.mp-lecture-comments__timestamp:focus-visible { background: #e5e5e5 !important; color: #0f0f0f !important; }
.mp-lecture-comments__timestamp:focus-visible { outline: 2px solid var(--mp-comments-accent); outline-offset: 2px; }
.mp-lecture-comments__timestamp.is-selected { background: #e6f4f1; color: #006e62; }
.mp-lecture-comments__timestamp.is-selected:hover { background: #d4ebe6 !important; }
.mp-lecture-comments__submit {
    display: none !important;
    align-items: center;
    justify-content: center;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    padding: .3rem .8rem !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #0f0f0f !important;
    color: #fff !important;
    font: inherit;
    font-size: .82rem !important;
    line-height: 1 !important;
    font-weight: 600 !important;
    white-space: nowrap;
    box-shadow: none !important;
    cursor: pointer;
}
.mp-lecture-comments__composer.is-editing .mp-lecture-comments__submit,
.mp-lecture-comments__composer.is-editing .mp-lecture-comments__cancel { display: inline-flex !important; }
.mp-lecture-comments__submit:hover:not(:disabled) { background: #272727 !important; }
.mp-lecture-comments__submit:disabled { background: #f2f2f2 !important; color: #909090 !important; cursor: default; }
.mp-lecture-comments__cancel:hover,
.mp-lecture-comment__action:hover,
.mp-lecture-comment__replies-toggle:hover { background: #e5e5e5 !important; }

.mp-lecture-comments__status {
    display: block !important;
    float: none !important;
    width: auto;
    min-height: 0;
    margin: 0 0 .5rem 3.25rem;
    color: #606060;
    font-size: .9rem;
}
.mp-lecture-comments__status:empty { display: none !important; }
.mp-lecture-comments__status.is-error { color: #b42318; }
.mp-lecture-comments__list {
    display: block !important;
    float: none !important;
    clear: both;
    width: 100%;
    margin: 0;
}
.mp-lecture-comments__empty {
    display: block !important;
    float: none !important;
    clear: both !important;
    position: static !important;
    width: auto !important;
    margin: 1rem 0 1rem 3.25rem !important;
    color: #606060;
    font-size: 1rem;
    line-height: 1.5;
}
.mp-lecture-comments__empty[hidden] { display: none !important; }
.mp-lecture-comments__dialog {
    width: min(32rem, calc(100vw - 2rem));
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 12px;
    color: #0f0f0f;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .24);
}
.mp-lecture-comments__dialog::backdrop { background: rgba(0, 0, 0, .48); }
.mp-lecture-comments__dialog-content { padding: 1.5rem; }
.mp-lecture-comments__dialog-content h2 { margin: 0 0 .8rem; font-size: 1.15rem; }
.mp-lecture-comments__dialog-content p { margin: 0 0 .8rem; color: #424242; line-height: 1.5; }
.mp-lecture-comments__dialog-content .mp-lecture-comments__privacy { margin-bottom: 1.25rem; font-size: .9rem; }
.mp-lecture-comments__privacy a { color: #006e62; text-decoration: underline; }
.mp-lecture-comments__dialog-actions { display: flex; justify-content: flex-end; gap: .65rem; }
.mp-lecture-comments__dialog-actions button {
    min-height: 40px;
    padding: .5rem .9rem;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
}
.mp-lecture-comments__dialog-cancel { background: #f2f2f2; color: #0f0f0f; }
.mp-lecture-comments__dialog-confirm { background: #009682; color: #fff; }
.mp-lecture-comments__dialog-actions button:hover { filter: brightness(.94); }
.mp-lecture-comments__dialog-actions button:focus-visible { outline: 3px solid #006e62; outline-offset: 2px; }

.mp-lecture-comment {
    display: flex !important;
    float: none !important;
    clear: both;
    align-items: flex-start;
    gap: .85rem;
    width: 100%;
    margin: 0;
    padding: .55rem 0 .8rem;
}
.mp-lecture-comment + .mp-lecture-comment { border-top: 0; }
.mp-lecture-comment__content { display: block; flex: 1 1 auto; min-width: 0; }
.mp-lecture-comment__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; margin: 0 0 .25rem; line-height: 1.35; }
.mp-lecture-comment__meta strong { color: #0f0f0f; font-size: 1rem; font-weight: 600; }
.mp-lecture-comment__meta time { color: #606060; font-size: .9rem; }
.mp-lecture-comment__meta time::before { content: "·"; margin-right: .4rem; }
.mp-lecture-comment__visibility {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: .1rem .45rem;
    border-radius: 999px;
    background: #fff4d6;
    color: #805b00;
    font-size: .69rem;
    font-weight: 600;
}
.mp-lecture-comment__text { margin: 0; color: #0f0f0f; font-size: 1rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.mp-lecture-comment__actions { display: flex; align-items: center; gap: .15rem; margin: .25rem 0 0 -.55rem; }
.mp-lecture-comment__action,
.mp-lecture-comment__replies-toggle { min-height: 36px; font-size: .9rem; }
.mp-lecture-comment__time { min-height: 36px; padding: .4rem .65rem; border: 0; border-radius: 999px; background: transparent; color: #0f0f0f; font: inherit; font-size: .9rem; font-weight: 500; line-height: 1.2; cursor: pointer; }
.mp-lecture-comment__time:hover,
.mp-lecture-comment__time:focus-visible { background: #e5e5e5; }
.mp-lecture-comment__time:focus-visible { outline: 2px solid var(--mp-comments-accent); outline-offset: 2px; }
.mp-lecture-comment__replies { margin-top: .15rem; }
.mp-lecture-comment__replies[hidden] { display: none !important; }
.mp-lecture-comment--reply { margin: .15rem 0 0; padding: .55rem 0 0; border-top: 0; }
.mp-lecture-comment--reply .mp-lecture-comment__text { font-size: 1rem; }
.mp-lecture-comments__composer--reply {
    grid-template-columns: 48px minmax(0, 1fr);
    margin: .75rem 0 1rem;
    padding: .75rem;
    border-radius: 12px;
    background: #f7f7f7;
}
.mp-lecture-comments__composer--reply .mp-lecture-comments__avatar { width: 48px; height: 48px; flex-basis: 48px; font-size: 24px; }
.mp-lecture-comments__composer--reply .mp-lecture-comments__compose-fields textarea { min-height: 36px; }
.mp-lecture-comment__time { display: inline-flex; align-items: center; justify-content: center; float: none !important; }

@media (max-width: 640px) {
    #main-containter .mp-details-comments-below-description .mp-lecture-comments { padding: 1rem 0 1.5rem; }
    .mp-lecture-comments__composer { grid-template-columns: 48px minmax(0, 1fr); gap: .65rem; }
    .mp-lecture-comments__avatar { flex-basis: 48px; width: 48px; height: 48px; }
    .mp-lecture-comment__avatar { flex-basis: 48px; width: 48px; height: 48px; font-size: 24px; }
    .mp-lecture-comments__forum-link,
    .mp-lecture-comments__status,
    .mp-lecture-comments__empty { margin-left: 0 !important; }
    .mp-lecture-comments__compose-actions { align-items: center; gap: .25rem; }
    .mp-lecture-comments__compose-tools { flex: 1 1 auto; flex-wrap: wrap; gap: .15rem .25rem; }
    .mp-lecture-comments__compose-buttons { flex: 0 0 auto; gap: .1rem; }
    .mp-lecture-comments__visibility-row { flex-wrap: wrap; }
    .mp-lecture-comments__visibility-row select { max-width: min(13rem, 48vw); min-height: 32px; font-size: .78rem; }
    .mp-lecture-comments__submit { min-height: 32px !important; height: 32px !important; padding: .25rem .65rem !important; font-size: .78rem !important; }
    .mp-lecture-comments__cancel { min-height: 34px; padding: .3rem .5rem; font-size: .82rem; }
    .mp-lecture-comment { gap: .65rem; }
    .mp-lecture-comment--reply .mp-lecture-comment__avatar { flex-basis: 34px; width: 34px; height: 34px; font-size: .82rem; }
    .mp-lecture-comments__composer--reply { grid-template-columns: 34px minmax(0, 1fr); gap: .5rem; padding: .65rem; }
}
