/* Custom CSS to fix score display */

/* Improve layout */
.splashSoccer .stm-event-results-as-header .container .stm-event-results-as-header-wrapper .fixture_detail {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 20px 0 !important;
}

.splashSoccer .stm-event-results-as-header .container .stm-event-results-as-header-wrapper .fixture_detail .command_info {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

/* Logo size improvements */
.splashSoccer .stm-event-results-as-header .container .stm-event-results-as-header-wrapper .fixture_detail .command_info .logo {
    width: 120px !important;
    height: 120px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.splashSoccer .stm-event-results-as-header .container .stm-event-results-as-header-wrapper .fixture_detail .command_info .logo img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

.sp-template-event-logos {
    text-align: center;
    margin: 0 auto;
    width: 100%;
    max-width: 800px;
}

.sp-template-event-logos .sp-event-logos {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    margin: 20px auto !important;
    max-width: 800px !important;
}

.sp-template-event-logos .sp-event-logos .sp-team-logo {
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    text-align: center !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.sp-template-event-logos .sp-event-logos .sp-team-logo:first-child {
    justify-content: flex-end !important;
}

.sp-template-event-logos .sp-event-logos .sp-team-logo:last-child {
    justify-content: flex-start !important;
}

.sp-template-event-logos .sp-event-logos .sp-team-name {
    font-size: 1.2em !important;
    font-weight: bold !important;
    color: #333 !important;
}

.sp-template-event-logos .sp-event-logos .sp-team-score {
    width: 100px !important;
    height: 76px !important;
    background: #ffffff !important;
    color: #000000 !important;
    text-align: center !important;
    padding: 0 !important;
    font-size: 60px !important;
    line-height: 76px !important;
    font-weight: bold !important;
    font-family: Oswald !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    margin: 0 10px !important;
    order: unset !important;
}

/* Score display improvements */
.fixture_detail {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 30px !important;
    padding: 20px !important;
}

.fixture_detail .command_info {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

.fixture_detail .command_info .logo {
    width: 120px !important;
    height: auto !important;
}

.fixture_detail .command_info .score.heading-font {
    width: 100px !important;
    height: 76px !important;
    background: #ffffff !important;
    color: #000000 !important;
    text-align: center !important;
    padding: 0 !important;
    font-size: 60px !important;
    line-height: 76px !important;
    font-weight: bold !important;
    font-family: Oswald !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    margin: 0 !important;
    order: unset !important;
}

/* Player Gallery Grid Layout */
.stm-players.stm-players-inline {
    padding: 20px;
    background: #fff;
}

.position-section {
    margin-bottom: 40px;
}

.position-section .player-group-name {
    font-size: 24px !important;
    font-weight: bold !important;
    color: #000 !important;
    margin: 30px 0 20px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #006B3F !important;
    text-transform: uppercase !important;
    width: 100% !important;
    display: block !important;
}

.player-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stm-single-player-in-list-wrap {
    width: 100%;
    margin-bottom: 30px;
    background: #fff;
}

.stm-single-player-in-list-wrap .player-card {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.stm-single-player-in-list-wrap .player-card:hover {
    transform: translateY(-5px);
}

.stm-single-player-in-list-wrap .player-image {
    width: 100%;
    aspect-ratio: 270/370;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fff;
}

.stm-single-player-in-list-wrap .player-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stm-single-player-in-list-wrap .player-info {
    text-align: center;
    padding: 10px 0;
    background: #fff;
}

.stm-single-player-in-list-wrap .player-number {
    font-size: 18px !important;
    font-weight: bold !important;
    color: #006B3F !important;
    margin-bottom: 5px !important;
    display: block !important;
}

.stm-single-player-in-list-wrap .player-name {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #000 !important;
    display: block !important;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .player-group {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .player-group {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .player-group {
        grid-template-columns: 1fr;
    }
}

/* Position headings */
.player-group-name {
    width: 100% !important;
    grid-column: 1 / -1;
    margin: 40px 0 20px !important;
    color: #333;
    font-size: 1.8em !important;
    text-align: left;
}

/* First position heading */
.player-group-name:first-of-type {
    margin-top: 0 !important;
}

/* Remove coverage info */
.sp_event_spec_value,
div.sp_event_spec span.sp_event_spec_value,
td[data-label="COVERAGE"],
.data-coverage,
[class*="data-coverage"],
td.data-coverage,
.coverage {
    display: none !important;
    visibility: hidden !important;
}

/* Hide penalties and coverage labels */
.sp_event_spec_label,
div.sp_event_spec span.sp_event_spec_label,
.sp_event_spec,
.sp-event-spec-label {
    display: none !important;
}
