/* BEGIN SUNARB KIZI LIGHT V15.19E */

.sunarb-light-home {
    width: 100%;
    margin: 0 auto;
    padding: 12px;
    box-sizing: border-box;
}

.sunarb-light-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
    gap: 10px;
    width: 100%;
}

.sunarb-light-grid .game-item,
.sunarb-light-grid .sunarb-light-card {
    display: block;
    position: relative;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    text-decoration: none;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

.sunarb-light-grid .game-item > img,
.sunarb-light-grid .sunarb-light-card > img {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin: 0 !important;
    border-radius: 10px 10px 0 0;
}

.sunarb-light-grid .post-name {
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    min-height: 36px;
    margin: 0 !important;
    padding: 8px 7px !important;
    overflow: hidden;
    color: #222 !important;
    background: #fff !important;
    font-size: 13px !important;
    font-weight: 600;
    line-height: 18px;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.sunarb-light-ad {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-align: center;
    margin: 8px auto 12px;
}

.sunarb-light-recent {
    display: flex;
    align-items: center;
    gap: 10px;
    width: calc(100% - 24px);
    margin: 10px auto;
}

.sunarb-light-recent-title {
    flex: 0 0 auto;
    padding: 9px 11px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    color: #222;
    background: #fff;
}

.sunarb-light-recent-list {
    display: flex;
    flex: 1 1 auto;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.sunarb-light-recent-item {
    display: block;
    flex: 0 0 88px;
}

.sunarb-light-recent-item img {
    display: block;
    width: 88px;
    height: 66px;
    object-fit: cover;
    border-radius: 8px;
}

.sunarb-light-about {
    margin: 18px 12px;
    padding: 14px;
    border-radius: 10px;
    background: #fff;
    color: #333;
    line-height: 1.7;
}

.sunarb-light-about-title {
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 700;
}

.sunarb-light-about-text {
    font-size: 14px;
}

.sunarb-light-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 14px 12px 24px;
}

.sunarb-light-actions a,
.sunarb-light-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #222;
    background: #fff;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

html[dir="rtl"] .sunarb-light-grid,
html[dir="rtl"] .sunarb-light-about,
html[dir="rtl"] .sunarb-light-recent {
    direction: rtl;
    text-align: right;
}

@media (max-width: 720px) {
    .sunarb-light-home {
        padding: 8px;
    }

    .sunarb-light-grid {
        grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
        gap: 7px;
    }

    .sunarb-light-grid .post-name {
        min-height: 32px;
        padding: 6px !important;
        font-size: 12px !important;
        line-height: 16px;
    }

    .sunarb-light-about {
        margin: 14px 8px;
        padding: 12px;
    }

    .sunarb-light-recent {
        width: calc(100% - 16px);
    }
}

/* END SUNARB KIZI LIGHT V15.19E */
