/* =========================================
   Ultra Premium Match Detail Styles
   ========================================= */

/* شريط التبويبات الزجاجي */
.tabs-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none; /* Firefox */
}
.tabs-container::-webkit-scrollbar { display: none; } /* Chrome */

.tab-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 900;
    white-space: nowrap;
    transition: all 0.3s ease;
    background: transparent;
    color: #64748b;
}
.dark .tab-btn { color: #94a3b8; }

.tab-btn.active {
    background: #0d9488;
    color: white;
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3);
}

/* الملعب والتشكيلة */
.pitch-container {
    position: relative;
    background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 30px 10px;
    min-height: 450px;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2), 0 10px 20px rgba(0,0,0,0.1);
}

.pitch-lines {
    position: absolute;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    pointer-events: none;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.pitch-center-line {
    position: absolute;
    top: 50%; left: 10px; right: 10px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
}

.pitch-center-circle {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90px; height: 90px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.player-node {
    display: flex; flex-direction: column; align-items: center; width: 65px; z-index: 10;
}

.player-img-wrapper {
    position: relative; width: 45px; height: 45px;
}

.player-img {
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #e2e8f0;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.player-number {
    position: absolute;
    bottom: -4px; right: -4px;
    background: #0f172a; color: white;
    font-size: 9px; font-weight: bold;
    width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 1.5px solid #fff;
}

.player-name {
    font-size: 10px; color: white; font-weight: 900; text-align: center; margin-top: 6px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
    background: rgba(0,0,0,0.3); padding: 2px 6px; border-radius: 4px;
}

/* شريط التصويت الفخم */
.vote-bar-container {
    display: flex; height: 14px; border-radius: 99px; overflow: hidden;
    background: rgba(0,0,0,0.05); margin: 15px 0 10px 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.dark .vote-bar-container { background: rgba(255,255,255,0.05); }

.vote-fill { transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: bold; color: white; }
.vote-home-bg { background: linear-gradient(90deg, #ec4899, #db2777); }
.vote-draw-bg { background: linear-gradient(90deg, #2dd4bf, #0d9488); }
.vote-away-bg { background: linear-gradient(90deg, #3b82f6, #2563eb); }

/* كروت تفاصيل المباراة والمواجهات */
.premium-card {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px;
    padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
    transition: all 0.2s;
}
.dark .premium-card { background: #1e293b; border-color: #334155; }
.premium-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.dark .premium-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

/* أنيميشن */
.animate-fade-in { animation: fadeIn 0.4s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
