/* 3.2: only presentation; never hide/modify advertisement containers. */
@media (max-width:1100.98px) {
  html body .dd-viewport-wide { display:none !important; }
}
@media (max-width:1100.98px) {
  html body .dd-viewport-desktop { display:none !important; }
}
/* Movie text remains readable without JavaScript; only JS adds the collapsed state. */
#info_move .dd-film-summary { flex:1 1 auto; min-width:0; max-width:100%; }
#info_move .dd-film-summary #yeniscroll { box-sizing:border-box; max-width:100%; overflow-wrap:break-word; overflow-wrap:anywhere; }
#info_move .dd-film-summary #yeniscroll.dd-summary-collapsed { max-height:240px; overflow:hidden; }
#info_move .dd-film-summary #devam-buton-container { position:static; width:100%; box-sizing:border-box; }
#info_move .dd-film-summary #dgostr:focus { outline:2px solid currentColor; outline-offset:2px; }
#info_move .detail .center > span { box-sizing:border-box; min-width:0; overflow-wrap:break-word; overflow-wrap:anywhere; }
#info_move .detail .center > span a { min-width:0; overflow-wrap:break-word; overflow-wrap:anywhere; }
@media (max-width:1100.98px) { #info_move .dd-film-summary #yeniscroll { padding-left:0; } }
/* Don't let long images inside user-provided synopses exceed their card. */
#content .cat_ozet img, #info_move #yeniscroll img { max-width:100%; height:auto; }

/* Archive filter uses a class, not an inline display state that survives rotation. */
body.ddgg-v26-archive #mobil-filter { background:transparent; }
body.ddgg-v26-archive #mobil-filter:focus { outline:2px solid currentColor; outline-offset:2px; }
@media (max-width:1100.98px) {
  html body.ddgg-v26-archive #wrap #content #filterseries { display:none !important; }
  html body.ddgg-v26-archive #wrap #content #filterseries.dd-filter-open {
    display:block !important; max-height:calc(100vh - 95px); max-height:calc(100dvh - 95px);
    overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch;
  }
}
@media (min-width:1101px) {
  html body.ddgg-v26-archive #wrap #content #filterseries { display:block !important; }
  html body.ddgg-v26-archive #mobil-filter { display:none !important; }
}

/* 3.2.1: the dedicated compact mode control is icon-only at every width.
   Its accessible name and state are supplied by theme-mode.js.
   The separate desktop control retains its text. */
html[data-dd-mode] #header #mmenualan #ddgg-mode-button-mobile {
  gap:0 !important;
}
html[data-dd-mode] #header #mmenualan #ddgg-mode-button-mobile .ddgg-toggle-name {
  display:none !important;
}
html[data-dd-mode] #header #mmenualan #ddgg-mode-button-mobile .ddgg-toggle-icon {
  flex:0 0 auto;
  margin:0 !important;
}
