/* === الأساس === */

.frame_top_list {
    width: 105px;
    position: absolute;
    top: -23px;
    left: -7px;
}
.frame_top {
    width: 127px;
    position: absolute;
    top: -24px;
    left: -7px;
}
.winner-title {
  font-family: 'Changa', sans-serif;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #444;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}
.winner-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  direction: rtl;
}
.winner-box {
  width: 90px;
  text-align: center;
  position: relative;
  font-family: 'Tajawal', sans-serif;
}
.winner-box.first {
  width: 110px;
}
.winner-avatar {
  width: 100%;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  object-fit: cover;
  aspect-ratio: 1 / 1;
  background-color: #f1f1f1;
}
.winner-name {
    margin-top: 8px;
    font-size: 14px;
    color: #333;
    font-weight: bold;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.winner-medal {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  background: #fff;
  border-radius: 25px;
  padding: 2px 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.gold { color: #c6a700; }
.silver { color: #a0a0a0; }
.bronze { color: #b86e00; }
@media (max-width: 480px) {
  .winner-box { width: 80px; }
  .winner-box.first { width: 95px; }
  .winner-name { font-size: 13px; }
  .winner-medal { font-size: 18px; }
}
@media (max-width: 480px) {
  .winner-row {
    gap: 12px;
  }

  .winner-box {
    width: 70px;
  }

  .winner-box.first {
    width: 90px;
  }

  .winner-avatar {
    width: 100%;
    max-width: 70px;
    height: auto;
  }

  .winner-name {
    font-size: 12px;
  }

  .winner-medal {
    font-size: 18px;
    top: -10px;
    padding: 2px 5px;
  }
  .winner-box.first {
  width: 110px;
  margin-top: -10px;
}

.winner-box.first .winner-avatar {
  max-width: 110px;
}

.winner-box.first .winner-name {
  font-size: 10px;
  line-height: 0;
}

}


.score_lm {
    display: table-cell;
    vertical-align: middle;
    width: 70px;
    text-align: center;
    font-weight: 700;
    padding: 0 5px;
}
.ulist_name {
    display: table-cell;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    padding: 0 5px;
}
.ranking_lm {
    display: table-cell;
    vertical-align: middle;
    width: 30px;
    text-align: center;
    font-weight: 700;
}
.ulist_item {
    background: #f4f6f9;
    color: #ff7043;
    border-radius: 10px;
    margin-bottom: 3px;
}
.title_Store {
    display: table;
    table-layout: fixed;
    width: 100%;
    padding: 0 1px 10px 1px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    margin: 0 auto;
    direction: rtl;
    font-family: 'Changa';
    color: #e65100;
    border-bottom: 2px solid #f0e3d3;
}

/* === بطاقات الرتب === */
.ulist_label {
    display: table;
    width: 100%;
    height: 40px;
    table-layout: fixed;
    border-radius: 14px;
    border: none;
    box-shadow: 0 3px 10px rgba(25, 35, 55, 0.18);
    overflow: hidden;
    font-family: Tahoma, Arial, sans-serif;
    margin-top: 6px;
}
.ulist_label_icon {
    display: table-cell;
    width: 50px;
    vertical-align: middle;
    text-align: center;
    font-size: 13px;
    opacity: .85;
}
.ulist_label_icon img {
    width: 24px;
    height: 24px;
    display: block;
    margin: 0 auto;
}
.ulist_label_data {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 8px;
    color: #fff;
    letter-spacing: .3px;
}

/* === ألوان الرُتب — لوحة 2026 الفاخرة === */

/* DJ مباشر — بنفسجي ملكي */
.ulist_onairdj {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}
/* Owner — ذهبي فاخر */
.ulist_owner {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(120, 80, 0, 0.45);
}
/* Emperor — إمبراطوري ملكي (بنفسجي وذهبي) */
.ulist_emperor {
    background: linear-gradient(135deg, #6a11cb 0%, #8e2de2 40%, #f107a3 75%, #ffd200 100%);
    color: #fff;
    text-shadow: 0 1px 3px rgba(60, 0, 90, 0.55);
    border: 1px solid rgba(255, 210, 0, 0.55);
}
/* Superadmin — قرمزي ناري */
.ulist_sadmin {
    background: linear-gradient(135deg, #cb2d3e 0%, #ef473a 100%);
    color: #fff;
}
/* Admin — أزرق فولاذي عميق */
.ulist_admin {
    background: linear-gradient(135deg, #16222a 0%, #3a6073 100%);
    color: #fff;
}
/* Moderator — فحمي أنيق */
.ulist_mod {
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
    color: #e8eaed;
}
/* VIP ذكور — أزرق ملكي */
.ulist_vip {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,20,60,0.35);
}
/* VIP2 إناث — وردي دافئ */
.ulist_vip2 {
    background: linear-gradient(135deg, #ec6f66 0%, #f3a183 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(140, 40, 30, 0.35);
}
/* Bot — زمردي */
.ulist_bot {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,90,60,0.35);
}
/* User — رمادي معدني ناعم */
.ulist_user {
    background: linear-gradient(135deg, #3c4858 0%, #54606c 100%);
    color: #eceff1;
}
/* Guest — كهرماني */
.ulist_guest {
    background: linear-gradient(135deg, #ffb347 0%, #ffcc33 100%);
    color: #5a3e00;
    text-shadow: none;
    font-weight: 700;
}
/* Offline — ليلي هادئ */
.ulist_offline {
    background: linear-gradient(135deg, #141e30 0%, #243b55 100%);
    color: #ff8a80;
}

/* === أيقونة الجناح === */
.wing_icon {
    height: 20px;
    vertical-align: text-top;
    border-radius: 50%;
}
.user_item_data > .wing_icon {
    direction: rtl;
}

/* === الجوال === */
@media (max-width: 480px) {
  .winner-row { gap: 12px; }
  .winner-box { width: 72px; }
  .winner-avatar { max-width: 72px; height: auto; }
  .winner-name { font-size: 12px; }
  .winner-medal { font-size: 18px; top: -10px; padding: 2px 5px; }
  .winner-box.first { width: 96px; margin-top: -10px; }
  .winner-box.first .winner-avatar { max-width: 96px; }
  .ulist_label { height: 36px; }
  .ulist_label_data { font-size: 13.5px; }
  .ulist_label_icon { width: 38px; }
}

/* === كبار الشخصيات: header مطابق للقائمة المرجعية === */
.ulist_vip3 {
    background: #2f4054;
    color: #ffd400;
    border-radius: 16px;
    height: 66px;
    margin-top: 6px;
    box-shadow: 0 3px 10px rgba(25, 35, 55, 0.22);
}
.ulist_vip3 .ulist_label_icon {
    width: 58px;
    color: #ffd400;
    vertical-align: middle;
}
.ulist_vip3 .rank_header_icon {
    width: 34px;
    height: 34px;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    border-radius: 50%;
}
.ulist_vip3 .ulist_label_data {
    color: #ffd400;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}
.ulist_vip3 .ulist_label_data p {
    margin: 0;
    color: #ffd400;
}
@media (max-width: 480px) {
    .ulist_vip3 {
        height: 64px;
        border-radius: 15px;
    }
    .ulist_vip3 .ulist_label_icon { width: 48px; }
    .ulist_vip3 .rank_header_icon { width: 30px; height: 30px; }
    .ulist_vip3 .ulist_label_data { font-size: 18px; }
}

    /* تنسيق العداد الإحصائي التفصيلي (إداريين، فيب، أعضاء) */
    .detailed_stats_grid {
        display: flex;
        justify-content: space-between;
        gap: 5px;
        margin: 4px 0;
        text-align: center;
    }
    .stat_card {
        flex: 1;
        background: rgba(0, 0, 0, 0.04);
        border: 1px solid rgba(196, 104, 0, 0.3);
        border-radius: 10px;
        padding: 5px 2px;
        font-size: 11px;
        font-weight: bold;
    }
    .stat_card span {
        display: block;
        font-size: 13px;
        color: #c46800;
        margin-top: 2px;
    }

/* تأثيرات جمالية لشارات المراكز الأولى */
    .tc_badge_rank1 {
        display: inline-block;
        animation: bounceBadge 1.5s infinite alternate;
    }
    .tc_badge_rank2, .tc_badge_rank3 {
        display: inline-block;
    }

    @keyframes bounceBadge {
        0% { transform: translateY(0); }
        100% { transform: translateY(-3px); }
    }

    .wing_icon {
        height: 20px;
        vertical-align: text-top;
        border-radius: 50%;
    }
    .user_item_data > .wing_icon {
        direction: rtl;
    }

    .user_count_box {
        border-top: 3px solid #c46800;
        margin-top: 2px;
        border-radius: 16px;
        text-align: center;
    }


/* === قائمة المتصلين: بطاقات أعضاء / فيب / إداريين === */
.online_role_stats{
    display:flex;
    gap:8px;
    margin:7px 0 10px;
    direction:rtl;
}
.online_role_stats .stat_card{
    flex:1;
    min-width:0;
    background:#fff;
    border:1px solid #e1e1e1;
    border-radius:14px;
    padding:7px 4px 6px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
    color:#222;
    font-size:13px;
    font-weight:700;
}
.online_role_stats .stat_title{
    line-height:1.2;
    white-space:nowrap;
}
.online_role_stats .stat_card span{
    color:#c46800;
    font-size:18px;
    line-height:1.2;
    margin-top:3px;
    font-weight:800;
}
.online_role_stats .stat_members{border-top:3px solid #2f80ed}
.online_role_stats .stat_vips{border-top:3px solid #e0a21a}
.online_role_stats .stat_admins{border-top:3px solid #d85b3f}
.rank_header_icon{width:25px;height:25px;object-fit:contain;vertical-align:middle}
.ulist_vip3 .rank_header_icon{width:28px;height:28px}

@media(max-width:480px){
  .online_role_stats{gap:5px}
  .online_role_stats .stat_card{font-size:12px;padding:6px 2px}
  .online_role_stats .stat_card span{font-size:16px}
}
