/* Gece/gündüz modu: sayfanın kendi tasarımının tersine geçerken renkleri ters çevirir,
   fotoğraf ve görselleri yeniden düzelterek doğal renkte bırakır. */
html.tema-ters{filter:invert(1) hue-rotate(180deg);background:#fff}
html.tema-ters img,
html.tema-ters video,
html.tema-ters picture,
html.tema-ters iframe,
html.tema-ters canvas{filter:invert(1) hue-rotate(180deg)!important}
html.tema-ters .hm-stage,
html.tema-ters .hm-final,
html.tema-ters [data-tema-koru],
/* zaten koyu/renkli olan, iki modda da aynı kalacak parçalar */
html.tema-ters[data-tema-varsayilan="gunduz"] #sidebar,
html.tema-ters[data-tema-varsayilan="gunduz"] .top-program,
html.tema-ters .wa-fab,
html.tema-ters .kgc,
html.tema-ters .brand svg,html.tema-ters .brand img,html.tema-ters .top-glyph,html.tema-ters .logo,
html.tema-ters[data-tema-varsayilan="gece"] .btn-gold,
html.tema-ters[data-tema-varsayilan="gece"] .tabs button[aria-selected="true"],
html.tema-ters[data-tema-varsayilan="gece"] .layer,
html.tema-ters[data-tema-varsayilan="gece"] .lbimg,
html.tema-ters[data-tema-varsayilan="gece"] .tv .img{filter:invert(1) hue-rotate(180deg)}
html.tema-ters #sidebar img{filter:none!important}
/* zaten korunan bir kapsayıcının içindeki görselleri ikinci kez çevirme */
html.tema-ters .hm-stage .hm-img,
html.tema-ters [data-tema-koru] img,
html.tema-ters picture img{filter:none!important}

.tema-dugme{position:fixed;top:8px;right:8px;z-index:2147483000;display:grid;place-items:center;width:30px;height:30px;padding:0;border-radius:50%;border:1.5px solid #c9952b;background:#1a2348;color:#f8dc82;font:700 15px/1 "Segoe UI",system-ui,sans-serif;box-shadow:0 2px 8px rgba(0,0,0,.35);cursor:pointer;opacity:.9}
.tema-dugme:hover{opacity:1}
.tema-dugme .tema-yazi{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tema-dugme:hover{background:#243163}
.tema-dugme:focus-visible{outline:3px solid #f2c94c;outline-offset:2px}
.tema-dugme .tema-ikon{font-size:15px;line-height:1}
html[data-tema="gunduz"] .tema-dugme{background:#fff8e1;color:#4a2a0c;border-color:#c9952b}
html.tema-ters .tema-dugme{filter:invert(1) hue-rotate(180deg)}
@media print{.tema-dugme{display:none}}
/* Telefonda başlığın sağında simgeye yer aç */
@media (max-width:760px){
  .tema-dugme{top:max(10px,env(safe-area-inset-top));right:6px;width:28px;height:28px}
  .topbar{padding-right:42px!important}
  header.top>.wrap,header.top>.top-in{padding-right:42px!important}
  header.top:has(.menubtn)>.wrap{padding-right:16px!important}
  header.top .menubtn{font-size:0!important;gap:0!important;padding:.5rem .6rem!important;margin-right:36px;flex:none}
}
