/* ---------- Global ---------- */
body {
  margin: 5;
  font-family: "Roboto", sans-serif;
  background: #f9f9f9;
  font-size: 18px;
  color: navy;
  line-height: 1.6;
  text-align: center;
}

main.match-details {
  max-width: 960px;
  margin: 0 auto;
  padding: 5px 5px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
}

/* ---------- Header ---------- */
.match-header {
  text-align: center;
  margin-bottom: 10px;
}

.match-header h2 {
  margin: 0;
  font-size: 1.8rem;
  color: navy;
}

.match-header time {
  font-size: 20px; 
  color: #555;
}

/* ---------- Scoreboard ---------- */

.scoreboard {
  display: flex;
  align-items: center;        /* vertically center everything */
  justify-content: center;    /* center the whole line */
  gap: 1.2rem;                /* space between groups */
  font-family: "Roboto", sans-serif;
  font-weight: bold;
  font-size: 1.2rem;
  white-space: nowrap;
}

.team-block,
.rival-block {
  display: flex;
  align-items: center;
  vertical-align: top;
  gap: 0.4rem;
}

.score {
  font-size: 1.6rem;
  font-weight: bold;
  letter-spacing: 0.1rem;
  vertical-align: top;
}

.scoreboard img {
  display: inline-block;
  vertical-align: middle;
  height: 40px;
  width: auto;
}


/* ---------- Jerseys ---------- */
.jerseys {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 10px 0;
}

.jerseys img {
  border: 0px solid #ddd;
  border-radius: 0px;
  background: #fdfdfd;
  padding: 5px 5px;
  transition: transform 0.2s ease;
}

.jerseys img:hover {
  transform: scale(1.05);
}

/* ---------- Details ---------- */
.details {
  margin: 10px 0;
  padding: 5px 5px;
  background-color: #f2f2f2;
  border-left: 4px solid navy;
}

.details p {
  margin: 5px 0;
}

/* ---------- Details loadsintesis----- *
.details1 {
  margin: 10px 0;
  padding: 5px 5px;
  background-color: #7fb9e3;
  border-left: 4px solid navy;
}

.details1 p {
  margin: 5px 0;
}
/* ---------- Lineups ---------- */
.lineups {
  margin: 10px 0;
  padding: 5px 5px;
  border-left: 4px solid navy;
  background-color: #fcfafa;
  text-align: left;
}

.lineups p {
  padding: 5px 5px; /* up-down left-right */
  padding-bottom: 5px;
  margin-bottom: 10px;
  text-align: left;
}

/* ---------- Goals ---------- */
.goals {
  margin: 10px 0;
  padding: 5px 5px;
  border-left: 4px solid navy;
  background-color: #f2f2f2;
  text-align: left;
}

.goals p {
  padding: 5px 5px; /* up-down left-right */
  padding-bottom: 5px;
  margin-bottom: 10px;
  text-align: left;
}


/* ---------- incidents ---------- */#7fb9e3

.incidents {
  margin: 10px 0;
  padding: 5px 5px;
  border-left: 4px solid navy;
  background-color: #fcfafa;
  text-align: left;
}

.incidents p {
  margin: 10px 0;
  background-color: #fcfafa;
  border-left: none;
  padding: 5px 5px; /* up-down left-right */
  padding-bottom: 5px;
  text-align: left;
}

/* ---------- incidents loadsintesis ----- */

.incidents1 {
  margin: 10px 0;
  padding: 5px 5px;
  border-left: 4px solid navy;
  background-color: #7fb9e3;
  text-align: left;
}

* ---------- Photos ---------- */
.photos {
  margin: 30px 0;
  text-align: center;
  border-left: 4px solid navy;

}

.photos h3 {
  margin-bottom: 10px;
}

.photos figure {
  margin: 10px auto;
}

.photos img {
  max-width: 100%;	
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}

.photos img:hover {
  transform: scale(1.5);
}

/* ---------- Videos added 2025/10/24 ---------- */

.video-container {
  position: relative;
  width: 100%;
  max-width: 700px; /* optional: limit size on large screens */
  margin: 0 auto;   /* center horizontally */
  padding-bottom: 56.25%; /* 16:9 ratio (9/16 = 0.5625) */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  background: #000; /* adds a black background */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Videos ---------- */

.videos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 30px 0;
}

.videos iframe {
  max-width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .scoreboard {
    flex-direction: column;
    gap: 5px;
  }
  .jerseys {
    flex-wrap: wrap;
  }
}
