/* CBSoft 1.1 — video stays compact unless the visitor clicks full-screen. */
.csd-portrait-player{box-sizing:border-box;width:100%;max-width:360px!important;margin:14px auto 20px;overflow:visible}
.csd-portrait-player .wp-video{max-width:100%!important;width:100%!important;margin:auto!important}
.csd-portrait-player .mejs__container,.csd-portrait-player .mejs-container{
  width:100%!important;max-width:360px!important;
  height:auto!important;aspect-ratio:9 / 16;max-height:min(72vh,640px)!important;
  background:#0b0b10!important;overflow:hidden
}
.csd-portrait-player .mejs__mediaelement,.csd-portrait-player .mejs-mediaelement,
.csd-portrait-player .mejs__layers,.csd-portrait-player .mejs-layers{height:100%!important;width:100%!important}
.csd-portrait-player video.csd-tr-video{
  display:block;width:100%!important;height:100%!important;
  max-height:100%!important;object-fit:contain!important;background:#0b0b10
}
/* Mejs paints the only subtitle layer; don't also paint browser-native cues. */
.csd-portrait-player .csd-mejs-active video::cue{color:transparent!important;background:transparent!important}
.csd-portrait-player .mejs__captions-position,
.csd-portrait-player .mejs-captions-position{bottom:60px!important}
.csd-portrait-player .mejs__captions-text,
.csd-portrait-player .mejs-captions-text{font-size:clamp(15px,2vw,20px)!important;line-height:1.4!important}
/* The CC selector remains visible; Turkish is selected by player.js. */
.csd-portrait-player .mejs__captions-button,
.csd-portrait-player .mejs-captions-button{display:block!important}
@media(max-width:767px){
 .csd-portrait-player{max-width:360px!important}
 .csd-portrait-player .mejs__captions-position,
 .csd-portrait-player .mejs-captions-position{bottom:54px!important}
}
/* Remove *all* size limits only when the player itself is in fullscreen. */
.csd-portrait-player .mejs__container-fullscreen,
.csd-portrait-player .mejs-container-fullscreen,
.csd-portrait-player .mejs__container:fullscreen,
.csd-portrait-player .mejs-container:fullscreen{
 position:fixed!important;inset:0!important;width:100vw!important;
 height:100vh!important;max-width:none!important;max-height:none!important;
 aspect-ratio:auto!important;z-index:2147483646!important
}
.csd-portrait-player video:fullscreen{max-height:none!important;object-fit:contain!important}

/* v1.2 MiniTürkçeDizi theme: single-mini_bolum.php owns the ONE native player. */
body.single-mini_bolum .watch-primary .player-shell {
  box-sizing:border-box!important;
  width:min(100%,380px)!important;
  height:min(72vh,640px)!important;
  aspect-ratio:9/16!important;
  max-height:640px!important;
  max-width:380px!important;
  margin:0 auto 22px!important;
  background:#05060e!important;
}
body.single-mini_bolum .watch-primary .player-shell video {
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  background:#000!important;
}
body.single-mini_bolum .watch-primary .player-shell:fullscreen,
body.single-mini_bolum .watch-primary .player-shell video:fullscreen,
body.single-mini_bolum .watch-primary .player-shell video:-webkit-full-screen {
  max-height:none!important;max-width:none!important;
  width:100vw!important;height:100vh!important;
  aspect-ratio:auto!important;object-fit:contain!important;
}

/* v1.3: one readable Turkish caption on theme's native video; no duplicated browser cues */
body.single-mini_bolum .watch-primary .player-shell.csd-caption-v13 {position:relative!important;isolation:isolate}
body.single-mini_bolum .csd-caption-v13 video::cue {color:transparent!important;background:transparent!important}
body.single-mini_bolum .csd-caption-v13 .csd-native-caption {
 position:absolute;z-index:10;pointer-events:none;bottom:76px;left:7%;right:7%;
 text-align:center;color:#fff;font-size:clamp(16px,1.7vw,22px);font-weight:700;
 line-height:1.35;text-shadow:0 2px 4px #000,0 0 4px #000;
 background:rgba(0,0,0,.42);padding:4px 8px;border-radius:5px;
 white-space:pre-line;overflow-wrap:break-word;
}
body.single-mini_bolum .csd-caption-v13 .csd-caption-toggle {
 position:absolute;z-index:15;top:10px;right:10px;cursor:pointer;border:1px solid #ffffff75;
 background:#0a0c12bb;color:white;border-radius:6px;padding:7px 9px;font-size:12px;
}
@media(max-width:767px){body.single-mini_bolum .csd-caption-v13 .csd-native-caption{bottom:68px;font-size:17px;}}

body.single-mini_bolum .csd-caption-v13 video:fullscreen::cue {color:#fff!important;background:rgba(0,0,0,.6)!important}

/* v1.5: fullscreen control stays visible over the theme's native portrait player. */
body.single-mini_bolum .player-shell{position:relative!important}
body.single-mini_bolum .player-shell .csd-mobile-fullscreen{
 position:absolute;z-index:25;left:10px;top:10px;padding:9px 12px;
 border:1px solid rgba(255,255,255,.5);border-radius:8px;
 background:rgba(9,12,22,.86);color:#fff;font-weight:700;font-size:13px;
 cursor:pointer;touch-action:manipulation;
}
body.single-mini_bolum .player-shell .csd-tap-play-next{
 position:absolute;z-index:27;left:50%;top:50%;transform:translate(-50%,-50%);
 background:#9c82f4;color:#171225;padding:14px 22px;border-radius:12px;
 border:0;font-size:16px;font-weight:800;cursor:pointer;
}
body.single-mini_bolum .player-shell.csd-moving-next::after{
 content:'Sonraki bölüm açılıyor…';position:absolute;z-index:27;
 bottom:14px;left:12px;right:12px;text-align:center;
 background:rgba(0,0,0,.8);color:white;border-radius:8px;padding:8px;
 font-size:14px;
}
body.single-mini_bolum .player-shell:fullscreen,
body.single-mini_bolum .player-shell:-webkit-full-screen{
 width:100vw!important;max-width:none!important;height:100dvh!important;
 max-height:none!important;aspect-ratio:auto!important;background:#000!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
}
body.single-mini_bolum .player-shell:fullscreen video,
body.single-mini_bolum .player-shell:-webkit-full-screen video{
 width:100%!important;height:100%!important;object-fit:contain!important;
}
body.single-mini_bolum .player-shell:fullscreen .csd-native-caption,
body.single-mini_bolum .player-shell:-webkit-full-screen .csd-native-caption{
 bottom:12%!important;
}
@media(max-width:767px){
 body.single-mini_bolum .player-shell .csd-mobile-fullscreen{font-size:14px;padding:11px 14px}
}



/* CBSoft native fullscreen subtitle visibility */
body.single-mini_bolum .csd-caption-v13 video::cue{
  color:transparent!important;
  background:transparent!important;
}
body.single-mini_bolum .csd-caption-v13 video:fullscreen::cue,
body.single-mini_bolum .csd-caption-v13 video:-webkit-full-screen::cue{
  color:#fff!important;
  background:rgba(0,0,0,.4)!important;
}
body.single-mini_bolum .csd-caption-v13 .csd-mobile-fullscreen{
  display:none!important;
}

/* CBSoft: CC butonunu gizle, altyazilari koru */
body.single-mini_bolum .watch-primary
.player-shell .csd-caption-toggle,
body.single-mini_bolum .watch-primary
.player-shell .mejs__captions-button,
body.single-mini_bolum .watch-primary
.player-shell .mejs-captions-button {
    display:none!important;
}

/* CBSOFT HIDE NATIVE CC CONTROL */
body.single-mini_bolum video::-webkit-media-controls-toggle-closed-captions-button,
body.single-mini_bolum video::-webkit-media-controls-closed-captions-button {
    display:none!important;
    visibility:hidden!important;
    width:0!important;
    min-width:0!important;
    padding:0!important;
    margin:0!important;
}
