.cpg-game-profile {
    position: relative;
    background: linear-gradient(145deg, #101728 0%, #1b2435 100%);
    color: #fff;
    padding: clamp(32px, 4vw, 48px) clamp(24px, 4vw, 60px);
    margin: 32px auto;
    border-radius: 18px;
    font-size: 15px;
    box-sizing: border-box;
    box-shadow: 0 20px 40px rgba(3, 12, 24, 0.5);
    border: 1px solid rgba(255,255,255,0.06);
    width: min(100%, 960px);
}

.cpg-game-profile__header {
    margin: 0 0 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0 12px 12px;
}

.cpg-game-profile__title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.cpg-game-profile__body {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding: 0 12px;
}

.cpg-game-profile__cover {
    flex-shrink: 0;
    padding: 12px 14px;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cpg-game-profile__cover img {
    display: block;
    border-radius: 10px;
    max-width: 190px;
    width: 100%;
    height: auto;
    box-shadow: 0 12px 24px rgba(2, 6, 12, 0.45);
}

.cpg-game-profile__meta {
    flex: 1;
}

.cpg-game-profile__description {
    margin-top: 0;
    margin-bottom: 8px;
}

.cpg-game-profile__description p {
    margin: 0 0 10px;
}

.cpg-game-profile__description p:last-child {
    margin-bottom: 0;
}

.cpg-game-profile__list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
    display: grid;
    gap: 6px;
}

.cpg-game-profile__list li {
    margin-bottom: 4px;
}

.cpg-game-profile__btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 11px 20px;
    text-decoration: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #2a8dff, #1f6cf0);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 10px 20px rgba(32, 115, 255, 0.3);
    min-height: 44px;
}

.cpg-game-profile__btn--secondary {
    background: rgba(255,255,255,0.1);
    box-shadow: none;
    border: 1px solid rgba(255,255,255,0.2);
    margin-top: 8px;
}

.cpg-game-profile__btn--platform {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cpg-game-profile__btn--platform i {
    font-size: 16px;
}

.cpg-game-profile__btn--playstation {
    background: linear-gradient(135deg, #0038a8, #4f6ef7);
}

.cpg-game-profile__btn--xbox {
    background: linear-gradient(135deg, #0b8a13, #3fd05f);
}

.cpg-game-profile__btn--nintendo {
    background: linear-gradient(135deg, #c30010, #ff4b2b);
}

.cpg-game-profile__btn--steam {
    background: linear-gradient(135deg, #1c2838, #2a475e);
}

.cpg-game-profile__btn--epic {
    background: linear-gradient(135deg, #5c54ff, #a855f7);
}

.cpg-game-profile__btn--gog {
    background: linear-gradient(135deg, #6a4c8c, #a077c9);
}

.cpg-game-profile__actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    align-items: stretch;
    margin-top: 20px;
}

.cpg-game-profile__link--official {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 4px;
    color: #9ec5ff;
}

.cpg-game-profile__link {
    color: #9ec5ff;
    font-size: 13px;
    text-decoration: none;
}

.cpg-game-profile__link:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .cpg-game-profile__body {
        flex-direction: column;
        gap: 20px;
    }

    .cpg-game-profile {
        padding: 24px 18px;
        margin: 24px auto;
        width: calc(100% - 20px);
    }

    .cpg-game-profile__cover {
        padding: 6px;
        margin: 0 auto;
        max-width: 220px;
        width: 100%;
    }

    .cpg-game-profile__title {
        font-size: 22px;
        text-align: center;
    }

    .cpg-game-profile__subtitle {
        text-align: center;
        margin-top: 6px;
    }

    .cpg-game-profile__meta {
        text-align: left;
    }
}

.cpg-upcoming-games {
    background: #111727;
    color: #fff;
    padding: 18px;
    border-radius: 12px;
    margin: 24px auto;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.04);
    width: 100%;
}

.cpg-upcoming-games--widget {
    max-width: 420px;
}

.cpg-upcoming-games--full {
    max-width: none;
}

.cpg-upcoming-games__header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 12px;
    padding-bottom: 8px;
}

.cpg-upcoming-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    background: rgba(0,0,0,0.15);
    padding: 14px;
    border-radius: 12px;
}

.cpg-upcoming-filter__group {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cpg-upcoming-filter__group input,
.cpg-upcoming-filter__group select {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(10,14,24,0.8);
    color: #fff;
}

.cpg-upcoming-filter__actions {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.cpg-upcoming-games__title {
    margin: 0;
    font-size: 18px;
}

.cpg-upcoming-games__filter {
    margin: 4px 0 0;
    font-size: 13px;
    color: #9ec5ff;
}

.cpg-upcoming-wrapper {
    width: 100%;
    margin: 0 auto 32px;
    padding: 0;
    box-sizing: border-box;
}

.cpg-upcoming-wrapper--full {
    max-width: 1200px;
}

.cpg-upcoming-wrapper--widget {
    max-width: 420px;
}

.cpg-upcoming-wrapper--full {
    max-width: 1200px;
}

.cpg-upcoming-wrapper--widget {
    max-width: 420px;
}

.cpg-upcoming-games__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.content-inner .cpg-upcoming-wrapper,
.content-inner .cpg-upcoming-games__list,
.content-inner .cpg-upcoming-games__list ol {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
}


.cpg-upcoming-games__item {
    display: flex;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: radial-gradient(circle at top, rgba(30,42,68,0.85), rgba(16,23,39,0.9));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}

.cpg-upcoming-games__cover img {
    width: 70px;
    border-radius: 10px;
    box-shadow: 0 10px 18px rgba(0,0,0,0.4);
}

.cpg-upcoming-games__details {
    flex: 1;
}

.cpg-upcoming-games__game {
    margin: 0 0 4px;
    font-size: 16px;
}

.cpg-upcoming-games__meta {
    margin: 0 0 4px;
    font-size: 13px;
    color: #9ec5ff;
    display: flex;
    column-gap: 6px;
    row-gap: 2px;
    flex-wrap: wrap;
    line-height: 1.35;
}

.cpg-upcoming-games__platforms {
    margin: 0;
    font-size: 13px;
    color: #d0dae6;
}

.cpg-upcoming-games__more {
    margin: 16px 0 0;
    text-align: right;
}

.cpg-upcoming-games__more a {
    color: #9ec5ff;
    text-decoration: none;
    font-weight: 600;
}

.cpg-upcoming-games__more a:hover {
    text-decoration: underline;
    color: #fff;
}

.cpg-upcoming-games__notice {
    margin: 12px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #d0dae6;
    font-size: 14px;
}

.cpg-upcoming-games__notice--error {
    background: rgba(255, 99, 99, 0.18);
    border-color: rgba(255, 99, 99, 0.6);
    color: #ffe8e8;
}

@media (max-width: 640px) {
    .cpg-upcoming-games__item {
        flex-direction: column;
    }

    .cpg-upcoming-games__cover {
        margin: 0 auto;
    }

    .cpg-upcoming-games__cover img {
        width: 100%;
        max-width: 240px;
    }
}
@media (min-width: 700px) {
    .cpg-upcoming-games[data-columns="2"] .cpg-upcoming-games__list,
    .cpg-upcoming-games[data-columns="3"] .cpg-upcoming-games__list,
    .cpg-upcoming-games[data-columns="4"] .cpg-upcoming-games__list {
        display: grid;
        gap: 18px;
        justify-content: center;
    }

    .cpg-upcoming-games[data-columns="2"] .cpg-upcoming-games__list {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }

    .cpg-upcoming-games[data-columns="3"] .cpg-upcoming-games__list {
        grid-template-columns: repeat(3, minmax(260px, 1fr));
    }

    .cpg-upcoming-games[data-columns="4"] .cpg-upcoming-games__list {
        grid-template-columns: repeat(4, minmax(260px, 1fr));
    }
}
