/**
 * NPL Sports Pro - Next Match Countdown Styles
 * Version: 4.1 (Fixed Team Name Wrapping)
 */

.nplsp-countdown-bg-style {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
    width: 100%;
}

/* Link Wrap Styling */
.nplsp-match-link-overlay {
    text-decoration: none !important;
    display: block;
    color: #ffffff !important;
    transition: background 0.3s ease;
}

.nplsp-match-link-overlay:hover .nplsp-content-inner {
    background: rgba(0, 0, 0, 0.2);
}

/* Dark Overlay */
.nplsp-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.45); /* Slightly darker for better readability */
    z-index: 1;
}

.nplsp-content-inner {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Header */
.nplsp-countdown-header {
    background-color:  rgba(0, 0, 0, 0.2);
    padding: 8px 5px;
    text-align: center;
	color: #fff;
}

.nplsp-league-title {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 3px 0;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.2;
}

.nplsp-venue {
    font-size: 11px;
    color: #ffc107;
    font-weight: 700;
}

/* Body */
.nplsp-countdown-body {
    padding: 15px 10px;
}

.nplsp-matchup-row {
    display: flex;
    justify-content: space-between; /* Better alignment for long names */
    align-items: center;
    text-align: center;
    gap: 5px;
}

/* FIXED: Individual Team Container */
.nplsp-matchup-row .team {
    width: 35%; /* Fixed width to give room for names */
    flex-shrink: 0;
}

.nplsp-matchup-row .team img {
    width: 45px !important;
    height: 45px !important;
    object-fit: contain;
    margin-bottom: 5px;
}

/* FIXED: Team Name Single Line Logic */
.nplsp-matchup-row .team .team-name {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    white-space: nowrap; /* Forces text to stay on one line */
    overflow: hidden; /* Hides the overflow */
    text-overflow: ellipsis; /* Adds '...' if name is too long */
    display: block;
    width: 100%;
}

/* Center Info Block */
.nplsp-matchup-row .match-info {
    width: 25%;
    flex-shrink: 0;
}

.nplsp-matchup-row .match-info .match-date {
    font-size: 10px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 4px;
}

.nplsp-matchup-row .match-info .vs-text {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 8px;
    border-radius: 3px;
    display: inline-block;
}

/* Timer Bar */
.nplsp-timer-bar-wrapper {
    width: 100%;
    position: relative;
    z-index: 3;
}

.nplsp-timer-display-bar {
    background-color: #4a59d4;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
    gap: 8px;
}

.nplsp-timer-display-bar .unit {
    display: flex;
    align-items: baseline;
}

.nplsp-timer-display-bar .unit span {
    font-size: 22px;
    font-weight: 800;
    font-family: 'Courier New', monospace;
}

.nplsp-timer-display-bar .unit small {
    font-size: 11px;
    margin-left: 3px;
    font-weight: 600;
}