.mohtmgt-card {
  width: 100%;
  background-color: #1f2024;
  color: #eee;
  border-radius: 15px;
  overflow: hidden;
  font-family: 'Tajawal', sans-serif;
  display: flex;
  flex-direction: row-reverse; /* هام لعكس الاتجاه فعليًا */
  justify-content: space-between;
  padding: 15px;
  gap: 15px;
  align-items: flex-start;
  box-sizing: border-box;
  direction: rtl;
  position: relative;
  flex-wrap: wrap;
}

/* العمود الأيمن فعليًا: صورة اللعبة والتقييم */
.mohtmgt-image-column {
  flex: 0 0 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mohtmgt-image-column img.mohtmgt-cover {
  width: 180px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.mohtmgt-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mohtmgt-rating span[data-star] {
  font-size: 26px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.3s ease;
}

.mohtmgt-rating span[data-star].highlighted {
  color: #FFD700;
}

#mohtmgt-rating-count {
  font-size: 0.8rem;
  color: #aaa;
}

/* العمود الأوسط: معلومات اللعبة */
.mohtmgt-info-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mohtmgt-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #d3302b;
}

.mohtmgt-genre {
  margin: 0;
  font-size: 1rem;
  color: #ccc;
}

.mohtmgt-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #bbb;
}

.mohtmgt-platforms {
  display: flex;
  gap: 6px;
  margin-top: -5px;
  margin-bottom: 5px;
}

.mohtmgt-platforms img {
  height: 22px;
  border-radius: 5px;
}

/* أقصى اليسار: التصنيف العمري */
.mohtmgt-age-rating-column {
  flex: 0 0 48px;
  display: flex;
  justify-content: center;
  align-items: center; /* لضبط الصورة في وسط الكارت طوليًا */
  height: 100%;
}

.mohtmgt-age-rating-column img {
  width: 48px;
  height: 48px;
}

/* تحسين العرض في الشاشات الصغيرة */
/* القواعد الحالية هنا تبقى كما هي */

@media (max-width: 600px) {
  .mohtmgt-card {
    flex-direction: column;
    padding: 15px 15px 15px 15px;
    position: relative;
    align-items: center;
  }

  /* جعل التصنيف العمري يظهر أسفل معلومات اللعبة */
  .mohtmgt-age-rating-column {
    position: static; /* إلغاء absolute */
    transform: none;
    margin-top: 10px; /* بدل margin-bottom لأنه صار في الأسفل */
    order: 3; /* ترتيب بعد معلومات اللعبة وصورة اللعبة */
  }

  /* صورة اللعبة + التقييم تظهر أولاً */
  .mohtmgt-image-column {
    order: 1;
    flex: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }
  .mohtmgt-cover {
    width: 100%;
    max-width: 300px;
  }

  /* معلومات اللعبة تأتي بعد صورة اللعبة */
  .mohtmgt-info-column {
    order: 2;
    width: 100%;
    text-align: center; /* توسيط النص */
  }

  /* تصغير الفواصل بين النصوص على الجوال */
  .mohtmgt-title,
  .mohtmgt-desc {
    margin-bottom: 3px;
  }

  /* تعديل خاص لفئة اللعبة لتكون بعرض المحتوى ومركزه */
  .mohtmgt-genre {
    display: inline-block;
    margin-bottom: 3px;
  }

  /* توسيط منصات اللعبة */
  .mohtmgt-platforms {
    justify-content: center; /* توسيط الأيقونات */
    margin-top: 5px;
  }
}

.mohtmgt-more-button {
  margin-top: 12px;
  text-align: center;
}

.mohtmgt-more-button a {
  background-color: #d3302b;
  color: #fff;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  font-family: 'Tajawal', sans-serif;
  transition: background-color 0.3s ease;
}

.mohtmgt-more-button a:hover {
  background-color: #b32823;
}
