/* === MATCH CARD STYLING === */
.match-card.style-from-image {
    background: var(--modern-card-bg, #ffffff);
    border-radius: var(--modern-border-radius, 12px);
    box-shadow: var(--modern-shadow, 0 4px 12px rgba(0,0,0,0.08));
    margin: 0 2px 2px 2px;
    padding: 0;
    border: none;
    font-family: var(--modern-font);
    color: var(--modern-text-primary);
    overflow: hidden;
}

/* 1. رأس البطاقة */
.match-card.style-from-image .match-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--modern-table-border-color, #e9ecef);
}

.match-card.style-from-image .league-info {
    display: flex;
    align-items: center;
}

.match-card.style-from-image .league-logo-img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    object-fit: contain;
}

.match-card.style-from-image .league-name-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--modern-text-primary);
}

.match-card.style-from-image .match-card-actions i {
    font-size: 16px;
    color: var(--modern-text-secondary);
    margin-left: 10px;
    cursor: pointer;
}

.match-card.style-from-image .match-card-actions i:hover {
    color: var(--modern-accent);
}

/* 2. جسم المباراة */
.match-card.style-from-image .match-card-body {
    padding: 20px 15px;
    text-align: center;
}

.match-card.style-from-image .match-date {
    font-size: 13px;
    color: var(--modern-text-secondary);
    margin-bottom: 15px;
}

.match-card.style-from-image .teams-and-score {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.match-card.style-from-image .team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.match-card.style-from-image .team-home {
    text-align: left;
}

.match-card.style-from-image .team-away {
    text-align: right;
}

.match-card.style-from-image .team-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 8px;
}

.match-card.style-from-image .team-name-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--modern-text-primary);
    margin-bottom: 10px;
}

.match-card.style-from-image .team-scorers-list {
    width: 100%;
}

.match-card.style-from-image .scorer-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    font-size: 13px;
    color: var(--modern-text-secondary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.match-card.style-from-image .scorer-goal-icon {
    margin-right: 5px;
    color: var(--modern-goal-icon-color);
    font-size: 0.9em;
    flex-shrink: 0;
}

.match-card.style-from-image .score-details {
    flex: 0 0 auto;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.match-card.style-from-image .current-score {
    font-size: 36px;
    font-weight: 700;
    color: var(--modern-text-primary);
    margin-bottom: 2px;
}

.match-card.style-from-image .match-elapsed-time {
    font-size: 14px;
    color: var(--modern-text-secondary);
    margin-bottom: 10px;
}

.match-card.style-from-image .quick-action-buttons {
    display: flex;
    gap: 5px;
}

.match-card.style-from-image .quick-btn {
    background-color: #e9ecef;
    color: var(--modern-text-secondary);
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    min-width: 28px;
    text-align: center;
}

.match-card.style-from-image .quick-btn:hover {
    background-color: #ced4da;
}

/* 3. شريط الأحداث */
.match-card.style-from-image .match-event-strip {
    background-color: #f8f9fa;
    padding: 8px 15px;
    font-size: 13px;
    color: var(--modern-text-secondary);
    text-align: center;
    border-top: 1px solid var(--modern-table-border-color, #e9ecef);
}

.match-card.style-from-image .match-event-strip i {
    margin-right: 5px;
}

.match-card.style-from-image .match-event-strip .fa-futbol,
.match-card.style-from-image .match-event-strip .icon-goal {
    color: var(--modern-goal-icon-color);
}

.match-card.style-from-image .match-event-strip .icon-yellow-card { color: #ffc107; }

/* 4. زر الإجراء */
.match-card.style-from-image .match-card-footer {
    padding: 0;
}

.match-card.style-from-image .action-button.primary-action {
    background-color: var(--modern-accent, #007bff);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom-left-radius: var(--modern-border-radius, 12px);
    border-bottom-right-radius: var(--modern-border-radius, 12px);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.match-card.style-from-image .action-button.primary-action:hover {
    background-color: #0056b3;
}

/* === RESPONSIVE ADJUSTMENTS FOR NEW MATCH CARD === */
@media (max-width: 480px) {
    .match-card.style-from-image .match-card-header {
        padding: 10px 12px;
    }
    .match-card.style-from-image .league-name-text {
        font-size: 13px;
    }
    .match-card.style-from-image .match-card-body {
        padding: 15px 10px;
    }
    .match-card.style-from-image .team-logo-img {
        width: 32px;
        height: 32px;
    }
    .match-card.style-from-image .team-name-text {
        font-size: 13px;
        margin-bottom: 8px;
    }
    .match-card.style-from-image .scorer-item {
        font-size: 12px;
        margin-bottom: 3px;
    }
    .match-card.style-from-image .scorer-goal-icon {
        font-size: 0.85em;
        margin-right: 4px;
    }
    .match-card.style-from-image .current-score {
        font-size: 28px;
    }
    .match-card.style-from-image .match-elapsed-time {
        font-size: 12px;
    }
    .match-card.style-from-image .quick-btn {
        padding: 3px 6px;
        font-size: 11px;
        min-width: 24px;
    }
    .match-card.style-from-image .match-event-strip {
        padding: 6px 10px;
        font-size: 12px;
    }
    .match-card.style-from-image .action-button.primary-action {
        padding: 10px 15px;
        font-size: 14px;
    }
}