.ps4-section {
    direction: rtl;
    width: 100%;
}

.ps4-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.ps4-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    height: 100%;
}

.ps4-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.09);
    border-color: #dcdcdc;
}

.ps4-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.ps4-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #eef1f5;
    overflow: hidden;
}

.ps4-thumb-wrap::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 2px;
    background: #2f66c7;
    opacity: 0.9;
}

.ps4-thumb {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.ps4-card:hover .ps4-thumb {
    transform: scale(1.03);
}

.ps4-thumb-placeholder {
    background: linear-gradient(135deg, #f1f3f6, #dde3ea);
}

.ps4-title {
    margin: 0;
    padding: 14px 12px 16px;
    text-align: center;
    background: #ffffff;
    color: #163d86;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.75;
    min-height: 88px;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* حالت فوکوس برای دسترسی بهتر */
.ps4-link:focus-visible {
    outline: 2px solid #2f66c7;
    outline-offset: 2px;
    border-radius: 10px;
}

/* تبلت */
@media (max-width: 1100px) {
    .ps4-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .ps4-title {
        font-size: 15px;
        min-height: 80px;
        padding: 12px 10px 14px;
    }
}

/* موبایل */
@media (max-width: 640px) {
    .ps4-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ps4-card {
        border-radius: 8px;
    }

    .ps4-title {
        font-size: 14px;
        line-height: 1.8;
        min-height: auto;
        padding: 10px 10px 12px;
        -webkit-line-clamp: 3;
    }

    .ps4-link:focus-visible {
        border-radius: 8px;
    }
}