.markdown hr+hr {
    margin-top: -20px;
}

.markdown ul li::marker, 
.markdown ol li::marker {
    color: #9e9e9e; 
}

.markdown li ul, .markdown li ol {
    margin-top: .25em;
}

.markdown table {
    font-size: 15px;
}

.markdown big {
    font-size: 20px;
}

.markdown img {
    margin: 4px 0;
}

.markdown video {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
    margin: 0;
    
    border-radius: 4px;
    display: block;
}

.markdown p iframe {
    max-width: 100%;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    margin: 0;
    border: none; 
    
    border-radius: 4px;
    overflow: hidden;
}

.markdown p.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Пропорция 16:9 */
    height: 0;
    overflow: hidden; 
}

.markdown p.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
}


/* Для read more */
.markdown .hidden-content>*:last-child {
    margin-bottom: 0 !important;
}


.markdown .footnotes li {
  /*position: static;*/
  /*scroll-margin-top: 52px;*/
}
.markdown sub, .markdown sup {
    /*scroll-margin-top: 52px;*/
}









/* Кнопка копирования pre */

.pre-container {
    position: relative;
    margin-bottom: 16px;
}
.copy-button {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #000;
    color: white;
    border: none;
    padding: 3px 5px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 12px;
    opacity: 0.3;
}
.copy-button:hover {
    opacity: 1;
}
/* Корректировка отступа с учетом обертки */
.markdown pre {
    margin: 0;
}



p.fotorama {
    margin-bottom: 0;
}

.fotorama__img {
    min-height: 128px;
    min-width: 128px;
}

.fotorama__stage,
.fotorama__stage__frame,
.fotorama__img {
    border-radius: 4px !important;
}




/* EASYMDE */

.EasyMDEContainer .CodeMirror {
    padding: 6px;
    border: 0;
}

/* Предпросмотр */
.editor-preview {
    padding: 10px;
    background: #fafafa;
}
/* Панель кнопок */
.editor-toolbar {
    padding: 10px 8px 8px 8px;
    position: sticky;
    top: 40px;
    bottom: 100px;
    z-index: 500;
    border: 0;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eeeeee;
    margin-bottom: -1px;
    white-space: nowrap;
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.editor-toolbar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.editor-toolbar button {
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 14px;
    color: #0a0a0a;
}

/* Убрал индекс H3 */
.editor-toolbar button.heading-3::after {
    display: none;
}

/* Информация под редактором */
.editor-statusbar {
    padding: 0;
    font-size: 14px;
    color: #9e9e9e;
    text-align: left;
    z-index: 600;
    position: relative;
    background: #eeeeee;
    
    white-space: nowrap;
    overflow: hidden;
    vertical-align: top;
    text-overflow: ellipsis;
}
.editor-statusbar span {
    margin-left: 0;
}
.editor-statusbar span:not(:last-child) {
    margin-right: 12px;
}

.CodeMirror-line {
    border-bottom: 1px dashed #eeeeee !important;
}






