/* Seljuk Play V9 — stable header, responsive media/player/downloads, floating support controls */

/* Desktop header: preserve DooPlay's original float layout; center ONLY the Seljuk Play logo vertically. */
@media (min-width:769px){
    header.main .hbox .fix-hidden{height:70px!important;overflow:hidden!important;display:block!important}
    header.main .hbox .logo{float:left!important;height:70px!important;padding:0 17px!important;text-align:center!important;display:block!important}
    header.main .hbox .logo>a{height:70px!important;min-height:0!important;display:flex!important;align-items:center!important;justify-content:center!important;line-height:1!important}
    header.main .hbox .logo .seljuk-brand-logo{display:inline-flex!important;align-items:center!important;justify-content:center!important;margin:0!important;line-height:1!important}
    /* Explicitly restore the theme's native nav/account flow. */
    header.main .hbox .head-main-nav{float:left!important;display:block!important;height:auto!important}
    header.main .hbox .head-main-nav ul.main-header{float:left!important;display:block!important;height:auto!important}
    header.main .hbox .head-main-nav ul.main-header>li{float:left!important}
    header.main .hbox .head-main-nav ul.main-header>li>a{float:left!important;display:block!important;height:auto!important;padding:25px 20px!important;line-height:20px!important}
    header.main .hbox .headitems{float:right!important;margin-left:20px!important}
}

/* Make each episode obvious before hover, while keeping hover polish. */
.seljuk-episode-card{
    border-color:#dce2e9!important;
    background:#fbfcfe!important;
    box-shadow:0 2px 7px rgba(34,45,52,.055)!important;
}
.seljuk-episode-card .seljuk-episode-play{
    background:#e8eef5!important;
    color:#25313a!important;
    border:1px solid #d9e1ea;
}
.seljuk-episode-card .seljuk-episode-text strong{color:#1f2933!important;font-weight:800!important}
.seljuk-episode-card .seljuk-episode-text small{color:#727e8c!important}
.seljuk-episode-card .seljuk-episode-arrow{color:#8e99a7!important}
.seljuk-episode-card:hover{
    background:#fff!important;
    border-color:#bfc9d5!important;
    box-shadow:0 8px 22px rgba(34,45,52,.10)!important;
}
.seljuk-episode-card:hover .seljuk-episode-play{background:#222d34!important;color:#fff!important;border-color:#222d34!important}

/* Home CTA */
.seljuk-home-whatsapp-wrap{width:100%;float:left;padding:4px 10px 15px}
.seljuk-whatsapp-cta{position:relative;text-decoration:none!important;display:flex;align-items:center;gap:12px;border-radius:12px;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease}
.seljuk-whatsapp-cta:before{content:"";position:absolute;inset:-45%;background:linear-gradient(115deg,transparent 35%,rgba(255,255,255,.22) 48%,transparent 62%);transform:translateX(-70%);animation:seljukWhatsShine 4s ease-in-out infinite;pointer-events:none}
.seljuk-whatsapp-cta-home{padding:13px 17px;background:linear-gradient(135deg,#128c7e,#25d366);color:#fff!important;box-shadow:0 7px 18px rgba(37,211,102,.18)}
.seljuk-whatsapp-cta-home:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(37,211,102,.25)}
.seljuk-whatsapp-cta-home>i:first-child{font-size:25px}
.seljuk-whatsapp-cta-home>span{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}
.seljuk-whatsapp-cta-home strong{font-size:15px;line-height:1.2;color:#fff}
.seljuk-whatsapp-cta-home small{font-size:11px;line-height:1.3;color:rgba(255,255,255,.82)}
.seljuk-whatsapp-cta-home>i:last-child{font-size:12px}

/* Same full-width animated WhatsApp banner on series, episode, movie and post pages. */
.seljuk-inline-whatsapp-wrap{width:100%;padding:14px 24px 5px;clear:both;box-sizing:border-box}
.seljuk-inline-whatsapp-wrap .seljuk-whatsapp-cta-home{width:100%;box-sizing:border-box}
@keyframes seljukWhatsShine{0%,64%{transform:translateX(-75%)}85%,100%{transform:translateX(75%)}}

/* Floating action is reserved for the Play Store app button only. */
.seljuk-floating-actions{position:fixed;left:16px;bottom:92px;z-index:9998;display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.seljuk-floating-action{height:46px;min-width:46px;border-radius:23px;display:flex;align-items:center;gap:10px;padding:0 14px;text-decoration:none!important;color:#fff!important;box-shadow:0 8px 24px rgba(0,0,0,.16);transform:translateZ(0);transition:transform .18s ease,box-shadow .18s ease,max-width .22s ease}
.seljuk-floating-action:hover{transform:translateY(-2px);box-shadow:0 11px 29px rgba(0,0,0,.21)}
.seljuk-floating-action i{width:19px;text-align:center;font-size:20px;flex:0 0 19px}
.seljuk-floating-action span{font-size:12px;font-weight:800;white-space:nowrap}
.seljuk-floating-play{background:#202b34}

/* Downloads now sit directly below PREV / ALL / NEXT. */
.seljuk-download-zone{
    width:100%;
    box-sizing:border-box;
    padding:13px 18px 15px;
    display:grid;
    gap:10px;
    align-items:stretch;
    border-bottom:1px solid #eef1f4;
    background:#fff;
}
.seljuk-download-zone.seljuk-download-count-1{grid-template-columns:minmax(220px,360px);justify-content:center}
.seljuk-download-zone.seljuk-download-count-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.seljuk-download-zone.seljuk-download-count-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.seljuk-download-zone.seljuk-download-count-many{grid-template-columns:repeat(auto-fit,minmax(155px,1fr))}
.seljuk-download-pill{
    min-height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    padding:10px 14px;
    border:1px solid #dce4ed;
    border-radius:10px;
    background:linear-gradient(180deg,#fff,#f7f9fc);
    color:#202a33!important;
    text-decoration:none!important;
    font-size:13px;
    font-weight:800;
    box-shadow:0 2px 7px rgba(34,45,52,.055);
    transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
.seljuk-download-pill i{font-size:14px;color:#408bea}
.seljuk-download-pill strong{font-weight:900;color:#408bea}
.seljuk-download-pill:hover{
    transform:translateY(-1px);
    border-color:#b8c8da;
    box-shadow:0 8px 20px rgba(34,45,52,.10);
    background:#fff;
}
body.dark .seljuk-download-zone,.dark .seljuk-download-zone{background:rgba(15,15,15,.75);border-color:rgba(255,255,255,.08)}
body.dark .seljuk-download-pill,.dark .seljuk-download-pill{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.13);color:#fff!important}

/* First visit app prompt. */
.seljuk-app-modal{position:fixed;inset:0;z-index:100000;display:none;align-items:center;justify-content:center;padding:18px}
.seljuk-app-modal.is-open{display:flex}
.seljuk-app-modal-backdrop{position:absolute;inset:0;background:rgba(12,18,24,.70);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.seljuk-app-modal-card{position:relative;width:min(440px,100%);background:#fff;border-radius:18px;padding:28px 26px 24px;text-align:center;box-shadow:0 24px 70px rgba(0,0,0,.28);animation:seljukModalIn .24s ease-out}
.seljuk-app-modal-close{position:absolute;right:13px;top:10px;width:35px;height:35px;border:0;border-radius:50%;background:#f1f3f6;color:#4b5563;font-size:24px;line-height:34px;cursor:pointer}
.seljuk-app-modal-icon{width:62px;height:62px;border-radius:17px;margin:0 auto 11px;display:flex;align-items:center;justify-content:center;background:#eef3f8;color:#25313a;font-size:29px}
.seljuk-app-modal-brand{font-size:14px;letter-spacing:.8px;font-weight:800;color:#408bea;margin-bottom:5px}
.seljuk-app-modal-brand strong{font-weight:950}
.seljuk-app-modal-card h2{margin:0 0 12px!important;font-size:23px!important;line-height:1.2!important;color:#202a33!important}
.seljuk-app-modal-urdu{margin:0 auto 20px!important;max-width:360px;color:#343d46;font-family:"Jameel Noori Nastaleeq","Noto Nastaliq Urdu","Noto Naskh Arabic",serif!important;font-size:20px!important;line-height:2!important;text-align:center!important}
.seljuk-app-install-btn{margin:0 auto;width:min(265px,100%);min-height:57px;border-radius:11px;background:#111820;color:#fff!important;display:flex;align-items:center;justify-content:center;gap:13px;text-decoration:none!important;box-shadow:0 8px 20px rgba(17,24,32,.16);transition:transform .18s ease,box-shadow .18s ease}
.seljuk-app-install-btn:hover{transform:translateY(-1px);box-shadow:0 11px 24px rgba(17,24,32,.22)}
.seljuk-app-install-btn>i{font-size:27px}
.seljuk-app-install-btn>span{display:flex;flex-direction:column;text-align:left;line-height:1.05}
.seljuk-app-install-btn small{font-size:9px;letter-spacing:.6px;color:#d3d7dc}
.seljuk-app-install-btn strong{font-size:19px;color:#fff}
.seljuk-app-later{margin:13px auto 0;border:0;background:transparent;color:#78828c;font-size:12px;cursor:pointer;padding:5px 12px}
@keyframes seljukModalIn{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}
body.seljuk-modal-lock{overflow:hidden!important}

body.dark .seljuk-episode-card,.dark .seljuk-episode-card{background:rgba(255,255,255,.075)!important;border-color:rgba(255,255,255,.15)!important}
body.dark .seljuk-episode-card .seljuk-episode-text strong,.dark .seljuk-episode-card .seljuk-episode-text strong{color:#fff!important}
body.dark .seljuk-app-modal-card,.dark .seljuk-app-modal-card{background:#1d252c}
body.dark .seljuk-app-modal-card h2,.dark .seljuk-app-modal-card h2{color:#fff!important}
body.dark .seljuk-app-modal-urdu,.dark .seljuk-app-modal-urdu{color:#e7ebef}

@media(max-width:768px){
    .seljuk-floating-actions{left:11px;bottom:78px;gap:8px}
    .seljuk-floating-action{width:45px;min-width:45px;height:45px;padding:0;justify-content:center;border-radius:50%}
    .seljuk-floating-action span{display:none}
    .seljuk-inline-whatsapp-wrap{padding:10px 12px 4px}
    .seljuk-home-whatsapp-wrap{padding:4px 10px 13px}
    .seljuk-whatsapp-cta-home{padding:10px 12px;border-radius:10px;gap:9px}
    .seljuk-whatsapp-cta-home>i:first-child{font-size:21px}
    .seljuk-whatsapp-cta-home strong{font-size:13px}
    .seljuk-whatsapp-cta-home small{font-size:9px}
    .seljuk-download-zone{padding:10px;gap:8px}
    .seljuk-download-zone.seljuk-download-count-1{grid-template-columns:minmax(0,1fr);padding-left:14%;padding-right:14%}
    .seljuk-download-zone.seljuk-download-count-2{grid-template-columns:repeat(2,minmax(0,1fr))}
    .seljuk-download-zone.seljuk-download-count-3{grid-template-columns:repeat(3,minmax(0,1fr))}
    .seljuk-download-zone.seljuk-download-count-many{grid-template-columns:1fr}
    .seljuk-download-pill{min-height:44px;padding:8px 6px;font-size:11px;gap:5px;border-radius:9px}
    .seljuk-download-pill i{font-size:12px}
    .seljuk-app-modal-card{padding:26px 18px 21px;border-radius:16px}
    .seljuk-app-modal-urdu{font-size:18px!important;line-height:1.95!important}
}

/* ========================================================================
   Seljuk Play V9 — targeted responsive polish
   ======================================================================== */

/* Trailer is fluid at every viewport: desktop, tablet, and phone. */
#trailer .videobox,
#trailer .videobox .embed{
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    box-sizing:border-box!important;
}
#trailer .seljuk-trailer-item{
    position:relative!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    aspect-ratio:16/9!important;
    overflow:hidden!important;
    border-radius:9px!important;
    background:#000!important;
}
#trailer .seljuk-trailer-item > iframe,
#trailer .seljuk-trailer-item .seljuk-oembed,
#trailer .seljuk-trailer-item .seljuk-oembed > iframe,
#trailer .seljuk-trailer-item .seljuk-oembed iframe,
#trailer .seljuk-trailer-item video{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    max-width:100%!important;
    height:100%!important;
    min-height:0!important;
    margin:0!important;
    border:0!important;
    display:block!important;
}

/* Video source / Player 1-3 buttons: one strong horizontal row with visible cards. */
.dooplay_player #playeroptions{
    width:100%!important;
    box-sizing:border-box!important;
    padding:12px 14px 14px!important;
    background:#fff!important;
}
.dooplay_player #playeroptions ul,
.dooplay_player #playeroptions ul.ajax_mode,
.dooplay_player #playeroptions ul.no_ajax{
    width:100%!important;
    display:flex!important;
    flex-wrap:wrap!important;
    gap:10px!important;
    margin:0!important;
    padding:0!important;
    box-sizing:border-box!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option{
    float:none!important;
    width:auto!important;
    flex:1 1 0!important;
    min-width:0!important;
    min-height:58px!important;
    margin:0!important;
    padding:10px 12px!important;
    border:1px solid #d7e0ea!important;
    border-radius:10px!important;
    background:#f8fafc!important;
    box-shadow:0 2px 7px rgba(24,39,55,.06)!important;
    box-sizing:border-box!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    cursor:pointer!important;
    transition:none!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option.on{
    border-color:#9fc7f5!important;
    background:#edf5ff!important;
    box-shadow:inset 0 0 0 1px rgba(64,139,234,.10),0 3px 9px rgba(38,83,130,.08)!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option:hover{
    border-color:#afbfce!important;
    background:#f5f8fb!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option i.fa-play-circle{
    color:#408bea!important;
    font-size:18px!important;
    flex:0 0 auto!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option span.title{
    color:#24313d!important;
    font-size:13px!important;
    font-weight:900!important;
    line-height:1.2!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option span.server{
    margin-left:2px!important;
    color:#8b96a2!important;
    font-size:10px!important;
    line-height:1.2!important;
    white-space:nowrap!important;
}

/* Downloads: stronger visual weight, still clean and fully clickable. */
.seljuk-download-zone{
    padding:14px 16px!important;
    gap:10px!important;
    background:#f7faff!important;
    border-top:1px solid #e7eef7!important;
    border-bottom:1px solid #e1e9f2!important;
}
.seljuk-download-pill{
    min-height:52px!important;
    border:1px solid #bfd7f4!important;
    background:linear-gradient(180deg,#ffffff 0%,#edf6ff 100%)!important;
    color:#203246!important;
    box-shadow:0 4px 12px rgba(42,91,143,.10)!important;
    font-size:13px!important;
    font-weight:900!important;
}
.seljuk-download-pill i,
.seljuk-download-pill strong{
    color:#1877d2!important;
}
.seljuk-download-pill:hover{
    border-color:#87b9ee!important;
    background:linear-gradient(180deg,#f7fbff 0%,#e5f2ff 100%)!important;
    box-shadow:0 7px 17px rgba(42,91,143,.15)!important;
}

/* Existing full-width WhatsApp banners: slower, lighter shine to reduce page work. */
.seljuk-whatsapp-cta:before{
    background:linear-gradient(115deg,transparent 38%,rgba(255,255,255,.12) 49%,transparent 60%)!important;
    animation-duration:9s!important;
}

/* Right-bottom WhatsApp support button. */
.seljuk-whatsapp-support{
    position:fixed;
    right:18px;
    bottom:92px;
    z-index:9998;
    width:176px;
    max-width:calc(100vw - 28px);
    box-sizing:border-box;
    opacity:1;
    visibility:visible;
    transition:opacity .16s ease,visibility .16s ease;
}
.seljuk-whatsapp-support.is-hidden{
    opacity:0;
    visibility:hidden;
    pointer-events:none;
}
.seljuk-whatsapp-support>a{
    min-height:52px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:8px 13px;
    border-radius:28px;
    background:#1fbf61;
    color:#fff!important;
    text-decoration:none!important;
    box-shadow:0 7px 20px rgba(31,191,97,.20);
    animation:seljukWaSoft 4.5s ease-in-out infinite;
}
.seljuk-whatsapp-support>a>i{
    width:28px;
    text-align:center;
    font-size:27px;
    flex:0 0 28px;
}
.seljuk-whatsapp-support>a>span{
    display:flex;
    flex-direction:column;
    min-width:0;
    line-height:1.15;
}
.seljuk-whatsapp-support>a strong{
    color:#fff!important;
    font-size:13px;
    font-weight:900;
}
.seljuk-whatsapp-support>a small{
    margin-top:2px;
    color:rgba(255,255,255,.82)!important;
    font-size:9px;
    white-space:nowrap;
}
.seljuk-float-close{
    position:absolute;
    right:-4px;
    top:-8px;
    z-index:2;
    width:23px;
    height:23px;
    border:1px solid rgba(0,0,0,.08);
    border-radius:50%;
    background:#fff;
    color:#606a74;
    font-size:17px;
    line-height:19px;
    text-align:center;
    padding:0;
    cursor:pointer;
    box-shadow:0 3px 9px rgba(0,0,0,.12);
}
@keyframes seljukWaSoft{
    0%,100%{box-shadow:0 7px 20px rgba(31,191,97,.18)}
    50%{box-shadow:0 7px 22px rgba(31,191,97,.28)}
}

/* Compact Seljuk Play Google Play quick button. */
.seljuk-playstore-slide{
    position:fixed;
    right:18px;
    bottom:92px;
    z-index:9997;
    width:154px;
    max-width:calc(100vw - 28px);
    opacity:1;
    transform:translateY(0);
    transition:transform .22s ease,opacity .22s ease,visibility .22s ease;
}
.seljuk-playstore-slide.has-whatsapp{bottom:156px}
.seljuk-playstore-slide.is-hidden{
    opacity:0;
    visibility:hidden;
    transform:translateY(14px) scale(.94);
    pointer-events:none;
}
.seljuk-playstore-slide>a{
    min-height:52px;
    display:flex;
    align-items:center;
    gap:9px;
    padding:6px 11px 6px 7px;
    border:1px solid rgba(229,166,39,.52);
    border-radius:18px;
    background:linear-gradient(135deg,#081522 0%,#14283f 72%,#0a1725 100%);
    color:#fff!important;
    text-decoration:none!important;
    box-shadow:0 10px 28px rgba(5,18,31,.28),0 0 0 1px rgba(255,255,255,.03) inset;
}
.seljuk-playstore-slide>a:hover{
    transform:translateY(-1px);
    border-color:rgba(242,183,61,.82);
    box-shadow:0 13px 32px rgba(5,18,31,.34),0 0 18px rgba(229,166,39,.10);
}
.seljuk-playstore-slide>a>img{
    width:38px;
    height:38px;
    object-fit:contain;
    flex:0 0 38px;
    border-radius:11px;
    background:#fff;
    box-shadow:0 4px 12px rgba(0,0,0,.18);
}
.seljuk-playstore-slide>a>span{display:flex;flex-direction:column;line-height:1.08;min-width:0}
.seljuk-playstore-slide>a small{color:#c5ced8!important;font-size:7px;letter-spacing:.8px;font-family:Arial,sans-serif}
.seljuk-playstore-slide>a strong{color:#fff!important;font-size:13px;font-weight:900;margin-top:3px;white-space:nowrap;font-family:Arial,sans-serif}
.seljuk-playstore-slide .seljuk-float-close{right:-5px;top:-8px}

@media(max-width:768px){
    #trailer .sbox,
    #trailer.sbox{padding-left:12px!important;padding-right:12px!important}

    .dooplay_player #playeroptions{padding:8px!important}
    .dooplay_player #playeroptions ul{gap:6px!important}
    .dooplay_player #playeroptions ul li.dooplay_player_option{
        min-height:48px!important;
        padding:7px 5px!important;
        gap:4px!important;
        border-radius:8px!important;
    }
    .dooplay_player #playeroptions ul li.dooplay_player_option i.fa-play-circle{font-size:14px!important}
    .dooplay_player #playeroptions ul li.dooplay_player_option span.title{font-size:11px!important}
    .dooplay_player #playeroptions ul li.dooplay_player_option span.server{font-size:8px!important;margin-left:0!important}

    .seljuk-download-zone{padding:9px!important;gap:7px!important}
    .seljuk-download-pill{min-height:46px!important;font-size:11px!important;padding:8px 5px!important}

    .seljuk-whatsapp-support{
        right:11px;
        bottom:76px;
        width:148px;
    }
    .seljuk-whatsapp-support>a{
        min-height:46px;
        padding:7px 10px;
        gap:7px;
    }
    .seljuk-whatsapp-support>a>i{width:24px;flex-basis:24px;font-size:23px}
    .seljuk-whatsapp-support>a strong{font-size:11px}
    .seljuk-whatsapp-support>a small{font-size:8px}

    .seljuk-playstore-slide{right:11px;bottom:76px;width:52px}
    .seljuk-playstore-slide.has-whatsapp{bottom:132px}
    .seljuk-playstore-slide>a{width:52px;height:52px;min-height:52px;padding:5px;border-radius:16px;justify-content:center}
    .seljuk-playstore-slide>a>img{width:40px;height:40px;flex-basis:40px;border-radius:12px}
    .seljuk-playstore-slide>a>span{display:none}
    .seljuk-playstore-slide .seljuk-float-close{width:19px;height:19px;right:-5px;top:-7px;font-size:14px;line-height:16px}
}

@media(max-width:420px){
    .dooplay_player #playeroptions ul li.dooplay_player_option span.server{display:none!important}
    .seljuk-whatsapp-support{width:132px;right:9px;bottom:70px}
    .seljuk-playstore-slide{width:50px;right:9px;bottom:70px}
    .seljuk-playstore-slide.has-whatsapp{bottom:126px}
    .seljuk-playstore-slide>a{width:50px;height:50px;min-height:50px}
    .seljuk-playstore-slide>a>img{width:38px;height:38px;flex-basis:38px}
}

@media(prefers-reduced-motion:reduce){
    .seljuk-whatsapp-support>a,
    .seljuk-whatsapp-cta:before{animation:none!important}
    .seljuk-playstore-slide{transition:none!important}
}

/* Seljuk Play V10: stronger, cleaner Player 1-3 cards */
.dooplay_player #playeroptions{
    padding:12px 14px 10px!important;
}
.dooplay_player #playeroptions ul,
.dooplay_player #playeroptions ul.ajax_mode,
.dooplay_player #playeroptions ul.no_ajax{
    gap:12px!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option{
    position:relative!important;
    min-height:64px!important;
    padding:12px 14px!important;
    border:1px solid #d8e2ed!important;
    border-radius:14px!important;
    background:linear-gradient(180deg,#ffffff 0%,#f4f8fc 100%)!important;
    box-shadow:0 5px 16px rgba(24,39,55,.07)!important;
    justify-content:flex-start!important;
    gap:10px!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option:hover{
    border-color:#b6c9dc!important;
    background:linear-gradient(180deg,#ffffff 0%,#eef5fc 100%)!important;
    box-shadow:0 9px 22px rgba(24,39,55,.11)!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option.on{
    border-color:#7db1e8!important;
    background:linear-gradient(180deg,#fafdff 0%,#e9f4ff 100%)!important;
    box-shadow:inset 0 0 0 1px rgba(64,139,234,.08),0 9px 22px rgba(38,83,130,.11)!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option i.fa-play-circle{
    width:34px!important;
    height:34px!important;
    flex:0 0 34px!important;
    border-radius:50%!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:#eaf2fb!important;
    color:#2f7fd9!important;
    font-size:15px!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option.on i.fa-play-circle{
    background:#dcecff!important;
    color:#166dcf!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option span.title{
    color:#1f2f3d!important;
    font-size:15px!important;
    font-weight:900!important;
    letter-spacing:.15px!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option span.server{
    margin-left:0!important;
    color:#8d99a7!important;
    font-size:11px!important;
    font-weight:700!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option .loader{margin-left:auto!important}

@media(max-width:768px){
    .dooplay_player #playeroptions ul,
    .dooplay_player #playeroptions ul.ajax_mode,
    .dooplay_player #playeroptions ul.no_ajax{gap:8px!important}
    .dooplay_player #playeroptions ul li.dooplay_player_option{
        min-height:54px!important;
        padding:9px 10px!important;
        border-radius:11px!important;
        gap:8px!important;
    }
    .dooplay_player #playeroptions ul li.dooplay_player_option i.fa-play-circle{
        width:29px!important;
        height:29px!important;
        flex-basis:29px!important;
        font-size:12px!important;
    }
    .dooplay_player #playeroptions ul li.dooplay_player_option span.title{font-size:13px!important}
    .dooplay_player #playeroptions ul li.dooplay_player_option span.server{font-size:10px!important}
}
@media(max-width:420px){
    .dooplay_player #playeroptions ul li.dooplay_player_option{min-height:50px!important}
    .dooplay_player #playeroptions ul li.dooplay_player_option span.title{font-size:12px!important}
    .dooplay_player #playeroptions ul li.dooplay_player_option span.server{display:block!important;font-size:9px!important}
}

/* Seljuk Play V11: dark source cards, centered on desktop. */
@media(min-width:769px){
    .dooplay_player #playeroptions ul,
    .dooplay_player #playeroptions ul.ajax_mode,
    .dooplay_player #playeroptions ul.no_ajax{
        justify-content:center!important;
    }
    .dooplay_player #playeroptions ul li.dooplay_player_option{
        flex:0 1 calc(33.333% - 10px)!important;
        max-width:340px!important;
        min-width:190px!important;
    }
}
.dooplay_player #playeroptions ul li.dooplay_player_option{
    border-color:#111a22!important;
    background:linear-gradient(180deg,#202b35 0%,#111820 100%)!important;
    box-shadow:0 7px 18px rgba(8,14,20,.18)!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option:hover{
    border-color:#263746!important;
    background:linear-gradient(180deg,#26333f 0%,#151d25 100%)!important;
    box-shadow:0 9px 22px rgba(8,14,20,.23)!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option.on{
    border-color:#3e5367!important;
    background:linear-gradient(180deg,#26333f 0%,#0d141b 100%)!important;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.04),0 9px 22px rgba(8,14,20,.24)!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option i.fa-play-circle,
.dooplay_player #playeroptions ul li.dooplay_player_option.on i.fa-play-circle{
    background:#fff!important;
    color:#121b23!important;
    box-shadow:0 3px 8px rgba(0,0,0,.20)!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option span.title{
    color:#fff!important;
    font-weight:900!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option span.server{
    color:#aeb9c4!important;
}

/* Dark-red direct download buttons with white text. */
.seljuk-download-zone{
    background:#fff8f8!important;
    border-color:#f0d9db!important;
}
.seljuk-download-pill{
    border-color:#66151d!important;
    background:linear-gradient(180deg,#8f1d29 0%,#5b0d15 100%)!important;
    color:#fff!important;
    box-shadow:0 6px 16px rgba(112,17,29,.20)!important;
}
.seljuk-download-pill i,
.seljuk-download-pill strong,
.seljuk-download-pill span{
    color:#fff!important;
}
.seljuk-download-pill:hover{
    border-color:#4e0a11!important;
    background:linear-gradient(180deg,#9e2632 0%,#670e18 100%)!important;
    box-shadow:0 9px 20px rgba(112,17,29,.28)!important;
}

/* Previous Epi / Next Epi navigation. */
.seljuk-episode-nav-v11 .item a{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    font-weight:800!important;
    letter-spacing:.05px!important;
}
.seljuk-episode-nav-v11 .seljuk-nav-arrow{
    font-size:19px!important;
    line-height:1!important;
    font-weight:400!important;
    color:inherit!important;
}
@media(max-width:520px){
    .seljuk-episode-nav-v11 .item a{gap:5px!important;font-size:11px!important}
    .seljuk-episode-nav-v11 .seljuk-nav-arrow{font-size:16px!important}
}

/* Seljuk Play V12: unmistakable active Player selection. */
.dooplay_player #playeroptions ul li.dooplay_player_option.on{
    border-color:#21b86b!important;
    background:linear-gradient(180deg,#1d2a31 0%,#172229 100%)!important;
    box-shadow:0 0 0 2px rgba(33,184,107,.18),0 8px 20px rgba(0,0,0,.16)!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option.on:after{
    content:'SELECTED';
    margin-left:auto;
    padding:4px 7px;
    border-radius:999px;
    background:#21b86b;
    color:#fff;
    font-size:8px;
    font-weight:900;
    letter-spacing:.5px;
    line-height:1;
}
.dooplay_player #playeroptions ul li.dooplay_player_option.on i.fa-play-circle{
    background:#21b86b!important;
    color:#fff!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option.on span.title{color:#fff!important}
.dooplay_player #playeroptions ul li.dooplay_player_option.on span.server{color:#b9c6d0!important}

@media(max-width:480px){
    .dooplay_player #playeroptions ul li.dooplay_player_option.on:after{
        content:'ON';
        font-size:7px;
        padding:3px 5px;
    }
}

/* Seljuk Play V14: lock player area to full responsive 16:9 before/while sources load. */
.dooplay_player,
.dooplay_player .play,
#dooplay_player_response,
#dooplay_player_content{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
}
.dooplay_player .play .pframe,
.dooplay_player .play .preplayer,
#dooplay_player_response .pframe,
#dooplay_player_response .preplayer,
#dooplay_player_content .pframe{
    position:relative!important;
    width:100%!important;
    max-width:100%!important;
    height:0!important;
    padding:0 0 56.25%!important;
    margin:0!important;
    overflow:hidden!important;
    background:#000!important;
    box-sizing:border-box!important;
}
.dooplay_player .play .pframe iframe,
#dooplay_player_response .pframe iframe,
#dooplay_player_content .pframe iframe,
.dooplay_player .play .pframe video,
#dooplay_player_response .pframe video{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    min-width:100%!important;
    min-height:100%!important;
    border:0!important;
    display:block!important;
    background:#000!important;
}

/* Seljuk Play V14: compact link submit form (Type + URL + Quality only). */
.seljuk-simple-link-table table{table-layout:fixed!important;width:100%!important}
.seljuk-simple-link-table th:nth-child(1),.seljuk-simple-link-table td:nth-child(1){width:24%!important}
.seljuk-simple-link-table th:nth-child(2),.seljuk-simple-link-table td:nth-child(2){width:48%!important}
.seljuk-simple-link-table th:nth-child(3),.seljuk-simple-link-table td:nth-child(3){width:24%!important}
.seljuk-simple-link-table th:nth-child(4),.seljuk-simple-link-table td:nth-child(4){width:4%!important}
.seljuk-simple-link-table input.url,
.seljuk-simple-link-table select{width:100%!important;max-width:none!important;box-sizing:border-box!important}
.seljuk-link-submit-box .control{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important}
@media(max-width:620px){
    .seljuk-simple-link-table table,.seljuk-simple-link-table tbody,.seljuk-simple-link-table tr,.seljuk-simple-link-table td{display:block!important;width:100%!important}
    .seljuk-simple-link-table thead{display:none!important}
    .seljuk-simple-link-table td{padding:5px 0!important}
    .seljuk-simple-link-table td:nth-child(4){text-align:right!important}
    .seljuk-link-submit-box .control{align-items:stretch!important}
}

/* Seljuk Play V19: clean Player 1/2/3 cards, especially on mobile */
.dooplay_player #playeroptions ul li.dooplay_player_option{
    overflow:hidden!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-source-play{
    width:40px!important;
    height:40px!important;
    flex:0 0 40px!important;
    border-radius:50%!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:#fff!important;
    color:#111820!important;
    box-shadow:0 3px 10px rgba(0,0,0,.22)!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-source-play i{
    font-size:16px!important;
    line-height:1!important;
    margin-left:2px!important;
    color:inherit!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-player-copy{
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    min-width:0!important;
    line-height:1.12!important;
    gap:3px!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-player-copy .title{
    display:block!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-player-copy .server{
    display:block!important;
    margin:0!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option.on .seljuk-source-play{
    background:#21b86b!important;
    color:#fff!important;
}

@media(max-width:620px){
    .dooplay_player #playeroptions{
        padding:8px!important;
    }
    .dooplay_player #playeroptions ul,
    .dooplay_player #playeroptions ul.ajax_mode,
    .dooplay_player #playeroptions ul.no_ajax{
        display:grid!important;
        grid-template-columns:repeat(auto-fit,minmax(92px,1fr))!important;
        gap:7px!important;
        width:100%!important;
    }
    .dooplay_player #playeroptions ul li.dooplay_player_option{
        width:100%!important;
        min-width:0!important;
        max-width:none!important;
        min-height:58px!important;
        padding:8px 9px!important;
        margin:0!important;
        gap:7px!important;
        border-radius:10px!important;
        justify-content:flex-start!important;
        box-sizing:border-box!important;
    }
    .dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-source-play{
        width:34px!important;
        height:34px!important;
        flex-basis:34px!important;
    }
    .dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-source-play i{
        font-size:14px!important;
    }
    .dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-player-copy .title{
        font-size:11px!important;
        font-weight:900!important;
    }
    .dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-player-copy .server{
        font-size:8px!important;
        color:#b8c2cc!important;
    }
    .dooplay_player #playeroptions ul li.dooplay_player_option.on:after{
        display:none!important;
        content:none!important;
    }
}
@media(max-width:390px){
    .dooplay_player #playeroptions ul,
    .dooplay_player #playeroptions ul.ajax_mode,
    .dooplay_player #playeroptions ul.no_ajax{
        grid-template-columns:repeat(auto-fit,minmax(86px,1fr))!important;
        gap:5px!important;
    }
    .dooplay_player #playeroptions ul li.dooplay_player_option{
        min-height:54px!important;
        padding:7px 6px!important;
        gap:5px!important;
    }
    .dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-source-play{
        width:31px!important;
        height:31px!important;
        flex-basis:31px!important;
    }
    .dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-source-play i{font-size:13px!important}
    .dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-player-copy .title{font-size:10px!important}
    .dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-player-copy .server{display:none!important}
}

/* Seljuk Play V20: simple Player 1 / Player 2 / Player 3 only */
.dooplay_player #playeroptions ul,
.dooplay_player #playeroptions ul.ajax_mode,
.dooplay_player #playeroptions ul.no_ajax{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:10px!important;
    width:100%!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option{
    width:100%!important;
    min-width:0!important;
    min-height:56px!important;
    padding:9px 14px!important;
    margin:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:9px!important;
    border:1px solid #243541!important;
    border-radius:11px!important;
    background:#17232c!important;
    box-shadow:0 3px 9px rgba(0,0,0,.12)!important;
    box-sizing:border-box!important;
    overflow:visible!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option:hover{
    background:#1b2a34!important;
    border-color:#334a59!important;
    box-shadow:0 5px 13px rgba(0,0,0,.15)!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option.on{
    background:#17232c!important;
    border:2px solid #20c97a!important;
    box-shadow:0 0 0 2px rgba(32,201,122,.09),0 4px 12px rgba(0,0,0,.14)!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-source-play{
    width:31px!important;
    height:31px!important;
    flex:0 0 31px!important;
    border-radius:50%!important;
    background:#fff!important;
    color:#17232c!important;
    border:0!important;
    box-shadow:none!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-source-play i{
    font-size:12px!important;
    line-height:1!important;
    margin-left:2px!important;
    color:#17232c!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option.on .seljuk-source-play{
    background:#20c97a!important;
    color:#fff!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option.on .seljuk-source-play i{
    color:#fff!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-player-copy{
    display:block!important;
    min-width:0!important;
    line-height:1!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-player-copy .title{
    display:block!important;
    color:#fff!important;
    font-size:14px!important;
    line-height:1.1!important;
    font-weight:800!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option span.server,
.dooplay_player #playeroptions ul li.dooplay_player_option .server{
    display:none!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option.on:after{
    display:none!important;
    content:none!important;
}

@media(max-width:620px){
    .dooplay_player #playeroptions{padding:8px!important}
    .dooplay_player #playeroptions ul,
    .dooplay_player #playeroptions ul.ajax_mode,
    .dooplay_player #playeroptions ul.no_ajax{
        grid-template-columns:repeat(3,minmax(0,1fr))!important;
        gap:6px!important;
    }
    .dooplay_player #playeroptions ul li.dooplay_player_option{
        min-height:54px!important;
        padding:8px 5px!important;
        gap:5px!important;
        border-radius:9px!important;
    }
    .dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-source-play{
        width:27px!important;
        height:27px!important;
        flex-basis:27px!important;
    }
    .dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-source-play i{
        font-size:10px!important;
    }
    .dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-player-copy .title{
        font-size:11px!important;
        font-weight:800!important;
    }
}
@media(max-width:360px){
    .dooplay_player #playeroptions ul,
    .dooplay_player #playeroptions ul.ajax_mode,
    .dooplay_player #playeroptions ul.no_ajax{gap:4px!important}
    .dooplay_player #playeroptions ul li.dooplay_player_option{
        padding:7px 4px!important;
        gap:4px!important;
    }
    .dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-source-play{
        width:25px!important;
        height:25px!important;
        flex-basis:25px!important;
    }
    .dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-player-copy .title{font-size:10px!important}
}

/* Seljuk Play V21: text-only Player buttons + visible mobile episode navigation */
.dooplay_player #playeroptions ul li.dooplay_player_option{
    justify-content:center!important;
    gap:0!important;
    min-height:54px!important;
    padding:10px 12px!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-source-play{
    display:none!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-player-copy{
    width:100%!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-player-copy .title{
    display:block!important;
    width:100%!important;
    color:#fff!important;
    font-size:14px!important;
    font-weight:900!important;
    line-height:1.2!important;
    letter-spacing:.1px!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
    text-align:center!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option.on .seljuk-player-copy .title{
    color:#fff!important;
}

/* DooPlay mobile CSS hides navigator text under 480px; force our labels/arrows back on. */
.seljuk-episode-nav-v11{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    width:100%!important;
}
.seljuk-episode-nav-v11 .item{
    width:100%!important;
    float:none!important;
}
.seljuk-episode-nav-v11 .item a{
    min-height:48px!important;
    padding:12px 8px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    color:#6f7d89!important;
    font-size:12px!important;
    font-weight:800!important;
    opacity:1!important;
}
.seljuk-episode-nav-v11 .item a span{
    display:inline-flex!important;
    align-items:center!important;
    visibility:visible!important;
    opacity:1!important;
    font-size:inherit!important;
    color:inherit!important;
}
.seljuk-episode-nav-v11 .item a .seljuk-nav-arrow{
    display:inline-flex!important;
    font-size:17px!important;
    line-height:1!important;
    font-weight:500!important;
    color:inherit!important;
}
.seljuk-episode-nav-v11 .item a.nonex{
    opacity:.62!important;
    color:#9aa5af!important;
    cursor:not-allowed!important;
}
.seljuk-episode-nav-v11 .item:nth-child(2) a{
    color:#394854!important;
    opacity:1!important;
}

@media(max-width:620px){
    .dooplay_player #playeroptions ul li.dooplay_player_option{
        min-height:52px!important;
        padding:9px 4px!important;
    }
    .dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-player-copy .title{
        font-size:12px!important;
    }
    .seljuk-episode-nav-v11 .item a{
        min-height:50px!important;
        padding:12px 4px!important;
        gap:4px!important;
        font-size:11px!important;
    }
    .seljuk-episode-nav-v11 .item a .seljuk-nav-arrow{
        font-size:15px!important;
    }
}

/* Seljuk Play V22: perfectly centered player cards with a tiny play badge */
.dooplay_player #playeroptions ul,
.dooplay_player #playeroptions ul.ajax_mode,
.dooplay_player #playeroptions ul.no_ajax{
    display:grid!important;
    width:100%!important;
    gap:10px!important;
    align-items:stretch!important;
    justify-items:stretch!important;
}
.dooplay_player #playeroptions ul.seljuk-player-count-1{
    grid-template-columns:minmax(180px,32%)!important;
    justify-content:center!important;
}
.dooplay_player #playeroptions ul.seljuk-player-count-2{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.dooplay_player #playeroptions ul.seljuk-player-count-3{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option{
    width:100%!important;
    min-width:0!important;
    float:none!important;
    margin:0!important;
    padding:10px 12px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    box-sizing:border-box!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-mini-play{
    width:22px!important;
    height:22px!important;
    flex:0 0 22px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    border-radius:50%!important;
    background:#fff!important;
    color:#17232d!important;
    box-shadow:0 1px 4px rgba(0,0,0,.12)!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-mini-play i{
    display:block!important;
    width:auto!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    font-size:8px!important;
    line-height:1!important;
    color:inherit!important;
    transform:translateX(1px)!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option.on .seljuk-mini-play{
    background:#20c77a!important;
    color:#fff!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-player-copy{
    width:auto!important;
    flex:0 0 auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-player-copy .title{
    width:auto!important;
    text-align:center!important;
    white-space:nowrap!important;
    font-size:13px!important;
    line-height:1!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option .flag,
.dooplay_player #playeroptions ul li.dooplay_player_option .server{
    display:none!important;
}

@media(max-width:620px){
    .dooplay_player #playeroptions ul,
    .dooplay_player #playeroptions ul.ajax_mode,
    .dooplay_player #playeroptions ul.no_ajax{gap:7px!important}
    .dooplay_player #playeroptions ul.seljuk-player-count-1{grid-template-columns:minmax(150px,58%)!important}
    .dooplay_player #playeroptions ul li.dooplay_player_option{
        min-height:50px!important;
        padding:8px 6px!important;
        gap:6px!important;
    }
    .dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-mini-play{
        width:19px!important;
        height:19px!important;
        flex-basis:19px!important;
    }
    .dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-mini-play i{
        font-size:7px!important;
    }
    .dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-player-copy .title{
        font-size:11px!important;
    }
}
@media(max-width:360px){
    .dooplay_player #playeroptions ul,
    .dooplay_player #playeroptions ul.ajax_mode,
    .dooplay_player #playeroptions ul.no_ajax{gap:5px!important}
    .dooplay_player #playeroptions ul li.dooplay_player_option{
        padding:8px 4px!important;
        gap:5px!important;
    }
    .dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-mini-play{
        width:18px!important;
        height:18px!important;
        flex-basis:18px!important;
    }
    .dooplay_player #playeroptions ul li.dooplay_player_option .seljuk-player-copy .title{
        font-size:10px!important;
    }
}

/* Seljuk Play V23: player/download source groups */
.dooplay_player #playeroptions ul,
.dooplay_player #playeroptions ul.ajax_mode,
.dooplay_player #playeroptions ul.no_ajax{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:10px!important;
}
.dooplay_player #playeroptions ul > li.seljuk-player-group-title{
    grid-column:1 / -1!important;
    list-style:none!important;
    width:100%!important;
    margin:3px 0 1px!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    min-height:0!important;
    pointer-events:none!important;
}
.dooplay_player #playeroptions ul > li.seljuk-player-group-title span,
.seljuk-source-group-heading span{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:32px!important;
    padding:7px 18px!important;
    border:1px solid #dbe3eb!important;
    border-radius:999px!important;
    background:#f5f8fb!important;
    color:#263746!important;
    font-size:13px!important;
    line-height:1!important;
    font-weight:900!important;
    letter-spacing:.15px!important;
    box-shadow:0 3px 10px rgba(25,44,62,.06)!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option.seljuk-group-size-3{grid-column:span 2!important}
.dooplay_player #playeroptions ul li.dooplay_player_option.seljuk-group-size-2{grid-column:span 3!important}
.dooplay_player #playeroptions ul li.dooplay_player_option.seljuk-group-size-1{
    grid-column:1 / -1!important;
    width:min(100%,360px)!important;
    justify-self:center!important;
}

.seljuk-download-groups{width:100%;display:block}
.seljuk-download-group{width:100%;display:block;margin:0;padding:0}
.seljuk-download-group + .seljuk-download-group{border-top:1px solid #e7edf3}
.seljuk-source-group-heading{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:10px 12px 0;
    box-sizing:border-box;
    background:#f7faff;
}
.seljuk-download-group .seljuk-download-zone{border-top:0!important}

/* Front link form: source label selector + custom field */
.seljuk-simple-link-table .seljuk-link-group-cell{min-width:145px}
.seljuk-simple-link-table .seljuk-link-group-cell select,
.seljuk-simple-link-table .seljuk-link-group-cell input{
    width:100%!important;
    box-sizing:border-box!important;
}
.seljuk-simple-link-table .seljuk-link-group-custom{margin-top:6px!important}

@media(max-width:620px){
    .dooplay_player #playeroptions ul,
    .dooplay_player #playeroptions ul.ajax_mode,
    .dooplay_player #playeroptions ul.no_ajax{
        grid-template-columns:repeat(6,minmax(0,1fr))!important;
        gap:6px!important;
    }
    .dooplay_player #playeroptions ul > li.seljuk-player-group-title{margin-top:4px!important}
    .dooplay_player #playeroptions ul > li.seljuk-player-group-title span,
    .seljuk-source-group-heading span{
        min-height:28px!important;
        padding:6px 13px!important;
        font-size:11px!important;
    }
    .dooplay_player #playeroptions ul li.dooplay_player_option.seljuk-group-size-3{grid-column:span 2!important}
    .dooplay_player #playeroptions ul li.dooplay_player_option.seljuk-group-size-2{grid-column:span 3!important}
    .dooplay_player #playeroptions ul li.dooplay_player_option.seljuk-group-size-1{
        grid-column:1 / -1!important;
        width:min(100%,58%)!important;
    }
    .seljuk-source-group-heading{padding:8px 8px 0!important}

    .seljuk-simple-link-table table,
    .seljuk-simple-link-table tbody,
    .seljuk-simple-link-table tr,
    .seljuk-simple-link-table td{display:block!important;width:100%!important;box-sizing:border-box!important}
    .seljuk-simple-link-table thead{display:none!important}
    .seljuk-simple-link-table tr.row{padding:10px 0!important;border-bottom:1px solid #edf1f5!important}
    .seljuk-simple-link-table td{padding:4px 0!important}
    .seljuk-simple-link-table .seljuk-link-group-cell{min-width:0!important}
}
/* V23 specificity reset for older player-count layouts */
.dooplay_player #playeroptions ul.seljuk-player-count-1,
.dooplay_player #playeroptions ul.seljuk-player-count-2,
.dooplay_player #playeroptions ul.seljuk-player-count-3{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    justify-content:stretch!important;
}

/* Seljuk Play V24: source-group connector labels with clear branch arrows */
.dooplay_player #playeroptions ul > li.seljuk-source-connector,
.seljuk-download-groups .seljuk-source-connector{
    width:100%!important;
    grid-column:1 / -1!important;
    display:block!important;
    margin:6px 0 0!important;
    padding:0 8px!important;
    min-height:0!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    box-sizing:border-box!important;
    pointer-events:none!important;
}
.seljuk-source-connector .seljuk-source-label-row{
    width:100%!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:12px!important;
    min-height:34px!important;
    padding:0!important;
    margin:0!important;
    background:transparent!important;
}
.dooplay_player #playeroptions ul > li.seljuk-player-group-title .seljuk-source-label-row strong,
.seljuk-download-groups .seljuk-source-label-row strong{
    flex:0 0 auto!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:30px!important;
    padding:6px 16px!important;
    margin:0!important;
    border:1px solid #405264!important;
    border-radius:999px!important;
    background:#18232d!important;
    color:#fff!important;
    font-size:12px!important;
    line-height:1!important;
    font-weight:900!important;
    letter-spacing:.15px!important;
    box-shadow:0 5px 14px rgba(19,32,43,.16)!important;
    white-space:nowrap!important;
}
.dooplay_player #playeroptions ul > li.seljuk-player-group-title .seljuk-source-line,
.seljuk-download-groups .seljuk-source-line{
    display:block!important;
    flex:1 1 auto!important;
    width:auto!important;
    min-width:26px!important;
    height:2px!important;
    min-height:0!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    background:linear-gradient(90deg,transparent,#95a4b2 25%,#526373 100%)!important;
    box-shadow:none!important;
    opacity:.9!important;
}
.dooplay_player #playeroptions ul > li.seljuk-player-group-title .seljuk-source-line:last-child,
.seljuk-download-groups .seljuk-source-line:last-child{
    background:linear-gradient(90deg,#526373 0%,#95a4b2 75%,transparent 100%)!important;
}
.seljuk-source-connector .seljuk-source-branches{
    width:100%!important;
    height:24px!important;
    display:grid!important;
    grid-template-columns:repeat(var(--seljuk-group-count),minmax(0,1fr))!important;
    align-items:start!important;
    margin:0!important;
    padding:0 3px!important;
    box-sizing:border-box!important;
    background:transparent!important;
}
.dooplay_player #playeroptions ul > li.seljuk-player-group-title .seljuk-source-branch,
.seljuk-download-groups .seljuk-source-branch{
    position:relative!important;
    display:block!important;
    width:100%!important;
    height:22px!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
}
.seljuk-source-branch:before{
    content:"";
    position:absolute;
    left:50%;
    top:0;
    width:2px;
    height:13px;
    transform:translateX(-50%);
    background:#667889;
    border-radius:2px;
}
.seljuk-source-branch:after{
    content:"";
    position:absolute;
    left:50%;
    top:11px;
    width:7px;
    height:7px;
    border-right:2px solid #667889;
    border-bottom:2px solid #667889;
    transform:translateX(-50%) rotate(45deg);
}
.seljuk-download-group .seljuk-source-connector{
    padding-top:7px!important;
    background:#f7faff!important;
}
.seljuk-download-group .seljuk-download-zone{padding-top:8px!important}

@media(max-width:620px){
    .dooplay_player #playeroptions ul > li.seljuk-source-connector,
    .seljuk-download-groups .seljuk-source-connector{padding:0 4px!important;margin-top:4px!important}
    .seljuk-source-connector .seljuk-source-label-row{gap:8px!important;min-height:31px!important}
    .dooplay_player #playeroptions ul > li.seljuk-player-group-title .seljuk-source-label-row strong,
    .seljuk-download-groups .seljuk-source-label-row strong{min-height:27px!important;padding:5px 12px!important;font-size:10px!important}
    .seljuk-source-connector .seljuk-source-branches{height:20px!important}
    .dooplay_player #playeroptions ul > li.seljuk-player-group-title .seljuk-source-branch,
    .seljuk-download-groups .seljuk-source-branch{height:19px!important}
    .seljuk-source-branch:before{height:11px!important}
    .seljuk-source-branch:after{top:9px!important;width:6px!important;height:6px!important}
}

/* Seljuk Play V25: tighten source-group vertical spacing under Video Sources */
.dooplay_player > h2{
    margin-bottom:0!important;
    padding-bottom:8px!important;
}
.dooplay_player #playeroptions{
    padding-top:2px!important;
}
.dooplay_player #playeroptions ul > li.seljuk-source-connector:first-child,
.dooplay_player #playeroptions ul > li.seljuk-player-group-title:first-child{
    margin-top:0!important;
}
.dooplay_player #playeroptions ul > li.seljuk-source-connector{
    margin-top:2px!important;
}
/* Keep later source groups separated enough to read clearly */
.dooplay_player #playeroptions ul > li.seljuk-source-connector:not(:first-child){
    margin-top:8px!important;
}
.seljuk-source-connector .seljuk-source-label-row{
    min-height:30px!important;
}
.seljuk-source-connector .seljuk-source-branches{
    height:20px!important;
}
.dooplay_player #playeroptions ul > li.seljuk-player-group-title .seljuk-source-branch,
.seljuk-download-groups .seljuk-source-branch{
    height:18px!important;
}
.seljuk-source-branch:before{height:10px!important}
.seljuk-source-branch:after{top:8px!important}

/* Same compact rhythm for download groups */
.seljuk-download-group .seljuk-source-connector{
    padding-top:3px!important;
    margin-top:2px!important;
}
.seljuk-download-group .seljuk-download-zone{
    padding-top:5px!important;
}

@media(max-width:620px){
    .dooplay_player > h2{padding-bottom:6px!important}
    .dooplay_player #playeroptions{padding-top:0!important}
    .dooplay_player #playeroptions ul > li.seljuk-source-connector,
    .seljuk-download-groups .seljuk-source-connector{margin-top:1px!important}
    .dooplay_player #playeroptions ul > li.seljuk-source-connector:not(:first-child){margin-top:6px!important}
    .seljuk-source-connector .seljuk-source-label-row{min-height:28px!important}
    .seljuk-source-connector .seljuk-source-branches{height:18px!important}
    .dooplay_player #playeroptions ul > li.seljuk-player-group-title .seljuk-source-branch,
    .seljuk-download-groups .seljuk-source-branch{height:17px!important}
    .seljuk-source-branch:before{height:9px!important}
    .seljuk-source-branch:after{top:7px!important}
}

/* Seljuk Play V26: balanced source groups on desktop when only 1-2 players exist */
@media(min-width:621px){
    .dooplay_player #playeroptions ul li.dooplay_player_option.seljuk-group-size-2.seljuk-group-pos-1{
        grid-column:2 / span 2!important;
    }
    .dooplay_player #playeroptions ul li.dooplay_player_option.seljuk-group-size-2.seljuk-group-pos-2{
        grid-column:4 / span 2!important;
    }
    .dooplay_player #playeroptions ul li.dooplay_player_option.seljuk-group-size-1{
        grid-column:3 / span 2!important;
        width:100%!important;
        max-width:360px!important;
        justify-self:center!important;
    }
    .dooplay_player #playeroptions ul > li.seljuk-source-connector[style*="--seljuk-group-count:2"]{
        width:66.666%!important;
        max-width:680px!important;
        justify-self:center!important;
        margin-left:auto!important;
        margin-right:auto!important;
    }
    .dooplay_player #playeroptions ul > li.seljuk-source-connector[style*="--seljuk-group-count:1"]{
        width:34%!important;
        max-width:360px!important;
        justify-self:center!important;
        margin-left:auto!important;
        margin-right:auto!important;
    }
}

/* Seljuk Play V28: locked source groups + wrapped download groups */
.dooplay_player .options.scrolling,
.dooplay_player #playeroptions,
.dooplay_player #playeroptions.options,
.dooplay_player #playeroptions.seljuk-locked-source-groups{
    max-height:none!important;
    height:auto!important;
    overflow:visible!important;
}
.dooplay_player #playeroptions ul,
.dooplay_player #playeroptions ul.ajax_mode,
.dooplay_player #playeroptions ul.no_ajax,
.dooplay_player #playeroptions ul.seljuk-player-count-1,
.dooplay_player #playeroptions ul.seljuk-player-count-2,
.dooplay_player #playeroptions ul.seljuk-player-count-3{
    display:grid!important;
    grid-template-columns:repeat(12,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    grid-auto-rows:auto!important;
    align-items:stretch!important;
    gap:10px 12px!important;
    width:100%!important;
    max-width:100%!important;
    max-height:none!important;
    height:auto!important;
    overflow:visible!important;
    margin:4px 0 10px!important;
    padding:0!important;
}
.dooplay_player #playeroptions ul > li.seljuk-source-connector,
.dooplay_player #playeroptions ul > li.seljuk-player-group-title{
    grid-column:1 / -1!important;
    width:100%!important;
    max-width:none!important;
    margin:6px 0 0!important;
    justify-self:stretch!important;
}
.dooplay_player #playeroptions ul > li.seljuk-source-connector:first-child,
.dooplay_player #playeroptions ul > li.seljuk-player-group-title:first-child{
    margin-top:0!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    justify-self:stretch!important;
    float:none!important;
}
/* 1 source = centered, 2 = centered pair, 3 = one row, 4 = one row. */
.dooplay_player #playeroptions ul li.dooplay_player_option.seljuk-group-size-1{
    grid-column:5 / span 4!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option.seljuk-group-size-2.seljuk-group-pos-1{
    grid-column:3 / span 4!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option.seljuk-group-size-2.seljuk-group-pos-2{
    grid-column:7 / span 4!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option.seljuk-group-size-3{
    grid-column:span 4!important;
}
.dooplay_player #playeroptions ul li.dooplay_player_option.seljuk-group-size-4,
.dooplay_player #playeroptions ul li.dooplay_player_option.seljuk-group-size-many{
    grid-column:span 3!important;
}

/* Each download source is a real block. Qualities wrap inside that source only. */
.seljuk-download-groups{
    width:100%!important;
    overflow:visible!important;
}
.seljuk-download-group{
    width:100%!important;
    clear:both!important;
    overflow:visible!important;
}
.seljuk-download-group + .seljuk-download-group{
    margin-top:8px!important;
    border-top:1px solid #eadfe1!important;
}
.seljuk-download-group .seljuk-source-connector{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:6px 10px 0!important;
}
.seljuk-download-group .seljuk-download-zone{
    width:100%!important;
    overflow:visible!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    padding:7px 12px 12px!important;
}
.seljuk-download-group .seljuk-download-zone.seljuk-download-count-1{
    grid-template-columns:minmax(220px,360px)!important;
    justify-content:center!important;
}
.seljuk-download-group .seljuk-download-zone.seljuk-download-count-2{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.seljuk-download-group .seljuk-download-zone.seljuk-download-count-3{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
}

@media(max-width:620px){
    .dooplay_player #playeroptions ul,
    .dooplay_player #playeroptions ul.ajax_mode,
    .dooplay_player #playeroptions ul.no_ajax,
    .dooplay_player #playeroptions ul.seljuk-player-count-1,
    .dooplay_player #playeroptions ul.seljuk-player-count-2,
    .dooplay_player #playeroptions ul.seljuk-player-count-3{
        grid-template-columns:repeat(12,minmax(0,1fr))!important;
        gap:7px!important;
        margin:2px 0 8px!important;
    }
    .dooplay_player #playeroptions ul li.dooplay_player_option.seljuk-group-size-1{
        grid-column:2 / span 10!important;
    }
    .dooplay_player #playeroptions ul li.dooplay_player_option.seljuk-group-size-2{
        grid-column:span 6!important;
    }
    .dooplay_player #playeroptions ul li.dooplay_player_option.seljuk-group-size-3{
        grid-column:span 4!important;
    }
    .dooplay_player #playeroptions ul li.dooplay_player_option.seljuk-group-size-4,
    .dooplay_player #playeroptions ul li.dooplay_player_option.seljuk-group-size-many{
        grid-column:span 6!important;
    }
    .dooplay_player #playeroptions ul > li.seljuk-source-connector,
    .dooplay_player #playeroptions ul > li.seljuk-player-group-title{
        margin-top:4px!important;
    }
    .seljuk-download-group .seljuk-download-zone,
    .seljuk-download-group .seljuk-download-zone.seljuk-download-count-many{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
        gap:7px!important;
        padding:6px 9px 10px!important;
    }
    .seljuk-download-group .seljuk-download-zone.seljuk-download-count-1{
        grid-template-columns:minmax(0,1fr)!important;
        padding-left:16%!important;
        padding-right:16%!important;
    }
    .seljuk-download-group .seljuk-download-zone.seljuk-download-count-2{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
    .seljuk-download-group .seljuk-download-zone.seljuk-download-count-3{
        grid-template-columns:repeat(3,minmax(0,1fr))!important;
    }
}
