/* ============================================================
   Norskball Widgets — Shared Styles
   Scoped under .nb-widget for specificity against WP themes.
   Every overridable property carries !important.
   ============================================================ */

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes nb-spin {
    to { transform: rotate(360deg); }
}
@keyframes nbFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

/* ============================================================
   CSS CUSTOM PROPERTIES + ROOT RESET
   ============================================================ */
.nb-widget {
    --nb-primary:   #1a73e8;
    --nb-navy:      #1a237e;
    --nb-navy-mid:  #283593;
    --nb-bg:        #f8f9fa;
    --nb-surface:   #ffffff;
    --nb-border:    #e0e0e0;
    --nb-text:      #202124;
    --nb-muted:     #5f6368;
    --nb-high:      #34a853;
    --nb-medium:    #fbbc05;
    --nb-low:       #ea4335;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: var(--nb-text) !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    position: relative !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

/* Box-sizing reset for all descendants */
.nb-widget *,
.nb-widget *::before,
.nb-widget *::after {
    box-sizing: border-box !important;
}

/* Override WordPress theme img rule: img { max-width: 100% } */
.nb-widget img {
    max-width: none !important;
    height: auto !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* ============================================================
   CARDS
   ============================================================ */
.nb-widget .nb-card {
    background: var(--nb-surface) !important;
    border-radius: 12px !important;
    padding: 1.25rem !important;
    margin-bottom: 1.25rem !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08) !important;
    border: 1px solid var(--nb-border) !important;
    position: relative !important;
    overflow: hidden !important;
    transition: box-shadow .2s ease !important;
}
.nb-widget .nb-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .12) !important;
}

/* ============================================================
   TABLES
   ============================================================ */
.nb-widget .nb-table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}
.nb-widget .nb-table {
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    background: var(--nb-surface) !important;
    font-size: 13px !important;
}
.nb-widget .nb-table th {
    background: linear-gradient(135deg, #1a237e, #283593) !important;
    color: #ffffff !important;
    padding: 12px 8px !important;
    text-align: left !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    letter-spacing: .03em !important;
    white-space: nowrap !important;
    border: none !important;
    border-bottom: none !important;
    vertical-align: middle !important;
}
.nb-widget .nb-table th[data-sort] {
    cursor: pointer !important;
}
.nb-widget .nb-table th[data-sort]:hover {
    background: linear-gradient(135deg, #283593, #3949ab) !important;
}
.nb-widget .nb-table td {
    padding: 10px 8px !important;
    border: none !important;
    border-bottom: 1px solid var(--nb-border) !important;
    background: transparent !important;
    vertical-align: middle !important;
    color: var(--nb-text) !important;
}
.nb-widget .nb-table tr:last-child td {
    border-bottom: none !important;
}
.nb-widget .nb-table tr:nth-child(even) td {
    background: rgba(0, 0, 0, .02) !important;
}
.nb-widget .nb-table tr:hover td {
    background: rgba(26, 115, 232, .04) !important;
}
.nb-widget .nb-table tr {
    transition: background .15s ease !important;
}

/* ============================================================
   TABLE CELL VARIANTS
   ============================================================ */
.nb-widget .nb-pos-cell {
    font-weight: 700 !important;
    width: 28px !important;
    text-align: center !important;
    color: var(--nb-navy) !important;
}
.nb-widget .nb-stat-cell {
    text-align: center !important;
    font-variant-numeric: tabular-nums !important;
    color: var(--nb-muted) !important;
}
.nb-widget .nb-points-cell {
    font-weight: 700 !important;
    text-align: center !important;
    color: var(--nb-primary) !important;
}
.nb-widget .nb-sort-arrow {
    margin-left: 4px !important;
    font-size: .75em !important;
    color: rgba(255, 255, 255, .7) !important;
}

/* ============================================================
   TEAM CELL (logo + name)
   ============================================================ */
.nb-widget .nb-team-cell {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}
.nb-widget .nb-team-logo {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    border-radius: 2px !important;
}

/* ============================================================
   PROMOTION / RELEGATION ZONE ROWS
   ============================================================ */
.nb-widget .nb-zone-promotion td {
    background: rgba(52, 168, 83, .07) !important;
}
.nb-widget .nb-zone-promotion td:first-child {
    border-left: 3px solid #34a853 !important;
}
.nb-widget .nb-zone-relegation td {
    background: rgba(234, 67, 53, .07) !important;
}
.nb-widget .nb-zone-relegation td:first-child {
    border-left: 3px solid #ea4335 !important;
}

/* ============================================================
   FORM INDICATORS (W / D / L circles)
   ============================================================ */
.nb-widget .nb-form-indicator {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 1px !important;
    line-height: 1 !important;
}
.nb-widget .nb-form-W { background: #34a853 !important; }
.nb-widget .nb-form-D { background: #fbbc05 !important; }
.nb-widget .nb-form-L { background: #ea4335 !important; }

/* ============================================================
   WIN PERCENTAGE BAR
   ============================================================ */
.nb-widget .nb-win-bar {
    display: inline-block !important;
    height: 5px !important;
    border-radius: 3px !important;
    background: #34a853 !important;
    vertical-align: middle !important;
    min-width: 2px !important;
    max-width: 50px !important;
    opacity: .75 !important;
    transition: width .4s ease !important;
}

/* ============================================================
   RATING BADGES
   ============================================================ */
.nb-widget .nb-rating {
    display: inline-block !important;
    padding: 3px 7px !important;
    border-radius: 5px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}
.nb-widget .nb-rating-high {
    background: #34a853 !important;
    color: #ffffff !important;
}
.nb-widget .nb-rating-medium {
    background: #fbbc05 !important;
    color: #ffffff !important;
}
.nb-widget .nb-rating-low {
    background: #ea4335 !important;
    color: #ffffff !important;
}
.nb-widget .nb-rating-gradient {
    display: inline-block !important;
    padding: 3px 9px !important;
    border-radius: 5px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .2) !important;
    line-height: 1 !important;
}

/* ============================================================
   STAT BADGES (goals / assists / cards)
   ============================================================ */
.nb-widget .nb-stat-badge {
    display: inline-block !important;
    padding: 2px 5px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    min-width: 18px !important;
    text-align: center !important;
    background: #f1f3f4 !important;
    color: #333333 !important;
    border: 1px solid #dadce0 !important;
    margin-left: 3px !important;
    line-height: 1.4 !important;
}

/* ============================================================
   PLAYER PHOTOS
   ============================================================ */
.nb-widget .nb-player-photo {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12) !important;
    flex-shrink: 0 !important;
}
.nb-widget .nb-player-photo-sm {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 1px solid #ffffff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08) !important;
    flex-shrink: 0 !important;
}

/* ============================================================
   BUTTONS (generic)
   ============================================================ */
.nb-widget .nb-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 7px 14px !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    border: 1px solid var(--nb-border) !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    color: var(--nb-navy) !important;
    transition: background .15s ease, color .15s ease, border-color .15s ease !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    line-height: 1 !important;
}
.nb-widget .nb-btn:hover {
    background: var(--nb-bg) !important;
    border-color: #bdbdbd !important;
}
.nb-widget .nb-btn.active {
    background: var(--nb-primary) !important;
    color: #ffffff !important;
    border-color: var(--nb-primary) !important;
}

/* ============================================================
   PILL TABS
   ============================================================ */
.nb-widget .nb-tabs {
    display: flex !important;
    gap: 6px !important;
    margin-bottom: 1rem !important;
    flex-wrap: wrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 2px !important;
}
.nb-widget .nb-tabs::-webkit-scrollbar {
    display: none !important;
}
.nb-widget .nb-tab {
    display: inline-flex !important;
    align-items: center !important;
    padding: 7px 16px !important;
    border: 1px solid var(--nb-border) !important;
    background: var(--nb-surface) !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    color: var(--nb-text) !important;
    transition: background .15s ease, color .15s ease, border-color .15s ease !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}
.nb-widget .nb-tab:hover {
    background: var(--nb-bg) !important;
    border-color: #bdbdbd !important;
}
.nb-widget .nb-tab.active {
    background: var(--nb-primary) !important;
    color: #ffffff !important;
    border-color: var(--nb-primary) !important;
}

/* Month tabs — never wrap */
.nb-widget .nb-month-tabs .nb-tab {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

/* ============================================================
   STANDINGS TABS (Total / Home / Away)
   ============================================================ */
.nb-widget .nb-standings-tabs {
    display: flex !important;
    gap: 4px !important;
    margin-bottom: 1rem !important;
    flex-wrap: nowrap !important;
}
.nb-widget .nb-standings-tab {
    padding: 6px 14px !important;
    border: 1px solid var(--nb-border) !important;
    background: var(--nb-surface) !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    font-size: 12px !important;
    color: var(--nb-text) !important;
    transition: background .15s ease, color .15s ease !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}
.nb-widget .nb-standings-tab.active {
    background: var(--nb-primary) !important;
    color: #ffffff !important;
    border-color: var(--nb-primary) !important;
}

/* ============================================================
   MATCH BUTTONS (horizontal scroll carousel)
   ============================================================ */
.nb-widget .nb-match-scroll {
    display: flex !important;
    gap: 10px !important;
    padding: 4px 0 10px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    scroll-snap-type: x mandatory !important;
}
.nb-widget .nb-match-scroll::-webkit-scrollbar {
    display: none !important;
}
.nb-widget .nb-match-btn {
    flex: 0 0 170px !important;
    min-height: 84px !important;
    border-radius: 10px !important;
    border: 1px solid var(--nb-border) !important;
    background: var(--nb-surface) !important;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .07) !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 8px 4px !important;
    scroll-snap-align: start !important;
    transition: box-shadow .15s ease, border-color .15s ease !important;
}
.nb-widget .nb-match-btn:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12) !important;
    border-color: #bdbdbd !important;
}
.nb-widget .nb-match-btn.active {
    background: var(--nb-primary) !important;
    border-color: var(--nb-primary) !important;
    box-shadow: 0 4px 16px rgba(26, 115, 232, .25) !important;
}
.nb-widget .nb-match-btn.disabled {
    opacity: .55 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}
.nb-widget .nb-match-btn .nb-teams {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 100% !important;
}
.nb-widget .nb-match-btn .nb-team {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 3px !important;
    flex: 1 !important;
    min-width: 0 !important;
}
.nb-widget .nb-match-btn .nb-team img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    object-fit: contain !important;
    border-radius: 50% !important;
    background: var(--nb-bg) !important;
    padding: 2px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12) !important;
}
.nb-widget .nb-match-btn .nb-team-name {
    font-size: 10px !important;
    font-weight: 600 !important;
    color: var(--nb-text) !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-align: center !important;
    line-height: 1.1 !important;
}
.nb-widget .nb-match-btn.active .nb-team-name {
    color: #ffffff !important;
}
.nb-widget .nb-match-btn .nb-vs {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: var(--nb-muted) !important;
    letter-spacing: .5px !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
}
.nb-widget .nb-match-btn.active .nb-vs {
    color: rgba(255, 255, 255, .8) !important;
}
.nb-widget .nb-match-btn .nb-date {
    font-size: 10px !important;
    color: var(--nb-muted) !important;
    line-height: 1 !important;
}
.nb-widget .nb-match-btn.active .nb-date {
    color: rgba(255, 255, 255, .75) !important;
}
.nb-widget .nb-match-score {
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    color: var(--nb-navy) !important;
    line-height: 1 !important;
}
.nb-widget .nb-match-btn.active .nb-match-score {
    color: #ffffff !important;
}
.nb-widget .nb-match-btn.postponed {
    opacity: .7 !important;
    border-style: dashed !important;
}
.nb-widget .nb-postponed-label {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #d97706 !important;
    text-transform: uppercase !important;
    letter-spacing: .5px !important;
    line-height: 1 !important;
}

/* ============================================================
   MATCH HEADER (score block)
   ============================================================ */
.nb-widget .nb-match-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid var(--nb-border) !important;
    gap: 12px !important;
}
.nb-widget .nb-match-header > div {
    flex: 1 !important;
    text-align: center !important;
}
.nb-widget .nb-team-logo-lg {
    max-width: 60px !important;
    max-height: 60px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto 8px !important;
}
.nb-widget .nb-score {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: var(--nb-primary) !important;
    letter-spacing: 2px !important;
    line-height: 1 !important;
}
.nb-widget .nb-venue {
    font-size: 12px !important;
    color: var(--nb-muted) !important;
    text-align: center !important;
    margin-top: 4px !important;
    display: block !important;
}

/* ============================================================
   MATCH CONTENT (two-column lineup grid)
   ============================================================ */
.nb-widget .nb-match-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
}
.nb-widget .nb-player-section {
    margin-bottom: 16px !important;
}
.nb-widget .nb-player-section h4 {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--nb-navy) !important;
    margin: 0 0 10px !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid var(--nb-border) !important;
    text-transform: none !important;
}

/* ============================================================
   MATCH STATISTICS BARS
   ============================================================ */
.nb-widget .nb-stats-section {
    margin: 1.25rem 0 !important;
}
.nb-widget .nb-stats-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 10px !important;
}
.nb-widget .nb-stats-label {
    flex: 0 0 90px !important;
    text-align: center !important;
    font-size: 11px !important;
    color: var(--nb-muted) !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}
.nb-widget .nb-stats-values {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex: 1 !important;
}
.nb-widget .nb-stats-home-val,
.nb-widget .nb-stats-away-val {
    flex: 0 0 32px !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    color: var(--nb-text) !important;
}
.nb-widget .nb-stats-bar-track {
    flex: 1 !important;
    display: flex !important;
    height: 7px !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    background: #eeeeee !important;
}
.nb-widget .nb-stats-bar-home {
    background: linear-gradient(90deg, #1a73e8, #4285f4) !important;
    height: 100% !important;
    transition: width .45s ease !important;
    border-radius: 4px 0 0 4px !important;
}
.nb-widget .nb-stats-bar-away {
    background: linear-gradient(90deg, #f44336, #ea4335) !important;
    height: 100% !important;
    transition: width .45s ease !important;
    border-radius: 0 4px 4px 0 !important;
}

/* ============================================================
   TEAM SELECTOR (statistics widget)
   ============================================================ */
.nb-widget .nb-team-scroll {
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto !important;
    padding-bottom: 6px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    margin-bottom: 1rem !important;
}
.nb-widget .nb-team-scroll::-webkit-scrollbar {
    display: none !important;
}
.nb-widget .nb-team-btn {
    flex: 0 0 auto !important;
    min-width: 52px !important;
    max-width: 68px !important;
    padding: 7px 6px !important;
    border-radius: 8px !important;
    background: var(--nb-surface) !important;
    border: 1px solid var(--nb-border) !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    transition: background .15s ease, border-color .15s ease !important;
}
.nb-widget .nb-team-btn:hover {
    background: var(--nb-bg) !important;
    border-color: #bdbdbd !important;
}
.nb-widget .nb-team-btn.active {
    background: var(--nb-primary) !important;
    border-color: var(--nb-primary) !important;
}
.nb-widget .nb-team-btn img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    object-fit: contain !important;
    border-radius: 50% !important;
}
.nb-widget .nb-team-btn span {
    font-size: 10px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    color: var(--nb-text) !important;
    line-height: 1 !important;
}
.nb-widget .nb-team-btn.active span {
    color: #ffffff !important;
}

/* ============================================================
   STAT SUMMARY CARDS (grid of KPI tiles)
   ============================================================ */
.nb-widget .nb-stat-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 1.25rem !important;
}
.nb-widget .nb-stat-card {
    background: var(--nb-surface) !important;
    padding: 12px 8px !important;
    border-radius: 8px !important;
    text-align: center !important;
    border: 1px solid var(--nb-border) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .05) !important;
}
.nb-widget .nb-stat-value {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: var(--nb-primary) !important;
    line-height: 1.2 !important;
    display: block !important;
}
.nb-widget .nb-stat-label {
    font-size: 11px !important;
    color: var(--nb-muted) !important;
    display: block !important;
    margin-top: 2px !important;
    line-height: 1.3 !important;
}

/* ============================================================
   SEARCH INPUT
   ============================================================ */
.nb-widget .nb-search-input {
    width: 100% !important;
    padding: 9px 14px !important;
    border: 1px solid var(--nb-border) !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    color: var(--nb-text) !important;
    background: var(--nb-surface) !important;
    outline: none !important;
    transition: border-color .15s ease, box-shadow .15s ease !important;
    margin-bottom: 1rem !important;
    display: block !important;
    box-shadow: none !important;
}
.nb-widget .nb-search-input:focus {
    border-color: var(--nb-primary) !important;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, .15) !important;
}
.nb-widget .nb-search-input::placeholder {
    color: #9e9e9e !important;
}

/* ============================================================
   FILTER ROW (checkbox filters)
   ============================================================ */
.nb-widget .nb-filter-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 1rem !important;
}
.nb-widget .nb-filter-row label {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    color: var(--nb-text) !important;
}

/* ============================================================
   FORMATION BADGE
   ============================================================ */
.nb-widget .nb-formation {
    display: inline-block !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    color: var(--nb-muted) !important;
    background: rgba(0, 0, 0, .05) !important;
    padding: 2px 7px !important;
    border-radius: 10px !important;
    margin-left: 6px !important;
    line-height: 1.4 !important;
}

/* ============================================================
   BEST PLAYER HIGHLIGHT
   ============================================================ */
.nb-widget .nb-best-player {
    background: linear-gradient(90deg, rgba(255, 215, 0, .08), transparent) !important;
}

/* ============================================================
   TEAM WATERMARK
   ============================================================ */
.nb-widget .nb-team-watermark {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    object-fit: contain !important;
    opacity: .07 !important;
    pointer-events: none !important;
}

/* ============================================================
   SPONSOR LOGOS
   ============================================================ */
.nb-widget .nb-sponsors {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 1rem !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}
.nb-widget .nb-sponsors a {
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
}
.nb-widget .nb-sponsors svg,
.nb-widget .nb-sponsors img {
    opacity: .65 !important;
    cursor: pointer !important;
    transition: opacity .15s ease !important;
    max-width: none !important;
    overflow: visible !important;
    width: auto !important;
}
.nb-widget .nb-sponsors a:hover svg,
.nb-widget .nb-sponsors a:hover img {
    opacity: 1 !important;
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.nb-widget .nb-loading {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 140px !important;
}
.nb-widget .nb-loading::after {
    content: "" !important;
    width: 30px !important;
    height: 30px !important;
    border: 3px solid #eeeeee !important;
    border-top-color: var(--nb-primary) !important;
    border-radius: 50% !important;
    animation: nb-spin .9s linear infinite !important;
    display: block !important;
}

/* ============================================================
   ERROR STATE
   ============================================================ */
.nb-widget .nb-error {
    text-align: center !important;
    padding: 36px 20px !important;
}
.nb-widget .nb-error h3 {
    color: var(--nb-low) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin: 0 0 12px !important;
}

/* ============================================================
   FADE-IN ANIMATION
   ============================================================ */
.nb-widget .nb-fade-in {
    animation: nbFadeIn .35s ease both !important;
}

/* ============================================================
   HIDE ON MOBILE
   ============================================================ */
@media (max-width: 768px) {
    .nb-widget .nb-hide-mobile {
        display: none !important;
    }
}

/* ============================================================
   LINEUP PITCH WIDGET
   ============================================================ */
.nb-widget .nb-lineup-pitch img {
    max-width: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.nb-widget .nb-lineup-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
    padding: 1px 5px !important;
    border-radius: 8px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
}
.nb-widget .nb-lineup-badge-goal {
    background: #fef3c7 !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
}
.nb-widget .nb-lineup-badge-assist {
    background: #ede9fe !important;
    color: #5b21b6 !important;
    border: 1px solid #ddd6fe !important;
}
.nb-widget .nb-lineup-badge-yellow {
    background: #fef9c3 !important;
    color: #854d0e !important;
    border: 1px solid #fef08a !important;
}
.nb-widget .nb-lineup-badge-red {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
}
.nb-widget .nb-lineup-badge-mom {
    background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
    color: #78350f !important;
    border: 1px solid #f59e0b !important;
    font-weight: 700 !important;
}
.nb-widget .nb-lineup-stats {
    padding: 0 4px !important;
}

/* Lineup header (teams + score) */
.nb-widget .nb-lineup-header {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9) !important;
    border-radius: 12px 12px 0 0 !important;
}
.nb-widget .nb-lineup-header .nb-lh-team {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
.nb-widget .nb-lineup-header .nb-lh-team-home {
    justify-content: flex-end !important;
}
.nb-widget .nb-lineup-header .nb-lh-team-away {
    justify-content: flex-start !important;
}
.nb-widget .nb-lineup-header .nb-lh-team img {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain !important;
    border-radius: 50% !important;
    background: #fff !important;
    padding: 3px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.1) !important;
    flex-shrink: 0 !important;
}
.nb-widget .nb-lineup-header .nb-lh-team-name {
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #0f172a !important;
}
.nb-widget .nb-lineup-header .nb-lh-formation {
    font-size: 11px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
}
.nb-widget .nb-lineup-header .nb-lh-score-block {
    flex: 0 0 auto !important;
    text-align: center !important;
    padding: 0 12px !important;
}
.nb-widget .nb-lineup-header .nb-lh-score {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: 3px !important;
    line-height: 1 !important;
    font-variant-numeric: tabular-nums !important;
}

/* Pitch container */
.nb-widget .nb-lineup-pitch-wrap {
    position: relative !important;
    width: 100% !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    padding-bottom: min(52%, 420px) !important;
    overflow: hidden !important;
    border-radius: 6px !important;
}

/* Player dot on pitch */
.nb-widget .nb-pitch-player {
    position: absolute !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
    z-index: 2 !important;
}
.nb-widget .nb-pitch-player-photo {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.4) !important;
    background: #111 !important;
}
.nb-widget .nb-pitch-player-fallback {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.4) !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    /* display is controlled by inline styles — do NOT set it here */
}
.nb-widget .nb-pitch-player-rating {
    position: absolute !important;
    top: -5px !important;
    right: -8px !important;
    color: #fff !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    padding: 2px 5px !important;
    border-radius: 9px !important;
    min-width: 26px !important;
    text-align: center !important;
    line-height: 13px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.35) !important;
    border: 1.5px solid rgba(255,255,255,.25) !important;
}
.nb-widget .nb-pitch-player-name {
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    max-width: 64px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-top: 4px !important;
    text-shadow: 0 1px 4px rgba(0,0,0,.9), 0 0 8px rgba(0,0,0,.5) !important;
    line-height: 1.1 !important;
    letter-spacing: .2px !important;
}

/* Formation overlay labels on pitch */
.nb-widget .nb-pitch-formation-label {
    position: absolute !important;
    top: 8px !important;
    z-index: 3 !important;
    background: rgba(0,0,0,.5) !important;
    backdrop-filter: blur(4px) !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    padding: 3px 10px !important;
    border-radius: 12px !important;
    letter-spacing: .3px !important;
    white-space: nowrap !important;
}
.nb-widget .nb-pitch-formation-home { left: 12px !important; }
.nb-widget .nb-pitch-formation-away { right: 12px !important; }

/* Lineup player tables grid */
.nb-widget .nb-lineup-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
}

/* ============================================================
   RESPONSIVE — 768px BREAKPOINT
   ============================================================ */
@media (max-width: 768px) {
    .nb-widget .nb-card {
        padding: 1rem !important;
        border-radius: 10px !important;
    }
    .nb-widget .nb-table {
        font-size: 12px !important;
    }
    .nb-widget .nb-table th {
        padding: 10px 6px !important;
        font-size: 11px !important;
    }
    .nb-widget .nb-table td {
        padding: 8px 6px !important;
    }
    .nb-widget .nb-team-logo {
        width: 18px !important;
        height: 18px !important;
        max-width: 18px !important;
        max-height: 18px !important;
    }
    .nb-widget .nb-form-indicator {
        width: 15px !important;
        height: 15px !important;
        font-size: 9px !important;
    }
    .nb-widget .nb-match-btn {
        flex: 0 0 145px !important;
        min-height: 72px !important;
        padding: 6px 2px !important;
    }
    .nb-widget .nb-match-btn .nb-team img {
        width: 22px !important;
        height: 22px !important;
        max-width: 22px !important;
        max-height: 22px !important;
    }
    .nb-widget .nb-match-btn .nb-team-name {
        font-size: 10px !important;
    }
    .nb-widget .nb-match-content {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .nb-widget .nb-match-header {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .nb-widget .nb-match-header > div {
        flex: none !important;
        width: 100% !important;
    }
    .nb-widget .nb-team-logo-lg {
        max-width: 40px !important;
        max-height: 40px !important;
    }
    .nb-widget .nb-score {
        font-size: 1.6rem !important;
    }
    .nb-widget .nb-stat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .nb-widget .nb-stats-label {
        flex: 0 0 68px !important;
        font-size: 10px !important;
    }
    .nb-widget .nb-player-photo {
        width: 24px !important;
        height: 24px !important;
        max-width: 24px !important;
        max-height: 24px !important;
    }
    .nb-widget .nb-search-input {
        font-size: 13px !important;
    }
    .nb-widget .nb-stat-value {
        font-size: 1.2rem !important;
    }
    /* ---- Lineup widget mobile ---- */
    .nb-widget .nb-lineup-header {
        gap: 6px !important;
        padding: 10px 8px !important;
    }
    .nb-widget .nb-lineup-header .nb-lh-team img {
        width: 28px !important;
        height: 28px !important;
    }
    .nb-widget .nb-lineup-header .nb-lh-team-name {
        font-size: 11px !important;
    }
    .nb-widget .nb-lineup-header .nb-lh-formation {
        font-size: 9px !important;
    }
    .nb-widget .nb-lineup-header .nb-lh-score {
        font-size: 1.3rem !important;
        letter-spacing: 1px !important;
    }
    .nb-widget .nb-lineup-header .nb-lh-score-block {
        padding: 0 4px !important;
    }
    .nb-widget .nb-lineup-header .nb-lh-meta {
        font-size: 9px !important;
    }

    /* Pitch: taller ratio on mobile so players have room */
    .nb-widget .nb-lineup-pitch-wrap {
        padding-bottom: 65% !important;
    }

    /* Smaller player dots on mobile */
    .nb-widget .nb-pitch-player-photo {
        width: 26px !important;
        height: 26px !important;
    }
    .nb-widget .nb-pitch-player-fallback {
        width: 26px !important;
        height: 26px !important;
        font-size: 10px !important;
    }
    .nb-widget .nb-pitch-player-rating {
        font-size: 7px !important;
        padding: 1px 3px !important;
        min-width: 20px !important;
        line-height: 11px !important;
        top: -4px !important;
        right: -6px !important;
    }
    .nb-widget .nb-pitch-player-name {
        font-size: 7px !important;
        max-width: 44px !important;
        margin-top: 2px !important;
    }

    /* Formation overlay labels: shorter on mobile */
    .nb-widget .nb-pitch-formation-label {
        font-size: 8px !important;
        padding: 2px 6px !important;
    }
    .nb-widget .nb-pitch-formation-home { left: 4px !important; }
    .nb-widget .nb-pitch-formation-away { right: 4px !important; }

    /* Player tables: single column */
    .nb-widget .nb-lineup-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}
