/* ---------- Container ---------- */
.football-teams-container {
  max-width: 1180px;
  margin: 40px auto;
  color: #0f2433;
  padding: 0 18px;
}

/* ---------- Groups / Cards ---------- */
.groups-wrap {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: 20px;
  
  /* tạo bóng đổ */
  box-shadow: 0 0 50px 0 rgba(0, 0, 0, 0.1);
}

/* Each group card */
.tournament-group {
  position: relative;
  display: block;
  display: flex;
  align-items: center;
  border-bottom: 1px solid gray;
}

.tournament-group:last-child {
  border-bottom: none;
} 

/* inner white card that holds the grid */
.group-card {
  margin-left: 150px;
  flex-grow: 1;
}

/* add small top bar area - group title left inside card (hidden visually but keep space) */
.group-card-inner { padding-top: 6px; }

/* ---------- Team list (grid) ---------- */
.team-list {
  display: flex;
  justify-content: space-between;
}

.team-item {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 239px;
  width: 177px;
}

.team-tile {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 16px;
  border-radius: 30px;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

/* hover */
.team-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  background-color: var(--color-red);
}

/* active selected team */
.team-item.active .team-tile,
.team-tile.active,
.team-tile:hover .team-title,
.team-tile:hover .team-country,
.team-item.active .team-title,
.team-item.active .team-country {
  background: var(--color-red); /* gold */
  color: var(--color-white);
}

/* logo in tile */
.team-logo, .team-logo-fall {
  width: 145px;
  height: 156px;
  object-fit: contain;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(11, 109, 191, 0.06);
}

/* title and country */
.team-title {
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  margin: 6px 0 4px;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--color-black);
}
.team-country {
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-black);
}

/* no-team message */
.no-team {
  color: #6d7a8a;
  padding: 12px;
}

/* ---------- Details area ---------- */
.team-details-area {
  margin-top: 40px;
}

/* individual detail card (hidden by default) */
.team-detail {
  display: none;
  margin-bottom: 28px;
}

/* When active show as block */
.team-detail.active {
  display: block;
}

/* layout: left (logo & staffs) and right (players) */
.team-detail-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: start;
}

/* logo card */
.logo-card {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  background: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  margin-bottom: 14px;
}
.detail-logo {
  max-width: 140px;
  max-height: 140px;
  object-fit: contain;
}

/* team name */
.team-name {
  font-size: 16px;
  color: var(--color-blue);
  font-weight: 700;
  margin-bottom: 14px;
}

/* staff pills */
.staff-list {
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.staff-pill {
  padding: 10px 14px;
  border-radius: 22px;
  display:inline-block;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 6px 0 rgba(0,0,0,0.04);
}

/* colors */
.coach-head { background: var(--color-blue); color: #fff; }
.coach-assistant { background: #d4a700; color: #000; }
.coach-doctor { background: #d4a700; color: #000; }

/* ---------- Players table ---------- */
.players-list h3 {
  margin-bottom: 30px;
  text-align: center;
  color: var(--color-blue);
  font-size: 24px;
  font-weight: 600;
}

.players-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border: 1px solid var(--color-blue);
}

/* table styles */
.players-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.players-table thead th {
  background: var(--color-blue);
  color: var(--color-white);
  padding: 12px 16px;
  text-align: left;
  font-weight: var(--font-weight-bold);
  width: 33.33%;
}

/* make header visually rounded on top */
.players-table thead th:first-child { border-top-left-radius: 8px; }
.players-table thead th:last-child { border-top-right-radius: 8px; }

/* body rows */
.players-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #eef4fb;
  background: #fff;
  color: var(--color-black);
  font-weight: var(--font-weight-semibold);
}

/* alternating */
.players-table tbody tr:nth-child(even) td {
  background: #f7f9fb;
}


.vertical-text {
   transform: rotate(90deg);
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    background: var(--color-red);
    padding: 5px 70px;
    display: inline-block;
    border-radius: 10px 10px 0 0px;
    height: 50px;
    box-sizing: border-box;
    font-size: 24px;
    position: absolute;
    top: 97px;
    left: -84px;
}

.staff-pill.viet-nam {
  color: var(--color-white);
  background-color: var(--color-yellow);
}

.staff-pill {
  color: var(--color-white);
  background-color: var(--color-blue);
}

.team-details-area {
  display: none;
}


 @media (max-width: 1024px) {
  .team-detail-content { grid-template-columns: 1fr; }
  .team-logo, .team-logo-fall { width: 64px; height: 64px; }
  .team-list { grid-template-columns: repeat(2, 1fr); }
  .group-label { left: -90px; top: 10px; padding: 10px 16px; }
}

@media (max-width: 1024px) {
  .team-list { grid-template-columns: repeat(1, 1fr); }
  .group-label { position: static; display: inline-block; margin-bottom: 10px; left: 0; box-shadow:none; background:transparent; color:var(--color-blue); padding:0; }
  .group-card { padding: 12px; }
}
