.matchItem {
	border-radius:10px;
	border:dotted 1px var(--color-blue);
	padding:2%;
	margin-bottom:5%;
	position: relative;

	header {
		position: absolute;
		top:0;
		left:0;
		width:100%;
		background: var(--color-blue);
		border-radius: 10px 10px 0 0;

		span {
			float:left;
			width:30%;
			padding:1%;
			text-align: center;
			color:#FFF;
			font-weight: bold;
			font-size:var(--matchItemHeaderSpanFontSize);

			&:first-child {
				text-align: left;
			}

			&:last-of-type {
				text-align: right;
				float:right;
			}
		}

		span.one-span {
			width:60%;
		}

		span.matchDate {
			input {
				border:0;
			}
		}

		span.round-label {
			img.round-menu {
			    margin-left: 5px;
    			margin-bottom: -2px;
    			cursor: pointer;
			}
		}
	}

	.teamItem {
		float:left;

		.score {
			color: var(--color-blue);
			font-size: 4em;
			font-weight: bold;
			text-align: center;
			padding-top: 20px;
			padding-bottom: 10px;

			input {
				color: var(--color-blue);
				font-size: 1em;
				font-weight: bold;
				text-align: center;
				background: transparent;
				border:dotted 1px var(--color-orange);
				font-style: italic;
				width:100px;
				border-radius: 5px;
			    padding-top: 0;
			    padding-bottom: 0;
			}
		}

		.playerItem {
			color: var(--color-blue);
			font-size: var(--matchItemPlayerFontSize);
			margin-bottom:1%;

			a {
				display: inline-block;
				color:var(--color-blue);
				text-decoration: none;

				img {
					width:100px;
					background: #FFFFFF;
					border:solid 3px var(--color-blue);
				}

				&:hover {
					color:var(--color-orange);

					img {
						border:solid 3px var(--color-orange);
					}
				}

				
			}
		}

		div.left {
			text-align: right;

			a {
				margin-right:var(--matchItemImgSideMargin);
			}
		}

		div.right a {
			margin-left:var(--matchItemImgSideMargin);
		}

	}

	.players {
		margin: 30px 0px;
	    padding: 5px 10px 10px;
	    background: rgba(255, 255, 255, 0.6);
	    border-radius: 5px;

	    table {
	    	width: 100%;

    		tr {
    			td {
    				color: var(--color-blue);
    				padding-top: 5px;
    				border-bottom:dotted 1px var(--color-blue);

    				&:first-child {
					    width: 65px;
					    padding-left:5px;

					    a {
					    	color: var(--color-blue);

					    	img {
						    	width:50px;
								background: #FFFFFF;
								border:solid 3px var(--color-blue);
						    }

						    &:hover {
						    	color: var(--color-orange);

						    	img {
									border:solid 3px var(--color-orange);
							    }
						    }

					    }

					    
    				}
    				&:last-of-type {
					    width: 120px;
					    font-size: 2em;
					    text-align: right;
					    padding-right:5px;

    				}

    				a {
				    	color: var(--color-blue);
				    	font-size: 2em;
				    	text-decoration: none;

					    &:hover {
					    	color: var(--color-orange);
					    }
					}
    			}

    			&:first-child {
					td:last-of-type {
						text-align: center;
						cursor: help;
					}

    			}
    		}
	    }
	}

	.podium {
		width: 600px;
		margin: 100px auto 30px;
		display: flex;
		justify-content: center;
		align-items: flex-end;
		gap: 10px;

		.step {
			width: 200px;
			display: flex;
			justify-content: center;
			align-items: flex-end;
			color: #fff;
			font-weight: bold;
			border-radius: 6px 6px 0 0;
			position:relative;

			div.player-card {
				position: absolute;
				top: -60px;

				img {
					width: 100px;
					padding: 5px;
					background: #FFF;
				}

				h3, h4 {
					text-align: center;
					margin-top:5px;
					margin-bottom:5px;
				}
			}

			span.position {
				margin-bottom: 10px;
			}
		}

		/* 1ère place (au centre, plus haute) */
		.first {
			height: 210px;
			background: #f1c40f; /* jaune */
		}

		/* 2ème place (à gauche, un peu plus basse) */
		.second {
			height: 170px;
			background: #3498db; /* bleu */
		}

		/* 3ème place (à droite, encore plus basse) */
		.third {
			height: 140px;
			background: #e67e22; /* orange */
		}
	
	}

	
}

@media (min-width: 250px) and (max-width:799px){
	.matchItem {
		.teamItem {
			.score {
				font-size: 2em;
				padding-top: 35px;
				padding-bottom: 5px;
			}

		}

		.playerItem a {
			position: relative;

			span  {
				position: absolute;
				bottom:0;
				left:0;
				width: 90%;
				display: inline-block;
				padding: 5px 5%;
				color: #FFFFFF;
				text-align: left;
				font-size: 10px;
				background: color-mix(in srgb, var(--color-blue), transparent 20%);
			}

			&:hover span  {
				background: color-mix(in srgb, var(--color-orange), transparent 20%);
			}
		}

		.players {
			table {
				tr {
					td {
						font-size: 1em;

						&:last-of-type {
							width: 60px;
						    font-size: 1em;
	    				}

						a {
							font-size: 1em;
						}
					}	
				}				
			}
		}
	}
}