BODY {
	width: 100%;
    max-width: 900px;
	height: 100SVH;
	overflow: hidden;
	background: #000;
    margin: 0;
    
    padding: 0;
}
@media(min-width: 767px) {
    body {
        margin-left: calc(50% - 450px);
    }
}

:root {
  --but: #4b85cf;
  --jaune: #effc55;
  --jaune2: linear-gradient(45deg,  #ffd700 0%,#ffd700 50%,#e60000 50%,#ffd700 50%,#e60000 50%);
  --red: #e60000;
  --orange: #ff8c00;
  --gris: #181818;
  --green: #73d69d;
}


#live-header {
    background: linear-gradient(180deg, #111 0%, #000 100%);
    background-image: url('../../img/header.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    position: relative;
    text-align: center;
    width: 100%;   
    padding-top: 20px;
    padding-bottom: 20px;
}

#live-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 0;
}

#live-header .header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    max-width: 900px;
    margin: 30px auto 20px auto;
}
#live-header #match-date {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #fff;
    z-index: 5;
}
/* Équipes */
#live-header .team {
    /*display: grid;
    align-items: center;
    gap: 6px;*/
    /*flex: 1;*/
    justify-content: center;
    font-weight: 600;
    letter-spacing: -0.5px;
    font-size: 14px; 
    text-align: center;
    width: 100%;
}
#live-header .team .img {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}
#live-header .team img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 5px 5px #fff;
}

#live-header .team.home {
    text-align: center;
    /*grid-template-columns: 38px 1fr;
    margin-left: 10px;*/
}

#live-header .team.away {
    text-align: center;
    /*grid-template-columns: 1fr 38px;
    margin-right: 10px;*/
}

/* Score centré */
#live-header .scoreboard {
  text-align: center;
  width: 90px;
}

#live-header .score {
  font-size: 22px;
  font-weight: bold;
  background: var(--orange);
  color: #fff;
  border-radius: 4px 4px 0 0;
  padding: 3px 0;
  display: inline-block;
    width: 90px;
}

#live-header .score .sep {
  margin: 0 6px;
  font-weight: normal;
}
#live-header #timer {
    color: var(--orange);
    font-weight: 700;    
    font-size: 12px;   
    height: 30px;
}
#live-header #timer SPAN {
    line-height: 30px;
    height: 30px;
    align-content: center;
    width: 45px;
    display: inline-block;
}
#live-header #timer SPAN:first-child {
    background-color: #fff;
    border-radius: 0 0 0 4px;
}
#live-header #timer SPAN:last-child {
    background-color: #dedede;
    border-radius: 0 0 4px 0;
}
#live-header #timer span:only-child {
    width: 90px; /* prend toute la place */
    background-color: #fff; /* ou ta couleur principale */
    border-radius: 0 0 4px 4px; /* coins uniformes */
}
/* 📱 Adaptation mobile */
@media (max-width: 480px) {
    #live-header {
        padding: 10px 5px 8px;
    }
    #live-header .team img {
        width: 32px;
        height: 32px;
        border-width: 1.5px;
    }
    #live-header .team DIV {
        font-size: 12px;
    }
    /*#live-header .score {
        font-size: 20px;
        padding: 3px 8px;
    }
   /* #live-header .sub-info {
        font-size: 10px;
    }
    /*#live-header .scoreboard {
        min-width: auto;
    }*/
}

.button {
    width: calc(100% - 10px);
    display: grid;
   /* grid-template-columns: 1fr 1fr 40px;*/
    grid-template-columns: 1fr 1fr;
    align-content: center;
    
    height: 30px;    
    margin: 10px 5px;
   /* gap: 15px;*/
   
}
.button DIV {	
	color: #fff;
	text-align: center;
	font-size: 12px;
	cursor: pointer;
    display: grid;
    align-content: center;
    text-transform: uppercase;
    letter-spacing: -0.2;
    /*border-radius: 6px;*/
    background: #181818;
}
.button DIV:first-child {
    border-radius: 4px 0 0 4px;
}
.button DIV:last-child {
    border-radius: 0 4px 4px 0;
}
.button DIV.active {
	background-color: var(--orange);
    color: #fff;
    font-weight: bolder;
    height: 30px;
    
}
#match, #compo {
	background: #111111;
	border-radius: 10px;
	color: #fff;
	width: CALC(100% - 10px);
	margin: 0 5px;
	height: CALC(100SVH - 185px);
	padding: 10px 0;
	list-style: none;
	overflow: hidden;
	overflow-Y: auto;
}

.evol {
	height: 40px;
	margin-bottom: 15px;	
	width: 100%;
	text-align: center;
	font-size: 12px;	
    display: grid;
    align-content: center;
    grid-template-columns: 1fr 60px 1fr;
}
.evol .time {
	width: 60px;
	text-align: center;	
	font-size: 10px;
	position: relative;  
    height: 40px;    
}
.evol .time SPAN {
	background: #343434;
	width: 30px;
	line-height: 20px;
	border-radius: 6px;
	padding: 3px 5px;
	display: inline-block;
	font-weight: bolder;
	font-size: 11px;
    margin-top: 5px; 
}
.evol.but .time SPAN {
    background-color: #fff;
    color: #111111;
}
.evol .time em {
	font-style: normal;
	font-size: 8px;
}
.evol .time:after {
	border-bottom: 1px solid #343434;
	width: 10px;
	content: "";
	position: absolute;
	top: 18px;
}
.evol.home .time:after { left: 0; }
.evol.away .time:after { right: 0; }
.evol .nom {    
	background: #081130;
	display: grid;    
    align-content: center;
    color: #fff;    
    border-top: 1px solid;   
    height: 40px;
    line-height: 15px;    
}
.evol.home .nom {
    grid-template-columns: 1fr 30px;
    text-align: right;
    padding-right: 10px;
}
.evol.away .nom {
    grid-template-columns: 30px 1fr; 
    text-align: left;
    padding-left: 10px;  
}
.evol .nom em {
	color: #999999;
	font-style: normal;
	display: block;
}
.evol .nom SPAN {
	color: var(--but);
	font-weight: bolder;
	font-size: 11px;
	display: block;
}
.evol.but .nom {
    border-color: var(--but);
}
.evol.carte.jaune .nom {
    border-color: var(--jaune);
}
.evol.carte.dbljaune .nom {
    border-top: 1px solid transparent; /* épaisseur et type */
    border-image: repeating-linear-gradient(
        135deg,
        #e60000 0 50px,
        #effc55 50px 100px
    ) 1;
    border-image-slice: 1;
}
.evol.carte.rouge .nom {
    border-color: var(--red);
}
.evol.chgt .nom {
    border-color: var(--green);
}
.evol .nom > DIV {
    height: 40px;
    display: grid;
    align-content: center;
}
.evol .nom .i {
    font-size: 16px;	
	width: 30px;
    height: 40px;
    display: grid;
    align-content: center;
    position: relative;
}
.evol .nom .i .jaune, .evol .nom .i .dbljaune, .evol .nom .i .rouge {
    width: 15px;
    height: 20px;
    border-radius: 4px;
}
.evol.home .nom .i .jaune, .evol.home .nom .i .dbljaune, .evol.home .nom .i .rouge {
    margin-left: 15px;
}
.evol.away .nom .i .jaune, .evol.away .nom .i .dbljaune, .evol.away .nom .i .rouge {
    margin-right: 15px;
}
.evol .nom .i .jaune {
    background-color: var(--jaune);
}
.evol .nom .i .dbljaune {
    background: linear-gradient(135deg,  #e60000 50%,#effc55 50%,#effc55 50%);
}
.evol .nom .i .rouge {
    background-color: var(--red);
}
.evol .nom .i .fa-circle-up {
    position: absolute; 
    top: 7px; 
    right: 3px; 
    color: #73d69d;
}
.evol .nom .i .fa-circle-down {
    position: absolute; 
    top: 17px; 
    right: -5px; 
    color: #e60000; 
}
.evol.away .nom .i .fa-circle-up  { right: auto; left: 3px;   }
.evol.away .nom .i .fa-circle-down{ right: auto; left: -5px;  }
.evol .nom .i SUPP {
	position: absolute;
	top: 2px;
	left: 8px;
	font-size: 8px;
	color: #fff;
	text-transform: uppercase;
    width: 100%;
    text-align: center
}
.evol.away .nom .i SUPP { left: auto; right: 8px; }
.evol.but.but_og i {
	color: #ff8080;
    margin-top: 8px;
}
.evol.but.but_pen i {
	color: var(--green);
    margin-top: 8px;
}
.evol .nom H5 {
	margin: 0;
	padding: 0;
	font-size: 11px;
}


.ligne {
	font-size: 12px;
	position: relative;
	height: 20px;
	margin-bottom: 15px;
	color: #b2b2b2;
	text-transform: uppercase;
}
.compo .ligne {
	margin-bottom: 5px;
}
.ligne DIV:nth-child(2) {
	text-align: center;
	position: absolute;	
	line-height: 12px;
}
.ligne.dm DIV:nth-child(2) {
	width: 160px;
	left: CALC(50% - 80px);
}
.ligne.mt DIV:nth-child(2) {
	width: 110px;
	left: CALC(50% - 55px);
}
.ligne.ft DIV:nth-child(2) {
	width: 130px;
	left: CALC(50% - 65px);
}
.compo .ligne DIV:nth-child(2) {
	width: 80px;
	left: CALC(50% - 40px);
}
.ligne.dm DIV:first-child:before, .ligne.dm DIV:first-child:after {
	width: CALC(50% - 80px);
}
.ligne.mt DIV:first-child:before, .ligne.mt DIV:first-child:after {
	width: CALC(50% - 55px);
}
.ligne.ft DIV:first-child:before, .ligne.ft DIV:first-child:after {
	width: CALC(50% - 65px);
}
.compo .ligne DIV:first-child:before, .compo .ligne DIV:first-child:after {
	width: CALC(50% - 40px);
}
.ligne DIV:first-child:before, .ligne DIV:first-child:after {
	position: absolute;
	content: "";
	border-bottom: 1px solid #b2b2b2;
	width: CALC(50% - 60px);
	top: 6px;
}
.ligne DIV:first-child:before {
	left: 0
}
.ligne DIV:first-child:after {
	right: 0;
}


.compo .joueur {
	width: 50%;
	float: left;
	margin: 0;
	font-size: 12px;
	line-height: 30px;
}

.compo .joueur.right {
	text-align: right;
}
.compo .fa-circle-down, .compo .fa-circle-up {
	position: absolute;	
	font-size: 9px;
}
.compo .fa-circle-down {
	color: var(--red);
	top: 9px;	
}
.compo .fa-circle-up {
	color: var(--green);
	top: -3px;
}
.compo DIV SPAN {
	display: inline-block;
}
.compo .left SPAN:nth-child(2) {
	margin-right: 10px;
}
.compo .right SPAN:nth-child(2) {
	margin-left: 10px;
}
.compo DIV SPAN.num {
	width: 20px;
	height: 20px;
	line-height: 20px;
	font-size: 10px;
	text-align: center;
	color: #111111;
    background-color: #fff;
	border-radius: 50%;
	margin-right: 10px;
	position: relative;
    font-weight: bolder;
}
.compo DIV.right SPAN.num {
	margin-right: 0;
	margin-left: 10px;
}
.compo .fa-circle-down, .compo .fa-circle-up {
    font-size: 12px;
    border: 2px solid #111111;
    border-radius: 50%;
    position: absolute;
}
.compo DIV.right SPAN.num .fa-circle-down {
	right: 12px;
    top: 12px;
}
.compo DIV.right SPAN.num .fa-circle-up {
	right: 14px;
    top: -6px;
}
.compo DIV.left SPAN.num .fa-circle-downp {
	left: 12px;
    top: 12px;
}
.compo DIV.left SPAN.num .fa-circle-up {
	left: 14px;
    top: -6px;
}

.compo .rempll {
	color: #9f9f9f;
	margin-top: -15px;
    font-size: 11px;
}
.compo .left.rempll {
	margin-left: 32px;	
}
.compo .right.rempll {
	margin-right: 32px;
}

.rempl {
	width: CALC(100SVW - 10px);
	text-transform: uppercase;
	font-size: 10px;
	margin-top: 10px;
	margin-bottom: 5px;
	float: left;
	margin-left: 5px;
	border-bottom: 1px solid #fff;
}
.compo i.jaune, .compo i.dbljaune, .compo i.rouge {
	height: 15px;
	width: 10px;
	border-radius: 2px;
    margin-top: 0;
}
.compo i.jaune {
    background-color: var(--jaune);
}
.compo i.dbljaune {
    background: linear-gradient(135deg,  #e60000 50%,#effc55 50%,#effc55 50%);
}
.compo i.rouge {
    background-color: var(--red);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

input[type=number] {
    -moz-appearance:textfield; /* Firefox */
}
