/* ═══════════════════════════════════════════════
   Big Match Card — Poster Style
   ═══════════════════════════════════════════════ */

/* ── Card Shell ──────────────────────────────── */
.ls-big-match-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    max-width: 640px;
    margin: 0 auto;
    font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
    color: #fff;
    background: linear-gradient(160deg, #0d1117 0%, #1a1f2e 100%);

    /* Subtle pitch texture overlay */
    background-image:
        linear-gradient(160deg, #0d1117 0%, #1a1f2e 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 34px,
            rgba(255,255,255,0.015) 34px,
            rgba(255,255,255,0.015) 35px
        );
}

/* Stadium glow effect behind card */
.ls-big-match-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(255,200,0,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 20% 60%, rgba(255,80,80,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(60,140,255,0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.ls-big-match-card > * { position: relative; z-index: 1; }

/* ── Stadium Background Layer ────────────────── */
.ls-bm-stadium-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.6s ease;
}

/* Gradient overlay: dark edges, visible center */
.ls-bm-stadium-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        rgba(13,17,23,0.55) 0%,
        transparent 40%,
        transparent 60%,
        rgba(13,17,23,0.55) 100%
    );
    /* Top & bottom fade */
    -webkit-mask-image: linear-gradient(
        180deg,
        rgba(0,0,0,0.4) 0%,
        rgba(0,0,0,1) 20%,
        rgba(0,0,0,1) 80%,
        rgba(0,0,0,0.4) 100%
    );
    mask-image: linear-gradient(
        180deg,
        rgba(0,0,0,0.4) 0%,
        rgba(0,0,0,1) 20%,
        rgba(0,0,0,1) 80%,
        rgba(0,0,0,0.4) 100%
    );
}

.ls-bm-stadium-active {
    opacity: 0.25;   /* default; overridden by Elementor control */
}


.ls-bm-topbar {
    text-align: center;
    padding: 16px 20px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ls-bm-vs-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    font-family: 'Inter', sans-serif;
}

/* ── Players Stage ───────────────────────────── */
.ls-bm-players-stage {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: flex-end;
    min-height: 240px;
    padding: 0;
    gap: 0;
}

/* ── Player Slots ────────────────────────────── */
.ls-bm-player-slot {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 200px;
    overflow: visible;   /* ← must NOT be hidden — clips scaleX(-1) mirror */
}

.ls-bm-player-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    overflow: hidden;    /* clip name tag only, not the image */
}

/* Player images – cut-out style (no circle, full figure) */
.ls-bm-player-img {
    display: block;
    width: 160px;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.7));
    transition: transform 0.4s ease;
}

.ls-bm-side-home {
    transform-origin: center bottom;  /* ← fix: center not right, prevents off-screen shift */
    transform: scaleX(-1);
}

.ls-bm-side-away {
    transform-origin: center bottom;
}

.ls-big-match-card:hover .ls-bm-side-home {
    transform: scaleX(-1) scale(1.05) translateY(-6px);
}

.ls-big-match-card:hover .ls-bm-side-away {
    transform: scale(1.05) translateY(-6px);
}

.ls-bm-player-name {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffd700;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    text-align: center;
    padding: 4px 8px;
    background: rgba(0,0,0,0.45);
    border-radius: 4px;
    margin-top: -2px;
    font-family: 'Inter', sans-serif;
}

/* ── Centre Block ────────────────────────────── */
.ls-bm-center-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0 8px 16px;
    z-index: 2;
    min-width: 160px;
}

/* ── League Logo ─────────────────────────────── */
.ls-bm-league-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 8px;
    opacity: 0.9;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
    flex-shrink: 0;
}

/* ── BIG MATCH Title ─────────────────────────── */
.ls-bm-title {
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    line-height: 1;
    margin: 0 0 14px;
    background: linear-gradient(135deg, #fff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Stroke effect via text-shadow isn't applicable with clip;
       use a pseudo approach for depth instead */
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
    font-family: 'Oswald', 'Impact', 'Arial Narrow', sans-serif;
}

/* ── Logos Row ───────────────────────────────── */
.ls-bm-logos-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ls-bm-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.5));
    flex-shrink: 0;
}

/* ── Score ───────────────────────────────────── */
.ls-bm-score-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ls-bm-score {
    font-size: 28px;
    font-weight: 900;
    color: #ffd700;
    letter-spacing: 2px;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    font-family: 'Oswald', 'Impact', sans-serif;
    background: rgba(0,0,0,0.4);
    padding: 6px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255,215,0,0.25);
}

/* ── Match Status Badge ──────────────────────── */
.ls-bm-status {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
    font-family: 'Inter', sans-serif;
    display: none;
}
.ls-bm-status:not(:empty) { display: inline-block; }

.ls-bm-s-live {
    background: #e63946;
    color: #fff;
    animation: bmPulse 1.4s infinite;
}
.ls-bm-s-ft {
    background: #2a9d8f;
    color: #fff;
}
.ls-bm-s-ht {
    background: #f4a261;
    color: #1a1a1a;
}

@keyframes bmPulse {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.65; }
}

/* ── Info Bar (Date · Time) ──────────────────── */
.ls-bm-infobar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-family: 'Inter', sans-serif;
}

.ls-match-date {
    font-size: 13px;
    font-weight: 600;
    color: #ffd700;
    letter-spacing: 0.5px;
}

.ls-bm-dot {
    color: rgba(255,255,255,0.3);
    font-size: 16px;
}

.ls-match-time {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    font-family: 'Oswald', sans-serif;
}

/* ── Loading Overlay ─────────────────────────── */
.ls-bm-loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13,17,23,0.75);
    backdrop-filter: blur(4px);
    z-index: 10;
    border-radius: inherit;
}

.ls-bm-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255,215,0,0.2);
    border-top-color: #ffd700;
    border-radius: 50%;
    animation: bmSpin 0.8s linear infinite;
}

@keyframes bmSpin {
    to { transform: rotate(360deg); }
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 520px) {
    .ls-bm-players-stage {
        grid-template-columns: 1fr 120px 1fr;
        min-height: 180px;
    }

    .ls-bm-player-img {
        width: 120px;
        max-height: 170px;
    }

    .ls-bm-title {
        font-size: 24px;
    }

    .ls-bm-logo {
        width: 34px;
        height: 34px;
    }

    .ls-bm-score {
        font-size: 22px;
        padding: 5px 12px;
    }

    .ls-bm-center-block {
        min-width: 120px;
        padding: 0 4px 12px;
    }
}

@media (max-width: 380px) {
    .ls-bm-players-stage {
        grid-template-columns: 1fr 100px 1fr;
    }
    .ls-bm-player-img {
        width: 90px;
    }
}