﻿/* FORCE SCOPE TO PLUGIN */
.kora-matches-container .match-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #f1f2f4 !important;
    border: 1px solid #e3e5e8 !important;
    border-radius: 14px !important;
    padding: 20px 24px !important;
    margin-bottom: 16px !important;
}

/* TEAMS */
.kora-matches-container .right-team,
.kora-matches-container .left-team {
    width: 120px !important;
    text-align: center !important;
}

.kora-matches-container .team-logo {
    width: 64px !important;
    height: 64px !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

.kora-matches-container .team-name {
    margin-top: 8px !important;
    font-size: 14px !important;
    color: #333 !important;
	font-weight: 700 !important; /* bold */
}

/* CENTER BOX (YELLOW AREA) */
.kora-matches-container .match-center {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.kora-matches-container .match-center-box {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    text-align: center !important;
    min-width: 140px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
}

.kora-matches-container .match-time {
    font-size: 15px !important;
    color: #333 !important;
    margin-bottom: 6px !important;
}

.kora-matches-container .match-status {
    background: #1f2937 !important;
    color: #fff !important;
    font-size: 13px !important;
    padding: 4px 16px !important;
    border-radius: 20px !important;
    display: inline-block !important;
    margin-bottom: 6px !important;
}

.kora-matches-container .match-score {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
}
/* =========================
   META (LEAGUE + CHANNEL)
========================= */
.match-meta {
    margin-top: 6px;
    font-size: 12px;
    color: #666;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.match-meta span {
    white-space: nowrap;
}

/* =========================
   MOBILE RESPONSIVENESS
========================= */
@media (max-width: 768px) {

    /* CARD */
    .kora-matches-container .match-container {
        padding: 16px 12px !important;
        gap: 6px !important;
    }

    /* TEAMS */
    .kora-matches-container .right-team,
    .kora-matches-container .left-team {
        width: 90px !important;
    }

    .kora-matches-container .team-logo {
        width: 52px !important;
        height: 52px !important;
    }

    .kora-matches-container .team-logo img {
        width: 36px !important;
        height: 36px !important;
    }

    .kora-matches-container .team-name {
        font-size: 12px !important;
        margin-top: 6px !important;
    }

    /* CENTER BOX */
    .kora-matches-container .match-center-box {
        min-width: unset !important;
        width: 110px !important;
        padding: 4px 4px !important;
    }

    .kora-matches-container .match-time {
        font-size: 13px !important;
    }

    .kora-matches-container .match-status {
        font-size: 12px !important;
        padding: 4px 12px !important;
    }

    .kora-matches-container .match-score {
        font-size: 13px !important;
    }

    /* LEAGUE / CHANNEL UNDER TEAMS */
    .kora-matches-container .match-meta {
        font-size: 11px !important;
        line-height: 1.3 !important;
        max-width: 90px !important;
        margin-top: 4px !important;
    }
}

/* =========================
   LEAGUE / CHANNEL FINAL FIX
========================= */

.kora-matches-container .match-meta {
    margin-top: 6px !important;
    font-size: 13px !important;
    color: #555 !important;
    text-align: center !important;

    /* Arabic-safe wrapping */
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;

    max-width: 120px !important;
    line-height: 1.35 !important;

    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;   /* MAX 2 LINES */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;

    direction: rtl !important;
}

/* =========================
   FORCE TEAM STACKING
========================= */

.kora-matches-container .right-team,
.kora-matches-container .left-team {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* Ensure order */
.kora-matches-container .team-logo {
    order: 1 !important;
}

.kora-matches-container .team-name {
    order: 2 !important;
}

.kora-matches-container .match-meta {
    order: 3 !important;
    margin-top: 6px !important;

    font-size: 10px !important;
    color: #555 !important;
    text-align: center !important;

    max-width: 120px !important;
    line-height: 1.35 !important;

    /* Arabic-safe wrapping (2 lines max) */
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;

    direction: rtl !important;
}

/* =========================
   MATCH STATUS COLORS
========================= */

/* لم تبدأ بعد – أسود */
.kora-matches-container .match-status.status-not-started {
    background: #1f2937 !important; /* black/dark */
    color: #ffffff !important;
}

/* تبدأ قريباً – أخضر */
.kora-matches-container .match-status.status-soon {
    background: #16a34a !important; /* green */
    color: #ffffff !important;
}

/* مباشر – أحمر */
.kora-matches-container .match-status.status-live {
    background: #dc2626 !important; /* red */
    color: #ffffff !important;
    animation: livePulse 1.2s infinite;
}

/* انتهت – رمادي */
.kora-matches-container .match-status.status-ended {
    background: #9ca3af !important; /* gray */
    color: #ffffff !important;
}

/* LIVE pulse animation */
@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(220,38,38,0.6); }
    70% { box-shadow: 0 0 0 6px rgba(220,38,38,0); }
    100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
}
/* =========================
   CLICK OVERLAY (PLAYER EFFECT)
========================= */
.kora-matches-container a {
    position: relative;
    display: block;
}

.kora-matches-container a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    border-radius: 14px;
    opacity: 0;
    transition: opacity .25s ease;
    z-index: 5;
    pointer-events: none;
}


/* =========================
   PLAY BUTTON (REAL ELEMENT)
========================= */

.kora-matches-container a {
    position: relative;
}

/* button circle */
.kora-matches-container .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all .25s ease;
    z-index: 7;
    pointer-events: none;
}

/* triangle */
.kora-matches-container .play-button::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #000;
    margin-left: 3px;
}

/* active */
.kora-matches-container a.is-playing .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}



/* ACTIVE STATE */
.kora-matches-container a.is-playing::after {
    opacity: 1;
}

.kora-matches-container a.is-playing::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

