/*
 Theme Name:   Gledalica Modern Child
 Theme URI:    https://gledalica.me/
 Description:  Modern streaming-style child theme for Dooplay 2.x
 Author:       Gledalica
 Template:     dooplay
 Version:      2.0.0
 Text Domain:  gledalica-modern
*/

:root{
    --gl-bg:#05070d;
    --gl-panel:#0b101a;
    --gl-panel-2:#101827;
    --gl-text:#f8fafc;
    --gl-muted:#9ca3af;
    --gl-border:rgba(255,255,255,.08);
    --gl-red:#ff163d;
    --gl-blue:#4f8cff;
    --gl-shadow:0 24px 60px rgba(0,0,0,.45);
}

html,body{background:var(--gl-bg)!important;color:var(--gl-text)!important;}
body{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;}
a{transition:.2s ease;}

/* keep Dooplay layout safe, only polish */
#contenedor,#content,.module,.items,.module .content{background:transparent!important;}
header.main, .header, #header{background:rgba(5,7,13,.94)!important;backdrop-filter:blur(18px);border-bottom:1px solid var(--gl-border)!important;}
.search form input, input[type="search"], .search input{background:#151b27!important;border:1px solid rgba(255,255,255,.12)!important;color:#fff!important;border-radius:999px!important;}
.search form button, .search button{background:linear-gradient(135deg,var(--gl-red),#ff3b65)!important;border-radius:999px!important;box-shadow:0 10px 25px rgba(255,22,61,.24)!important;}

/* New custom homepage */
.gl-home{max-width:1220px;margin:0 auto;padding:28px 24px 60px;}
.gl-hero{position:relative;min-height:520px;border-radius:30px;overflow:hidden;background-image:var(--gl-hero-bg);background-size:cover;background-position:center;margin:18px 0 44px;box-shadow:var(--gl-shadow);border:1px solid var(--gl-border);}
.gl-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,7,13,.96) 0%,rgba(5,7,13,.78) 38%,rgba(5,7,13,.14) 72%),linear-gradient(0deg,rgba(5,7,13,.95),transparent 38%);}
.gl-hero-overlay{position:absolute;inset:auto 0 0;height:45%;background:linear-gradient(0deg,var(--gl-bg),transparent);}
.gl-hero-content{position:relative;z-index:2;max-width:610px;padding:76px 54px;}
.gl-kicker{display:inline-flex;padding:7px 12px;border-radius:999px;background:rgba(255,22,61,.14);color:#ff7890;border:1px solid rgba(255,22,61,.28);font-weight:800;text-transform:uppercase;letter-spacing:.08em;font-size:12px;margin-bottom:18px;}
.gl-hero h1{font-size:clamp(38px,6vw,74px);line-height:.95;margin:0 0 18px;color:#fff;font-weight:950;letter-spacing:-.05em;text-shadow:0 4px 32px rgba(0,0,0,.5);}
.gl-hero-meta{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px;}
.gl-hero-meta span{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.14);padding:7px 12px;border-radius:999px;font-weight:800;color:#fff;}
.gl-hero p{color:#d1d5db;font-size:17px;line-height:1.65;margin:0 0 28px;max-width:560px;}
.gl-hero-actions{display:flex;gap:12px;flex-wrap:wrap;}
.gl-btn{display:inline-flex;align-items:center;justify-content:center;padding:14px 22px;border-radius:999px;font-weight:900;text-transform:uppercase;letter-spacing:.02em;text-decoration:none!important;}
.gl-btn-primary{background:linear-gradient(135deg,var(--gl-red),#ff476b);color:#fff!important;box-shadow:0 18px 34px rgba(255,22,61,.26);}
.gl-btn-secondary{background:rgba(255,255,255,.12);color:#fff!important;border:1px solid rgba(255,255,255,.14);}
.gl-btn:hover{transform:translateY(-2px);filter:brightness(1.08);}

.gl-section{margin:0 0 42px;}
.gl-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px;padding-bottom:12px;border-bottom:1px solid var(--gl-border);}
.gl-section-head h2{margin:0;color:#fff;font-size:26px;font-weight:950;letter-spacing:-.03em;display:flex;gap:10px;align-items:center;}
.gl-section-head a{background:rgba(79,140,255,.14);color:#9fc0ff!important;border:1px solid rgba(79,140,255,.28);padding:9px 14px;border-radius:999px;text-transform:uppercase;font-size:12px;font-weight:900;text-decoration:none!important;}
.gl-section-head a:hover{background:var(--gl-blue);color:#fff!important;}

.gl-row{display:grid;grid-auto-flow:column;grid-auto-columns:168px;gap:18px;overflow-x:auto;overflow-y:hidden;padding:4px 4px 18px;scroll-snap-type:x mandatory;scrollbar-width:thin;}
.gl-row::-webkit-scrollbar{height:8px}.gl-row::-webkit-scrollbar-thumb{background:#243043;border-radius:999px}.gl-row::-webkit-scrollbar-track{background:transparent}
.gl-card{scroll-snap-align:start;min-width:0;}
.gl-card-link{text-decoration:none!important;color:inherit!important;display:block;}
.gl-card-poster{position:relative;aspect-ratio:2/3;border-radius:18px;overflow:hidden;background:#111827;border:1px solid rgba(255,255,255,.1);box-shadow:0 12px 30px rgba(0,0,0,.3);}
.gl-card-poster img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .28s ease,filter .28s ease;}
.gl-card-poster:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.58),transparent 42%);opacity:.88;transition:.2s ease;}
.gl-type,.gl-rating{position:absolute;z-index:2;font-weight:900;font-size:11px;border-radius:999px;padding:5px 8px;line-height:1;}
.gl-type{right:8px;top:8px;background:rgba(79,140,255,.95);color:#fff;}
.gl-rating{left:8px;top:8px;background:rgba(0,0,0,.62);color:#ffd166;border:1px solid rgba(255,255,255,.14);}
.gl-play{position:absolute;z-index:3;left:50%;top:50%;transform:translate(-50%,-50%) scale(.82);width:54px;height:54px;border-radius:50%;background:rgba(255,22,61,.92);display:flex;align-items:center;justify-content:center;color:#fff;font-size:20px;opacity:0;transition:.25s ease;box-shadow:0 14px 40px rgba(255,22,61,.35);}
.gl-card-info{padding:12px 4px 0;}
.gl-card-info h3{font-size:15px;line-height:1.25;color:#fff;margin:0 0 5px;font-weight:850;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.gl-card-info span{color:var(--gl-muted);font-size:13px;font-weight:700;}
.gl-card:hover .gl-card-poster img{transform:scale(1.07);filter:brightness(.72);}
.gl-card:hover .gl-play{opacity:1;transform:translate(-50%,-50%) scale(1);}
.gl-card:hover .gl-card-info h3{color:#fff;}

/* Polish existing Dooplay homepage/modules if parent renders them */
.module .content header h1,.module .content header h2,.module .content header span{color:#fff!important;}
.module .content header{border-bottom:1px solid var(--gl-border)!important;margin-bottom:22px!important;}
.items .item,.slider .item{border-radius:16px!important;overflow:hidden!important;background:transparent!important;}
.items .item .poster img,.slider .item img{border-radius:16px!important;box-shadow:0 12px 34px rgba(0,0,0,.34)!important;transition:transform .25s ease,filter .25s ease!important;}
.items .item:hover .poster img,.slider .item:hover img{transform:scale(1.035);filter:brightness(.86);}
.items .item .data h3 a,.items .item .data h3{color:#fff!important;font-weight:850!important;}
.items .item .data span{color:#9ca3af!important;}
.see-all,.see_all,.module .content header a{border-radius:999px!important;background:linear-gradient(135deg,var(--gl-blue),#70a5ff)!important;color:#fff!important;font-weight:900!important;border:0!important;padding:8px 14px!important;}

@media (max-width:900px){
    .gl-home{padding:18px 14px 46px;}
    .gl-hero{min-height:440px;border-radius:22px;}
    .gl-hero:before{background:linear-gradient(0deg,rgba(5,7,13,.96) 0%,rgba(5,7,13,.7) 56%,rgba(5,7,13,.25) 100%);}
    .gl-hero-content{padding:190px 22px 28px;}
    .gl-hero h1{font-size:38px;}
    .gl-hero p{font-size:15px;}
    .gl-row{grid-auto-columns:142px;gap:14px;}
    .gl-section-head h2{font-size:22px;}
}

@media (max-width:520px){
    .gl-row{grid-auto-columns:42vw;}
    .gl-hero{min-height:410px;}
    .gl-btn{width:100%;}
}

/* Gledalica fix: hide horizontal scrollbar lines without breaking scroll */
html, body {
    overflow-x: hidden !important;
}

.gl-row,
.items,
.owl-carousel,
.owl-stage-outer,
.home-carousel,
.movies-carousel,
.series-carousel,
.slider,
.slider_items {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

.gl-row::-webkit-scrollbar,
.items::-webkit-scrollbar,
.owl-carousel::-webkit-scrollbar,
.owl-stage-outer::-webkit-scrollbar,
.home-carousel::-webkit-scrollbar,
.movies-carousel::-webkit-scrollbar,
.series-carousel::-webkit-scrollbar,
.slider::-webkit-scrollbar,
.slider_items::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Hero autoplay slider */
.gl-hero-slider {
    position: relative;
    margin: 18px 0 44px;
}

.gl-hero-slide {
    display: none;
    opacity: 0;
    transform: scale(.985);
    transition: opacity .75s ease, transform .75s ease;
    margin: 0 !important;
}

.gl-hero-slide.is-active {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.gl-hero-dots {
    position: absolute;
    z-index: 8;
    left: 54px;
    bottom: 28px;
    display: flex;
    gap: 8px;
}

.gl-hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 99px;
    border: 0;
    background: rgba(255,255,255,.35);
    cursor: pointer;
    padding: 0;
    transition: .25s ease;
}

.gl-hero-dot.is-active {
    width: 32px;
    background: var(--gl-red, #ff163d);
}

@media (max-width:900px){
    .gl-hero-dots{left:22px;bottom:18px;}
}


/* Autoplay rows: keep horizontal movement clean and invisible */
.gl-section .gl-row {
    overflow-x: auto !important;
    overflow-y: visible !important;
    scroll-behavior: smooth;
    cursor: grab;
    padding-bottom: 6px !important;
}

.gl-section .gl-row:active {
    cursor: grabbing;
}

.gl-section .gl-row::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
}


/* Gledalica custom archive pages */
.gl-archive{
    max-width:1220px;
    margin:0 auto;
    padding:34px 24px 70px;
}
.gl-archive-hero{
    position:relative;
    overflow:hidden;
    border:1px solid var(--gl-border);
    border-radius:28px;
    padding:44px 42px;
    margin:20px 0 34px;
    background:
        radial-gradient(circle at 16% 20%, rgba(255,22,61,.22), transparent 34%),
        radial-gradient(circle at 80% 0%, rgba(79,140,255,.18), transparent 35%),
        linear-gradient(135deg, rgba(16,24,39,.96), rgba(5,7,13,.96));
    box-shadow:var(--gl-shadow);
}
.gl-archive-hero h1{
    margin:0 0 10px;
    color:#fff;
    font-size:clamp(38px,5vw,64px);
    line-height:1;
    font-weight:950;
    letter-spacing:-.05em;
}
.gl-archive-hero p{
    max-width:680px;
    margin:0;
    color:var(--gl-muted);
    font-size:17px;
    line-height:1.6;
}
.gl-grid-wrap{
    margin-top:10px;
}
.gl-grid{
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:28px 20px;
}
.gl-grid .gl-card{
    min-width:0;
}
.gl-grid .gl-card-poster{
    aspect-ratio:2/3;
}
.gl-pagination{
    display:flex;
    justify-content:center;
    gap:8px;
    margin:44px 0 0;
    flex-wrap:wrap;
}
.gl-pagination .page-numbers{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:42px;
    height:42px;
    padding:0 14px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.1);
    background:rgba(255,255,255,.05);
    color:#fff;
    font-weight:800;
}
.gl-pagination .page-numbers.current,
.gl-pagination .page-numbers:hover{
    background:linear-gradient(135deg,var(--gl-red),#ff4b71);
    border-color:transparent;
    color:#fff;
    box-shadow:0 12px 28px rgba(255,22,61,.25);
}
.gl-empty{
    border:1px solid var(--gl-border);
    border-radius:22px;
    padding:32px;
    background:rgba(255,255,255,.04);
}

@media(max-width:1100px){
    .gl-grid{grid-template-columns:repeat(5,minmax(0,1fr));}
}
@media(max-width:860px){
    .gl-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 14px;}
    .gl-archive{padding-left:16px;padding-right:16px;}
    .gl-archive-hero{padding:32px 24px;}
}
@media(max-width:640px){
    .gl-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:420px){
    .gl-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}


/* Gledalica modern single movie / tv page */
.gl-single{
    max-width:1220px;
    margin:0 auto;
    padding:24px 24px 70px;
}
.gl-single-hero{
    position:relative;
    overflow:hidden;
    border-radius:32px;
    border:1px solid var(--gl-border);
    min-height:620px;
    background-image:var(--gl-single-bg);
    background-size:cover;
    background-position:center;
    box-shadow:var(--gl-shadow);
}
.gl-single-hero:before{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(90deg,rgba(5,7,13,.98) 0%,rgba(5,7,13,.86) 38%,rgba(5,7,13,.22) 76%),
        linear-gradient(0deg,rgba(5,7,13,.97),transparent 45%);
}
.gl-single-shade{
    position:absolute;
    inset:auto 0 0;
    height:45%;
    background:linear-gradient(0deg,var(--gl-bg),transparent);
}
.gl-single-inner{
    position:relative;
    z-index:2;
    display:grid;
    grid-template-columns:310px minmax(0,1fr);
    gap:42px;
    align-items:center;
    min-height:620px;
    padding:58px;
}
.gl-single-poster img{
    width:100%;
    aspect-ratio:2/3;
    object-fit:cover;
    border-radius:24px;
    border:1px solid rgba(255,255,255,.14);
    box-shadow:0 28px 70px rgba(0,0,0,.55);
}
.gl-single-info h1{
    margin:0 0 18px;
    color:#fff;
    font-size:clamp(38px,6vw,72px);
    line-height:.95;
    font-weight:950;
    letter-spacing:-.055em;
    text-shadow:0 4px 30px rgba(0,0,0,.55);
}
.gl-single-meta{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin:0 0 14px;
}
.gl-single-meta span{
    display:inline-flex;
    align-items:center;
    padding:7px 12px;
    border-radius:999px;
    color:#fff;
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.15);
    font-weight:900;
}
.gl-single-genres{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:0 0 20px;
}
.gl-single-genres a{
    display:inline-flex;
    padding:7px 11px;
    border-radius:999px;
    color:#dbeafe;
    background:rgba(79,140,255,.13);
    border:1px solid rgba(79,140,255,.22);
    font-weight:800;
    font-size:13px;
}
.gl-single-info p{
    max-width:680px;
    color:#d1d5db;
    font-size:17px;
    line-height:1.7;
    margin:0 0 30px;
}
.gl-single-panel,
.gl-single-details,
.gl-single-related{
    margin-top:34px;
}
.gl-single-panel{
    border:1px solid var(--gl-border);
    border-radius:26px;
    background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.018));
    padding:24px;
    box-shadow:0 18px 48px rgba(0,0,0,.28);
}
.gl-single-panel h2,
.gl-detail-card h2{
    margin:0 0 18px;
    color:#fff;
    font-size:26px;
    font-weight:950;
    letter-spacing:-.03em;
}
.gl-player-wrap{
    overflow:hidden;
    border-radius:20px;
    background:#000;
    min-height:180px;
}
.gl-player-wrap iframe,
.gl-player-wrap video,
.gl-player-wrap embed{
    width:100%!important;
    max-width:100%!important;
    min-height:520px;
    border:0;
}
.gl-single-details{
    display:grid;
    grid-template-columns:1.4fr .8fr;
    gap:22px;
}
.gl-detail-card{
    border:1px solid var(--gl-border);
    border-radius:24px;
    background:rgba(255,255,255,.04);
    padding:26px;
}
.gl-detail-card p,
.gl-detail-card li{
    color:#d1d5db;
    line-height:1.75;
    font-size:15px;
}
.gl-detail-card ul{
    margin:0;
    padding-left:18px;
}
.gl-detail-card strong{
    color:#fff;
}
@media(max-width:900px){
    .gl-single-inner{
        grid-template-columns:1fr;
        padding:34px 24px;
        min-height:auto;
    }
    .gl-single-poster{
        max-width:250px;
    }
    .gl-single-hero{
        min-height:auto;
    }
    .gl-single-details{
        grid-template-columns:1fr;
    }
    .gl-player-wrap iframe,
    .gl-player-wrap video,
    .gl-player-wrap embed{
        min-height:320px;
    }
}
@media(max-width:560px){
    .gl-single{
        padding-left:14px;
        padding-right:14px;
    }
    .gl-single-info h1{
        font-size:34px;
    }
    .gl-single-poster{
        max-width:190px;
    }
}


/* Direct Dooplay iframe fallback player */
.gl-direct-player{
    width:100%;
}
.gl-direct-player iframe,
.gl-direct-player video{
    display:block;
    width:100%!important;
    aspect-ratio:16/9;
    min-height:520px;
    background:#000;
    border:0;
    border-radius:18px;
}
.gl-player-sources{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    padding:14px 0 0;
}
.gl-source-btn{
    cursor:pointer;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(255,255,255,.08);
    color:#fff;
    border-radius:999px;
    padding:10px 14px;
    font-weight:900;
}
.gl-source-btn.is-active,
.gl-source-btn:hover{
    background:linear-gradient(135deg,var(--gl-red),#ff4b71);
    border-color:transparent;
}
.gl-no-player{
    padding:28px;
    color:#fff;
    background:rgba(255,255,255,.06);
    border-radius:18px;
    border:1px solid rgba(255,255,255,.12);
}
@media(max-width:900px){
    .gl-direct-player iframe,
    .gl-direct-player video{
        min-height:320px;
    }
}


/* TV show seasons/episodes modern styling */
.gl-tv-episodes-panel .gl-panel-note{
    color:var(--gl-muted);
    margin:-8px 0 20px;
}
.gl-tv-episodes-wrap #episodes,
.gl-tv-episodes-wrap .sbox{
    background:transparent!important;
    border:0!important;
    padding:0!important;
    margin:0!important;
}
.gl-tv-episodes-wrap #episodes > h2{
    display:none;
}
.gl-tv-episodes-wrap #serie_contenido,
.gl-tv-episodes-wrap #seasons{
    background:transparent!important;
}
.gl-tv-episodes-wrap .se-c{
    overflow:hidden;
    border:1px solid var(--gl-border)!important;
    border-radius:18px!important;
    background:rgba(255,255,255,.04)!important;
    margin:0 0 14px!important;
}
.gl-tv-episodes-wrap .se-q,
.gl-season-title{
    cursor:pointer;
    display:flex!important;
    align-items:center!important;
    gap:14px;
    padding:16px 18px!important;
    background:rgba(255,255,255,.055)!important;
    border:0!important;
}
.gl-tv-episodes-wrap .se-q .se-t,
.gl-season-title .se-t{
    width:42px!important;
    height:42px!important;
    border-radius:14px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:linear-gradient(135deg,var(--gl-red),#ff4b71)!important;
    color:#fff!important;
    font-weight:950!important;
}
.gl-tv-episodes-wrap .se-q .title,
.gl-season-title .title{
    color:#fff!important;
    font-size:18px!important;
    font-weight:950!important;
}
.gl-tv-episodes-wrap .se-a{
    padding:0 16px 16px!important;
    background:transparent!important;
}
.gl-tv-episodes-wrap ul.episodios{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px!important;
    margin:0!important;
    padding:0!important;
}
.gl-tv-episodes-wrap ul.episodios li{
    list-style:none!important;
    margin:0!important;
    background:rgba(0,0,0,.25)!important;
    border:1px solid rgba(255,255,255,.08)!important;
    border-radius:16px!important;
    overflow:hidden!important;
    transition:.2s ease!important;
}
.gl-tv-episodes-wrap ul.episodios li:hover{
    transform:translateY(-2px);
    border-color:rgba(79,140,255,.45)!important;
    background:rgba(79,140,255,.08)!important;
}
.gl-tv-episodes-wrap ul.episodios li a{
    display:grid!important;
    grid-template-columns:110px 64px minmax(0,1fr);
    align-items:center;
    gap:12px;
    padding:10px!important;
    color:#fff!important;
    text-decoration:none!important;
}
.gl-tv-episodes-wrap .imagen{
    width:110px!important;
    height:62px!important;
    border-radius:12px!important;
    overflow:hidden!important;
    background:#0b101a!important;
}
.gl-tv-episodes-wrap .imagen img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    display:block!important;
}
.gl-tv-episodes-wrap .numerando{
    color:#fff!important;
    font-weight:950!important;
    font-size:15px!important;
    opacity:1!important;
}
.gl-tv-episodes-wrap .episodiotitle{
    min-width:0;
    color:#fff!important;
    font-weight:850!important;
    line-height:1.25!important;
}
.gl-tv-episodes-wrap .episodiotitle a{
    color:#fff!important;
}
.gl-tv-episodes-wrap .episodiotitle .date,
.gl-tv-episodes-wrap .date{
    display:block!important;
    color:var(--gl-muted)!important;
    font-size:12px!important;
    margin-top:4px!important;
}
.gl-tv-episodes-wrap li.none{
    padding:18px!important;
    color:var(--gl-muted)!important;
    grid-column:1/-1;
}
@media(max-width:760px){
    .gl-tv-episodes-wrap ul.episodios{
        grid-template-columns:1fr;
    }
    .gl-tv-episodes-wrap ul.episodios li a{
        grid-template-columns:96px 54px minmax(0,1fr);
    }
    .gl-tv-episodes-wrap .imagen{
        width:96px!important;
        height:54px!important;
    }
}


/* Inline TV player on show page */
.gl-tv-watch-panel{
    margin-bottom:28px;
}
.gl-tv-inline-player{
    overflow:hidden;
    border-radius:20px;
    background:#000;
    min-height:360px;
    border:1px solid rgba(255,255,255,.08);
}
.gl-tv-inline-player iframe,
.gl-tv-inline-player video{
    display:block;
    width:100%!important;
    aspect-ratio:16/9;
    min-height:520px;
    background:#000;
    border:0;
}
.gl-tv-player-empty{
    min-height:360px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    color:#fff;
    background:
        radial-gradient(circle at 50% 0%, rgba(79,140,255,.14), transparent 36%),
        linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
}
.gl-tv-player-empty span{
    width:72px;
    height:72px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    background:linear-gradient(135deg,var(--gl-red),#ff4b71);
    box-shadow:0 18px 42px rgba(255,22,61,.28);
    margin-bottom:16px;
    font-size:26px;
}
.gl-tv-player-empty strong{
    font-size:24px;
    font-weight:950;
}
.gl-tv-player-empty p{
    margin:8px 0 0;
    color:var(--gl-muted);
}
.gl-current-episode{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:14px 18px;
    background:rgba(255,255,255,.06);
    border-bottom:1px solid rgba(255,255,255,.08);
    color:#fff;
}
.gl-current-episode span{
    color:var(--gl-muted);
    font-size:13px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.05em;
}
.gl-current-episode strong{
    font-weight:950;
}
.gl-tv-episodes-wrap ul.episodios li button.gl-episode-play{
    all:unset;
    box-sizing:border-box;
    cursor:pointer;
    display:grid!important;
    grid-template-columns:110px 64px minmax(0,1fr);
    align-items:center;
    gap:12px;
    width:100%;
    padding:10px!important;
    color:#fff!important;
}
.gl-tv-episodes-wrap ul.episodios li.is-playing{
    border-color:rgba(255,22,61,.7)!important;
    background:rgba(255,22,61,.10)!important;
    box-shadow:0 0 0 1px rgba(255,22,61,.15), 0 18px 40px rgba(255,22,61,.10);
}
.gl-tv-episodes-wrap ul.episodios li.is-disabled{
    opacity:.55;
}
@media(max-width:900px){
    .gl-tv-inline-player iframe,
    .gl-tv-inline-player video{
        min-height:320px;
    }
}
@media(max-width:760px){
    .gl-tv-episodes-wrap ul.episodios li button.gl-episode-play{
        grid-template-columns:96px 54px minmax(0,1fr);
    }
}


/* Fix single pages layout: keep details below player/episodes, not on the side */
.gl-single{
    max-width:1220px !important;
    width:100% !important;
    box-sizing:border-box !important;
}

.gl-single-panel,
.gl-tv-watch-panel,
.gl-tv-episodes-panel,
.gl-single-details,
.gl-single-related{
    width:100% !important;
    max-width:100% !important;
    clear:both !important;
    float:none !important;
    box-sizing:border-box !important;
}

.gl-single-details{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:22px !important;
    align-items:stretch !important;
    margin-top:34px !important;
}

.gl-detail-card{
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
}

/* Make related section full width under details */
.gl-single-related{
    display:block !important;
    margin-top:36px !important;
}

/* TV episode list should use full width nicely */
.gl-tv-episodes-panel{
    margin-top:28px !important;
}

.gl-tv-episodes-wrap{
    width:100% !important;
    max-width:100% !important;
}

.gl-tv-episodes-wrap ul.episodios{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}

/* Hide/neutralize accidental Dooplay sidebar behavior inside custom single pages */
.gl-single .sidebar,
.gl-single .scrolling{
    float:none !important;
}

/* Better mobile and medium screens */
@media(max-width:980px){
    .gl-tv-episodes-wrap ul.episodios{
        grid-template-columns:1fr !important;
    }
}

@media(max-width:760px){
    .gl-single{
        padding-left:14px !important;
        padding-right:14px !important;
    }

    .gl-single-panel,
    .gl-detail-card{
        border-radius:20px !important;
        padding:18px !important;
    }
}


/* Fix season number badge overlapping "Sezona" title */
.gl-tv-episodes-wrap .se-q,
.gl-season-title{
    display:flex !important;
    align-items:center !important;
    gap:16px !important;
    padding:18px 22px !important;
    position:relative !important;
}

.gl-tv-episodes-wrap .se-q .se-t,
.gl-season-title .se-t{
    position:static !important;
    flex:0 0 46px !important;
    width:46px !important;
    height:46px !important;
    min-width:46px !important;
    margin:0 !important;
    transform:none !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    border-radius:16px !important;
    font-size:22px !important;
    line-height:1 !important;
    z-index:1 !important;
}

.gl-tv-episodes-wrap .se-q .title,
.gl-season-title .title{
    display:block !important;
    margin:0 !important;
    padding:0 !important;
    color:#fff !important;
    font-size:20px !important;
    font-weight:950 !important;
    line-height:1.2 !important;
    white-space:normal !important;
    overflow:visible !important;
}

@media(max-width:560px){
    .gl-tv-episodes-wrap .se-q,
    .gl-season-title{
        gap:12px !important;
        padding:15px 16px !important;
    }

    .gl-tv-episodes-wrap .se-q .se-t,
    .gl-season-title .se-t{
        flex-basis:42px !important;
        width:42px !important;
        height:42px !important;
        min-width:42px !important;
        font-size:20px !important;
    }

    .gl-tv-episodes-wrap .se-q .title,
    .gl-season-title .title{
        font-size:18px !important;
    }
}


/* Strong fix: season title must never be covered when season opens/closes */
.gl-tv-episodes-wrap .se-c .se-q,
.gl-tv-episodes-wrap .se-c .se-q.se-o,
.gl-tv-episodes-wrap .se-c.open .se-q,
.gl-tv-episodes-wrap .se-c.active .se-q,
.gl-tv-episodes-wrap .se-q.gl-season-title,
.gl-season-title{
    display:grid !important;
    grid-template-columns:46px minmax(0,1fr) !important;
    align-items:center !important;
    column-gap:16px !important;
    padding:18px 22px !important;
    position:relative !important;
    min-height:72px !important;
    box-sizing:border-box !important;
}

.gl-tv-episodes-wrap .se-c .se-q .se-t,
.gl-tv-episodes-wrap .se-c .se-q .se-t.se-o,
.gl-tv-episodes-wrap .se-c .se-q span.se-t,
.gl-season-title .se-t,
.gl-season-title .se-t.se-o{
    position:relative !important;
    left:auto !important;
    right:auto !important;
    top:auto !important;
    bottom:auto !important;
    transform:none !important;
    float:none !important;
    grid-column:1 !important;
    grid-row:1 !important;
    width:46px !important;
    height:46px !important;
    min-width:46px !important;
    max-width:46px !important;
    margin:0 !important;
    padding:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    border-radius:16px !important;
    font-size:22px !important;
    line-height:1 !important;
    text-indent:0 !important;
    z-index:1 !important;
}

.gl-tv-episodes-wrap .se-c .se-q .title,
.gl-tv-episodes-wrap .se-c .se-q span.title,
.gl-season-title .title{
    position:relative !important;
    left:auto !important;
    right:auto !important;
    top:auto !important;
    bottom:auto !important;
    transform:none !important;
    float:none !important;
    grid-column:2 !important;
    grid-row:1 !important;
    display:block !important;
    width:auto !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
    color:#fff !important;
    font-size:20px !important;
    font-weight:950 !important;
    line-height:1.2 !important;
    white-space:normal !important;
    overflow:visible !important;
    text-indent:0 !important;
    z-index:2 !important;
}

/* Remove old absolute offsets from Dooplay if they appear */
.gl-tv-episodes-wrap .se-c .se-q:before,
.gl-tv-episodes-wrap .se-c .se-q:after{
    pointer-events:none !important;
}

@media(max-width:560px){
    .gl-tv-episodes-wrap .se-c .se-q,
    .gl-tv-episodes-wrap .se-c .se-q.se-o,
    .gl-season-title{
        grid-template-columns:42px minmax(0,1fr) !important;
        column-gap:12px !important;
        padding:15px 16px !important;
        min-height:66px !important;
    }

    .gl-tv-episodes-wrap .se-c .se-q .se-t,
    .gl-tv-episodes-wrap .se-c .se-q .se-t.se-o,
    .gl-season-title .se-t,
    .gl-season-title .se-t.se-o{
        width:42px !important;
        height:42px !important;
        min-width:42px !important;
        max-width:42px !important;
        font-size:20px !important;
    }

    .gl-tv-episodes-wrap .se-c .se-q .title,
    .gl-season-title .title{
        font-size:18px !important;
    }
}


/* Final fix: prevent season open/close flicker. Keep episode lists visible. */
.gl-tv-episodes-wrap .se-a,
.gl-tv-episodes-wrap .se-c .se-a,
.gl-tv-episodes-wrap .gl-episodes-list{
    display:block !important;
    opacity:1 !important;
    visibility:visible !important;
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
}

.gl-tv-episodes-wrap .se-q,
.gl-tv-episodes-wrap .gl-season-title{
    cursor:default !important;
}

.gl-tv-episodes-wrap .se-c{
    opacity:1 !important;
    visibility:visible !important;
}

.gl-tv-episodes-wrap ul.episodios{
    display:grid !important;
    opacity:1 !important;
    visibility:visible !important;
}

.gl-tv-episodes-wrap .se-c .se-q .title,
.gl-season-title .title{
    opacity:1 !important;
    visibility:visible !important;
}
