/* =========================================================
   FULL APP PAGE
   ========================================================= */

.ap-page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.ap-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    margin-bottom: 18px;

    font-size: 12px;
    opacity: .65;
}

.ap-breadcrumb a {
    text-decoration: none;
}

.ap-breadcrumb strong {
    font-weight: 600;
    opacity: .9;
}


/* =========================================================
   TOP AREA
   ========================================================= */

.ap-top {
    display: grid;

    grid-template-columns:
        190px
        minmax(0, 1fr)
        300px;

    gap: 20px;

    margin-bottom: 22px;

    align-items: stretch;
}


/* =========================================================
   APP ICON
   IMPORTANT:
   [xfvalue_poster] generates:
   ul.xfieldimagegallery.poster

   Everything is isolated ONLY inside .ap-icon
   ========================================================= */

.ap-icon {
    position: relative !important;

    width: 190px;
    height: 190px;

    min-width: 190px;
    min-height: 190px;

    overflow: hidden !important;

    border-radius: 28px;

    background: #111820;

    border: 1px solid rgba(255,255,255,.08);

    box-shadow:
        0 18px 45px rgba(0,0,0,.28);

    box-sizing: border-box;
}


/* ---------------------------------------------------------
   RESET DLE XFIELD GALLERY INSIDE APP ICON
   This cancels global .poster / .game / etc. rules.
   --------------------------------------------------------- */

.ap-icon .xfieldimagegallery,
.ap-icon .xfieldimagegallery.poster {
    position: static !important;

    inset: auto !important;

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    min-width: 0 !important;
    min-height: 0 !important;

    max-width: none !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    list-style: none !important;

    background: transparent !important;

    border: 0 !important;

    box-shadow: none !important;

    transform: none !important;
}


/* REMOVE GLOBAL .poster:after GRADIENT */

.ap-icon .xfieldimagegallery::before,
.ap-icon .xfieldimagegallery::after,
.ap-icon .xfieldimagegallery.poster::before,
.ap-icon .xfieldimagegallery.poster::after {
    content: none !important;

    display: none !important;

    position: static !important;

    background: none !important;

    width: 0 !important;
    height: 0 !important;
}


/* ---------------------------------------------------------
   XFIELD LI
   --------------------------------------------------------- */

.ap-icon .xfieldimagegallery li {
    position: static !important;

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    list-style: none !important;

    background: transparent !important;

    border: 0 !important;

    box-shadow: none !important;

    transform: none !important;
}


/* ---------------------------------------------------------
   XFIELD LINK
   --------------------------------------------------------- */

.ap-icon .xfieldimagegallery li > a,
.ap-icon .xfieldimagegallery li a {
    position: static !important;

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    background: transparent !important;

    border: 0 !important;

    box-shadow: none !important;

    text-decoration: none !important;

    transform: none !important;
}


/* ---------------------------------------------------------
   POSTER IMAGE
   --------------------------------------------------------- */

.ap-icon .xfieldimagegallery img {
    position: static !important;

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    min-width: 100% !important;
    min-height: 100% !important;

    max-width: none !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    object-fit: cover !important;
    object-position: center center !important;

    background: transparent !important;

    box-shadow: none !important;

    transform: none !important;
}


/* Prevent global image hover effects */

.ap-icon .xfieldimagegallery img:hover {
    transform: none !important;
}


/* =========================================================
   INTRO
   ========================================================= */

.ap-intro {
    min-width: 0;

    padding: 5px 0;
}

.ap-intro h1 {
    margin: 0;

    font-size: 31px;
    line-height: 1.15;

    font-weight: 750;
}

.ap-subtitle {
    margin-top: 6px;

    font-size: 13px;

    opacity: .55;
}


/* =========================================================
   META
   ========================================================= */

.ap-meta {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 6px;

    margin-top: 13px;
}

.ap-meta span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 25px;

    padding: 0 9px;

    border-radius: 5px;

    background: rgba(255,255,255,.065);

    font-size: 10px;

    line-height: 1;
}

.ap-meta .ap-free {
    background: rgba(40,190,105,.13);

    color: #39d98a;

    border: 1px solid rgba(40,190,105,.20);

    font-weight: 700;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.ap-description {
    max-width: 700px;

    margin: 15px 0;

    font-size: 13px;

    line-height: 1.65;

    opacity: .76;
}


/* =========================================================
   DOWNLOAD BUTTONS
   ========================================================= */

.ap-downloads {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 14px;
}

.ap-download {
    display: flex;

    align-items: center;

    min-width: 190px;

    min-height: 54px;

    padding: 0 13px;

    border-radius: 8px;

    text-decoration: none;

    box-sizing: border-box;

    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease;
}

.ap-download:hover {
    transform: translateY(-2px);
}

.ap-download-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    margin-right: 10px;

    font-size: 21px;
}

.ap-download-content {
    display: flex;

    flex-direction: column;

    min-width: 0;

    flex: 1;
}

.ap-download-content small {
    font-size: 9px;

    opacity: .55;

    line-height: 1.2;
}

.ap-download-content strong {
    margin-top: 2px;

    font-size: 13px;

    line-height: 1.2;
}

.ap-download-arrow {
    margin-left: 8px;

    font-size: 18px;

    opacity: .75;
}


/* Android */

.ap-download-android {
    background: rgba(50,190,105,.12);

    border: 1px solid rgba(50,190,105,.24);

    color: #fff;
}

.ap-download-android .ap-download-icon {
    color: #43d17e;
}


/* iOS */

.ap-download-ios {
    background: rgba(255,255,255,.065);

    border: 1px solid rgba(255,255,255,.11);

    color: #fff;
}

.ap-download-ios .ap-download-icon {
    color: #fff;
}


/* =========================================================
   QUICK INFO
   ========================================================= */

.ap-quick-info {
    display: flex;

    flex-wrap: wrap;

    gap: 0;

    margin-top: 17px;
}

.ap-quick-item {
    display: flex;

    flex-direction: column;

    min-width: 115px;

    padding-right: 22px;

    margin-right: 22px;

    border-right: 1px solid rgba(255,255,255,.07);
}

.ap-quick-item:last-child {
    border-right: 0;
}

.ap-quick-item span {
    font-size: 9px;

    opacity: .45;
}

.ap-quick-item strong {
    margin-top: 4px;

    font-size: 11px;

    font-weight: 600;
}


/* =========================================================
   RIGHT SIDE
   ========================================================= */

.ap-side {
    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 9px;
}


/* =========================================================
   RATING
   ========================================================= */

.ap-rating-box {
    padding: 15px;

    border-radius: 9px;

    background: rgba(255,255,255,.05);

    text-align: center;

    border: 1px solid rgba(255,255,255,.04);
}

.ap-rating {
    display: flex;

    align-items: baseline;
    justify-content: center;

    gap: 4px;
}

.ap-rating > span {
    color: #ffc400;

    font-size: 25px;
}

.ap-rating strong {
    font-size: 28px;

    font-weight: 750;
}

.ap-rating small {
    font-size: 11px;

    opacity: .5;
}

.ap-rating-label {
    margin-top: 3px;

    font-size: 9px;

    opacity: .5;
}

.ap-votes {
    margin-top: 3px;

    font-size: 9px;

    opacity: .38;
}


/* =========================================================
   DETAILS
   ========================================================= */

.ap-details {
    flex: 1;

    padding: 12px 15px;

    border-radius: 9px;

    background: rgba(255,255,255,.035);

    border: 1px solid rgba(255,255,255,.035);

    box-sizing: border-box;
}

.ap-detail-row {
    display: grid;

    grid-template-columns:
        88px
        minmax(0,1fr);

    gap: 7px;

    align-items: start;

    padding: 8px 0;

    border-bottom:
        1px solid rgba(255,255,255,.05);

    font-size: 10px;
}

.ap-detail-row:last-child {
    border-bottom: 0;
}

.ap-detail-row label {
    opacity: .48;
}

.ap-detail-row strong {
    font-weight: 500;

    line-height: 1.4;
}

.ap-green {
    color: #3ed98a !important;
}


/* =========================================================
   MAIN AREA
   ========================================================= */

.ap-middle {
    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        300px;

    gap: 20px;

    align-items: start;
}

.ap-main-column {
    min-width: 0;
}

.ap-right-column {
    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 12px;
}


/* =========================================================
   SECTION
   ========================================================= */

.ap-section {
    margin-bottom: 22px;
}

.ap-section-title {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 11px;
}

.ap-section-title h2 {
    margin: 0;

    font-size: 17px;

    font-weight: 700;
}

.ap-section-title a {
    font-size: 10px;

    text-decoration: none;

    opacity: .55;
}


/* =========================================================
   SCREENSHOTS
   ========================================================= */

.ap-screenshots {
    display: grid;

    grid-template-columns:
        repeat(4,minmax(0,1fr));

    gap: 10px;
}

.ap-screenshot {
    position: relative;

    min-width: 0;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    border-radius: 8px;

    background: rgba(255,255,255,.05);

    border: 1px solid rgba(255,255,255,.06);
}

.ap-screenshot a {
    display: block;

    width: 100%;
    height: 100%;
}

.ap-screenshot img {
    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;
    max-height: none !important;

    object-fit: cover;

    transition: transform .25s ease;
}

.ap-screenshot:hover img {
    transform: scale(1.035);
}


/* =========================================================
   OVERVIEW
   ========================================================= */

.ap-overview {
    padding: 15px 17px;

    border-radius: 8px;

    background: rgba(255,255,255,.035);

    border: 1px solid rgba(255,255,255,.04);

    font-size: 11px;

    line-height: 1.75;

    opacity: .78;
}

.ap-overview p {
    margin: 0 0 10px;
}

.ap-overview p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   FEATURES
   ========================================================= */

.ap-features {
    display: grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap: 10px;
}

.ap-feature {
    display: flex;

    gap: 11px;

    padding: 14px;

    border-radius: 8px;

    background: rgba(255,255,255,.035);

    border: 1px solid rgba(255,255,255,.045);

    box-sizing: border-box;
}

.ap-feature > span {
    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 28px;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    background: rgba(40,205,115,.12);

    color: #39d98a;

    font-size: 13px;

    font-weight: 700;
}

.ap-feature strong {
    display: block;

    font-size: 11px;

    font-weight: 650;
}

.ap-feature p {
    margin: 5px 0 0;

    font-size: 9px;

    line-height: 1.5;

    opacity: .5;
}


/* =========================================================
   APP INFORMATION
   ========================================================= */

.ap-info-grid {
    display: grid;

    grid-template-columns:
        repeat(4,minmax(0,1fr));

    gap: 9px;
}

.ap-info-card {
    padding: 13px;

    border-radius: 8px;

    background: rgba(255,255,255,.035);

    border: 1px solid rgba(255,255,255,.04);
}

.ap-info-card span {
    display: block;

    font-size: 9px;

    opacity: .45;
}

.ap-info-card strong {
    display: block;

    margin-top: 5px;

    font-size: 11px;

    font-weight: 600;
}


/* =========================================================
   RELATED
   ========================================================= */

.ap-related {
    display: grid;

    grid-template-columns:
        repeat(6,minmax(0,1fr));

    gap: 10px;
}

.ap-related > * {
    min-width: 0;
}


/* =========================================================
   SHARE
   ========================================================= */

.ap-share {
    padding: 14px 15px;

    border-radius: 9px;

    background: rgba(255,255,255,.04);

    border: 1px solid rgba(255,255,255,.04);
}

.ap-share h2,
.ap-download-box h2,
.ap-tech h2 {
    margin: 0 0 12px;

    font-size: 15px;
}

.ap-share-buttons {
    display: flex;

    gap: 9px;
}

.ap-share-buttons a {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 35px;
    height: 35px;

    border-radius: 50%;

    background: rgba(255,255,255,.075);

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

    transition:
        transform .15s ease,
        background .15s ease;
}

.ap-share-buttons a:hover {
    transform: translateY(-2px);

    background: rgba(255,255,255,.13);
}


/* =========================================================
   DOWNLOAD BOX
   ========================================================= */

.ap-download-box {
    padding: 15px;

    border-radius: 9px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.025)
        );

    border: 1px solid rgba(255,255,255,.06);

    box-sizing: border-box;
}

.ap-download-platform,
.ap-download-size {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 8px 0;

    border-bottom:
        1px solid rgba(255,255,255,.05);

    font-size: 10px;
}

.ap-download-platform span,
.ap-download-size span {
    opacity: .5;
}

.ap-download-platform strong,
.ap-download-size strong {
    font-weight: 600;
}


/* =========================================================
   MAIN DOWNLOAD BUTTON
   ========================================================= */

.ap-download-main {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 43px;

    margin-top: 9px;

    border-radius: 7px;

    text-decoration: none;

    font-size: 10px;

    font-weight: 700;

    box-sizing: border-box;

    transition:
        transform .16s ease,
        filter .16s ease;
}

.ap-download-main:hover {
    transform: translateY(-1px);

    filter: brightness(1.08);
}

.ap-download-main span {
    margin-right: 7px;

    font-size: 16px;
}


/* Android */

.ap-download-main-android {
    background: #32bd70;

    color: #fff;
}


/* iOS */

.ap-download-main-ios {
    background: rgba(255,255,255,.09);

    border:
        1px solid rgba(255,255,255,.12);

    color: #fff;
}


/* =========================================================
   TECHNICAL DETAILS
   ========================================================= */

.ap-tech {
    padding: 14px 15px;

    border-radius: 9px;

    background: rgba(255,255,255,.035);

    border:
        1px solid rgba(255,255,255,.04);
}

.ap-tech-row {
    display: grid;

    grid-template-columns:
        82px
        minmax(0,1fr);

    gap: 7px;

    padding: 8px 0;

    border-bottom:
        1px solid rgba(255,255,255,.05);

    font-size: 10px;
}

.ap-tech-row:last-child {
    border-bottom: 0;
}

.ap-tech-row label {
    opacity: .45;
}

.ap-tech-row strong {
    font-weight: 500;

    line-height: 1.4;
}


/* =========================================================
   FOOTER
   ========================================================= */

.ap-footer-meta {
    display: flex;

    gap: 18px;

    padding-top: 13px;

    border-top:
        1px solid rgba(255,255,255,.06);

    font-size: 9px;

    opacity: .42;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .ap-top {
        grid-template-columns:
            160px
            minmax(0,1fr)
            260px;
    }

    .ap-icon {
        width: 160px;
        height: 160px;

        min-width: 160px;
        min-height: 160px;

        border-radius: 24px;
    }

    .ap-middle {
        grid-template-columns:
            minmax(0,1fr)
            260px;
    }

    .ap-related {
        grid-template-columns:
            repeat(5,minmax(0,1fr));
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .ap-page {
        width: 100%;
    }

    .ap-breadcrumb {
        margin-bottom: 12px;

        font-size: 10px;
    }


    /* TOP */

    .ap-top {
        grid-template-columns:
            105px
            minmax(0,1fr);

        gap: 13px;

        margin-bottom: 17px;
    }

    .ap-icon {
        width: 105px;
        height: 105px;

        min-width: 105px;
        min-height: 105px;

        border-radius: 19px;
    }

    .ap-intro {
        padding: 0;
    }

    .ap-intro h1 {
        font-size: 21px;
    }

    .ap-subtitle {
        margin-top: 4px;

        font-size: 9px;
    }

    .ap-meta {
        gap: 4px;

        margin-top: 8px;
    }

    .ap-meta span {
        min-height: 22px;

        padding: 0 6px;

        font-size: 8px;
    }


    /* DESCRIPTION */

    .ap-description {
        grid-column: 1 / -1;

        max-width: none;

        margin: 11px 0;

        font-size: 10px;

        line-height: 1.6;
    }


    /* DOWNLOADS */

    .ap-downloads {
        grid-column: 1 / -1;

        width: 100%;

        gap: 7px;
    }

    .ap-download {
        flex: 1;

        min-width: 0;

        min-height: 48px;

        padding: 0 9px;
    }

    .ap-download-icon {
        width: 27px;

        margin-right: 7px;

        font-size: 17px;
    }

    .ap-download-content small {
        font-size: 7px;
    }

    .ap-download-content strong {
        font-size: 10px;
    }

    .ap-download-arrow {
        font-size: 15px;
    }


    /* QUICK INFO */

    .ap-quick-info {
        grid-column: 1 / -1;

        margin-top: 10px;
    }

    .ap-quick-item {
        min-width: 0;

        flex: 1;

        padding-right: 10px;

        margin-right: 10px;
    }

    .ap-quick-item span {
        font-size: 8px;
    }

    .ap-quick-item strong {
        font-size: 9px;
    }


    /* SIDE */

    .ap-side {
        grid-column: 1 / -1;
    }

    .ap-rating-box {
        padding: 11px;
    }

    .ap-details {
        padding: 9px 12px;
    }


    /* MAIN */

    .ap-middle {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .ap-right-column {
        display: grid;

        grid-template-columns:
            1fr 1fr;

        gap: 10px;
    }

    .ap-tech {
        grid-column: 1 / -1;
    }


    /* SCREENSHOTS */

    .ap-screenshots {
        grid-template-columns:
            repeat(2,minmax(0,1fr));

        gap: 7px;
    }


    /* FEATURES */

    .ap-features {
        grid-template-columns: 1fr;

        gap: 7px;
    }


    /* INFO */

    .ap-info-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));

        gap: 7px;
    }


    /* RELATED */

    .ap-related {
        grid-template-columns:
            repeat(4,minmax(0,1fr));

        gap: 7px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .ap-top {
        grid-template-columns:
            88px
            minmax(0,1fr);

        gap: 10px;
    }

    .ap-icon {
        width: 88px;
        height: 88px;

        min-width: 88px;
        min-height: 88px;

        border-radius: 17px;
    }

    .ap-intro h1 {
        font-size: 18px;
    }

    .ap-subtitle {
        font-size: 8px;
    }


    .ap-meta span {
        min-height: 20px;

        padding: 0 5px;

        font-size: 7px;
    }


    .ap-description {
        font-size: 9px;
    }


    .ap-downloads {
        flex-direction: column;
    }

    .ap-download {
        width: 100%;

        min-height: 46px;
    }


    .ap-quick-info {
        gap: 0;
    }

    .ap-quick-item {
        padding-right: 7px;

        margin-right: 7px;
    }


    .ap-right-column {
        grid-template-columns: 1fr;
    }

    .ap-tech {
        grid-column: auto;
    }


    .ap-screenshots {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }


    .ap-related {
        grid-template-columns:
            repeat(3,minmax(0,1fr));
    }


    .ap-footer-meta {
        flex-direction: column;

        gap: 5px;
    }

}