    .MainPanel {
    max-height: none !important;
    border-radius: 12px;
    
}
body{
        font: 14px / 17px 'Barlow';
}
.scoreboard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top:-1px;
    background: #fff;
    border-radius: 12px;
 

    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    border: 1px solid #eaeaea;

    margin-bottom: 20px;
    margin-top: 15px;
    z-index: 10;
}

.team-stats {
    width:100%;
    border-collapse:collapse;
    margin-bottom:20px;
}

.team-stats td, .team-stats th {
    padding:8px;
    text-align:center;
    border-bottom:1px solid #ddd;
}

.players {
    display:flex;
    gap:20px;
}

.team-block {
    display: flex;
    align-items: stretch; /* 🔥 CRUCIAL */
    padding: 0; /* 🔥 enlève le padding qui casse tout */
    overflow: hidden;
    border-radius: 12px;
}
.team-block.away {
    
    border-left-width: 6px;
   
}
.team-color {

     position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px 15px;
    min-width: 120px;

    /* effet clean */
    box-shadow: inset -5px 0 10px rgba(0,0,0,0.1);
}
.team-color::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to right,
        rgba(255,255,255,0.08),
        rgba(255,255,255,0.00)
    );

    pointer-events: none;
}
.team-color::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to right,
        rgba(0,0,0,0.00) 70%,
        rgba(0,0,0,0.12) 100%
    );

    pointer-events: none;
}
.team-block.home {

    justify-content: flex-end;
}
.CustomBoxscore {
    
    position: relative;
    z-index: 10;
    background: white;
    padding-left: 20px;
    padding-right: 20px;
}

.team-title {
    margin-top: 30px;
    font-size: 22px;
    font-weight: bold;
    border-left: 5px solid #111;
    padding-left: 10px;
    color: #000000;
    font-family: 'Barlow';
}
.team-title h2{
     font-family: 'Barlow';
}

.nhl-table {
    font-family: 'Barlow';
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.nhl-table thead {
    background: #111;
    color: #fff;
}

.nhl-table th {
    padding: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nhl-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.nhl-table td.name {
    text-align: left;
    font-weight: 500;
}



/* Points highlight */
.nhl-table td.pts {
    font-weight: bold;
}

/* +/- colors */

.goalie-title {
    margin-top: 15px;
    font-size: 16px;
    font-weight: bold;
    color: #555;
}

.goalie-table {
    margin-top: 5px;
}
.game-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.left-panel {
    flex: 2;
}

.right-panel {
    flex: 1;
}

.game-stats {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stat-row {
    margin-bottom: 15px;
}

.stat-values {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 5px;
}

.stat-bar {
    position: relative;
    display: flex;
    height: 8px;
    background: #eee;
    border-radius: 5px;
    overflow: hidden;
}
.stat-divider {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: #fff;
    transform: translateX(-50%);
    z-index: 2;
}


.away-bar {
    background: #d93025;
}

.home-bar {
    background: #1a73e8;
}


.team {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}
.team::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    opacity: 0.8;
}

.team.home {
    justify-content: flex-end;
}

.team-info {
    display: flex;
    flex-direction: column;
}
.team-text {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.team-text.right {
    align-items: flex-end;
}
.team-info.right {
    align-items: flex-end;
}

.team-name {
    font-size: 35px;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 700;
    font-family: 'Chakra Petch';
}
.team-city {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: #111;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.team-record {
    font-size: 16px;
    opacity: 0.65;
    margin-top: 2px;
    
    font-weight: bold;
}

.team-abbrev {
    font-size: 12px;
    opacity: 0.7;
}

.team-logo-scoreboard {
    width: 90px;   /* ou plus */
    height: auto;

    max-width: none; /* 🔥 IMPORTANT */
}

.score-center {
    flex: 0 0 auto;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    padding: 10px 25px;
}
.score-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    padding: 8px 20px;
    
    border-radius: 12px;

    min-width: 140px;
}
.score {
    font-size: 60px;
    font-weight: 800;
    font-family: 'Chakra Petch';
    line-height: 1;
}
.status {
    font-size: 11px;
    font-weight: 700;
    
    letter-spacing: 1.2px;
    margin: 4px 0;
}

.dash {
    opacity: 0.6;
}
.three-stars {
    background: #f2f2f2;
    padding: 15px;
    border-radius: 10px;
}

/* CARD */
.star-card-light {
    background: #ffffff;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
}

/* TITLE */
.star-rank {
    font-weight: 700;
    color: #444;
    margin-bottom: 8px;
    display: flex;
}

/* ROW */
.star-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* BADGE (position + numéro) */
.player-badge {
    width: 38px;
    
    color: #fff;
    border-radius: 6px;
    text-align: center;
    overflow: hidden;
    font-weight: 700;
}

.player-badge .pos {
    font-size: 11px;
    padding: 4px 0;
    background: rgba(255,255,255,0.1);
}

.player-badge .num {
    font-size: 14px;
    padding: 4px 0;
}

/* PHOTO */
.star-photo {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

/* INFO */
.star-info {
    flex: 1;
}

/* HEADER */
.star-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.team-logo {
    width: 40px;
}

.player-name {
    font-weight: 700;
    color: #000000;
    font-size: 18px;
}

/* STATS */
.star-stats {
    display: flex;
    align-items: center;
}

.star-stats > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 14px;
    position: relative;
}

/* séparation verticale */
.star-stats > div:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 5px;
    bottom: 5px;
    width: 1px;
    background: #ddd;
}

.star-stats span {
    font-size: 11px;
    color: #777;
}

.star-stats strong {
    font-size: 16px;
    color: #0b2c3d;
}
.period-section {
    margin-bottom: 25px;
}

h2 {
    font-family: 'Barlow';
    font-size: 22px;
    margin-bottom: 10px;
    color: #555;
}

/* CARD */
.goal-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f3f3f3;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    margin-left: 15px;
}

/* LEFT */
.goal-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-img {
    width: 70px;
    height: 70px;
    border-radius: 20%;
    object-fit: cover;
}

.goal-title {
    font-weight: bold;
    font-size: 16px;
}

.goal-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

/* 🔥 logo inline propre */
.assist-team-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
    margin: 5px;
}

/* RIGHT */
.goal-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.goal-box {
    background: #e0e0e0;
    padding: 10px 14px;
    border-radius: 8px;
    text-align: center;
    min-width: 70px;
}

.goal-box b {
    display: block;
    font-size: 14px;
}

.goal-box span {
    font-size: 11px;
    color: #666;
}

/* PLAY BUTTON */
.play-btn {
    width: 40px;
    height: 40px;
    background: #1e6dfb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
}
/* Logo plus clean */
.team-logo-inline {
    width: 26px;
    height: 26px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 8px;
}

/* Score box highlight */
.score-box {
    background: #dfe7ff;
    border: 1px solid #c5d2ff;
}

.score-box b {
    font-size: 15px;
    color: #1e40ff;
}
.shootout-section {
    margin-top: 30px;
}

.shootout-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px;
}

.shootout-table th {
    text-align: left;
    font-size: 12px;
    color: #888;
    padding-bottom: 8px;
}

.shootout-table td {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.shootout-player {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shootout-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.shootout-logo {
    width: 45px;
}

/* 🔥 Couleurs résultat */
.shootout-result {
    font-weight: 600;
}

.shootout-result:contains("Goal") {
    color: green;
}

.shootout-result:contains("Stopped"),
.shootout-result:contains("Misses") {
    color: red;
}
.shootout-result {
    white-space: nowrap; /* 🔥 empêche retour à la ligne */
}

.so-result-wrap {
    display: inline-flex;   /* 🔥 reste sur UNE ligne */
    align-items: center;    /* 🔥 centrage vertical */
    gap: 6px;
}

.so-result-wrap img {
    width: 16px;
    height: 16px;
}
.loser {
    opacity: 0.6;
}
.tabs {
    display: flex;
    position: relative;
    border-bottom: 1px solid #1e1e1e;
    background: #f0f0f0;
    overflow: hidden;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.customtab {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    cursor: pointer;

    font-weight: 600;
    font-size: 16px;
    color: #454545;

    transition: color 0.25s ease;
}
.customtab::after {
    transition: all 0.3s ease;
}

.customtab span {
    display: inline-block;
    position: relative;
}
.customtab.active {
     color: #25272a;
    background: white;
}


.customtab:hover {
    color: #000000;
}
.tab-indicator {
    position: absolute;
    bottom: 0;
    height: 3px;
    background: #000000;
    border-radius: 2px;

    width: 0;
    left: 0;

    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}
.boxscore-switch {
    display: inline-flex;
    background: #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px;
}

.switch-btn {
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: #787878;
    transition: all 0.2s ease;
    user-select: none;
    display: flex;
    align-items: center;
}

.switch-btn.active {
    background: #191919;
    color: white;
}
.recap-scroll {
   max-height: 600px;
    overflow-y: auto;
    padding: 10px;
}
.recap-scroll {
    max-height: 600px;
    overflow-y: auto;
    padding: 10px;
}

.recap-period {
    margin-bottom: 15px;
    padding: 10px;
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 8px;
    margin-left: 15px;
}

.recap-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: #545454;
}

.goal {
    font-weight: bold;
    color: #0a7a2f;
    margin: 6px 0;
}
.penalty-section {
    margin-top: 20px;
}

.penalty-line {
    font-size: 14px;
    padding: 4px 0;
    color: #000000;
    

}

.penalty-time {
    
    font-weight: bold;
    margin-left: 5px;
}
.stats-header {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    gap: 20px;
    margin-bottom: 15px;
    padding: 10px;
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 8px;
}

.team-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    font-size: 14px;
}

.team-mini img {
    width: 28px;
    height: 28px;
}


.vs {
    font-weight: bold;
    color: #718096;
}
.game-details {
   background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.game-details h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
    text-transform: uppercase;
}

.detail-block {
    padding: 8px 0;
    border-bottom: 1px solid #e6e6e6;
    margin-right: 5px;
}

.detail-block:last-child {
    border-bottom: none;
}

.label {
    font-size: 11px;
    color: #181818;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.value {
    font-size: 14px;
    color: #111;
}
.lineup-single {
    background: #f3f6fa;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.lineup-section-title {
    margin-top: 20px;
    font-weight: bold;
    font-size: 16px;
}

.lineup-table td {
    padding: 6px 8px;
    font-size: 13px;
}
.STHSBoxScore_Lines_Table th{
    font-family: 'Barlow';
    background: #111;
    color: #fff;

}
.STHSBoxScore_Lines_Table td{
    font-family: 'Barlow';


}
.STHSBoxScore_Lines_Table{
   
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}
