/* Fixture Monks Plugin Styles */

/* Tab Navigation Styles */
.fm-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e1e8ed;
    margin: 20px 0 0 0;
    overflow-x: auto;
}

.fm-tab-button {
    background: transparent;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.fm-tab-button:hover {
    background: #fff;
    color: #e91e63;
}

.fm-tab-button.active {
    color: #e91e63;
    border-bottom-color: #e91e63;
    background: #fff;
    font-weight: 600;
}

/* fm-tab-content REMOVED - nie jest już potrzebne */

/* Standings widget styling */
.fm-standings-widget {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 20px 0;
    overflow: hidden;
}

.fm-standings-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fm-standings-header h3.fm-widget-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
    text-align: center;
    flex: 1;
}

.fm-standings-header .fm-team-badge {
    width: 40px;
    height: 40px;
}

.fm-standings-header .fm-team-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fm-standings-table {
    padding: 0;
    background: transparent;
    width: 100%;
    margin: 0;
}

.fm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 0;
}

.fm-table th, .fm-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.fm-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    font-size: 12px;
    text-transform: uppercase;
}

.fm-table th.pos, .fm-table td.pos {
    width: 50px;
}

.fm-table th.team, .fm-table td.team {
    text-align: left;
    min-width: 180px;
    padding-left: 15px;
}

.fm-table .team-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fm-table .team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.fm-table .highlight-match-team {
    background-color: #ffeef3;
    border-left: 3px solid #e91e63;
}

.fm-table .positive {
    color: #28a745;
}

.fm-table .negative {
    color: #dc3545;
}

.fm-table .neutral {
    color: #6c757d;
}

/* Form column styling */
.fm-table .form-result {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-size: 10px;
    font-weight: bold;
    color: white;
    margin-right: 2px;
}

.fm-table .form-win {
    background-color: #28a745;
}

.fm-table .form-draw {
    background-color: #6c757d;
}

.fm-table .form-loss {
    background-color: #dc3545;
}

/* Highlight ostatni mecz (kolumna 5) - większy i z obramówką w kolorze ikony */
.fm-table .form-result:last-child {
    width: 20px;
    height: 20px;
    line-height: 18px; /* Poprawka - mniejszy line-height żeby litera była wyśrodkowana */
    font-size: 11px;
    border: 3px solid;
    transform: scale(1.1);
    margin-right: 4px;
    z-index: 2;
    position: relative;
}

/* Obramówka w kolorze ikony dla ostatniego meczu */
.fm-table .form-result:last-child.form-win {
    background-color: #28a745;
    border-color: #28a745;
    box-shadow: 0 0 0 1px #fff, 0 0 0 3px #28a745;
}

.fm-table .form-result:last-child.form-draw {
    background-color: #6c757d;
    border-color: #6c757d;
    box-shadow: 0 0 0 1px #fff, 0 0 0 3px #6c757d;
}

.fm-table .form-result:last-child.form-loss {
    background-color: #dc3545;
    border-color: #dc3545;
    box-shadow: 0 0 0 1px #fff, 0 0 0 3px #dc3545;
}

@media (max-width: 768px) {
    .fm-table .form-result {
        width: 14px;
        height: 14px;
        line-height: 14px;
        font-size: 9px;
    }
    
    /* Na mobile też wyróżnij ostatni mecz ale mniej */
    .fm-table .form-result:last-child {
        width: 17px;
        height: 17px;
        line-height: 15px; /* Poprawka dla mobile - wyśrodkowanie litery */
        font-size: 10px;
        border: 2px solid;
        transform: scale(1.05);
        margin-right: 3px;
    }
    
    /* Mobile - obramówka w kolorze ikony */
    .fm-table .form-result:last-child.form-win {
        box-shadow: 0 0 0 1px #fff, 0 0 0 2px #28a745;
    }

    .fm-table .form-result:last-child.form-draw {
        box-shadow: 0 0 0 1px #fff, 0 0 0 2px #6c757d;
    }

    .fm-table .form-result:last-child.form-loss {
        box-shadow: 0 0 0 1px #fff, 0 0 0 2px #dc3545;
    }
}

.fm-tab-panel {
    display: none;
    padding: 0;
    background: #fff;
}

/* Add padding for all tabs including standings */
.fm-tab-panel {
    padding: 20px;
}

/* Standings tab - taki sam padding jak Lineup i Statistics */
#standings {
    padding: 20px !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

#standings .fm-lineup-widget {
    margin: 20px 0 !important; /* TAKI SAM JAK INNE TABY */
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

#standings .fm-lineup-header {
    margin: 0 !important;
    padding: 15px 20px !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

/* Standings container style - ZERO HEIGHT */
.fm-standings-container {
    width: 100%;
    margin: 0;
    padding: 0;
    margin-top: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

.fm-standings-container .fm-table {
    width: 100%;
    margin: 0;
    margin-top: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

.fm-tab-panel.active {
    display: block;
}

/* Statistics use the same styles as h2h widgets from shortcode */
.fm-h2h-widget {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 0;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
}

.fm-h2h-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0;
}

.fm-team-badge {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fm-team-badge img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.fm-widget-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    text-align: center;
}

.fm-h2h-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    text-align: center;
    padding: 20px;
}

.fm-h2h-stat-left, .fm-h2h-stat-right {
    flex: 1;
}

.fm-stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    line-height: 1;
    margin-bottom: 5px;
}

.fm-stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
}

.fm-h2h-progress {
    margin-top: 20px;
    padding: 0 20px 20px 20px;
}

.fm-progress-bar {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    margin-bottom: 10px;
}

.fm-progress-team1 {
    background: #e91e63;
    transition: width 0.3s ease;
}

.fm-progress-team2 {
    background: #9c27b0;
    transition: width 0.3s ease;
}

.fm-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #666;
}

/* Stats list styling - one widget with rows inside */
.fm-stats-list {
    padding: 20px;
}

.fm-stat-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
}

.fm-stat-row:last-child {
    margin-bottom: 0;
}

.fm-stat-home, .fm-stat-away {
    width: 60px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.fm-stat-home {
    color: #1e88e5;
}

.fm-stat-away {
    color: #333;
}

.fm-stat-center {
    flex: 1;
    margin: 0 20px;
}

.fm-stat-name {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-bottom: 8px;
}

.fm-stat-row .fm-progress-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
}

/* Lineup Styling - Single Widget Layout */
.fm-lineup-widget {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    margin: 20px 0;
    padding: 0;
    overflow: hidden;
}

/* SVG Football Field Styling */
.fm-field-container {
    margin: 20px 0;
    padding: 15px;
    background: #1e3a1a;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.fm-pitch-wrap { 
    max-width: 900px; 
    margin: 16px auto; 
}

.fm-field-player { 
    cursor: default; 
}

.fm-field-player text { 
    font: 500 3px/1 system-ui, Arial, sans-serif; 
    text-anchor: middle; 
    dominant-baseline: middle; 
    pointer-events: none; 
}

.fm-field-player circle { 
    fill: white; 
    stroke: #111; 
    stroke-width: 0.5; 
}

.fm-field-player[data-side="home"] circle { 
    fill: #e8f1ff; 
}

.fm-field-player[data-side="away"] circle { 
    fill: #ffecec; 
}

.fm-football-field {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #2d5a27 0%, #1e3a1a 50%, #2d5a27 100%);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    overflow: visible;
}

/* Field markings */
.fm-football-field::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 0;
    right: 0;
    bottom: 10%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

/* Goal areas */
.fm-football-field::after {
    content: '';
    position: absolute;
    top: 35%;
    left: 0;
    width: 12%;
    height: 30%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-left: none;
    pointer-events: none;
}

.fm-football-field {
    background-image: 
        /* Right goal area */
        linear-gradient(to left, rgba(255, 255, 255, 0.6) 2px, transparent 2px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.6) 2px, transparent 2px),
        linear-gradient(to top, rgba(255, 255, 255, 0.6) 2px, transparent 2px);
    background-position: 
        88% 35%, /* Right goal area */
        88% 35%,
        88% 65%;
    background-size: 
        12% 30%,
        12% 2px,
        12% 2px;
    background-repeat: no-repeat;
}

.fm-team-field {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    height: 100%;
}

.fm-team-field.fm-team-home {
    left: 0;
}

.fm-team-field.fm-team-away {
    right: 0;
}



.fm-field-player {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -50%);
}

.fm-player-shirt {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 11px;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.fm-player-home .fm-player-shirt {
    background: linear-gradient(135deg, #e91e63 0%, #ad1457 100%);
}

.fm-player-away .fm-player-shirt {
    background: linear-gradient(135deg, #2196f3 0%, #1565c0 100%);
}

.fm-player-field-name {
    font-size: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    max-width: 45px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 1.1;
    margin-top: 2px;
}

.fm-shirt-number {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Formation Info Styling */
.fm-formation-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.fm-formation-number {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    text-shadow: none;
}

.fm-coach-name {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fm-vs-divider {
    font-size: 14px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.6);
    padding: 0 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Center Line */
.fm-center-line {
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.6) 20%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.6) 80%, transparent 100%);
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.fm-center-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

.fm-center-line::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

.fm-lineup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.fm-lineup-header .fm-widget-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.fm-field-container {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.fm-football-field {
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
    border: 2px solid white;
    border-radius: 8px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fm-field-content {
    color: white;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-size: 14px;
}

.fm-teams-container {
    display: flex;
    gap: 0;
}

.fm-team-column {
    flex: 1;
    padding: 15px 20px;
    border-right: 1px solid #e9ecef;
}

.fm-team-column:last-child {
    border-right: none;
}

.fm-team-column h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.fm-formation-small {
    font-size: 11px;
    color: #666;
    background: #e91e63;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
}

.fm-lineup-section-small {
    margin-top: 15px;
}

.fm-lineup-section-small h5 {
    margin: 0 0 8px 0;
    font-size: 12px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
}

.fm-player-item-small {
    display: flex;
    align-items: center;
    padding: 4px 0;
    gap: 8px;
    font-size: 11px;
}

.fm-player-number-small {
    background: #333;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 9px;
    flex-shrink: 0;
}

.fm-player-name-small {
    flex: 1;
    font-weight: 500;
    color: #333;
    font-size: 11px;
    line-height: 1.2;
}

.fm-player-events-small {
    display: flex;
    gap: 2px;
}

.fm-event-icon-small {
    font-size: 10px;
    filter: drop-shadow(0 0 1px rgba(0,0,0,0.3));
}

.fm-event-icon-small.fm-goal {
    color: #4CAF50;
}

.fm-event-icon-small.fm-own-goal {
    color: #FF5722;
}

.fm-event-icon-small.fm-yellow-card {
    color: #FFC107;
}

.fm-event-icon-small.fm-red-card {
    color: #F44336;
}

.fm-event-icon-small.fm-substitution {
    color: #2196F3;
}

.fm-event-icon-small.fm-penalty-missed {
    color: #F44336;
}

.fm-event-icon-small.fm-goal-disallowed {
    color: #FF5722;
}

.fm-event-icon-small.fm-injury {
    color: #FF9800;
}

.fm-event-icon-small.fm-captain {
    color: #9C27B0;
}

/* Loading and Error States */
.fm-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.fm-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #e91e63;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fm-error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #ffcdd2;
}

.fm-no-data {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Live time animation for matches in progress */
.fixture-monks-widget .fixture-monks-live-time,
span.fixture-monks-live-time {
    color: #e91e63 !important;
    font-weight: 600 !important;
    animation: liveTimePulse 2s ease-in-out infinite !important;
    display: inline-block !important;
    padding: 2px 4px !important;
}

/* Status classes for postponed/cancelled matches */
.fixture-monks-postponed {
    background-color: #fff3cd !important;
    border-left: 4px solid #ffc107 !important;
}

.fixture-monks-postponed .fixture-monks-time-text {
    color: #856404 !important;
    font-weight: 600 !important;
    background: #ffc107 !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    color: white !important;
}

.fixture-monks-cancelled {
    background-color: #f8d7da !important;
    border-left: 4px solid #dc3545 !important;
}

.fixture-monks-cancelled .fixture-monks-time-text {
    color: #721c24 !important;
    font-weight: 600 !important;
    background: #dc3545 !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    color: white !important;
}

.fixture-monks-suspended {
    background-color: #fff2e1 !important;
    border-left: 4px solid #fd7e14 !important;
}

.fixture-monks-suspended .fixture-monks-time-text {
    color: #495057 !important;
    font-weight: 600 !important;
    background: #fd7e14 !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    color: white !important;
}

.fixture-monks-abandoned {
    background-color: #e2e3e5 !important;
    border-left: 4px solid #6c757d !important;
}

.fixture-monks-abandoned .fixture-monks-time-text {
    color: #383d41 !important;
    font-weight: 600 !important;
    background: #6c757d !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    color: white !important;
}

.fixture-monks-interrupted {
    background-color: #d4e9ff !important;
    border-left: 4px solid #0066cc !important;
}

.fixture-monks-interrupted .fixture-monks-time-text {
    color: #003d7a !important;
    font-weight: 600 !important;
    background: #0066cc !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    color: white !important;
}

.fixture-monks-delayed {
    background-color: #e7f3ff !important;
    border-left: 4px solid #17a2b8 !important;
}

.fixture-monks-delayed .fixture-monks-time-text {
    color: #0c5460 !important;
    font-weight: 600 !important;
    background: #17a2b8 !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    color: white !important;
}

.fixture-monks-tba {
    background-color: #f8f9fa !important;
    border-left: 4px solid #6c757d !important;
}

.fixture-monks-tba .fixture-monks-time-text {
    color: #495057 !important;
    font-weight: 600 !important;
    background: #6c757d !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    color: white !important;
}

.fixture-monks-awarded {
    background-color: #e8f5e8 !important;
    border-left: 4px solid #28a745 !important;
}

.fixture-monks-awarded .fixture-monks-time-text {
    color: #155724 !important;
    font-weight: 600 !important;
    background: #28a745 !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    color: white !important;
}

.fixture-monks-walkover {
    background-color: #f3e5f5 !important;
    border-left: 4px solid #9c27b0 !important;
}

.fixture-monks-walkover .fixture-monks-time-text {
    color: #4a148c !important;
    font-weight: 600 !important;
    background: #9c27b0 !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    color: white !important;
}

@keyframes liveTimePulse {
    0%, 100% {
        background-color: transparent !important;
        box-shadow: 0 0 0 rgba(233, 30, 99, 0) !important;
    }
    50% {
        background-color: rgba(233, 30, 99, 0.2) !important;
        box-shadow: 0 0 10px rgba(233, 30, 99, 0.5) !important;
        border-radius: 4px !important;
    }
}

/* Style for added time in superscript */
.fixture-monks-live-time .added-time {
    font-size: 0.7em;
    vertical-align: super;
    font-weight: 600;
}

.fixture-monks-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    max-width: 100%;
    margin: 20px 0;
}

/* Header section like in the image */
.fixture-monks-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.fixture-monks-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.fixture-monks-league-dropdown {
    position: relative;
}

.fixture-monks-league-filter {
    background: #e91e63;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fixture-monks-league-filter:hover {
    background: #c2185b;
    transform: translateY(-1px);
}

.fixture-monks-league-filter .dropdown-arrow {
    transition: transform 0.3s ease;
}

.fixture-monks-league-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.fixture-monks-league-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    margin-top: 4px;
}

.fixture-monks-league-dropdown.open .fixture-monks-league-menu {
    display: block;
}

.league-option {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.league-option:last-child {
    border-bottom: none;
}

.league-option:hover {
    background: #f8f9fa;
}

.league-option.active {
    background: #fce4ec;
    color: #e91e63;
    font-weight: 500;
}

.fixture-monks-search {
    flex: 1;
    max-width: 300px;
    position: relative;
}

.fixture-monks-search input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    background: white;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.fixture-monks-search input:focus {
    border-color: #e91e63;
}

.fixture-monks-search::before {
    content: '🔍';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    z-index: 1;
}

.fixture-monks-date-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fixture-monks-date-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fixture-monks-date-arrow {
    background: none;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6c757d;
}

.fixture-monks-date-arrow:hover {
    background-color: #f8f9fa;
    border-color: #d6d9dc;
    color: #495057;
}

.fixture-monks-date-arrow:active {
    transform: scale(0.95);
}

/* Team name links styling */
.fixture-monks-team-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fixture-monks-team-link:hover {
    color: #007cba;
    text-decoration: underline;
}

.fixture-monks-team-link:visited {
    color: inherit;
}

/* Match page layout - fixed columns */
.fm-single-line-match {
    display: grid;
    grid-template-columns: 1fr auto auto auto 1fr;
    grid-template-areas: "home-name home-logo score away-logo away-name";
    align-items: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.fm-team-name-inline.fm-home-name {
    grid-area: home-name;
    text-align: right;
    justify-self: end;
}

.fm-team-logo-inline:first-of-type {
    grid-area: home-logo;
    justify-self: center;
}

.fm-score-section-inline {
    grid-area: score;
    justify-self: center;
    text-align: center;
    min-width: 120px;
}

.fm-team-logo-inline:last-of-type {
    grid-area: away-logo;
    justify-self: center;
}

.fm-team-name-inline.fm-away-name {
    grid-area: away-name;
    text-align: left;
    justify-self: start;
}

/* Team name typography */
.fm-team-name-inline h2 {
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    font-size: 1.8rem;
    margin: 0;
    line-height: 1.2;
    color: #333;
}

.fm-team-logo-inline {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fm-single-line-match {
        grid-template-columns: 1fr auto 1fr;
        grid-template-areas: 
            "home-name score away-name"
            "home-logo score away-logo";
        gap: 15px;
    }
    
    .fm-team-name-inline h2 {
        font-size: 1.4rem;
    }
    
    .fm-team-logo-inline {
        width: 40px;
        height: 40px;
    }
}

.fixture-monks-date-tabs {
    display: flex;
    gap: 4px;
    background: #f0f0f0;
    padding: 4px;
    border-radius: 20px;
}

.fixture-monks-calendar-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.fixture-monks-date-picker {
    position: absolute;
    opacity: 0;
    width: 40px;
    height: 40px;
    top: 0;
    left: 0;
    cursor: pointer;
}

.fixture-monks-calendar-btn {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    position: relative;
    z-index: 2;
}

.fixture-monks-calendar-btn:hover {
    background: #f8f9fa;
    border-color: #e91e63;
    color: #e91e63;
}

.fixture-monks-date-tab.custom-date {
    background: #e91e63;
    color: white;
}

.fixture-monks-date-tab.custom-date.active {
    background: #c2185b;
}

.fixture-monks-date-tab {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: #666;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
}

.fixture-monks-date-tab.active {
    background: #e91e63;
    color: white;
}

.fixture-monks-date-tab:hover:not(.active) {
    background: #e0e0e0;
    color: #333;
}

.fixture-monks-view-filters {
    display: flex;
    gap: 8px;
}

.fixture-monks-view-filter {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fixture-monks-view-filter.active {
    background: #e91e63;
    color: white;
    border-color: #e91e63;
}

.fixture-monks-view-filter:hover:not(.active) {
    background: #f5f5f5;
    border-color: #ccc;
}

/* Controls */
.fixture-monks-controls {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e1e5e9;
}

.fixture-monks-date-picker {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fixture-monks-date-picker label {
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.fixture-monks-date-input {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    color: #495057;
}

.fixture-monks-date-input:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 0 0.2rem rgba(233, 30, 99, 0.25);
}

.fixture-monks-refresh-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: #e91e63;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(233, 30, 99, 0.2);
}

.fixture-monks-refresh-btn:hover {
    background: #c2185b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(233, 30, 99, 0.3);
}

.fixture-monks-refresh-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Content */
.fixture-monks-content {
    min-height: 200px;
}

/* Loading state */
.fixture-monks-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #6c757d;
}

.fixture-monks-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #e91e63;
    border-radius: 50%;
    animation: fixture-monks-spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes fixture-monks-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* League sections */
.fixture-monks-league-section {
    border-bottom: 1px solid #e1e5e9;
}

.fixture-monks-league-section:last-child {
    border-bottom: none;
}

.fixture-monks-league-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 15px;
    background: rgba(233, 30, 99, 0.05);
    border-bottom: 2px solid rgba(233, 30, 99, 0.1);
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    color: #495057;
}

.fixture-monks-league-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fixture-monks-country-flag img {
    width: 24px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.fixture-monks-league-logo img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.fixture-monks-league-info {
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.fixture-monks-league-name {
    font-size: 14px;
    font-weight: 600;
}

/* League name links styling */
.fixture-monks-league-link,
.fm-league-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.fixture-monks-league-link:hover,
.fm-league-link:hover {
    color: #e91e63;
    text-decoration: underline;
}

.fixture-monks-round-info {
    font-size: 12px;
    color: #6c757d;
    font-weight: normal;
}

.fixture-monks-fixtures-count {
    font-size: 12px;
    color: #6c757d;
    font-weight: normal;
}

/* Fixtures list */
.fixture-monks-fixtures-list {
    /* No additional styles needed */
}

/* Fixture item */
.fixture-monks-fixture-item {
    display: grid;
    grid-template-columns: 50px 1fr 70px 1fr;
    align-items: center;
    padding: 6px 12px;
    border-bottom: 1px solid #f1f3f5;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.fixture-monks-fixture-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(233, 30, 99, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.fixture-monks-fixture-item:hover {
    background: rgba(233, 30, 99, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.15);
    cursor: pointer;
}

.fixture-monks-fixture-item:hover::before {
    transform: translateX(100%);
}

.fixture-monks-fixture-item:last-child {
    border-bottom: none;
}

/* Time/Status */
.fixture-monks-time {
    text-align: center;
    font-weight: 600;
}

.fixture-monks-live .fixture-monks-time {
    color: #e91e63;
    animation: fixture-monks-pulse 2s infinite;
}

@keyframes fixture-monks-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.fixture-monks-finished .fixture-monks-time {
    color: #6c757d;
}

.fixture-monks-updating .fixture-monks-time {
    color: #6c757d;
}

.fixture-monks-updating-text {
    color: #ff9800 !important;
    font-size: 12px;
    font-weight: 600;
}

.fixture-monks-upcoming .fixture-monks-time {
    color: #495057;
}

/* Teams */
.fixture-monks-home-team,
.fixture-monks-away-team {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fixture-monks-home-team {
    justify-content: flex-end;
}

.fixture-monks-away-team {
    justify-content: flex-start;
}

.fixture-monks-team-name {
    font-weight: 500;
    color: #495057;
}

.fixture-monks-team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Score */
.fixture-monks-score {
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    color: #495057;
}

.fixture-monks-score-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.fixture-monks-penalty-score {
    font-size: 12px;
    color: #e91e63;
    font-weight: 500;
    opacity: 0.9;
}

.fixture-monks-live .fixture-monks-score {
    color: #e91e63;
}

/* Details */
.fixture-monks-details {
    text-align: center;
}

.fixture-monks-details-link {
    color: #e91e63;
    text-decoration: none;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 3px;
    transition: all 0.3s ease;
    background: rgba(233, 30, 99, 0.1);
    border: 1px solid rgba(233, 30, 99, 0.2);
}

.fixture-monks-details-link:hover {
    background: rgba(233, 30, 99, 0.2);
    text-decoration: none;
    transform: scale(1.05);
}

/* No fixtures message */
.fixture-monks-no-fixtures {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}

/* Error message */
.fixture-monks-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 10px;
}

/* Responsive design */
@media (max-width: 768px) {
    .fixture-monks-fixture-item {
        grid-template-columns: 50px 1fr 70px 1fr;
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .fixture-monks-team-logo {
        width: 16px;
        height: 16px;
    }
    
    .fixture-monks-score {
        font-size: 14px;
    }
    
    .fixture-monks-controls {
        padding: 10px 15px;
    }
    
    .fixture-monks-date-picker {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .fixture-monks-league-header {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .fixture-monks-fixture-item {
        grid-template-columns: 40px 1fr 60px 1fr 40px;
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .fixture-monks-team-name {
        font-size: 11px;
    }
    
    .fixture-monks-score {
        font-size: 13px;
    }
    
    .fixture-monks-time {
        font-size: 11px;
    }
    
    .fixture-monks-details-link {
        font-size: 10px;
        padding: 2px 4px;
    }
}

/* Accessibility */
.fixture-monks-date-input:focus,
.fixture-monks-refresh-btn:focus,
.fixture-monks-details-link:focus {
    outline: 2px solid #e91e63;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .fixture-monks-widget {
        border: 2px solid #000;
    }
    
    .fixture-monks-fixture-item {
        border-bottom: 1px solid #000;
    }
    
    .fixture-monks-league-header {
        border-bottom: 1px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .fixture-monks-spinner {
        animation: none;
    }
    
    .fixture-monks-fixture-item,
    .fixture-monks-refresh-btn,
    .fixture-monks-details-link {
        transition: none;
    }
}

/* ============= MATCH CENTER TAB CONTENT STYLES ============= */

/* Loading and Error States */
.fm-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #e91e63;
}

.fm-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(233, 30, 99, 0.1);
    border-left: 4px solid #e91e63;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fm-error {
    text-align: center;
    padding: 20px;
    color: #d32f2f;
    background: rgba(211, 47, 47, 0.1);
    border: 1px solid rgba(211, 47, 47, 0.2);
    border-radius: 8px;
    margin: 20px;
}

.fm-no-data {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Statistics Tab */
.fm-statistics-container {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
}

.fm-stats-header {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 2px solid #e91e63;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
    color: #e91e63;
}

.fm-stat-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(233, 30, 99, 0.1);
    position: relative;
}

.fm-stat-home, .fm-stat-away {
    text-align: center;
    font-weight: bold;
    color: #333;
}

.fm-stat-name {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.fm-stat-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(233, 30, 99, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.fm-stat-bar-home {
    position: absolute;
    left: 0;
    height: 100%;
    background: #e91e63;
    border-radius: 2px 0 0 2px;
}

.fm-stat-bar-away {
    position: absolute;
    right: 0;
    height: 100%;
    background: #9c27b0;
    border-radius: 0 2px 2px 0;
}

/* Events Tab */
.fm-events-container {
    padding: 20px;
}

/* Old event styles removed - using new timeline styles below */

/* Lineups Tab */
.fm-lineups-container {
    padding: 20px;
}

.fm-team-lineup {
    margin-bottom: 30px;
    background: rgba(233, 30, 99, 0.02);
    border: 1px solid rgba(233, 30, 99, 0.1);
    border-radius: 8px;
    padding: 20px;
}

.fm-team-lineup h3 {
    color: #e91e63;
    margin-bottom: 15px;
    text-align: center;
}

.fm-starting-xi, .fm-bench {
    margin-bottom: 20px;
}

.fm-starting-xi h4, .fm-bench h4 {
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(233, 30, 99, 0.2);
}

.fm-player-item {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(233, 30, 99, 0.05);
    align-items: center;
}

.fm-player-number {
    font-weight: bold;
    color: #e91e63;
    text-align: center;
    background: rgba(233, 30, 99, 0.1);
    padding: 4px;
    border-radius: 4px;
    min-width: 30px;
}

.fm-player-name {
    color: #333;
}

.fm-player-position {
    color: #666;
    font-size: 12px;
}

/* Standings Tab */
.fm-standings-container {
    padding: 20px;
}

.fm-standings-table {
    display: grid;
    grid-template-columns: 40px 2fr repeat(8, 1fr);
    gap: 5px;
    border: 1px solid rgba(233, 30, 99, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.fm-standings-header {
    display: contents;
}

.fm-standings-header > div {
    background: #e91e63;
    color: white;
    padding: 10px 5px;
    font-weight: bold;
    text-align: center;
    font-size: 12px;
}

.fm-standings-row {
    display: contents;
}

.fm-standings-row:nth-child(even) > div {
    background: rgba(233, 30, 99, 0.02);
}

.fm-standings-row > div {
    padding: 8px 5px;
    text-align: center;
    border-bottom: 1px solid rgba(233, 30, 99, 0.05);
    font-size: 13px;
}

.fm-pos {
    font-weight: bold;
    color: #e91e63;
}

.fm-team {
    text-align: left !important;
    font-weight: bold;
    color: #333;
}

.fm-points {
    font-weight: bold;
    color: #e91e63;
}

/* Head2Head Tab */
.fm-h2h-container {
    padding: 20px;
}

.fm-h2h-match {
    display: grid;
    grid-template-columns: 100px 2fr 80px 60px;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(233, 30, 99, 0.1);
    align-items: center;
}

.fm-h2h-date {
    color: #666;
    font-size: 12px;
}

.fm-h2h-teams {
    color: #333;
    font-weight: bold;
}

.fm-h2h-score {
    text-align: center;
    font-weight: bold;
    color: #e91e63;
    background: rgba(233, 30, 99, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.fm-h2h-state {
    text-align: center;
    color: #666;
    font-size: 11px;
    text-transform: uppercase;
}

/* Tab Content Mobile Responsive */
@media (max-width: 768px) {
    .fm-standings-table {
        grid-template-columns: 30px 1.5fr repeat(8, 0.8fr);
        font-size: 11px;
    }
    
    .fm-standings-header > div {
        padding: 8px 3px;
    }
    
    .fm-h2h-match {
        grid-template-columns: 80px 2fr 70px 50px;
        gap: 10px;
    }
    
    .fm-stat-row {
        grid-template-columns: 1fr 1.5fr 1fr;
        gap: 10px;
    }
    
    .fm-event-item {
        grid-template-columns: 50px 30px 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .fm-standings-table {
        grid-template-columns: 25px 1fr repeat(3, 0.6fr);
        font-size: 10px;
    }
    
    .fm-standings-table .fm-drawn,
    .fm-standings-table .fm-lost,
    .fm-standings-table .fm-goals-for,
    .fm-standings-table .fm-goals-against,
    .fm-standings-table .fm-goal-diff {
        display: none;
    }
    
    .fm-h2h-match {
        grid-template-columns: 1fr auto;
        gap: 10px;
    }
    
    .fm-h2h-date,
    .fm-h2h-state {
        display: none;
    }
}

/* Recent Form styles */
.fm-recent-form-section {
    margin: 20px 0;
}

.fm-recent-form-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fm-recent-match-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.fm-recent-match-link:hover .fm-recent-match {
    background: #e3f2fd;
    transform: translateX(2px);
}

.fm-recent-match {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.fm-match-teams-simple {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.fm-team-code {
    font-weight: 600;
    color: #666;
}


.fm-match-result {
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 11px;
    min-width: 20px;
    text-align: center;
}

.fm-match-result.win {
    background: #e8f5e8;
    color: #2e7d2e;
}

.fm-match-result.loss {
    background: #ffeaea;
    color: #d32f2f;
}

.fm-match-result.draw {
    background: #fff3e0;
    color: #f57c00;
}

/* H2H Match History Styles */
.fm-h2h-history-widget {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 0;
    margin: 20px 0;
    overflow: hidden;
}

.fm-h2h-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f7f9fc;
    border-bottom: 1px solid #e1e8ed;
}

.fm-h2h-header .fm-team-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fm-h2h-header .fm-team-badge img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
}

.fm-h2h-header .fm-widget-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #333;
    text-transform: uppercase;
    text-align: center;
    flex: 1;
}

.fm-h2h-history-content {
    padding: 20px;
}

.fm-h2h-matches-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fm-h2h-match-row:last-child {
    border-bottom: none;
}

.fm-h2h-match-row {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.2s ease;
}

.fm-h2h-match-row:hover {
    border-bottom-color: #ad1457;
    box-shadow: none;
    transform: none;
}

.fm-h2h-match-link {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    background: none;
    transition: all 0.2s ease;
    gap: 8px;
}

.fm-h2h-match-link:hover {
    background: #fce4ec;
    color: #ad1457;
}

.fm-match-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.fm-match-date {
    font-weight: 500;
}

.fm-match-competition {
    display: flex;
    align-items: center;
    gap: 6px;
    text-align: right;
    justify-content: flex-end;
}

.fm-league-logo {
    width: 20px;
    height: 20px;
    object-fit: cover;
}

.fm-country-flag {
    width: 18px;
    height: 12px;
    border-radius: 1px;
    object-fit: cover;
}

/* Main league page styles - clean header like single-match */
.fm-header-main {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e1e5e9;
}

.fm-league-title-main {
    display: flex;
    align-items: center;
    gap: 20px;
}

.fm-league-logo-main {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    margin-right: 15px;
    object-fit: contain;
    background: white;
    border: 1px solid #e1e5e9;
}

.fm-country-info-main {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.fm-country-flag-main {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.fm-country-name-main {
    font-size: 14px;
    color: #666;
}

.fm-league-info-main h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

.fm-match-competition span {
    font-style: italic;
}

.fm-match-teams-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.fm-home-team-logo, .fm-away-team-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.fm-away-team-logo {
    flex-direction: row-reverse;
    text-align: right;
}

.fm-home-team-logo img, .fm-away-team-logo img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.fm-team-name {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
    max-width: none;
}

.fm-match-score {
    text-align: center;
    min-width: 60px;
    flex-shrink: 0;
}

.fm-score {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 700 !important;
    color: #333 !important;
    background: transparent !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    border: none !important;
    font-size: 16px !important;
}

/* Result-based styling - removed colored backgrounds */
.fm-h2h-match-row.home-win .fm-score {
    color: #333;
}

.fm-h2h-match-row.away-win .fm-score {
    color: #333;
}

.fm-h2h-match-row.draw .fm-score {
    color: #333;
}

/* Responsive design */
@media (max-width: 768px) {
    .fm-match-teams-logos {
        gap: 8px;
    }
    
    .fm-team-name {
        max-width: none;
        font-size: 12px;
        overflow: visible;
        text-overflow: unset;
    }
    
    .fm-home-team-logo img, .fm-away-team-logo img {
        width: 20px;
        height: 20px;
    }
    
    .fm-score {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .fm-match-info {
        font-size: 11px;
    }
    
    .fm-league-logo {
        width: 14px;
        height: 14px;
    }
}

/* Events Timeline Styles */
.fm-events-timeline {
    padding: 20px;
}

/* New Timeline Layout */
.fm-events-timeline-new {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.fm-period-section {
    margin-bottom: 30px;
}

.fm-period-header {
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    color: #333;
    padding: 10px 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.fm-event-row-new {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 20px;
}

.fm-event-row-new:last-child {
    border-bottom: none;
}

.fm-event-left {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    text-align: right;
}

.fm-event-right {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
}

.fm-event-minute-center {
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    color: #e91e63;
    background: rgba(233, 30, 99, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    min-width: 60px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.fm-score-display {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.fm-score-display-event {
    font-size: 11px;
    color: rgba(233, 30, 99, 0.8);
    font-weight: normal;
    line-height: 1;
}

.fm-event-player-home,
.fm-event-player-away {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    white-space: pre-line;
    line-height: 1.3;
}

.fm-event-icon-home,
.fm-event-icon-away {
    min-width: 36px;
    text-align: center;
}

.fm-event-icon-home img,
.fm-event-icon-away img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.fm-event-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    gap: 15px;
}

.fm-event-row:last-child {
    border-bottom: none;
}

.fm-event-minute,
.fm-event-minute-only {
    min-width: 50px;
    font-weight: 600;
    color: #666;
    text-align: right;
    font-size: 14px;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.fm-event-minute-only::before,
.fm-event-minute-only::after,
.fm-event-minute::before,
.fm-event-minute::after {
    content: none !important;
    display: none !important;
}

.fm-event-icon {
    min-width: 24px;
    text-align: center;
}

.fm-event-icon img,
.fm-event-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.fm-card {
    font-size: 16px;
    display: inline-block;
}

.fm-substitution {
    font-size: 16px;
    color: #2196f3;
}

.fm-event-generic {
    font-size: 16px;
    color: #666;
}

.fm-event-details {
    flex: 1;
}

.fm-event-type {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.fm-event-player {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

/* Team-specific styling */
.fm-event-row.fm-team-home {
    justify-content: flex-start;
}

.fm-event-row.fm-team-away {
    justify-content: flex-start;
    flex-direction: row-reverse;
    text-align: right;
}

.fm-event-row.fm-team-away .fm-event-minute {
    text-align: left;
}

.fm-no-events {
    text-align: center;
    color: #666;
    padding: 40px 20px;
    font-style: italic;
}

/* League overview enhanced match styles */
.fm-overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 20px 0;
    padding: 0 20px;
}

.fm-overview-left {
    background: #fff;
    border-radius: 8px;
    padding: 0;
}

.fm-overview-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fm-overview-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fm-overview-section h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced match row styles */
.fm-match-row {
    display: flex;
    align-items: center;
    padding: 15px 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 2px 0;
}

.fm-match-row:last-child {
    border-bottom: none;
}

.fm-match-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    width: 100%;
    transition: all 0.2s ease;
}

.fm-match-link:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 6px;
}

.fm-match-time {
    width: 70px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.fm-time-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    min-width: 35px;
    text-align: center;
}

.fm-time-status.live {
    background-color: #e74c3c;
    color: white;
    animation: pulse 2s infinite;
}

.fm-time-status.ht {
    background-color: #f39c12;
    color: white;
}

.fm-time-status.finished,
.fm-time-status.ft,
.fm-time-status.aet,
.fm-time-status.pen {
    background-color: #95a5a6;
    color: white;
}

.fm-time-status.upcoming {
    background-color: #ecf0f1;
    color: #34495e;
}

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

.fm-match-teams {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

.fm-team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.fm-team.fm-home {
    justify-content: flex-start;
}

.fm-team.fm-away {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.fm-team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 3px;
    flex-shrink: 0;
}

.fm-team-name {
    color: #2c3e50;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.fm-score {
    min-width: 60px;
    text-align: center;
}

.fm-score-display {
    font-size: 16px;
    font-weight: 700;
    color: #e91e63;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: rgba(233, 30, 99, 0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .fm-overview-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
        gap: 20px;
    }
    
    .fm-team-logo {
        width: 20px;
        height: 20px;
    }
    
    .fm-team-name {
        max-width: 80px;
        font-size: 13px;
    }
    
    .fm-time-status {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .fm-score-display {
        font-size: 14px;
    }
    
    /* Mobile overview table - full width */
    .fm-overview-section .fm-table {
        font-size: 10px;
        width: 100%;
    }
    
    .fm-overview-section .fm-table th,
    .fm-overview-section .fm-table td {
        padding: 3px 1px;
    }
    
    .fm-overview-section .fm-table th.pos,
    .fm-overview-section .fm-table td.pos {
        width: 18px;
    }
    
    .fm-overview-section .fm-table th.team,
    .fm-overview-section .fm-table td.team {
        width: 120px;
    }
    
    .fm-overview-section .fm-table th:not(.pos):not(.team):not(.pts),
    .fm-overview-section .fm-table td:not(.pos):not(.team):not(.pts) {
        width: 20px;
    }
    
    .fm-overview-section .fm-table th.pts,
    .fm-overview-section .fm-table td.pts {
        width: 28px;
    }
    
    .fm-overview-section .team-logo {
        width: 12px;
        height: 12px;
    }
}

/* League page specific styles */
.fm-league-tabs {
    margin-bottom: 5px;
}

.fm-league-content {
    padding: 0 !important;
}

/* Overview standings table - optimized for space */
.fm-overview-section .fm-table {
    width: 100%;
    table-layout: fixed;
    font-size: 11px;
}

.fm-overview-section .fm-table th,
.fm-overview-section .fm-table td {
    padding: 4px 2px;
    text-align: center;
    white-space: nowrap;
}

.fm-overview-section .fm-table th.pos,
.fm-overview-section .fm-table td.pos {
    width: 20px;
}

.fm-overview-section .fm-table th.team,
.fm-overview-section .fm-table td.team {
    width: 100px;
    text-align: left;
}

.fm-overview-section .fm-table th:not(.pos):not(.team):not(.pts),
.fm-overview-section .fm-table td:not(.pos):not(.team):not(.pts) {
    width: 22px;
}

.fm-overview-section .fm-table th.pts,
.fm-overview-section .fm-table td.pts {
    width: 30px;
    font-weight: bold;
    color: #e91e63;
    background-color: rgba(233, 30, 99, 0.15);
}

/* Form styles for standings tab */
.form-result {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    font-size: 10px;
    font-weight: bold;
    margin: 0 1px;
    border-radius: 2px;
}

.form-win {
    background-color: #27ae60;
    color: white;
}

.form-draw {
    background-color: #f39c12;
    color: white;
}

.form-loss {
    background-color: #e74c3c;
    color: white;
}

/* Improved team info in overview */
.fm-overview-section .team-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fm-overview-section .team-logo {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Overview section spacing */
.fm-overview-section {
    margin-bottom: 15px;
}

/* Main container padding */
.fm-container {
    padding: 0px 20px !important;
    background: none !important;
}

.fm-overview-section h3.fm-widget-title {
    margin: 0 0 8px 0;
    padding: 12px 0;
    text-transform: uppercase !important;
}

/* Top Scorers styles - compact like standings */
.fm-table-compact {
    table-layout: fixed;
    width: 100%;
}

.fm-table-compact th:nth-child(1),
.fm-table-compact td:nth-child(1) {
    width: 30px;
    text-align: center;
    padding: 6px 4px;
}

.fm-table-compact th:nth-child(2),
.fm-table-compact td:nth-child(2) {
    width: 60%;
    padding: 6px 4px;
}

.fm-table-compact th:nth-child(3),
.fm-table-compact td:nth-child(3) {
    width: 20%;
    padding: 6px 4px;
    text-align: center;
}

.fm-table-compact th:nth-child(4),
.fm-table-compact td:nth-child(4) {
    width: 20%;
    padding: 6px 4px;
    text-align: center;
}

.fm-player-info {
    padding: 0;
}

.player-details {
    display: flex;
    align-items: center;
    gap: 6px;
}

.player-photo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.player-name-info {
    min-width: 0;
    flex: 1;
}

.player-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fm-team-info {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-logo-small {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.fm-goals {
    font-weight: bold;
    color: #27ae60;
    text-align: center;
    font-size: 16px;
    padding: 0;
}

.fm-standings-overview {
    margin: 0;
    padding: 0;
}

/* Goal difference colors */
.fm-table .positive {
    color: #27ae60;
    font-weight: 600;
}

.fm-table .negative {
    color: #e74c3c;
    font-weight: 600;
}

.fm-table .neutral {
    color: #7f8c8d;
}

/* Top Scorers Table Styling */
.fm-topscorers-overview .fm-table-compact {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 0;
}

.fm-table-compact th,
.fm-table-compact td {
    padding: 8px 6px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.fm-table-compact th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

.fm-table-compact td:first-child {
    text-align: center;
    font-weight: 600;
    width: 30px;
}

.fm-table-compact td:last-child {
    text-align: center;
    font-weight: 700;
    color: #e91e63;
    width: 50px;
}

.fm-player-name {
    display: flex;
    flex-direction: column;
}

.fm-player-name small {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.fm-goals {
    font-weight: 700 !important;
    color: #e91e63 !important;
}

/* League News Widget Styles */
.fm-league-news {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    overflow: hidden;
}

.fm-league-news-header {
    padding: 12px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.fm-league-news-header .fm-widget-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
    text-align: center;
}

.fm-league-news-list {
    padding: 15px 20px 20px 20px;
}

.fm-league-news-item {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.fm-league-news-item:last-child {
    margin-bottom: 0;
}

.fm-league-news-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.fm-news-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.fm-news-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.fm-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fm-news-image:hover img {
    transform: scale(1.08);
}

.fm-news-content {
    padding: 15px 20px 20px 20px;
}

.fm-news-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.fm-news-title a {
    color: #333;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
}

.fm-news-title a:hover {
    color: #e91e63;
}

.fm-news-meta {
    margin-bottom: 8px;
}

.fm-news-date {
    color: #666;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fm-news-excerpt {
    color: #555;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
}

.fm-league-news-empty,
.fm-league-news-error {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
    font-size: 13px;
}

.fm-league-news-error {
    color: #d32f2f;
}

/* Responsive design for League News */
@media (max-width: 768px) {
    .fm-league-news-item {
        margin-bottom: 15px;
    }
    
    .fm-news-image {
        height: 140px;
    }
    
    .fm-news-content {
        padding: 12px 15px 15px 15px;
    }
    
    .fm-news-title {
        font-size: 13px;
    }
    
    .fm-news-excerpt {
        font-size: 11px;
    }
    
    .fm-news-date {
        font-size: 10px;
    }
}

/* Overview right column specific styling */
.fm-overview-right .fm-league-news {
    margin-bottom: 15px;
}

/* League right column specific styling */
.fm-league-right .fm-league-news {
    margin-bottom: 20px;
}

.fm-league-right .fm-league-news-item {
    margin-bottom: 25px;
}

.fm-league-right .fm-news-image {
    height: 200px;
}

.fm-league-right .fm-news-content {
    padding: 18px 20px 22px 20px;
}

.fm-league-right .fm-news-title {
    font-size: 15px;
    margin-bottom: 10px;
}

.fm-league-right .fm-news-excerpt {
    font-size: 13px;
    line-height: 1.5;
}

/* 3-Column Grid Layout for News */
.fm-league-news-grid-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    padding: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.fm-league-news.fm-league-news-grid .fm-league-news-grid-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
}

.fm-league-news.fm-league-news-grid-fallback .fm-league-news-grid-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
}

.fm-league-news-grid-item {
    background: #fff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease !important;
    margin-bottom: 0 !important; /* Override any existing margin */
    width: 100% !important;
    display: block !important;
}

.fm-league-news-grid-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.fm-league-news-grid-item .fm-news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.fm-league-news-grid-item .fm-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fm-league-news-grid-item .fm-news-image:hover img {
    transform: scale(1.08);
}

.fm-league-news-grid-item .fm-news-content {
    padding: 15px 20px 20px 20px;
}

.fm-league-news-grid-item .fm-news-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
}

.fm-league-news-grid-item .fm-news-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

/* Fallback grid styling */
.fm-league-news-grid-fallback .fm-league-news-header h3 {
    color: inherit; /* Same color as regular news */
}

.fm-league-news-grid-fallback .fm-league-news-grid-item {
    /* Removed red border to match regular news cards */
}

/* Responsive Grid */
@media (max-width: 992px) {
    .fm-league-news-grid-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        padding: 15px !important;
    }
    
    .fm-league-news-grid-item .fm-news-image {
        height: 160px;
    }
}

@media (max-width: 768px) {
    /* Switch to single column card layout like first image - more specific selectors */
    .fm-league-news-grid-container,
    .fm-league-news.fm-league-news-grid .fm-league-news-grid-container,
    .fm-league-news.fm-league-news-grid-fallback .fm-league-news-grid-container {
        display: block !important;
        grid-template-columns: none !important;
        gap: 0 !important;
        padding: 15px !important;
    }
    
    .fm-league-news-grid-item {
        display: flex !important;
        flex-direction: column !important;
        margin-bottom: 20px !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        background: white !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
        border: 1px solid #eee !important;
        width: 100% !important;
    }
    
    .fm-league-news-grid-item .fm-news-image {
        width: 100% !important;
        height: 200px !important;
        margin-bottom: 0 !important;
        border-radius: 0 !important;
    }
    
    .fm-league-news-grid-item .fm-news-content {
        padding: 15px !important;
        flex: 1 !important;
    }
    
    .fm-league-news-grid-item .fm-news-title {
        font-size: 18px !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
        color: #333 !important;
    }
    
    .fm-league-news-grid-item .fm-news-date {
        margin-bottom: 10px !important;
        font-size: 13px !important;
        color: #999 !important;
    }
    
    .fm-league-news-grid-item .fm-news-excerpt {
        display: block !important;
        font-size: 14px !important;
        line-height: 1.5 !important;
        color: #666 !important;
    }
}

/* Additional Grid Layout Fixes */
.fm-news-grids-section .fm-league-news-grid .fm-league-news-list,
.fm-news-grids-section .fm-league-news-grid-fallback .fm-league-news-list {
    padding: 0 !important;
    display: none !important; /* Hide if accidentally used */
}

.fm-news-grids-section .fm-league-news-header {
    margin-bottom: 25px;
    text-align: center;
}

.fm-news-grids-section .fm-widget-title {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Full Width News Grids in Overview Tab */
.fm-news-grids-full-width {
    width: 100% !important;
    margin-left: -20px !important;
    margin-right: -20px !important;
    padding: 0 20px !important;
}

.fm-news-grids-full-width .fm-league-news-header {
    margin-bottom: 25px;
    text-align: center;
}

.fm-news-grids-full-width .fm-widget-title {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* PressFocus Image Overlay */
.fm-image-wrapper {
    position: relative !important;
    display: inline-block !important;
    z-index: 0 !important;
}

.fm-image-wrapper .fm-overlay {
    position: absolute !important;
    bottom: 6px !important;
    right: 6px !important;
    background: rgba(0, 0, 0, 0.55) !important;
    color: #ccc !important;
    font-size: 12px !important;
    padding: 3px 7px !important;
    border-radius: 4px !important;
    line-height: 1 !important;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif !important;
    pointer-events: none !important;
    z-index: 3 !important;
    font-weight: normal !important;
}

.fm-image-wrapper a {
    display: inline-block !important;
}

/* Container-based overlay for news images */
.fm-news-image.fm-has-overlay {
    position: relative !important;
}

.fm-news-image.fm-has-overlay::after {
    content: "fot. PressFocus" !important;
    position: absolute !important;
    bottom: 6px !important;
    right: 6px !important;
    background: rgba(0, 0, 0, 0.55) !important;
    color: #ccc !important;
    font-size: 12px !important;
    padding: 3px 7px !important;
    border-radius: 4px !important;
    line-height: 1 !important;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif !important;
    pointer-events: none !important;
    z-index: 3 !important;
    font-weight: normal !important;
}

/* Hide desktop-only content on mobile */
@media (max-width: 768px) {
    .onlydesktop {
        display: none !important;
    }
    
    /* Mobile optimizations for main fixtures interface */
    .fixture-monks-header {
        padding: 10px !important;
        gap: 12px !important;
    }
    
    .fixture-monks-filters {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: stretch !important;
    }
    
    .fixture-monks-league-dropdown {
        order: 2 !important;
    }
    
    .fixture-monks-search {
        order: 1 !important;
        max-width: none !important;
        flex: none !important;
    }
    
    .fixture-monks-search input {
        font-size: 16px !important; /* Prevent zoom on iOS */
        padding: 12px 12px 12px 40px !important;
        height: 48px !important;
        box-sizing: border-box !important;
    }
    
    .fixture-monks-league-filter {
        height: 48px !important;
        font-size: 16px !important;
        padding: 12px 16px !important;
    }
    
    .fixture-monks-date-section {
        margin: 15px 0 !important;
    }
    
    .fixture-monks-date-nav {
        justify-content: center !important;
        gap: 8px !important;
    }
    
    .fixture-monks-date-tabs {
        gap: 2px !important;
        padding: 2px !important;
    }
    
    .fixture-monks-date-tab {
        padding: 8px 12px !important;
        font-size: 14px !important;
        min-width: 45px !important;
        font-weight: 600 !important;
    }
    
    .fixture-monks-date-arrow {
        width: 40px !important;
        height: 40px !important;
        padding: 8px !important;
    }
    
    .fixture-monks-view-filters {
        justify-content: center !important;
        gap: 6px !important;
        margin: 15px 0 10px 0 !important;
    }
    
    .fixture-monks-view-filter {
        padding: 8px 16px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        min-width: 60px !important;
        text-align: center !important;
    }
    
    .fixture-monks-calendar-wrapper {
        margin-left: 8px !important;
    }
    
    .fixture-monks-calendar-btn {
        width: 40px !important;
        height: 40px !important;
        padding: 8px !important;
    }
}

/* Background image badge for news cards */
.fm-badge-bg {
    position: relative !important;
}

.fm-badge-bg::after {
    content: "fot. PressFocus" !important;
    position: absolute !important;
    right: 6px !important;
    bottom: 6px !important;
    background: rgba(0, 0, 0, 0.55) !important;
    color: #ccc !important;
    font-size: 12px !important;
    padding: 3px 7px !important;
    border-radius: 4px !important;
    line-height: 1 !important;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif !important;
    pointer-events: none !important;
    z-index: 3 !important;
    font-weight: normal !important;
}
