
.cgg-gallery {
    width: 100%;
    margin: 20px auto;
    color: #202938;
}

.cgg-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.cgg-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(25, 40, 65, .06);
}

.cgg-card-icon {
    display: flex;
    min-height: 125px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e7efff, #f2e9ff);
    font-size: 54px;
}

.cgg-card-content {
    padding: 18px;
}

.cgg-category {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 30px;
    background: #eef3ff;
    color: #245fc7;
    font-size: 12px;
    font-weight: 700;
}

.cgg-card h3,
.cgg-player-heading h2 {
    margin: 0 0 10px;
    color: #172033;
    font-size: 20px;
    line-height: 1.4;
}

.cgg-card p,
.cgg-player-heading p {
    color: #647084;
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.cgg-play-button,
.cgg-back-button,
.cgg-open-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 9px;
    background: #245fc7;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
}

.cgg-play-button {
    width: 100%;
    margin-top: 8px;
}

.cgg-play-button:hover,
.cgg-open-button:hover {
    background: #174ea6;
}

.cgg-empty {
    padding: 30px 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    text-align: center;
}

.cgg-player-wrap {
    width: 100%;
    margin: 20px auto;
}

.cgg-player-heading {
    margin-bottom: 16px;
}

.cgg-player-frame {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 12px;
    background: #101828;
    box-shadow: 0 5px 22px rgba(0, 0, 0, .12);
}

.cgg-player-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}

.cgg-player-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.cgg-back-button {
    background: #edf1f7;
    color: #253047 !important;
}

.cgg-back-button:hover {
    background: #dfe7f2;
}

.cgg-open-button {
    background: #245fc7;
}

@media (max-width: 900px) {
    .cgg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 560px) {
    .cgg-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .cgg-card-icon {
        min-height: 105px;
    }

    .cgg-card-content {
        padding: 15px;
    }

    .cgg-player-actions > a {
        flex: 1 1 100%;
    }
}
