.dgs-rich-editor, .dgs-episode-fields { display: grid; gap: 9px; margin-block: 12px; }
.dgs-rich-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.dgs-rich-tools button { padding: 6px 10px; min-height: 36px; }
.dgs-rich-body { min-height: 230px; max-height: 55vh; overflow: auto; padding: 12px; border: 1px solid #b8cdd9; border-radius: 10px; background: white; color: #163647; line-height: 1.9; }
.dgs-rich-body:focus { outline: 2px solid #21728b; outline-offset: 2px; }
.dgs-rich-body a, .dg46-article-content.prose a { color: #126288; text-decoration: underline; text-underline-offset: 3px; }
.dgs-rich-body :is(img, video), .dg46-article-content.prose :is(img, video) { max-width: 100%; height: auto; }
.dgs-rich-body :is(img, video) { max-height: 220px; }
.dg46-article-content.prose video { width: 100%; border-radius: 12px; background: #061825; }
.dgs-episode-fields fieldset { min-width: 0; display: grid; gap: 8px; border: 1px solid #cbdce3; border-radius: 10px; margin: 0; padding: 10px; }
.dgs-episode-fields input[type="file"][hidden], .dgs-rich-tools input[type="file"][hidden] { display: none !important; }
.dgs-episode-series { display: grid; grid-template-columns: minmax(0, 1fr) minmax(165px, 30%); align-items: start; gap: 14px; margin-block-end: 22px; }
.dgs-episode-series:not(:has(.dgs-episode-list)) { grid-template-columns: minmax(0, 1fr); }
.dgs-episode-player { display: grid; align-items: center; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #061825; scroll-margin-block-start: 90px; }
.dgs-episode-player :is(video, iframe) { display: block; width: 100%; height: 100%; min-height: 0; border: 0; object-fit: contain; }
.dgs-episode-main h2, .dgs-episode-list h2 { font-size: 16px !important; margin-block: 9px; }
.dgs-episode-list { max-height: 420px; overflow: auto; border: 1px solid #d5e3eb; background: #f3f8fb; border-radius: 12px; padding: 10px; }
.dgs-episode-list ol { list-style: none; margin: 0; padding: 0; }
.dgs-episode-list a { display: flex; align-items: center; gap: 8px; padding: 8px; min-height: 40px; color: #15364a; text-decoration: none; border-radius: 8px; overflow-wrap: anywhere; }
.dgs-episode-list a[aria-current] { background: #deedf5; font-weight: 700; }
.dgs-episode-list a:focus-visible { outline: 2px solid #21728b; outline-offset: -2px; }
.dgs-episode-list a span { min-width: 1.7em; text-align: center; font-size: .85em; color: #496478; }
@media (max-width: 960px) {
    .dgs-episode-series { grid-template-columns: minmax(0, 1fr); }
    .dgs-episode-list { max-height: 260px; }
}
