/**
 * NPL Sports Pro - Fully Responsive Combined Next Matches
 * Strict image and layout control with !important.
 * Color Scheme: UNIFIED BLUE (#0010a0)
 */

/* --- LOGO SIZE FIX (MOST IMPORTANT) --- */
.nplsp-logo-inner {
    width: 32px !important;
    height: 32px !important;
    display: block !important;
    margin: 0 auto 6px auto !important; /* Margin Bottom to push name down */
    overflow: hidden !important;
}

.nplsp-logo-inner img {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    min-width: 32px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* --- MAIN CONTAINER --- */
.nplsp-shortcode-container.nplsp-next-matches-wrap {
    border: 1px solid #e0e0e0 !important;
    margin-bottom: 20px !important;
    background-color: #ffffff !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}

/* --- WIDGET HEADER (UPDATED TO BLUE) --- */
.nplsp-shortcode-header {
    background-color: #0010a0 !important; /* Unified Blue */
    color: #ffffff !important;
    padding: 12px !important;
    text-align: center !important;
}

.nplsp-shortcode-header .nplsp-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* --- MATCH CARD LINK --- */
.nplsp-match-card-link {
    display: block !important;
    text-decoration: none !important;
    color: inherit !important;
    border-bottom: 1px solid #f0f0f0 !important;
    transition: background 0.2s ease !important;
}

.nplsp-match-card-link:last-child { border-bottom: none !important; }
.nplsp-match-card-link:hover { background-color: #fcfcfc !important; }

.nplsp-match-card-item { padding: 15px 12px !important; }

/* --- TOP META (LEAGUE & DATE) --- */
.nplsp-match-info-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 10px !important;
    color: #999 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin-bottom: 12px !important;
    width: 100% !important;
}

/* Updated League Color to Blue */
.nplsp-match-info-top .league { color: #0010a0 !important; }

/* --- TEAMS ROW --- */
.nplsp-match-teams-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
}

.nplsp-match-teams-row .team {
    width: 35% !important;
    display: flex !important;
    flex-direction: column !important; /* Stack Vertical */
    align-items: center !important;
    text-align: center !important;
}

.nplsp-match-teams-row .team .name {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #333 !important;
    line-height: 1.2 !important;
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    width: 100% !important;
    margin: 0 !important;
}

/* --- TIME BOX STYLING --- */
.match-time-box {
    width: 30% !important;
    text-align: center !important;
    background: #f4f7f9 !important;
    padding: 6px 4px !important;
    border-radius: 4px !important;
    border: 1px solid #edf1f4 !important;
}

/* Updated Time Color to Blue */
.match-time-box .time {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #0010a0 !important; /* Unified Blue */
    display: block !important;
    white-space: nowrap !important;
}

.match-time-box .status-vs {
    font-size: 9px !important;
    color: #bbb !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    display: block !important;
    margin-top: 2px !important;
}

/* --- NO DATA MESSAGE --- */
.nplsp-no-data-msg {
    padding: 20px !important;
    text-align: center !important;
    font-size: 13px !important;
    color: #999 !important;
    background: #f9f9f9 !important;
    border: 1px dashed #ddd !important;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media screen and (max-width: 480px) {
    .nplsp-logo-inner, .nplsp-logo-inner img { 
        width: 28px !important; 
        height: 28px !important; 
    }
    .nplsp-match-teams-row .team .name { 
        font-size: 10px !important; 
    }
    .match-time-box .time { 
        font-size: 11px !important; 
    }
    .nplsp-match-card-item { 
        padding: 12px 8px !important; 
    }
}