.nons-article-media-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 20px;
    direction: rtl;
    text-align: right;
}
.nons-article-media-panel h3 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
}
.nons-article-media-panel__row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
}
.nons-article-media-hero-preview {
    max-width: 280px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    display: block;
}
.nons-article-media-hero-preview--empty {
    display: none;
}
.nons-article-media-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.nons-article-crop-modal {
    position: fixed;
    inset: 0;
    z-index: 100060;
    display: none;
    align-items: stretch;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}
.nons-article-crop-modal.is-open {
    display: flex;
}
.nons-article-crop-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
}
.nons-article-crop-modal__panel {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px 16px;
    width: min(1200px, 96vw);
    max-height: 96vh;
    margin: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
    box-sizing: border-box;
    overflow: hidden;
}
.nons-article-crop-modal__title {
    margin: 0 0 4px;
    font-size: 18px;
    flex-shrink: 0;
}
.nons-article-crop-modal__hint {
    margin: 0 0 10px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
    flex-shrink: 0;
}
.nons-article-crop-modal__tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    flex-shrink: 0;
}
.nons-article-crop-modal__ratios {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    flex-shrink: 0;
}
.nons-ratio-btn--active {
    background: #2563eb !important;
    border-color: #1d4ed8 !important;
    color: #fff !important;
}
.nons-article-crop-modal__stage {
    flex: 1 1 0;
    min-height: 200px;
    overflow: hidden;
    background: #0f172a;
    border-radius: 8px;
    direction: ltr;
}
.nons-article-crop-modal__stage img {
    display: block;
    max-width: none !important;
    max-height: none !important;
    width: auto;
}
.nons-article-crop-modal__stage .cropper-container {
    width: 100% !important;
    height: 100% !important;
}
.nons-article-crop-modal__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 12px;
    flex-shrink: 0;
}
@media (max-width: 767px) {
    .nons-article-crop-modal {
        padding: 4px;
    }
    .nons-article-crop-modal__panel {
        width: 100%;
        max-height: 98vh;
        padding: 8px 10px 10px;
    }
    .nons-article-crop-modal__stage {
        min-height: 160px;
    }
    .nons-article-crop-modal__hint {
        display: none;
    }
}

.article-embed-youtube {
    margin: 1.5rem 0;
    direction: ltr;
}
.article-embed-youtube__inner {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
}
.article-embed-youtube__inner iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.article-inline-image {
    margin: 1.25rem 0;
    text-align: center;
}
.article-inline-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
}
