/* =========================================================
   WEB TEMPLATE / HTML DESIGN
   ALL CLASSES ARE PREFIXED WITH wt-
   ========================================================= */


/* =========================================================
   PAGE
   ========================================================= */

.wt-page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.wt-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    margin-bottom: 18px;

    font-size: 12px;
    opacity: .62;
}

.wt-breadcrumb a {
    text-decoration: none;
}

.wt-breadcrumb strong {
    font-weight: 600;
    opacity: .9;
}


/* =========================================================
   TOP AREA
   ========================================================= */

.wt-top {
    display: grid;

    grid-template-columns:
        220px
        minmax(0,1fr)
        300px;

    gap: 20px;

    margin-bottom: 26px;

    align-items: start;
}


/* =========================================================
   TEMPLATE COVER
   ========================================================= */

.wt-cover {
    position: relative;

    width: 220px;
    height: 300px;

    overflow: hidden;

    border-radius: 10px;

    background: #101820;

    border: 1px solid rgba(255,255,255,.08);

    box-shadow:
        0 18px 45px rgba(0,0,0,.28);

    box-sizing: border-box;
}


/*
   IMPORTANT:
   DLE [xfvalue_poster] can generate:

   .xfieldimagegallery
   ul
   li
   a
   img

   Everything below is scoped ONLY to .wt-cover.
*/

.wt-cover .xfieldimagegallery {
    position: absolute !important;

    inset: 0 !important;

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;

    background: transparent !important;

    border: 0 !important;

    z-index: 1 !important;
}

.wt-cover .xfieldimagegallery li {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

.wt-cover .xfieldimagegallery a {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
}

.wt-cover .xfieldimagegallery img {
    display: block !important;

    position: absolute !important;

    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;
    max-height: none !important;

    object-fit: cover !important;
    object-position: center !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
}


/* fallback if xfvalue returns normal image */

.wt-cover > img,
.wt-cover > a > img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;
    max-height: none !important;

    object-fit: cover !important;
    object-position: center !important;
}


/* =========================================================
   INTRO
   ========================================================= */

.wt-intro {
    min-width: 0;

    padding-top: 3px;
}

.wt-intro h1 {
    margin: 0;

    font-size: 31px;
    line-height: 1.15;

    font-weight: 750;
}

.wt-subtitle {
    margin-top: 6px;

    font-size: 13px;

    opacity: .52;
}


/* =========================================================
   META
   ========================================================= */

.wt-meta {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 6px;

    margin-top: 13px;
}

.wt-meta span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 24px;

    padding: 0 8px;

    border-radius: 5px;

    background: rgba(255,255,255,.065);

    border: 1px solid rgba(255,255,255,.035);

    font-size: 9px;

    line-height: 1;
}

.wt-meta .wt-free {
    color: #39d98a;

    background: rgba(40,200,110,.11);

    border-color: rgba(40,200,110,.20);

    font-weight: 700;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.wt-description {
    max-width: 760px;

    margin: 15px 0;

    font-size: 12px;

    line-height: 1.7;

    opacity: .72;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.wt-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 13px;
}

.wt-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 38px;

    padding: 0 14px;

    border-radius: 6px;

    background: rgba(255,255,255,.055);

    border: 1px solid rgba(255,255,255,.08);

    text-decoration: none;

    font-size: 10px;

    font-weight: 650;

    box-sizing: border-box;

    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease;
}

.wt-btn:hover {
    transform: translateY(-1px);

    background: rgba(255,255,255,.09);

    border-color: rgba(255,255,255,.14);
}

.wt-btn-primary {
    background: #e50914;

    border-color: #e50914;

    color: #fff;
}

.wt-btn-primary:hover {
    background: #f20d19;

    border-color: #f20d19;
}


/* =========================================================
   QUICK INFO
   ========================================================= */

.wt-quick-info {
    display: flex;

    flex-wrap: wrap;

    margin-top: 17px;
}

.wt-quick-item {
    display: flex;

    flex-direction: column;

    min-width: 105px;

    padding-right: 20px;

    margin-right: 20px;

    border-right: 1px solid rgba(255,255,255,.07);
}

.wt-quick-item:last-child {
    border-right: 0;
}

.wt-quick-item span {
    font-size: 8px;

    opacity: .42;
}

.wt-quick-item strong {
    margin-top: 4px;

    font-size: 10px;

    font-weight: 600;
}


/* =========================================================
   RIGHT SIDE
   ========================================================= */

.wt-side {
    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 9px;
}


/* =========================================================
   RATING
   ========================================================= */

.wt-rating-box {
    padding: 14px;

    border-radius: 9px;

    background: rgba(255,255,255,.045);

    border: 1px solid rgba(255,255,255,.055);

    text-align: center;
}

.wt-rating {
    display: flex;

    align-items: baseline;
    justify-content: center;

    gap: 4px;
}

.wt-rating > span {
    color: #ffc400;

    font-size: 23px;
}

.wt-rating strong {
    font-size: 27px;

    font-weight: 750;
}

.wt-rating small {
    font-size: 10px;

    opacity: .48;
}

.wt-rating-label {
    margin-top: 3px;

    font-size: 8px;

    opacity: .48;
}

.wt-votes {
    margin-top: 3px;

    font-size: 8px;

    opacity: .36;
}


/* =========================================================
   DETAILS
   ========================================================= */

.wt-details {
    padding: 11px 14px;

    border-radius: 9px;

    background: rgba(255,255,255,.032);

    border: 1px solid rgba(255,255,255,.04);
}

.wt-detail-row {
    display: grid;

    grid-template-columns:
        92px
        minmax(0,1fr);

    gap: 7px;

    align-items: start;

    padding: 8px 0;

    border-bottom:
        1px solid rgba(255,255,255,.05);

    font-size: 9px;
}

.wt-detail-row:last-child {
    border-bottom: 0;
}

.wt-detail-row label {
    opacity: .46;
}

.wt-detail-row strong {
    font-weight: 500;

    line-height: 1.4;
}

.wt-green {
    color: #39d98a !important;
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.wt-middle {
    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        300px;

    gap: 20px;

    align-items: start;
}

.wt-main-column {
    min-width: 0;
}

.wt-right-column {
    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 10px;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.wt-section {
    min-width: 0;

    margin-bottom: 23px;
}

.wt-section-title {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 10px;
}

.wt-section-title h2 {
    margin: 0;

    font-size: 16px;

    line-height: 1.2;

    font-weight: 700;
}

.wt-section-title a {
    font-size: 9px;

    text-decoration: none;

    opacity: .5;
}


/* =========================================================
   BROWSER PREVIEW
   ========================================================= */

.wt-browser {
    overflow: hidden;

    border-radius: 9px;

    background: #0e151d;

    border: 1px solid rgba(255,255,255,.07);

    box-shadow:
        0 15px 35px rgba(0,0,0,.22);
}


/* Browser top */

.wt-browser-bar {
    display: flex;

    align-items: center;

    height: 38px;

    padding: 0 11px;

    gap: 10px;

    background: #171f28;

    border-bottom: 1px solid rgba(255,255,255,.07);

    box-sizing: border-box;
}

.wt-browser-dots {
    display: flex;

    align-items: center;

    gap: 5px;

    flex: 0 0 auto;
}

.wt-browser-dots span {
    display: block;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: rgba(255,255,255,.28);
}

.wt-browser-address {
    flex: 1;

    min-width: 0;

    height: 22px;

    display: flex;

    align-items: center;

    padding: 0 9px;

    border-radius: 4px;

    background: rgba(0,0,0,.22);

    color: rgba(255,255,255,.45);

    font-size: 8px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.wt-browser-refresh {
    font-size: 13px;

    opacity: .5;
}


/* Browser screen */

.wt-browser-screen {
    position: relative;

    width: 100%;

    min-height: 470px;

    overflow: hidden;

    background: #111820;
}


/*
   Preview image / iframe / xfield
*/

.wt-browser-screen img {
    display: block;

    width: 100% !important;

    height: auto !important;

    max-width: none !important;

    object-fit: cover;
}

.wt-browser-screen iframe {
    display: block;

    width: 100%;

    min-height: 470px;

    border: 0;
}


/* =========================================================
   OVERVIEW
   ========================================================= */

.wt-overview {
    padding: 16px 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: .76;
}

.wt-overview p {
    margin: 0 0 10px;
}

.wt-overview p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   FEATURES
   ========================================================= */

.wt-features {
    display: grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap: 9px;
}

.wt-feature {
    display: flex;

    gap: 10px;

    padding: 13px;

    border-radius: 8px;

    background: rgba(255,255,255,.035);

    border: 1px solid rgba(255,255,255,.045);

    box-sizing: border-box;
}

.wt-feature > span {
    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 27px;

    width: 27px;
    height: 27px;

    border-radius: 50%;

    background: rgba(40,205,115,.12);

    color: #39d98a;

    font-size: 12px;

    font-weight: 700;
}

.wt-feature strong {
    display: block;

    font-size: 10px;

    font-weight: 650;
}

.wt-feature p {
    margin: 5px 0 0;

    font-size: 9px;

    line-height: 1.5;

    opacity: .5;
}


/* =========================================================
   SCREENSHOTS
   ========================================================= */

.wt-screenshots {
    display: grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap: 10px;
}

.wt-screenshot {
    position: relative;

    min-width: 0;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    border-radius: 8px;

    background: #111820;

    border: 1px solid rgba(255,255,255,.06);
}


/* scoped DLE gallery */

.wt-screenshot .xfieldimagegallery {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

.wt-screenshot .xfieldimagegallery li {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
}

.wt-screenshot .xfieldimagegallery a {
    display: block !important;

    width: 100% !important;
    height: 100% !important;
}

.wt-screenshot .xfieldimagegallery img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;
    max-height: none !important;

    object-fit: cover !important;

    transition: transform .25s ease;
}

.wt-screenshot:hover img {
    transform: scale(1.035);
}


/* =========================================================
   SHARE
   ========================================================= */

.wt-share {
    padding: 14px 15px;

    border-radius: 9px;

    background: rgba(255,255,255,.04);

    border: 1px solid rgba(255,255,255,.04);
}

.wt-share h2,
.wt-info-box h2,
.wt-tech h2 {
    margin: 0 0 12px;

    font-size: 14px;

    font-weight: 700;
}

.wt-share-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.wt-share-buttons a {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: rgba(255,255,255,.075);

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

    transition:
        transform .15s ease,
        background .15s ease;
}

.wt-share-buttons a:hover {
    transform: translateY(-2px);

    background: rgba(255,255,255,.13);
}


/* =========================================================
   TEMPLATE INFO
   ========================================================= */

.wt-info-box {
    padding: 14px 15px;

    border-radius: 9px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.05),
            rgba(255,255,255,.025)
        );

    border: 1px solid rgba(255,255,255,.05);
}

.wt-info-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding: 8px 0;

    border-bottom:
        1px solid rgba(255,255,255,.05);

    font-size: 9px;
}

.wt-info-row span {
    opacity: .48;
}

.wt-info-row strong {
    font-weight: 550;

    text-align: right;
}


/* Download */

.wt-download-button {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 41px;

    margin-top: 12px;

    border-radius: 6px;

    background: #e50914;

    color: #fff;

    text-decoration: none;

    font-size: 10px;

    font-weight: 700;

    transition:
        transform .16s ease,
        filter .16s ease;
}

.wt-download-button:hover {
    transform: translateY(-1px);

    filter: brightness(1.08);
}


/* =========================================================
   TECHNICAL DETAILS
   ========================================================= */

.wt-tech {
    padding: 14px 15px;

    border-radius: 9px;

    background: rgba(255,255,255,.035);

    border: 1px solid rgba(255,255,255,.04);
}

.wt-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: 9px;
}

.wt-tech-row:last-child {
    border-bottom: 0;
}

.wt-tech-row label {
    opacity: .45;
}

.wt-tech-row strong {
    font-weight: 500;

    line-height: 1.4;
}


/* =========================================================
   RELATED
   ========================================================= */

.wt-related {
    display: grid;

    grid-template-columns:
        repeat(6,minmax(0,1fr));

    gap: 10px;
}

.wt-related > * {
    min-width: 0;
}


/* =========================================================
   FOOTER
   ========================================================= */

.wt-footer-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 18px;

    padding-top: 13px;

    border-top:
        1px solid rgba(255,255,255,.06);

    font-size: 9px;

    opacity: .42;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .wt-top {
        grid-template-columns:
            180px
            minmax(0,1fr)
            260px;

        gap: 16px;
    }

    .wt-cover {
        width: 180px;
        height: 250px;
    }

    .wt-middle {
        grid-template-columns:
            minmax(0,1fr)
            260px;

        gap: 16px;
    }

    .wt-related {
        grid-template-columns:
            repeat(5,minmax(0,1fr));
    }

}


/* =========================================================
   SMALL LAPTOP
   ========================================================= */

@media (max-width: 900px) {

    .wt-top {
        grid-template-columns:
            160px
            minmax(0,1fr);
    }

    .wt-cover {
        width: 160px;
        height: 225px;
    }

    .wt-side {
        grid-column: 1 / -1;

        display: grid;

        grid-template-columns:
            240px
            minmax(0,1fr);

        gap: 10px;
    }

    .wt-middle {
        grid-template-columns: 1fr;
    }

    .wt-right-column {
        display: grid;

        grid-template-columns:
            240px
            minmax(0,1fr);

        gap: 10px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .wt-page {
        width: 100%;
    }

    .wt-breadcrumb {
        margin-bottom: 12px;

        font-size: 10px;
    }


    /* TOP */

    .wt-top {
        grid-template-columns:
            105px
            minmax(0,1fr);

        gap: 12px;

        margin-bottom: 18px;
    }

    .wt-cover {
        width: 105px;
        height: 145px;

        border-radius: 9px;
    }

    .wt-intro {
        padding: 0;
    }

    .wt-intro h1 {
        font-size: 21px;
    }

    .wt-subtitle {
        margin-top: 4px;

        font-size: 9px;
    }


    /* META */

    .wt-meta {
        gap: 4px;

        margin-top: 8px;
    }

    .wt-meta span {
        min-height: 21px;

        padding: 0 6px;

        font-size: 8px;
    }


    /* DESCRIPTION */

    .wt-description {
        grid-column: 1 / -1;

        max-width: none;

        margin: 11px 0;

        font-size: 10px;

        line-height: 1.6;
    }


    /* ACTIONS */

    .wt-actions {
        grid-column: 1 / -1;

        gap: 6px;
    }

    .wt-btn {
        min-height: 36px;

        padding: 0 10px;

        font-size: 9px;
    }


    /* QUICK INFO */

    .wt-quick-info {
        grid-column: 1 / -1;

        margin-top: 10px;
    }

    .wt-quick-item {
        min-width: 0;

        flex: 1;

        padding-right: 9px;

        margin-right: 9px;
    }

    .wt-quick-item span {
        font-size: 7px;
    }

    .wt-quick-item strong {
        font-size: 9px;
    }


    /* SIDE */

    .wt-side {
        grid-column: 1 / -1;

        display: flex;

        flex-direction: column;
    }


    /* MAIN */

    .wt-middle {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .wt-right-column {
        display: grid;

        grid-template-columns:
            1fr
            1fr;

        gap: 9px;
    }


    /* BROWSER */

    .wt-browser-screen {
        min-height: 330px;
    }

    .wt-browser-screen iframe {
        min-height: 330px;
    }


    /* SCREENSHOTS */

    .wt-screenshots {
        grid-template-columns:
            repeat(2,minmax(0,1fr));

        gap: 7px;
    }


    /* FEATURES */

    .wt-features {
        grid-template-columns: 1fr;

        gap: 7px;
    }


    /* RELATED */

    .wt-related {
        grid-template-columns:
            repeat(4,minmax(0,1fr));

        gap: 7px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .wt-top {
        grid-template-columns:
            88px
            minmax(0,1fr);

        gap: 10px;
    }

    .wt-cover {
        width: 88px;
        height: 125px;

        border-radius: 8px;
    }

    .wt-intro h1 {
        font-size: 18px;
    }

    .wt-subtitle {
        font-size: 8px;
    }

    .wt-meta {
        gap: 3px;
    }

    .wt-meta span {
        min-height: 19px;

        padding: 0 5px;

        font-size: 7px;
    }

    .wt-description {
        font-size: 9px;
    }


    /* BUTTONS */

    .wt-actions {
        flex-direction: column;
    }

    .wt-btn {
        width: 100%;
    }


    /* QUICK INFO */

    .wt-quick-item {
        padding-right: 6px;

        margin-right: 6px;
    }


    /* RIGHT COLUMN */

    .wt-right-column {
        grid-template-columns: 1fr;
    }


    /* BROWSER */

    .wt-browser-bar {
        height: 34px;
    }

    .wt-browser-screen {
        min-height: 250px;
    }

    .wt-browser-screen iframe {
        min-height: 250px;
    }


    /* SCREENSHOTS */

    .wt-screenshots {
        grid-template-columns:
            repeat(2,minmax(0,1fr));

        gap: 6px;
    }


    /* RELATED */

    .wt-related {
        grid-template-columns:
            repeat(3,minmax(0,1fr));

        gap: 6px;
    }


    /* FOOTER */

    .wt-footer-meta {
        flex-direction: column;

        gap: 5px;
    }

}