/* APKZIVA Single Midnight V1 — scoped to single WordPress posts only */
body.single-post {background:#0b191b!important;color:#eae6dc!important}
body.single-post .apkz-single-layout {max-width:1320px!important;padding-top:26px;padding-bottom:50px}
body.single-post .apkz-single-layout .apkz-single-main {max-width:100%!important;flex:0 0 100%!important;width:100%!important;min-width:0}
body.single-post .apkz-single-main {color:#dedfd7;font-size:15px;line-height:1.72}
body.single-post .apkz-single-main a {color:#b1d285}
body.single-post .apkz-single-main a:hover {color:#d0e9ae}
body.single-post .apkz-game-overview,body.single-post .apkz-panel {background:#132629;border:1px solid #314741;border-radius:17px;padding:24px;margin-bottom:22px;box-shadow:0 8px 28px rgba(0,0,0,.13)}
body.single-post .apkz-overview-row {align-items:center}
body.single-post .apkz-game-overview .col-md-5 {flex:0 0 31%;max-width:31%;text-align:left!important;margin-bottom:0!important}
body.single-post .apkz-game-overview .col-md-7 {flex:0 0 69%;max-width:69%;padding-left:25px}
body.single-post .apkz-cover-image {width:100%;max-width:290px;max-height:310px;aspect-ratio:1/1;object-fit:cover;border-radius:13px!important;display:block}
body.single-post .apkz-eyebrow {font-size:11px;letter-spacing:.16em;font-weight:700;color:#9dbd75;margin-bottom:9px}
body.single-post .apkz-game-title {font-size:clamp(24px,2.5vw,35px);line-height:1.2;color:#f3ece1;font-weight:720;margin:0 0 16px}
body.single-post .apkz-overview-excerpt,body.single-post .apkz-overview-excerpt p {font-size:14px;color:#aabbb3}
body.single-post .apkz-game-info-table {margin:0!important;color:#eee9e0!important;width:100%;font-size:14px;line-height:1.4}
body.single-post .apkz-game-info-table tr {border-bottom:1px solid #2a413c}
body.single-post .apkz-game-info-table tr:last-child {border-bottom:0}
body.single-post .apkz-game-info-table th,body.single-post .apkz-game-info-table td {border:0!important;padding:10px 8px!important;vertical-align:middle}
body.single-post .apkz-game-info-table th {font-weight:500;color:#9bafa5;width:38%;white-space:nowrap}
body.single-post .apkz-game-info-table td {color:#e9e5dc}
body.single-post .apkz-game-info-table svg {display:none}
body.single-post .apkz-panel-heading {color:#f2ede4;font-size:20px;font-weight:700;margin:0 0 20px;padding-left:13px;border-left:3px solid #91b967;line-height:1.3}
body.single-post .apkz-gallery[hidden] {display:none!important}
body.single-post .apkz-gallery-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.single-post .apkz-gallery-grid > * {display:block!important;min-width:0;max-width:100%;margin:0!important}
body.single-post .apkz-gallery-grid img {height:240px;width:100%;object-fit:cover;display:block;border-radius:10px}
body.single-post .apkz-gallery-grid figure {margin:0}
body.single-post .apkz-article-body {color:#d7ded8;font-size:15px;line-height:1.85;overflow-wrap:anywhere}
body.single-post .apkz-article-body p {color:#d7ded8;line-height:1.85;margin-bottom:17px}
body.single-post .apkz-article-body h2,body.single-post .apkz-article-body h3,body.single-post .apkz-article-body h4 {color:#f2ebdf!important;margin-top:24px;margin-bottom:13px;line-height:1.35}
body.single-post .apkz-article-body img {max-width:100%;height:auto;border-radius:10px}
body.single-post .apkz-article-body a {color:#b6d68a}
body.single-post .apkz-download-panel {scroll-margin-top:95px}
body.single-post .apkz-download-panel .fdl-box {display:grid;gap:9px}
body.single-post .apkz-download-panel .fdl-btn {display:flex!important;align-items:center!important;min-height:68px;border:1px solid #345047!important;border-radius:11px!important;background:#1b3031!important;box-shadow:none!important;color:#f0eee6!important;overflow:hidden;text-decoration:none!important;margin:0!important;transition:background .15s,border-color .15s}
body.single-post .apkz-download-panel .fdl-btn:hover {background:#25423a!important;border-color:#73985a!important}
body.single-post .apkz-download-panel .fdl-btn-title {padding:10px 12px!important;min-width:0;line-height:1.35;font-weight:600!important;color:#f0eee6!important}
body.single-post .apkz-download-panel .fdl-btn-title>div+div {font-size:12px!important;font-weight:400!important;color:#aebdb3!important;margin-top:4px}
body.single-post .apkz-download-panel .fdl-btn-icon {flex:0 0 55px!important;max-width:55px!important;background:#213b33!important;color:#aacf83!important;min-height:68px}
body.single-post .apkz-download-panel .fdl-btn-size {flex:0 0 88px!important;color:#bdcdac!important;font-weight:600!important;padding:10px;text-align:center;min-height:68px}
body.single-post .apkz-download-panel .fdl-btn-gp {background:#17292a!important}
body.single-post .apkz-single-main .rating {max-width:100%}
body.single-post .apkz-single-main .border-top,body.single-post .apkz-single-main .border-bottom {border-color:#344b45!important}
body.single-post .apkz-comments-shell {padding:0!important;overflow:hidden}
body.single-post .apkz-comments-shell>summary {list-style:none;cursor:pointer;padding:20px 23px;display:flex;justify-content:space-between;align-items:center;gap:12px;color:#f2eade;font-size:18px;font-weight:650;min-height:70px}
body.single-post .apkz-comments-shell>summary::-webkit-details-marker {display:none}
body.single-post .apkz-comments-shell>summary small {font-weight:400;font-size:13px;color:#a3b6aa;margin-left:5px}
body.single-post .apkz-comments-action {font-size:13px;font-weight:600;color:#a9cd7c;white-space:nowrap}
body.single-post .apkz-comments-action:after {content:'⌄';padding-left:7px;font-size:18px}
body.single-post .apkz-comments-shell[open] .apkz-comments-action:after {content:'⌃'}
body.single-post .apkz-comments-body {border-top:1px solid #314741;padding:24px}
body.single-post .apkz-comments-body .comments {color:#dedfd7}
body.single-post .apkz-comments-body h2,body.single-post .apkz-comments-body h3 {color:#f0e9df;font-size:18px}
body.single-post .apkz-comments-body ul {list-style:none;padding-left:0}
body.single-post .apkz-comments-body li {border-bottom:1px solid #304641;padding:12px 0;color:#e2e2da}
body.single-post .apkz-comments-body a {color:#b4d38c}
body.single-post .apkz-comments-body input,body.single-post .apkz-comments-body textarea {background:#182d2d;color:#f0eee6;border:1px solid #385148;border-radius:8px;max-width:100%}
body.single-post .apkz-comments-body img.avatar {border-radius:50%;margin-right:7px}
body.single-post .apkz-single-main .sect:not(.apkz-comments-shell) h2,body.single-post .apkz-single-main section>h2 {color:#f0ebe1}
body.single-post .apkz-single-main .sect-link {color:#b4d38c!important}
body.single-post .apkz-single-main .btn-light {background:#1b3031!important;border:1px solid #3a5349!important;color:#e8ebdf!important}
body.single-post .apkz-single-main .bg-light {background:#1c3031!important;color:#f2eade!important}
body.single-post .apkz-single-main .text-muted {color:#a4b5ac!important}
body.single-post .apkz-single-main .fdl-btn .fa,body.single-post .apkz-single-main .fdl-btn .fas {color:#aac981}
body.single-post .apkz-single-main .table-of-contents a {color:#b4d38c}
/* Keep selected downloads on their existing PHP branch and style without changing file links */
body.single-post .apkz-single-main #accordion-downloads:not(.apkz-download-panel #accordion-downloads) .fdl-btn {border-radius:10px;background:#1b3031;color:#f0eee6}
@media(min-width:1000px){body.single-post .apkz-single-layout {max-width:1220px!important}}
@media(max-width:767px){
 body.single-post .apkz-single-layout{padding-top:15px}
 body.single-post .apkz-game-overview,body.single-post .apkz-panel{padding:16px;border-radius:13px}
 body.single-post .apkz-game-overview .col-md-5,body.single-post .apkz-game-overview .col-md-7{flex:0 0 100%;max-width:100%;padding-left:15px}
 body.single-post .apkz-game-overview .col-md-5{margin-bottom:18px!important}
 body.single-post .apkz-cover-image{max-width:175px;max-height:175px}
 body.single-post .apkz-game-title{font-size:24px}
 body.single-post .apkz-game-info-table th,body.single-post .apkz-game-info-table td{padding:8px 4px!important;font-size:13px}
 body.single-post .apkz-gallery-grid{grid-template-columns:1fr}
 body.single-post .apkz-gallery-grid img{height:auto;max-height:310px;object-fit:contain;background:#0b191b}
 body.single-post .apkz-download-panel .fdl-btn-size{flex-basis:65px!important}
 body.single-post .apkz-comments-shell>summary{padding:17px;font-size:15px}
 body.single-post .apkz-comments-body{padding:17px}
}


/* APKZIVA RELATED GAMES CONTRAST V1 */

body.single-post .apkz-related-games {
    color: #d7ddd6 !important;
}

body.single-post .apkz-related-games h2,
body.single-post .apkz-related-games h2 * {
    color: #f0ebe2 !important;
}

/* Game titles from Moddroid archive cards */
body.single-post .apkz-related-games .row a,
body.single-post .apkz-related-games .row a.text-body,
body.single-post .apkz-related-games .row .text-body,
body.single-post .apkz-related-games .row .text-dark,
body.single-post .apkz-related-games .row .story-title,
body.single-post .apkz-related-games .row .story-title a {
    color: #f0ebe2 !important;
}

body.single-post .apkz-related-games .row a:hover,
body.single-post .apkz-related-games .row a:focus {
    color: #b5d883 !important;
}

/* Version and secondary game information */
body.single-post .apkz-related-games .text-muted {
    color: #a9b9ae !important;
}


/* APKZIVA LIGHTBOX V1 */
body.single-post .apkz-gallery-grid img {
    cursor: zoom-in;
}

body.single-post .apkz-gallery-grid img:focus-visible {
    outline: 2px solid #a4cb85;
    outline-offset: 4px;
}

.apkz-lightbox[hidden] {
    display: none !important;
}

.apkz-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    background: rgba(4, 12, 14, .96);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 65px 75px;
}

.apkz-lb-image {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

.apkz-lightbox button {
    position: absolute;
    color: #f0ebe2;
    background: #1a3030;
    border: 1px solid #40534c;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apkz-lightbox button:hover {
    background: #31513d;
}

.apkz-lightbox button:focus-visible {
    outline: 2px solid #a4cb85;
    outline-offset: 3px;
}

.apkz-lb-close {
    top: 22px;
    right: 25px;
}

.apkz-lb-prev {
    left: 18px;
}

.apkz-lb-next {
    right: 18px;
}

.apkz-lb-counter {
    position: absolute;
    bottom: 20px;
    color: #b8c7bc;
    font-size: 13px;
}

@media (max-width: 767px) {
    .apkz-lightbox {
        padding: 75px 12px;
    }

    .apkz-lightbox button {
        width: 38px;
        height: 38px;
    }

    .apkz-lb-prev {
        left: 8px;
        bottom: 24px;
        top: auto;
    }

    .apkz-lb-next {
        right: 8px;
        bottom: 24px;
        top: auto;
    }
}
/* END APKZIVA LIGHTBOX V1 */
