/* =========================================================
   FULLGAME PAGE
   ALL GAME-SPECIFIC CLASSES USE fg- PREFIX
   ========================================================= */

.fg-page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.fg-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    margin-bottom: 18px;

    font-size: 12px;
    opacity: .65;
}

.fg-breadcrumb a {
    text-decoration: none;
}

.fg-breadcrumb strong {
    font-weight: 600;
    opacity: .9;
}


/* =========================================================
   TOP AREA
   ========================================================= */

.fg-top {
    display: grid;

    grid-template-columns:
        220px
        minmax(0, 1fr)
        300px;

    gap: 18px;

    margin-bottom: 18px;

    align-items: stretch;
}


/* =========================================================
   COVER
   ========================================================= */

.fg-cover {
    width: 220px;
    height: 330px;

    overflow: hidden;

    border-radius: 8px;

    background: #111820;

    border: 1px solid rgba(255,255,255,.06);

    box-sizing: border-box;
}

.fg-cover a {
    display: block;

    width: 100%;
    height: 100%;
}

.fg-cover img {
    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;
    max-height: none !important;

    object-fit: cover;
}


/* =========================================================
   INTRO
   ========================================================= */

.fg-intro {
    min-width: 0;

    padding: 4px 0;
}

.fg-intro h1 {
    margin: 0;

    font-size: 30px;
    line-height: 1.15;

    font-weight: 700;
}

.fg-subtitle {
    margin-top: 5px;

    font-size: 13px;

    opacity: .6;
}


/* =========================================================
   GAME META
   ========================================================= */

.fg-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 6px;

    margin-top: 12px;
}

.fg-meta span {
    padding: 5px 8px;

    border-radius: 4px;

    background: rgba(255,255,255,.06);

    font-size: 10px;
    line-height: 1;
}

.fg-meta .fg-platform {
    background: rgba(0,170,255,.12);

    color: #5ecbff;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.fg-description {
    max-width: 680px;

    margin: 15px 0;

    font-size: 13px;
    line-height: 1.65;

    opacity: .78;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.fg-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 16px;
}

.fg-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 40px;

    padding: 0 16px;

    border-radius: 6px;

    background: rgba(255,255,255,.06);

    text-decoration: none;

    font-size: 11px;
    font-weight: 600;

    box-sizing: border-box;

    transition:
        background .18s ease,
        transform .18s ease;
}

.fg-btn:hover {
    background: rgba(255,255,255,.10);

    transform: translateY(-1px);
}

.fg-btn-primary {
    background: #e50914;

    color: #fff;
}

.fg-btn-primary:hover {
    background: #f20d19;
}


/* =========================================================
   QUICK INFORMATION
   ========================================================= */

.fg-quick-info {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0,1fr));

    gap: 8px;

    max-width: 680px;
}

.fg-quick-item {
    min-width: 0;

    padding: 10px 11px;

    border-radius: 7px;

    background: rgba(255,255,255,.035);

    border: 1px solid rgba(255,255,255,.04);
}

.fg-quick-item span {
    display: block;

    margin-bottom: 4px;

    font-size: 9px;

    opacity: .48;
}

.fg-quick-item strong {
    display: block;

    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 10px;

    font-weight: 600;
}


/* =========================================================
   RIGHT SIDE
   ========================================================= */

.fg-side {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 8px;
}


/* =========================================================
   RATING
   ========================================================= */

.fg-rating-box {
    padding: 13px 15px;

    border-radius: 7px;

    background: rgba(255,255,255,.05);

    text-align: center;
}

.fg-rating {
    display: flex;

    align-items: baseline;
    justify-content: center;

    gap: 4px;
}

.fg-rating > span {
    color: #ffc400;

    font-size: 25px;
}

.fg-rating strong {
    font-size: 27px;
}

.fg-rating small {
    font-size: 11px;

    opacity: .55;
}

.fg-rating-label {
    margin-top: 2px;

    font-size: 9px;

    opacity: .55;
}

.fg-votes {
    margin-top: 2px;

    font-size: 9px;

    opacity: .45;
}


/* =========================================================
   GAME DETAILS
   ========================================================= */

.fg-details {
    flex: 1;

    padding: 13px 15px;

    border-radius: 7px;

    background: rgba(255,255,255,.04);

    box-sizing: border-box;
}

.fg-detail-row {
    display: grid;

    grid-template-columns:
        82px
        minmax(0,1fr);

    gap: 8px;

    align-items: start;

    padding: 7px 0;

    border-bottom:
        1px solid rgba(255,255,255,.05);

    font-size: 10px;
}

.fg-detail-row:last-child {
    border-bottom: 0;
}

.fg-detail-row label {
    opacity: .55;
}

.fg-detail-row strong {
    font-weight: 500;

    line-height: 1.4;
}


/* =========================================================
   SPECIAL VALUES
   ========================================================= */

.fg-green {
    color: #48d597 !important;
}

.fg-blue {
    color: #5ecbff !important;
}

.fg-yellow {
    color: #ffd21c !important;
}


/* =========================================================
   MIDDLE
   ========================================================= */

.fg-middle {
    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        300px;

    gap: 18px;

    margin-bottom: 18px;

    align-items: start;
}

.fg-main-column {
    min-width: 0;
}

.fg-right-column {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 10px;
}


/* =========================================================
   GAME SECTION
   ========================================================= */

.fg-section {
    min-width: 0;

    margin-bottom: 20px;
}

.fg-section-title {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 10px;
}

.fg-section-title h2 {
    margin: 0;

    font-size: 16px;
}

.fg-section-title a {
    font-size: 10px;

    text-decoration: none;

    opacity: .55;
}


/* =========================================================
   TRAILER
   ========================================================= */

.fg-video {
    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    border-radius: 7px;

    background: #111;

    border: 1px solid rgba(255,255,255,.05);
}

.fg-video .gm-player {
    width: 100%;
    height: 100%;
}


/* =========================================================
   SCREENSHOTS
   ========================================================= */

.fg-screenshots {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0,1fr));

    gap: 10px;
}

.fg-screenshot {
    min-width: 0;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    border-radius: 7px;

    background: rgba(255,255,255,.05);

    border: 1px solid rgba(255,255,255,.05);
}

.fg-screenshot a {
    display: block;

    width: 100%;
    height: 100%;
}

.fg-screenshot img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .25s ease;
}

.fg-screenshot:hover img {
    transform: scale(1.04);
}


/* =========================================================
   SYSTEM REQUIREMENTS
   ========================================================= */

.fg-requirements {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0,1fr));

    gap: 12px;
}

.fg-requirement-card {
    min-width: 0;

    padding: 14px 15px;

    border-radius: 7px;

    background: rgba(255,255,255,.04);

    border: 1px solid rgba(255,255,255,.04);

    box-sizing: border-box;
}

.fg-requirement-card h3 {
    margin: 0 0 10px;

    font-size: 12px;

    font-weight: 700;
}

.fg-requirement-card > div {
    display: grid;

    grid-template-columns:
        75px
        minmax(0,1fr);

    gap: 8px;

    padding: 7px 0;

    border-bottom:
        1px solid rgba(255,255,255,.045);

    font-size: 10px;
}

.fg-requirement-card > div:last-child {
    border-bottom: 0;
}

.fg-requirement-card span {
    opacity: .5;
}

.fg-requirement-card strong {
    font-weight: 500;

    line-height: 1.4;
}


/* =========================================================
   SHARE
   ========================================================= */

.fg-share {
    padding: 13px 15px;

    border-radius: 7px;

    background: rgba(255,255,255,.04);
}

.fg-share h2,
.fg-tech h2 {
    margin: 0 0 12px;

    font-size: 15px;
}

.fg-share-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;
}

.fg-share-buttons a {
    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255,255,255,.08);

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition:
        background .18s ease,
        transform .18s ease;
}

.fg-share-buttons a:hover {
    background: rgba(255,255,255,.14);

    transform: translateY(-1px);
}


/* =========================================================
   TECHNICAL DETAILS
   ========================================================= */

.fg-tech {
    padding: 13px 15px;

    border-radius: 7px;

    background: rgba(255,255,255,.04);
}

.fg-tech-row {
    display: grid;

    grid-template-columns:
        75px
        minmax(0,1fr);

    gap: 7px;

    padding: 7px 0;

    border-bottom:
        1px solid rgba(255,255,255,.05);

    font-size: 10px;

    align-items: start;
}

.fg-tech-row:last-child {
    border-bottom: 0;
}

.fg-tech-row label {
    opacity: .55;
}

.fg-tech-row strong {
    font-weight: 500;

    line-height: 1.4;
}


/* =========================================================
   RELATED GAMES
   ========================================================= */

.fg-related {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0,1fr));

    gap: 10px;
}

.fg-related > * {
    min-width: 0;
}


/* =========================================================
   FOOTER META
   ========================================================= */

.fg-footer-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 18px;

    padding-top: 12px;

    border-top:
        1px solid rgba(255,255,255,.06);

    font-size: 9px;

    opacity: .45;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .fg-top {
        grid-template-columns:
            180px
            minmax(0,1fr)
            260px;
    }

    .fg-cover {
        width: 180px;
        height: 270px;
    }

    .fg-middle {
        grid-template-columns:
            minmax(0,1fr)
            260px;
    }

    .fg-related {
        grid-template-columns:
            repeat(4, minmax(0,1fr));
    }

}


/* =========================================================
   TABLET / SMALL LAPTOP
   ========================================================= */

@media (max-width: 900px) {

    .fg-top {
        grid-template-columns:
            160px
            minmax(0,1fr);
    }

    .fg-cover {
        width: 160px;
        height: 240px;
    }

    .fg-side {
        grid-column: 1 / -1;

        display: grid;

        grid-template-columns:
            240px
            minmax(0,1fr);

        gap: 12px;
    }

    .fg-middle {
        grid-template-columns: 1fr;
    }

    .fg-right-column {
        display: grid;

        grid-template-columns:
            240px
            minmax(0,1fr);

        gap: 12px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .fg-page {
        width: 100%;
    }

    .fg-breadcrumb {
        font-size: 10px;

        margin-bottom: 12px;
    }


    .fg-top {
        grid-template-columns:
            105px
            minmax(0,1fr);

        gap: 12px;
    }


    .fg-cover {
        width: 105px;
        height: 158px;
    }


    .fg-intro {
        padding: 0;
    }


    .fg-intro h1 {
        font-size: 21px;
    }


    .fg-subtitle {
        font-size: 10px;
    }


    .fg-meta {
        gap: 4px;

        margin-top: 8px;
    }


    .fg-meta span {
        padding: 4px 5px;

        font-size: 9px;
    }


    .fg-description {
        grid-column: 1 / -1;

        max-width: none;

        margin: 12px 0;

        font-size: 11px;
    }


    .fg-actions {
        grid-column: 1 / -1;
    }


    .fg-quick-info {
        grid-column: 1 / -1;

        max-width: none;
    }


    .fg-side {
        grid-column: 1 / -1;

        display: flex;

        flex-direction: column;
    }


    .fg-rating-box {
        padding: 10px;
    }


    .fg-middle {
        grid-template-columns: 1fr;

        gap: 14px;
    }


    .fg-right-column {
        display: grid;

        grid-template-columns:
            1fr
            1fr;

        gap: 10px;
    }


    .fg-screenshots {
        grid-template-columns:
            repeat(2, minmax(0,1fr));

        gap: 8px;
    }


    .fg-requirements {
        grid-template-columns: 1fr;
    }


    .fg-related {
        grid-template-columns:
            repeat(3, minmax(0,1fr));

        gap: 8px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .fg-top {
        grid-template-columns:
            90px
            minmax(0,1fr);

        gap: 10px;
    }


    .fg-cover {
        width: 90px;
        height: 135px;
    }


    .fg-intro h1 {
        font-size: 18px;
    }


    .fg-subtitle {
        font-size: 9px;
    }


    .fg-meta span {
        padding: 4px;

        font-size: 8px;
    }


    .fg-description {
        font-size: 10px;
    }


    .fg-actions {
        flex-direction: column;
    }


    .fg-btn {
        width: 100%;
    }


    .fg-quick-info {
        grid-template-columns: 1fr;
    }


    .fg-quick-item {
        padding: 8px 10px;
    }


    .fg-right-column {
        grid-template-columns: 1fr;
    }


    .fg-share-buttons a {
        width: 32px;
        height: 32px;
    }


    .fg-screenshots {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }


    .fg-related {
        grid-template-columns:
            repeat(3, minmax(0,1fr));
    }


    .fg-tech-row {
        grid-template-columns:
            70px
            minmax(0,1fr);
    }

}