/* ============================================================
   MNL Front-End — Match Centre
   Material UI / Tailwind inspired design
   ============================================================ */

/* ---------- Reset & Container ---------- */
.cfpro-mnl-front {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    color: #1e293b;
    line-height: 1.5;
}

.cfpro-mnl-error {
    background: #fef2f2;
    color: #991b1b;
    padding: 16px 20px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    font-size: 14px;
}

/* ---------- Connection Bar ---------- */
.mnl-connection-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 12px;
    color: #64748b;
}

.mnl-connection-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
    flex-shrink: 0;
    transition: background 0.3s;
}

.mnl-connection-bar.mnl-connected .mnl-connection-dot {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.mnl-connection-bar.mnl-disconnected .mnl-connection-dot {
    background: #ef4444;
}

.mnl-last-updated {
    margin-left: auto;
    font-size: 11px;
    color: #94a3b8;
}

/* ---------- Scoreboard ---------- */
.mnl-scoreboard {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    padding: 24px 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.25);
    color: #fff;
}

.mnl-team {
    flex: 1;
    text-align: center;
}

.mnl-team-name {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #cbd5e1;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mnl-team-score {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    transition: transform 0.2s ease;
}

.mnl-team-score.mnl-score-flash {
    transform: scale(1.2);
    color: #fbbf24;
}

.mnl-centre {
    flex: 0 0 140px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.mnl-period {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
}

.mnl-clock {
    font-size: 32px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #f1f5f9;
}

.mnl-status-chip {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #334155;
    color: #94a3b8;
}

.mnl-status-chip.mnl-status-live {
    background: #dc2626;
    color: #fff;
    animation: mnl-pulse 2s infinite;
}

.mnl-status-chip.mnl-status-final {
    background: #16a34a;
    color: #fff;
}

@keyframes mnl-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.mnl-pp-pill {
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background: #fbbf24;
    color: #1e293b;
}

/* ---------- Penalty Boxes ---------- */
.mnl-penalty-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.mnl-penalty-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.mnl-penalty-box-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin: 0 0 10px 0;
}

.mnl-penalty-slots {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mnl-penalty-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    transition: all 0.3s;
}

.mnl-penalty-slot.mnl-penalty-active {
    background: #fef3c7;
    border-color: #fbbf24;
}

.mnl-penalty-slot.mnl-penalty-empty {
    opacity: 0.5;
}

.mnl-slot-label {
    font-weight: 600;
    color: #334155;
}

.mnl-slot-player {
    font-weight: 500;
    color: #1e293b;
}

.mnl-slot-player-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.mnl-player-media {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    flex: 0 0 22px;
}

.mnl-player-media--badge {
    border-radius: 6px;
    object-fit: contain;
    background: #fff;
    padding: 1px;
}

.mnl-slot-reason {
    font-size: 11px;
    color: #64748b;
}

.mnl-slot-status {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #94a3b8;
}

.mnl-penalty-active .mnl-slot-status {
    color: #d97706;
}

/* ---------- Main Layout ---------- */
.cfpro-mnl-front {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: auto;
    min-height: 100vh;
    padding: 16px;
    box-sizing: border-box;
}

/* ---------- Live Feed ---------- */
.mnl-feed {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    min-height: 2000px;
}

.mnl-feed-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

.mnl-feed-empty {
    text-align: center;
    color: #94a3b8;
    padding: 24px;
    font-size: 14px;
}

.mnl-feed-item {
    display: flex;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8fafc;
    border-left: 3px solid #e2e8f0;
    animation: mnl-slide-in 0.3s ease;
}

.mnl-card {
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, .10);
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
    overflow: visible;
}

.mnl-card--goal,
.goal-card {
    width: 100%;
    max-width: 980px;
    min-height: 280px !important;
    height: auto !important;
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0,0,0,.45);
    border: 2px solid rgba(255,255,255,.20);
    background:
        radial-gradient(900px 300px at 20% 30%, rgba(32,240,139,.18), transparent 55%),
        radial-gradient(800px 280px at 85% 20%, rgba(224,33,42,.18), transparent 55%),
        linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
        #07110c;
    isolation: isolate;
    margin: 0 auto 16px;
    display: block;
}

.mnl-card--goal::before {
    content:"";
    position:absolute; inset:-40% -30%;
    background: linear-gradient(110deg,
        transparent 35%,
        rgba(255,255,255,.12) 45%,
        transparent 55%
    );
    transform: translateX(-35%) rotate(10deg);
    animation: sweep 2.6s ease-in-out infinite;
    z-index: 1;
    pointer-events:none;
    mix-blend-mode: overlay;
}

@keyframes sweep {
    0%   { transform: translateX(-45%) rotate(10deg); opacity:.35; }
    55%  { opacity:.12; }
    100% { transform: translateX(45%) rotate(10deg); opacity:.35; }
}

/* Goal Card Components */
.goal-card .sparks {
    position:absolute; inset:0;
    z-index: 1;
    pointer-events:none;
    opacity: .9;
}

.goal-card .spark {
    position:absolute;
    width: 8px; height: 8px;
    border-radius: 2px;
    background: #ffd36e;
    animation: pop 1.35s ease-out infinite;
    opacity: 0;
}

.goal-card .spark:nth-child(1){ left: 12%; top: 26%; animation-delay: .05s; transform: rotate(18deg); }
.goal-card .spark:nth-child(2){ left: 20%; top: 62%; animation-delay: .18s; background: #20f08b; transform: rotate(42deg); }
.goal-card .spark:nth-child(3){ left: 34%; top: 18%; animation-delay: .27s; background: rgba(255,255,255,.75); transform: rotate(14deg); }
.goal-card .spark:nth-child(4){ left: 46%; top: 68%; animation-delay: .12s; background: #e0212a; transform: rotate(36deg); }
.goal-card .spark:nth-child(5){ left: 62%; top: 24%; animation-delay: .33s; background: #ffd36e; transform: rotate(58deg); }
.goal-card .spark:nth-child(6){ left: 74%; top: 56%; animation-delay: .22s; background: #20f08b; transform: rotate(22deg); }
.goal-card .spark:nth-child(7){ left: 86%; top: 30%; animation-delay: .40s; background: rgba(255,255,255,.75); transform: rotate(70deg); }

@keyframes pop {
    0%   { opacity: 0; transform: translateY(10px) scale(.6) rotate(0deg); }
    18%  { opacity: .95; }
    100% { opacity: 0; transform: translateY(-22px) scale(1.2) rotate(120deg); }
}

.goal-inner {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 120px 260px 1fr;
    gap: 18px;
    padding: 20px;
    align-items: stretch;
    min-height: 280px !important;
}

.goal-card .meta {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 12px;
    align-content: start;
}

.goal-card .time-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    font-weight: 900;
    letter-spacing: .4px;
    font-size: 22px;
    text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.goal-card .time-pill .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #20f08b;
    box-shadow: 0 0 0 6px rgba(32,240,139,.16), 0 0 22px rgba(32,240,139,.45);
    animation: beat 1.1s ease-in-out infinite;
}

@keyframes beat {
    0%,100% { transform: scale(1); }
    50%     { transform: scale(1.15); }
}

.goal-card .period-pill {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(32,240,139,.22);
    background: rgba(32,240,139,.10);
    color: rgba(255,255,255,.88);
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    font-size: 13px;
}

.goal-card .player-slot {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 200px;
    z-index: 10;
}

.goal-card .player-anchor {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.goal-card .player-img {
    display: block;
    height: 190px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,.55));
    z-index: 10;
    position: relative;
}

.goal-card .num-badge {
    position:absolute;
    top: 0;
    left: 0;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.16);
    font-weight: 900;
    letter-spacing: .6px;
    color: rgba(255,255,255,.92);
    backdrop-filter: blur(6px);
    z-index: 3;
}

.goal-card .content {
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 12px;
    padding: 6px 10px 8px 6px;
}

.goal-card .top-row {
    display:flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.goal-card .goal-tag {
    display:inline-flex;
    align-items:center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(32,240,139,.12);
    border: 1px solid rgba(32,240,139,.28);
    font-weight: 900;
    letter-spacing: .7px;
    text-transform: uppercase;
    font-size: 13px;
    color: rgba(255,255,255,.92);
}

.goal-card .goal-tag .pulse {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #20f08b;
    box-shadow: 0 0 0 6px rgba(32,240,139,.16), 0 0 26px rgba(32,240,139,.55);
    animation: beat 1s ease-in-out infinite;
}

.goal-card .team {
    display:inline-flex;
    align-items:center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    font-weight: 800;
    color: rgba(255,255,255,.9);
}

.goal-card .badge {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: rgba(255,255,255,.86);
}

.goal-card .headline {
    display:flex;
    flex-direction: column;
    gap: 4px;
}

.goal-card .player-name {
    font-size: 34px;
    font-weight: 950;
    letter-spacing: .2px;
    line-height: 1.05;
    text-shadow: 0 10px 30px rgba(0,0,0,.45);
    color: rgba(255,255,255,.92);
}

.goal-card .shout {
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 12px;
    color: rgba(255,255,255,.86);
}

.goal-card .shout span {
    color: #ffd36e;
    text-shadow: 0 0 22px rgba(255,211,110,.38);
}

.goal-card .details {
    display:grid;
    gap: 8px;
    align-content: start;
}

.goal-card .row {
    display:flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: baseline;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.18);
}

.goal-card .label {
    font-weight: 900;
    letter-spacing: .4px;
    color: rgba(255,255,255,.75);
    text-transform: uppercase;
    font-size: 12px;
}

.goal-card .value {
    font-weight: 800;
    color: rgba(255,255,255,.92);
}

.goal-card .ribbon {
    position:absolute;
    left:0; right:0; bottom:0;
    height: 6px;
    background: linear-gradient(90deg, rgba(224,33,42,.0), rgba(224,33,42,.9), rgba(224,33,42,.0));
    filter: drop-shadow(0 2px 8px rgba(224,33,42,.25));
    z-index: 3;
}

/* Responsive */
@media (max-width: 820px) {
    .mnl-card--goal,
    .goal-card {
        width: 100%;
        margin: 0 0 16px 0;
    }
    
    .goal-inner {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }
    
    .goal-card .meta {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        align-items: center;
        justify-content: space-between;
    }
    
    .goal-card .period-pill { justify-self: end; }
    
    .goal-card .player-slot {
        min-height: 140px;
        order: -1;
    }
    
    .goal-card .player-img {
        height: 140px;
        max-width: 160px;
    }
    
    .goal-card .player-name { font-size: 28px; }
    
    .goal-card .content {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .mnl-card--goal,
    .goal-card {
        min-height: auto;
        padding: 0;
    }
    
    .goal-inner {
        gap: 10px;
        padding: 12px;
    }
    
    .goal-card .time-pill { 
        font-size: 18px; 
        padding: 10px 12px;
    }
    
    .goal-card .period-pill {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .goal-card .player-name { 
        font-size: 24px; 
        line-height: 1.1;
    }
    
    .goal-card .shout {
        font-size: 11px;
    }
    
    .goal-card .goal-tag, .goal-card .team, .goal-card .badge { 
        padding: 8px 10px; 
        font-size: 11px;
    }
    
    .goal-card .row { 
        padding: 8px 10px; 
    }
    
    .goal-card .player-img {
        height: 120px;
        max-width: 140px;
    }
    
    .goal-card .player-slot {
        min-height: 120px;
    }
    
    .goal-card .details {
        gap: 6px;
    }
    
    .goal-card .label {
        font-size: 10px;
    }
    
    .goal-card .value {
        font-size: 12px;
    }
}

/* Penalty Card */
.mnl-card--penalty {
    width: 100%;
    max-width: 980px;
    min-height: 200px;
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0,0,0,.50);
    border: 1px solid rgba(255,255,255,.10);
    background:
        radial-gradient(900px 320px at 20% 35%, rgba(224,33,42,.22), transparent 60%),
        radial-gradient(900px 340px at 88% 25%, rgba(255,59,69,.14), transparent 62%),
        linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)),
        rgba(10, 12, 16, .74);
    isolation: isolate;
    margin: 0 auto 16px;
    display: block;
}

.mnl-card--penalty::before {
    content: "";
    position: absolute;
    inset: -42% -30%;
    background: linear-gradient(110deg,
        transparent 35%,
        rgba(224,33,42,.24) 46%,
        transparent 58%
    );
    transform: translateX(-38%) rotate(10deg);
    animation: pen-sweep 2.8s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: screen;
}

@keyframes pen-sweep {
    0%   { transform: translateX(-48%) rotate(10deg); opacity:.45; }
    55%  { opacity:.18; }
    100% { transform: translateX(48%) rotate(10deg); opacity:.45; }
}

.mnl-penalty-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 120px 260px 1fr;
    gap: 18px;
    padding: 18px;
    align-items: stretch;
}

.mnl-card--goal::before {
    content: "";
    position: absolute;
    inset: -40% -30% auto auto;
    width: 220px;
    height: 220px;
    transform: rotate(18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
    opacity: .65;
    pointer-events: none;
    filter: blur(0.2px);
}

/* Penalty Card Meta (Left) */
.mnl-penalty-meta {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 12px;
    align-content: start;
}

.mnl-penalty-time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    font-weight: 900;
    letter-spacing: .4px;
    font-size: 22px;
    text-shadow: 0 2px 10px rgba(0,0,0,.35);
    color: rgba(255,255,255,.92);
}

.mnl-penalty-time .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff3b45;
    box-shadow: 0 0 0 6px rgba(255,59,69,.16), 0 0 24px rgba(255,59,69,.55);
    animation: beat 1.0s ease-in-out infinite;
}

.mnl-penalty-period {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(224,33,42,.30);
    background: rgba(224,33,42,.12);
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    font-size: 13px;
    color: rgba(255,255,255,.92);
}

/* Penalty Player Slot (Middle) */
.mnl-penalty-player {
    position: relative;
    overflow: visible;
    display: grid;
    align-items: end;
    justify-items: center;
    min-height: 170px;
}

.mnl-penalty-player-anchor {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.mnl-penalty-player-img {
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%) scale(1.08);
    height: 220px;
    width: auto;
    max-width: none;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 18px 22px rgba(0,0,0,.60));
    pointer-events: none;
    user-select: none;
}

.mnl-penalty-number {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(0,0,0,.38);
    border: 1px solid rgba(255,255,255,.16);
    font-weight: 900;
    letter-spacing: .6px;
    backdrop-filter: blur(6px);
    z-index: 3;
    color: rgba(255,255,255,.92);
}

/* Penalty Content (Right) */
.mnl-penalty-content {
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 12px;
    padding: 6px 10px 8px 6px;
}

.mnl-penalty-top {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.mnl-penalty-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(224,33,42,.14);
    border: 1px solid rgba(224,33,42,.32);
    font-weight: 900;
    letter-spacing: .7px;
    text-transform: uppercase;
    font-size: 13px;
    color: rgba(255,255,255,.92);
}

.mnl-penalty-tag .pulse {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff3b45;
    box-shadow: 0 0 0 6px rgba(255,59,69,.16), 0 0 26px rgba(255,59,69,.55);
    animation: beat 1s ease-in-out infinite;
}

.mnl-penalty-team {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    font-weight: 800;
    color: rgba(255,255,255,.92);
}

.mnl-penalty-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: rgba(255,255,255,.86);
}

.mnl-penalty-headline {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mnl-penalty-name {
    font-size: 34px;
    font-weight: 950;
    letter-spacing: .2px;
    line-height: 1.05;
    text-shadow: 0 10px 30px rgba(0,0,0,.45);
    color: rgba(255,255,255,.92);
}

.mnl-penalty-call {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.12);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    color: rgba(255,255,255,.92);
}

.mnl-penalty-call .label {
    opacity: .78;
}

.mnl-penalty-call .value {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,59,69,.18);
    border: 1px solid rgba(255,59,69,.26);
    opacity: .96;
}

.mnl-penalty-call .pill {
    font-weight: 950;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .5px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
}

.mnl-penalty-details {
    display: grid;
    gap: 10px;
    align-content: start;
}

.mnl-penalty-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.22);
}

.mnl-penalty-info .k {
    font-weight: 900;
    letter-spacing: .4px;
    text-transform: uppercase;
    font-size: 12px;
    opacity: .78;
    color: rgba(255,255,255,.92);
}

.mnl-penalty-info .v {
    font-weight: 950;
    font-size: 18px;
    letter-spacing: .2px;
    color: rgba(255,255,255,.92);
}

.mnl-penalty-ribbon {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 8px;
    background: linear-gradient(90deg, rgba(224,33,42,.0), rgba(224,33,42,.95), rgba(224,33,42,.0));
    filter: drop-shadow(0 6px 18px rgba(224,33,42,.35));
    z-index: 3;
}

.mnl-goal__time {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 12px;
    align-items: center;
    justify-content: center;
}

.mnl-timechip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    padding: 10px 12px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 18px;
    letter-spacing: .02em;
    color: #0f172a;
    background: rgba(255, 255, 255, .85);
    border: 1px solid rgba(15, 23, 42, .12);
    box-shadow: 0 10px 20px rgba(15, 23, 42, .08);
    font-variant-numeric: tabular-nums;
}

.mnl-subchip {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
    background: rgba(34, 197, 94, .18);
    color: #166534;
    border: 1px solid rgba(34, 197, 94, .25);
    letter-spacing: .06em;
}

.mnl-goal__player {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    background: rgba(255, 255, 255, 0.4);
    overflow: hidden;
}

.mnl-goal__img {
    display: block;
    width: 100%;
    max-width: 140px;
    height: auto;
    object-position: top center;
}

.mnl-goal__player::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 44px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .92));
    pointer-events: none;
}

.mnl-goal__img--badge {
    object-fit: contain;
    padding: 6px;
}

.mnl-goal__corner {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    color: #fff;
    background: rgba(15, 23, 42, .75);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .18);
}

.mnl-goal__info {
    padding: 16px 16px 16px 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    min-width: 0;
}

.mnl-goal__topline,
.mnl-goal__headline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mnl-goalburst {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(34, 197, 94, .18);
    border: 1px solid rgba(34, 197, 94, .28);
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .12em;
    color: #14532d;
    text-transform: uppercase;
}

.mnl-goalburst__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, .18);
}

.mnl-goal__team {
    font-weight: 900;
    color: #0f172a;
    opacity: .85;
}

.mnl-goal__scorer {
    font-weight: 950;
    font-size: 20px;
    line-height: 1.1;
    color: #0f172a;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mnl-goal__meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: baseline;
    color: rgba(15, 23, 42, .78);
    font-size: 13px;
    min-width: 0;
}

.mnl-meta__label {
    font-weight: 900;
    color: rgba(15, 23, 42, .92);
}

.mnl-meta__names {
    font-weight: 650;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mnl-strength {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    border: 1px solid rgba(15, 23, 42, .14);
    background: rgba(255, 255, 255, .8);
    color: rgba(15, 23, 42, .82);
}

.mnl-goal__tag {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: rgba(34, 197, 94, 0.18);
    color: #166534;
}

.mnl-goal__tag--penalty {
    background: rgba(245, 158, 11, 0.24);
    color: #92400e;
}

.mnl-goal__assists {
    font-size: 13px;
    color: #475569;
    opacity: 0.9;
}

.mnl-goal__label {
    font-weight: 800;
    color: #334155;
}

.mnl-goal__badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mnl-pill {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.7);
    color: #1f2937;
}

.mnl-pop {
    animation: mnlPop .35s ease-out;
}

@keyframes mnlPop {
    from { transform: translateY(6px); opacity: .0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .mnl-pop {
        animation: none;
    }
}

@keyframes mnl-slide-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.mnl-feed-item.mnl-feed-goal {
    border-left-color: #22c55e;
    background: #f0fdf4;
}

.mnl-feed-item.mnl-feed-penalty {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.mnl-feed-item.mnl-feed-info {
    border-left-color: #3b82f6;
    background: #eff6ff;
}

.mnl-feed-item.mnl-feed-period {
    border-left-color: #8b5cf6;
    background: #f5f3ff;
}

.mnl-feed-clock {
    flex: 0 0 50px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    padding-top: 2px;
    font-variant-numeric: tabular-nums;
}

.mnl-feed-content {
    flex: 1;
    min-width: 0;
}

.mnl-feed-title-text {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.mnl-feed-message {
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
}

.mnl-feed-identity-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.mnl-feed-player-avatar,
.mnl-feed-team-badge {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid #dbe3ec;
    object-fit: cover;
    flex: 0 0 22px;
    background: #fff;
}

.mnl-feed-team-badge {
    border-radius: 6px;
    object-fit: contain;
    padding: 1px;
}

.mnl-feed-goal-type {
    color: #475569;
    font-weight: 600;
}

.mnl-feed-period-label {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
    .mnl-scoreboard {
        padding: 16px 12px;
        border-radius: 12px;
    }

    .mnl-team-score {
        font-size: 40px;
    }

    .mnl-clock {
        font-size: 24px;
    }

    .mnl-centre {
        flex: 0 0 100px;
    }

    .mnl-team-name {
        font-size: 12px;
    }

    .mnl-penalty-boxes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .mnl-card--goal {
        grid-template-columns: 86px 120px 1fr;
        min-height: 154px;
        height: 154px;
    }

    .mnl-card--penalty {
        min-height: 154px;
        height: 154px;
    }

    .mnl-goal__scorer {
        font-size: 18px;
    }
}

/* Desktop specific styles */
@media (min-width: 769px) {
    .mnl-card--goal,
    .goal-card {
        min-height: 350px !important;
        height: auto !important;
        padding-bottom: 20px !important;
    }
    
    .goal-inner {
        min-height: 350px !important;
        height: auto !important;
        padding: 24px 18px !important;
    }
    
    .goal-card .player-slot {
        min-height: 260px !important;
        height: auto !important;
        padding-bottom: 15px !important;
    }
    
    .goal-card .player-img {
        height: 240px !important;
        max-width: 240px !important;
    }
    
    .goal-card .player-name {
        font-size: 28px !important;
        line-height: 1.1 !important;
    }
    
    .goal-card .shout {
        font-size: 11px !important;
    }
    
    .goal-card .time-pill {
        font-size: 18px !important;
        padding: 10px 12px !important;
    }
    
    .goal-card .label {
        font-size: 11px !important;
    }
    
    .goal-card .value {
        font-size: 14px !important;
    }
    
    .goal-card .details {
        padding-bottom: 15px !important;
        min-height: 80px !important;
    }
    
    .goal-card .headline {
        padding-bottom: 12px !important;
    }
}

@media (max-width: 768px) {
    .cfpro-mnl-front {
        height: auto !important;
        min-height: 100vh !important;
        padding: 8px !important;
        gap: 8px !important;
        margin: 0 !important;
    }
    
    /* Keep scoreboard and penalties visible on mobile */
    .mnl-connection-bar {
        display: none !important;
    }
    
    .mnl-scoreboard,
    .mnl-penalty-boxes {
        margin-bottom: 8px !important;
    }
    
    .mnl-feed {
        padding: 8px !important;
        flex: 1 !important;
        min-height: 100vh !important;
        border: none !important;
        border-radius: 8px !important;
        margin: 0 !important;
    }
    
    .mnl-feed-list {
        flex: 1 !important;
        min-height: 0 !important;
        overflow-y: auto !important;
    }
    
    /* Ensure cards show all content on mobile */
    .mnl-card--goal,
    .goal-card {
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
    }

    .mnl-card--penalty {
        min-height: auto !important;
        height: auto !important;
        overflow: hidden !important;
    }
    
    /* Penalty Card Mobile Layout */
    .mnl-penalty-inner {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        padding: 16px !important;
    }
    
    .mnl-penalty-meta {
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    .mnl-penalty-period {
        justify-self: end !important;
    }
    
    .mnl-penalty-player {
        min-height: 220px !important;
        order: -1 !important;
    }
    
    .mnl-penalty-player-img {
        height: 260px !important;
        bottom: -10px !important;
        transform: translateX(-50%) scale(1.02) !important;
    }
    
    .mnl-penalty-name {
        font-size: 30px !important;
    }
    
    .mnl-penalty-time {
        font-size: 20px !important;
    }
    
    .mnl-penalty-tag,
    .mnl-penalty-team,
    .mnl-penalty-badge {
        padding: 9px 12px !important;
    }
    
    .goal-card .player-img {
        height: auto !important;
        max-height: 200px !important;
        max-width: 100% !important;
    }
    
    .goal-card .player-slot {
        min-height: auto !important;
        height: auto !important;
    }
    
    .goal-inner {
        padding: 16px !important;
        gap: 12px !important;
    }

    .mnl-goal__time {
        flex-direction: row;
        justify-content: flex-start;
        padding: 12px 12px 0;
        gap: 8px;
    }

    .mnl-goal__player {
        padding: 10px 12px 0;
    }

    .mnl-goal__info {
        padding: 12px;
    }

    .mnl-goal__player::after {
        display: none;
    }

    .mnl-goal__img {
        width: 100%;
        height: 160px;
    }
}
