/* ===== SHARE BOX ===== */
.share-box { 
    background:#fff; 
    width:95%; 
    margin:20px auto; 
    padding:15px; 
    border-radius:12px; 
    box-shadow:0 4px 10px rgba(0,0,0,.1); 
    text-align:center; 
}
.share-buttons { display:flex; justify-content:center; gap:10px; }
.share-btn { padding:10px 18px; border-radius:25px; color:#fff; font-weight:bold; text-decoration:none; }
.share-btn.facebook { background:#1877f2; }
.share-btn.whatsapp { background:#25d366; }
.share-btn.telegram { background:#0088cc; }
.facebook-page-box, .youtube-page-box { width:95%; max-width:400px; margin:25px auto; padding:10px; background:#fff; border-radius:14px; box-shadow:0 6px 15px rgba(0,0,0,.1); text-align:center; }
.youtube-page-box iframe { width:100%; height:500px; border-radius:12px; }

/* ===== FIX TEAMS LAYOUT FINAL (BOOTSTRAP SAFE) ===== */
.teams-box{
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    justify-content:space-between !important;
    width:100%;
    gap:10px;
}

/* كل فريق */
.team{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    flex:1 1 0 !important;
    max-width:45% !important;
    min-width:0 !important;
    text-align:center;
}

/* الصورة */
.team img{
    width:80px !important;
    height:80px !important;
    object-fit:contain;
    display:block;
}

/* اسم الفريق */
.team h3{
    margin:8px 0 0 0 !important;
    font-size:15px !important;
    font-weight:bold;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    line-height:1.2 !important;
}

/* صندوق النتيجة */
.vs{
    flex:0 0 auto !important;
    width:auto !important;
    min-width:90px;
    text-align:center;
    background:#e30613;
    color:#fff;
    font-size:20px;
    font-weight:bold;
    padding:12px 16px;
    border-radius:10px;
    margin:0 !important;
}

/* ===== CARD المباراة ===== */
.match-header{
    background:#fff;
    margin:20px auto;
    max-width:1000px;
    border-radius:14px;
    box-shadow:0 4px 12px rgba(0,0,0,.1);
    overflow:hidden;
}

/* ===== شريط البطولة ===== */
.league-bar{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    background:#111;
    color:#fff;
    padding:10px;
    font-weight:bold;
}
.league-bar img{ height:26px; }

/* ===== الفيديو ===== */
.stream-box{
    margin:15px auto;
    max-width:1000px;
    background:#000;
    border-radius:12px;
    overflow:hidden;
    position: relative;
    z-index: 1; /* ضع z-index صغير ليظهر sidebar فوقه */
}

.stream-box video,
.stream-box iframe{
    width:100%;
    height:420px;
}

/* ===== المشاهدين ===== */
.viewers-count{
    position:absolute;
    top:10px;
    right:15px;
    background:rgba(0,0,0,.6);
    color:#fff;
    padding:6px 10px;
    border-radius:8px;
    font-size:13px;
    z-index:2; /* فوق الفيديو لكن تحت sidebar */
}

/* ===== معلومات المباراة ===== */
.info-row{
    display:flex;
    flex-wrap:wrap;
    background:#fafafa;
    border-top:1px solid #eee;
}
.info-item{
    width:50%;
    padding:10px;
    font-size:14px;
    border-bottom:1px solid #eee;
}
.info-item span{ font-weight:bold; }

/* ===== حالة المباراة ===== */
.status-badge{
    display:inline-block;
    padding:4px 12px;
    border-radius:20px;
    font-size:12px;
    font-weight:bold;
}
.status-live{background:#e30613;color:#fff;}
.status-soon{background:#ff9800;color:#fff;}
.status-end{background:#555;color:#fff;}

/* ===== اللاعبين ===== */
.players-box{
    display:flex;
    gap:10px;
    max-width:1000px;
    margin:15px auto;
    flex-wrap:wrap;
}
.players-list{
    flex:1;
    background:#fff;
    padding:10px;
    border-radius:10px;
    box-shadow:0 2px 6px rgba(0,0,0,.07);
    max-height:300px;
    overflow:auto;
    position: relative;
    z-index: 1; /* تأكد من أن sidebar أعلى منه */
}

/* ===== الأحداث ===== */
.events-box{
    background:#fff;
    padding:10px;
    border-radius:10px;
    margin:15px auto;
    max-width:1000px;
    max-height:250px;
    overflow:auto;
    box-shadow:0 2px 6px rgba(0,0,0,.07);
    position: relative;
    z-index:1; /* أعلى من الفيديو لكن أقل من sidebar */
}

/* ===== الموبايل ===== */
@media(max-width:768px){
    .stream-box video,
    .stream-box iframe{ height:260px; }
    .info-item{ width:100%; }
    .team img{ width:60px !important; height:60px !important; }
    .vs{ font-size:16px; padding:8px 12px; }
}

/* ===== Poll Popup ===== */
.poll-popup{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.7);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

/* ===== Sidebar ===== */
.admin-menu {
    position: fixed;
    top: 0;
    right: -220px;
    width: 220px;
    height: 100%;
    background: #111;
    color: #fff;
    padding-top: 60px;
    transition: right 0.3s;
    overflow-y: auto;
    z-index: 1000;
}
.admin-menu a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    transition: background 0.3s;
    font-weight: bold;
}
.admin-menu a:hover { background: #2563eb; }

/* زر Toggle */
.menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    background: #667eea;
    color: #fff;
    border: none;
    font-size: 22px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 1100;
}

/* ---- محتوى الصفحة ---- */
.admin-content {
    margin-right: 220px;
    padding: 25px 20px;
    transition: margin 0.3s;
    max-width: calc(100% - 220px);
    background: #f9fafb;
    box-sizing: border-box;
}
.admin-content.menu-closed {
    margin-right: 0;
    max-width: 100%;
}
