.content-video-public, .youtube-preview-block { width: 100%; min-width: 0; margin: 24px 0; }
.content-video--small { max-width: 320px; }
.content-video--medium { max-width: 640px; }
.content-video--full { max-width: 100%; }
.content-video--left { margin-right: auto; }
.content-video--center { margin-left: auto; margin-right: auto; }
.content-video--right { margin-left: auto; }
.content-video--portrait { max-width: 360px; }
.content-video--portrait.content-video--small { max-width: 240px; }
.content-video--portrait.content-video--full { max-width: 480px; }
.content-video-player, .youtube-preview-surface { position: relative; aspect-ratio: 16 / 9; width: 100%; background: #edf1f2; border: 1px solid #c7d1d7; overflow: hidden; }
.content-video--portrait .content-video-player, .content-video--portrait .youtube-preview-surface { aspect-ratio: 9 / 16; }
.content-video-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.content-video-placeholder { width: 100%; height: 100%; position: relative; display: grid; place-items: center; }
.content-video-placeholder > img, .youtube-preview-surface > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; margin: 0; }
.content-video-actions { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px; max-width: 100%; background: #ffffffed; text-align: center; overflow-wrap: anywhere; color: #183345; }
.content-video-actions .button { white-space: normal; max-width: 100%; }
.content-video-link { display: inline-block; max-width: 100%; overflow-wrap: anywhere; padding: 10px 14px; color: #a53058; font-weight: 600; }
.content-video-public figcaption { margin-top: 10px; font-size: 14px; overflow-wrap: anywhere; }
.youtube-dialog { width: min(760px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 24px; border: 1px solid #c7d1d7; border-radius: 6px; color: #183345; }
.youtube-dialog::backdrop { background: #0008; }
.youtube-form { display: grid; gap: 16px; }
.youtube-form [hidden] { display: none !important; }
.youtube-form h2 { margin: 0; font-size: 22px; }
.youtube-form label { display: grid; gap: 6px; font-size: 14px; min-width: 0; }
.youtube-form input, .youtube-form select, .youtube-form textarea { width: 100%; min-width: 0; box-sizing: border-box; min-height: 40px; padding: 9px 10px; border: 1px solid #b9c5ce; border-radius: 2px; background: #fff; color: inherit; font: inherit; }
.youtube-form input:focus, .youtube-form select:focus, .youtube-form textarea:focus { outline: 2px solid #a53058; outline-offset: 1px; }
.youtube-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.youtube-poster-controls, .youtube-dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.youtube-preview { min-width: 0; }
.youtube-preview-block { margin-top: 0; margin-bottom: 0; }
.youtube-preview-block a { color: #a53058; }
.youtube-preview-surface { display: grid; place-items: center; }
.youtube-preview-surface span { position: relative; padding: 12px; background: #fff; color: #a53058; font-weight: bold; }
.html-editor .content-video, .jodit-wysiwyg .content-video { display: block; margin: 16px 0; padding: 12px; max-width: 100%; border: 1px solid #a53058; background: #f7f1f4; cursor: pointer; overflow-wrap: anywhere; }
.html-editor .content-video img, .jodit-wysiwyg .content-video img { display: block; width: auto; max-width: 100%; max-height: 180px; margin-bottom: 8px; }
.html-editor .content-video:focus, .jodit-wysiwyg .content-video:focus { outline: 2px solid #a53058; outline-offset: 2px; }
.editor-toolbar [data-action=youtube] img { width: 18px; height: 18px; vertical-align: middle; }
@media (max-width: 540px) {
    .youtube-dialog { padding: 14px; }
    .youtube-fields { grid-template-columns: minmax(0, 1fr); }
    .content-video-actions { gap: 6px; padding: 8px; font-size: 13px; }
    .content-video-actions .button, .content-video-link { padding: 8px; font-size: 13px; }
}
