/* EasyBOX Play v0.38 - final shared geometry and image presentation */

:root{
    --v38-sidebar-width:260px;
    --v38-sidebar-padding-x:16px;
    --v38-brand-mark:46px;
    --v38-brand-title:29px;
    --v38-brand-subtitle:10px;
    --v38-nav-height:52px;
    --v38-nav-font:16px;
    --v38-nav-icon:21px;
}

/* Kullanıcı ve admin: aynı sol menü geometrisi */
html body .play31-app,
html body .customer34-app,
html body .admin31-app,
html body>.shell{
    grid-template-columns:
        var(--v38-sidebar-width)
        minmax(0,1fr)!important;
}

html body .play31-sidebar,
html body .customer34-sidebar,
html body .admin33-sidebar{
    width:var(--v38-sidebar-width)!important;
    min-width:var(--v38-sidebar-width)!important;
    max-width:var(--v38-sidebar-width)!important;
    height:100vh!important;
    min-height:100vh!important;
    padding:
        22px
        var(--v38-sidebar-padding-x)
        16px!important;
    gap:18px!important;
    overflow:hidden!important;
    border-right:1px solid #143047!important;
    background:
        linear-gradient(
            180deg,
            rgba(4,15,26,.995),
            rgba(2,9,16,.995)
        )!important;
    box-shadow:12px 0 34px rgba(0,0,0,.16)!important;
}

/* Admin ve kullanıcı logoları aynı ölçü */
html body .play31-brand,
html body .admin33-brand{
    width:100%!important;
    min-height:56px!important;
    height:56px!important;
    flex:0 0 56px!important;
    display:flex!important;
    align-items:center!important;
    gap:13px!important;
    padding:0 8px!important;
    margin:0!important;
    color:#fff!important;
    text-decoration:none!important;
}

html body .play31-brand-mark,
html body .admin33-brand>b{
    width:var(--v38-brand-mark)!important;
    height:var(--v38-brand-mark)!important;
    min-width:var(--v38-brand-mark)!important;
    min-height:var(--v38-brand-mark)!important;
    flex:0 0 var(--v38-brand-mark)!important;
}

html body .play31-brand>span:last-child,
html body .admin33-brand>span{
    min-width:0!important;
    display:flex!important;
    flex-direction:column!important;
    line-height:1!important;
}

html body .play31-brand strong,
html body .admin33-brand strong{
    margin:0!important;
    color:#fff!important;
    font-size:var(--v38-brand-title)!important;
    line-height:1!important;
    font-weight:800!important;
    letter-spacing:-.05em!important;
    white-space:nowrap!important;
}

html body .play31-brand small,
html body .admin33-brand small{
    margin-top:6px!important;
    color:#d0e1ea!important;
    font-size:var(--v38-brand-subtitle)!important;
    line-height:1!important;
    font-weight:800!important;
    letter-spacing:.055em!important;
    white-space:nowrap!important;
}

/* Admin ve kullanıcı kategorileri aynı ölçü */
html body .play31-nav,
html body .customer34-nav,
html body .admin33-nav{
    min-height:0!important;
    flex:1 1 auto!important;
    display:flex!important;
    flex-direction:column!important;
    gap:7px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding-right:3px!important;
    scrollbar-width:thin!important;
    scrollbar-color:#17415f transparent!important;
}

html body .play31-nav a,
html body .customer34-nav a,
html body .admin33-nav a{
    width:100%!important;
    min-height:var(--v38-nav-height)!important;
    height:var(--v38-nav-height)!important;
    flex:0 0 var(--v38-nav-height)!important;
    display:grid!important;
    grid-template-columns:30px minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:10px!important;
    padding:0 15px!important;
    border:1px solid transparent!important;
    border-radius:9px!important;
    background:transparent!important;
    color:#d4e1e9!important;
    text-decoration:none!important;
    box-shadow:none!important;
}

html body .play31-nav a:hover,
html body .customer34-nav a:hover,
html body .admin33-nav a:hover{
    color:#fff!important;
    border-color:#174c70!important;
    background:#082139!important;
}

html body .play31-nav a.active,
html body .customer34-nav a.active,
html body .admin33-nav a.active{
    color:#fff!important;
    border-color:#138fe9!important;
    background:
        linear-gradient(
            90deg,
            rgba(0,128,242,.34),
            rgba(0,77,149,.17)
        ),
        #082344!important;
    box-shadow:
        inset 3px 0 0 #21aaff,
        0 0 22px rgba(0,122,227,.13)!important;
}

html body .play31-nav a>span,
html body .customer34-nav a>span,
html body .admin33-nav a>span{
    color:#d9ebf5!important;
    font-size:var(--v38-nav-icon)!important;
    line-height:1!important;
    text-align:center!important;
}

html body .play31-nav a>b,
html body .customer34-nav a>b,
html body .admin33-nav a>b{
    min-width:0!important;
    overflow:hidden!important;
    color:inherit!important;
    font-size:var(--v38-nav-font)!important;
    line-height:1.15!important;
    font-weight:650!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
}

/* Öne çıkan oyunlar: görselin tamamı + gerçek bulanık dolgu */
html body .play31-game-card .cover{
    position:relative!important;
    width:100%!important;
    overflow:hidden!important;
    isolation:isolate!important;
    background:#071522!important;
}

html body .play38-cover-backdrop{
    position:absolute!important;
    inset:-14px!important;
    z-index:0!important;
    display:block!important;
    background-size:cover!important;
    background-position:center!important;
    background-repeat:no-repeat!important;
    filter:blur(12px) brightness(.48) saturate(.9)!important;
    transform:scale(1.09)!important;
    opacity:.85!important;
}

html body .play31-game-card .cover:before{
    display:none!important;
}

html body .play31-game-card .cover img{
    position:relative!important;
    z-index:1!important;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    display:block!important;
    padding:3px!important;
    object-fit:contain!important;
    object-position:center!important;
    filter:none!important;
}

/* Oyun kataloğu: yakınlaştırma yok, kenarlar kaybolmaz */
html body .store-game-cover{
    position:relative!important;
    overflow:hidden!important;
    isolation:isolate!important;
    background:#071522!important;
}

html body .store-game-cover:before{
    display:none!important;
}

html body .store-game-cover-backdrop{
    position:absolute!important;
    inset:-16px!important;
    z-index:0!important;
    display:block!important;
    background-size:cover!important;
    background-position:center!important;
    background-repeat:no-repeat!important;
    filter:blur(13px) brightness(.46) saturate(.9)!important;
    transform:scale(1.1)!important;
    opacity:.88!important;
}

html body .store-game-cover-image{
    position:absolute!important;
    inset:0!important;
    z-index:1!important;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    display:block!important;
    padding:6px!important;
    object-fit:contain!important;
    object-position:center!important;
    transform:none!important;
}

/* PS Store admin önizlemesi: hiçbir yönde kutudan taşmaz */
html body .ps33-cover-editor{
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
}

html body .ps33-cover-editor .cover-preview{
    position:relative!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:0!important;
    aspect-ratio:16/10!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
    border-radius:14px!important;
    background:#06131f!important;
}

html body .ps33-cover-editor .cover-preview img{
    position:static!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    min-height:0!important;
    max-width:100%!important;
    max-height:100%!important;
    display:block!important;
    padding:0!important;
    object-fit:contain!important;
    object-position:center!important;
    transform:none!important;
}

/* Referans görsellerdeki mavi/kırmızı işlem butonları */
html body .btn.primary,
html body button.btn.primary,
html body a.btn.primary,
html body .mini.primary,
html body button.mini.primary,
html body a.mini.primary,
html body .play31-action-grid button.primary,
html body .play31-rental-buttons a.primary{
    border:1px solid #27adff!important;
    border-radius:8px!important;
    background:
        linear-gradient(
            180deg,
            #20a8ff 0%,
            #108eea 48%,
            #0873d8 100%
        )!important;
    color:#fff!important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.28),
        inset 0 -1px 0 rgba(0,38,86,.38),
        0 10px 23px rgba(0,111,211,.28)!important;
}

html body .btn.danger,
html body button.btn.danger,
html body a.btn.danger,
html body .mini.danger,
html body button.mini.danger,
html body a.mini.danger,
html body .play31-early-card a{
    border:1px solid #df5055!important;
    border-radius:8px!important;
    background:
        linear-gradient(
            180deg,
            #7c2a2d 0%,
            #642023 48%,
            #481416 100%
        )!important;
    color:#ffd8da!important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 8px 20px rgba(126,25,29,.23)!important;
}

@media(min-width:1700px) and (min-height:850px){
    :root{
        --v38-sidebar-width:285px;
        --v38-sidebar-padding-x:19px;
        --v38-brand-title:32px;
        --v38-nav-height:58px;
        --v38-nav-font:17px;
    }

    html body .play31-sidebar,
    html body .customer34-sidebar,
    html body .admin33-sidebar{
        padding-top:27px!important;
        padding-bottom:20px!important;
    }

    html body .play31-brand,
    html body .admin33-brand{
        min-height:66px!important;
        height:66px!important;
        flex-basis:66px!important;
    }
}

@media(max-width:1050px){
    html body .play31-app,
    html body .customer34-app{
        display:block!important;
    }

    html body .play31-sidebar,
    html body .customer34-sidebar{
        position:fixed!important;
        width:260px!important;
        min-width:260px!important;
        max-width:260px!important;
        transform:translateX(-105%);
    }

    html body .play31-app.menu-open .play31-sidebar,
    html body .customer34-app.menu-open .customer34-sidebar{
        transform:translateX(0);
    }
}


/* EasyBOX Play v0.38.2
   game.php zoom fix + reference button finish */

html body .game-detail-hero{
    min-width:0!important;
    align-items:start!important;
}

html body .game-detail-cover{
    position:relative!important;
    min-width:0!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:16/10!important;
    display:grid!important;
    place-items:center!important;
    overflow:hidden!important;
    isolation:isolate!important;
    border-radius:20px!important;
    background:#06131f!important;
    background-image:none!important;
}

html body .game-detail-cover-backdrop{
    position:absolute!important;
    inset:-22px!important;
    z-index:0!important;
    display:block!important;
    background-size:cover!important;
    background-position:center!important;
    background-repeat:no-repeat!important;
    filter:
        blur(17px)
        brightness(.43)
        saturate(.88)!important;
    transform:scale(1.11)!important;
    opacity:.92!important;
}

html body .game-detail-cover-image{
    position:relative!important;
    z-index:1!important;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    display:block!important;
    padding:7px!important;
    object-fit:contain!important;
    object-position:center!important;
    transform:none!important;
    filter:none!important;
}

html body .game-detail-cover-shade{
    z-index:2!important;
    pointer-events:none!important;
    background:
        linear-gradient(
            0deg,
            rgba(3,11,18,.55),
            transparent 42%
        )!important;
}

html body .game-detail-cover-badges,
html body .game-detail-cover>strong{
    z-index:3!important;
}

html body .game-detail-intro,
html body .game-rental-panel{
    min-width:0!important;
}

html body .game-detail-intro h1{
    max-width:100%!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
    font-size:clamp(32px,3.1vw,56px)!important;
}

@media(max-width:1700px){
    html body .game-detail-hero{
        grid-template-columns:
            minmax(0,1.18fr)
            minmax(310px,.82fr)!important;
        gap:18px!important;
    }

    html body .game-rental-panel{
        grid-column:1/-1!important;
        display:grid!important;
        grid-template-columns:
            minmax(0,1fr)
            minmax(0,1fr)!important;
        gap:0 20px!important;
    }

    html body .game-rental-panel>h2,
    html body .game-package-selector,
    html body .game-rental-summary,
    html body .game-rental-form,
    html body .game-wallet-line,
    html body .game-rental-panel>.btn{
        grid-column:1!important;
    }

    html body .game-rental-promise,
    html body .game-next-availability{
        grid-column:2!important;
    }

    html body .game-rental-status{
        grid-column:1/-1!important;
    }
}

@media(max-width:1050px){
    html body .game-detail-hero{
        grid-template-columns:1fr!important;
    }

    html body .game-rental-panel{
        display:block!important;
    }
}

html body .btn:not(.primary):not(.danger):not(.success),
html body a.btn:not(.primary):not(.danger):not(.success),
html body button.btn:not(.primary):not(.danger):not(.success),
html body .mini:not(.primary):not(.danger):not(.success){
    border:1px solid #176fa8!important;
    border-radius:8px!important;
    background:
        linear-gradient(
            180deg,
            #0b2a45 0%,
            #081d31 52%,
            #061522 100%
        )!important;
    color:#67caff!important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.045),
        inset 0 -1px 0 rgba(0,24,49,.5),
        0 8px 19px rgba(0,0,0,.16)!important;
}

html body .game-package-selector button{
    min-height:92px!important;
    border:1px solid #244b65!important;
    border-radius:10px!important;
    background:
        linear-gradient(
            180deg,
            #0a1d2d 0%,
            #071521 100%
        )!important;
    color:#eef8fc!important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.025),
        0 8px 19px rgba(0,0,0,.13)!important;
    transition:
        transform .17s ease,
        border-color .17s ease,
        box-shadow .17s ease,
        background .17s ease!important;
}

html body .game-package-selector button:hover{
    transform:translateY(-1px)!important;
    border-color:#218fd1!important;
    background:
        linear-gradient(
            180deg,
            #0c2943,
            #071a2b
        )!important;
}

html body .game-package-selector button.selected{
    border-color:#20a9ff!important;
    background:
        linear-gradient(
            180deg,
            rgba(13,77,126,.9),
            rgba(5,35,62,.96)
        )!important;
    box-shadow:
        inset 0 0 0 1px rgba(45,181,255,.32),
        0 0 0 1px rgba(0,125,226,.35),
        0 10px 25px rgba(0,111,215,.22)!important;
}

html body .game-package-selector button.selected b{
    color:#fff!important;
    text-shadow:
        0 1px 9px rgba(35,170,255,.35)!important;
}

html body .btn.primary,
html body a.btn.primary,
html body button.btn.primary,
html body .mini.primary{
    border-color:#28b1ff!important;
    background:
        linear-gradient(
            180deg,
            #29b0ff 0%,
            #1598ef 45%,
            #0874d8 100%
        )!important;
    color:#fff!important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.31),
        inset 0 -1px 0 rgba(0,42,94,.5),
        0 11px 24px rgba(0,111,213,.3)!important;
}

html body .btn.danger,
html body a.btn.danger,
html body button.btn.danger,
html body .mini.danger{
    border-color:#df5056!important;
    background:
        linear-gradient(
            180deg,
            #873034 0%,
            #692226 48%,
            #481416 100%
        )!important;
    color:#ffe0e1!important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.09),
        inset 0 -1px 0 rgba(55,0,4,.45),
        0 9px 21px rgba(126,24,29,.24)!important;
}


/* EasyBOX Play v0.38.3
   Natural image ratio: no side bars, no bottom crop */

/*
 * Öne çıkan oyunlarda sabit yatay kutu kaldırılır.
 * Görsel normal belge akışında width:100% olur ve kendi yüksekliğini
 * doğal en-boy oranına göre belirler.
 */
html body .play31-game-grid{
    align-items:start!important;
}

html body .play31-game-card{
    height:auto!important;
    min-height:0!important;
    align-self:start!important;
}

html body .play31-game-card .cover{
    position:relative!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    display:block!important;
    overflow:hidden!important;
    isolation:isolate!important;
    background:#071522!important;
}

html body .play31-game-card .cover img{
    position:relative!important;
    inset:auto!important;
    z-index:1!important;
    width:100%!important;
    height:auto!important;
    min-width:0!important;
    min-height:0!important;
    max-width:100%!important;
    max-height:none!important;
    display:block!important;
    padding:0!important;
    margin:0!important;
    object-fit:contain!important;
    object-position:center!important;
    transform:none!important;
}

html body .play38-cover-backdrop{
    inset:0!important;
    z-index:0!important;
    filter:
        blur(15px)
        brightness(.42)
        saturate(.9)!important;
    transform:scale(1.08)!important;
}

/*
 * Oyun ayrıntısı sabit 16:10 oran kullanmaz.
 * Ana img width:100%, height:auto olduğu için kaynağın alt kısmı dahil
 * tamamı görünür ve kapsayıcı resmin gerçek yüksekliğini alır.
 */
html body .game-detail-cover{
    position:relative!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    display:block!important;
    overflow:hidden!important;
    isolation:isolate!important;
    border-radius:20px!important;
    background:#06131f!important;
    background-image:none!important;
}

html body .game-detail-cover-image{
    position:relative!important;
    inset:auto!important;
    z-index:1!important;
    width:100%!important;
    height:auto!important;
    min-width:0!important;
    min-height:0!important;
    max-width:100%!important;
    max-height:none!important;
    display:block!important;
    padding:0!important;
    margin:0!important;
    object-fit:contain!important;
    object-position:center!important;
    transform:none!important;
    filter:none!important;
}

html body .game-detail-cover-backdrop{
    inset:0!important;
    transform:scale(1.06)!important;
}

html body .game-detail-cover-shade{
    position:absolute!important;
    inset:0!important;
}

/* Kart alt metni görsel yüksekliğinden bağımsız düzgün kalır */
html body .play31-game-card .copy{
    position:relative!important;
    z-index:2!important;
    min-height:92px!important;
    height:auto!important;
}

/* Dar ekranda doğal oran korunur */
@media(max-width:760px){
    html body .play31-game-card .cover img,
    html body .game-detail-cover-image{
        width:100%!important;
        height:auto!important;
    }
}


/* EasyBOX Play v0.38.4
   Compact featured cards like the reference screenshot */

html body .play31-game-grid{
    display:grid!important;
    grid-template-columns:repeat(auto-fit,minmax(165px,1fr))!important;
    gap:14px!important;
    align-items:stretch!important;
}

html body .play31-game-card{
    height:100%!important;
    min-height:0!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
    border-radius:14px!important;
}

html body .play31-game-card .cover{
    position:relative!important;
    width:100%!important;
    height:150px!important;
    min-height:150px!important;
    max-height:150px!important;
    aspect-ratio:auto!important;
    display:block!important;
    overflow:hidden!important;
    border-bottom:1px solid rgba(35,119,180,.22)!important;
    background:#091828!important;
}

html body .play31-game-card .cover img{
    width:100%!important;
    height:100%!important;
    min-width:100%!important;
    min-height:100%!important;
    max-width:none!important;
    max-height:none!important;
    display:block!important;
    object-fit:cover!important;
    object-position:center top!important;
    padding:0!important;
    margin:0!important;
    transform:none!important;
}

html body .play38-cover-backdrop{
    inset:-8px!important;
    filter:blur(12px) brightness(.42) saturate(.86)!important;
    transform:scale(1.05)!important;
    opacity:.88!important;
}

html body .play31-game-card .copy{
    display:flex!important;
    flex-direction:column!important;
    justify-content:flex-start!important;
    gap:8px!important;
    flex:1 1 auto!important;
    min-height:96px!important;
    padding:16px 16px 18px!important;
}

html body .play31-game-card .copy h3,
html body .play31-game-card .copy .title{
    margin:0!important;
    font-size:17px!important;
    line-height:1.24!important;
    font-weight:800!important;
    letter-spacing:-0.01em!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
    min-height:42px!important;
}

html body .play31-game-card .copy .meta,
html body .play31-game-card .copy small,
html body .play31-game-card .copy p{
    margin:0!important;
}

html body .play31-game-card .badge,
html body .play31-game-card .stock,
html body .play31-game-card .status-chip{
    z-index:3!important;
}

@media(max-width:1200px){
    html body .play31-game-grid{
        grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;
    }

    html body .play31-game-card .cover{
        height:138px!important;
        min-height:138px!important;
        max-height:138px!important;
    }
}

@media(max-width:760px){
    html body .play31-game-grid{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
        gap:12px!important;
    }

    html body .play31-game-card .cover{
        height:124px!important;
        min-height:124px!important;
        max-height:124px!important;
    }

    html body .play31-game-card .copy{
        min-height:88px!important;
        padding:14px 14px 16px!important;
    }

    html body .play31-game-card .copy h3,
    html body .play31-game-card .copy .title{
        font-size:15px!important;
        min-height:38px!important;
    }
}


/* EasyBOX Play v0.38.5
   Featured covers slightly taller to reduce bottom crop */

html body .play31-game-card .cover{
    height:182px!important;
    min-height:182px!important;
    max-height:182px!important;
}

@media(max-width:1200px){
    html body .play31-game-card .cover{
        height:166px!important;
        min-height:166px!important;
        max-height:166px!important;
    }
}

@media(max-width:760px){
    html body .play31-game-card .cover{
        height:142px!important;
        min-height:142px!important;
        max-height:142px!important;
    }
}


/* EasyBOX Play v0.38.6
   Featured games: 5 per row on desktop + taller contain covers */

html body .play31-game-grid{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:14px!important;
}

html body .play31-game-card .cover{
    height:218px!important;
    min-height:218px!important;
    max-height:218px!important;
    background:#0a1624!important;
}

html body .play31-game-card .cover img{
    object-fit:contain!important;
    object-position:center center!important;
    width:100%!important;
    height:100%!important;
}

html body .play38-cover-backdrop{
    inset:-10px!important;
    filter:blur(18px) brightness(.40) saturate(.92)!important;
    transform:scale(1.08)!important;
    opacity:.92!important;
}

html body .play31-game-card .copy{
    min-height:102px!important;
}

@media(max-width:1600px){
    html body .play31-game-grid{
        grid-template-columns:repeat(4,minmax(0,1fr))!important;
    }
}

@media(max-width:1200px){
    html body .play31-game-grid{
        grid-template-columns:repeat(3,minmax(0,1fr))!important;
    }

    html body .play31-game-card .cover{
        height:198px!important;
        min-height:198px!important;
        max-height:198px!important;
    }
}

@media(max-width:900px){
    html body .play31-game-grid{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }

    html body .play31-game-card .cover{
        height:182px!important;
        min-height:182px!important;
        max-height:182px!important;
    }
}

@media(max-width:760px){
    html body .play31-game-card .cover{
        height:156px!important;
        min-height:156px!important;
        max-height:156px!important;
    }
}
