

.match-container {
  max-width: 650px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  background-color: var(--bg-kikof);
  border-right: 2px solid var(--border-aside-kikof);
  border-left: 2px solid var(--border-aside-kikof);
  color: var(--color-kikof) !important;
}

h1 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-kikof) !important;
  margin-bottom: 1.5rem;
}

/* Search Bar */
.search-bar {
  position: relative;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.75rem;
}

.search-wrapper {
  flex: 1;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  border: 1px solid var(--bg-search-main-kikof);
  border-radius: 12px;
  font-size: 0.875rem;
  color: var(--color-kikof);
  outline: none;
  transition: all 0.3s;
  background-color: var(--bg-search-main-kikof);
}

.search-input:focus {
  border-color: var(--border-aside-kikof);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 1rem;
}

.calendar-btn {
  width: 50px;
  height: 50px;
  background-color: var(--bg-search-main-kikof);
  border: 1px solid var(--border-aside-kikof);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.calendar-btn:hover {
  border-color: var(--color-kikof);
  background: #f8f7ff;
}

.calendar-btn i {
  font-size: 1.125rem;
  color: var(--color-kikof);
}

/* Days Navigation */
.days-nav {
  display: flex;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.days-nav::-webkit-scrollbar {
  height: 4px;
}

.days-nav::-webkit-scrollbar-thumb {
  background: #e5e5e5;
  border-radius: 4px;
}

.day-tab {
  padding: 0.625rem 1rem;
  border: none;
  background: transparent;
  color: #999;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
  border-bottom: 2px solid #f0f0ed;
}

.day-tab:hover {
  color: var(--color-kikof);
}

.day-tab.active {
  color: var(--color-kikof);
  border-bottom-color: var(--color-kikof);
}

/* Match Cards */
.matches-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.match-card {
  background-color: var(--card-bg-kikof);
  border-radius: 12px;
  border: 1px solid  var(--card-bg-kikof);
  padding: 1.25rem;
  transition: all 0.3s;
  cursor: pointer;
}

.match-card:hover {
  background: var(--bg-card-hover-kikof);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.league-name {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-kikof);
  margin-bottom: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.match-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--color-kikof);
}

/* Team container */
.team {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 0.625rem;
}

/* Home team: logo à gauche, texte à droite */
.team.home {
  justify-content: flex-end;
  flex-direction: row;
}

/* Away team: logo à droite, texte à gauche */
.team.away {
  justify-content: flex-start;
  flex-direction: row-reverse;
}

/* Logo parfaitement centré */
.team-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  vertical-align: middle;
}

/* Texte */
.team-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-kikof);
  line-height: 1;
}

/* Heure du match */
.match-time {
  font-size: 1.25rem;
  font-weight: 700;
  color:var(--color-kikof);
  min-width: 80px;
  text-align: center;
}

/* Alignement du nom du stade */
.stadium-name {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-kikof);
  margin-top: 0.75rem;
}

.no-result {
  text-align: center;
  display: none;
  margin-top: 15px;
  color: #6e6e6e;
}

.day-switch {
  display: none; /* hidden on PC */
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 15px 0;
  background: var(--bg-kikof);
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  color: var(--color-kikof);
  font-weight: 600;
  font-size: 1rem;
}

.day-switch .day-btn {
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  color: var(--color-kikof);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  background-color: var(--bg-kikof);
  border: 0.5px solid var(--border-aside-kikof);
  border-radius: 50%;
}

.day-switch .day-btn:hover {
  color: #0077b6;
}

/* ---------- CALENDAR POP-UP ---------- */
.cal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none; /* hidden by default */
  justify-content: center;
  align-items: center;
  background-color: rgba(0,0,0,0.3);
  z-index: 9999;
}


.cal-card {
  background: #f8f8f5;
  width: 350px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  margin-top: 6px;
}

.cal-header {
  color: #033244;
  padding: 14px 18px;
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
}
.cal-header .cal-nav {
  cursor: pointer;
  font-size: 22px;
  user-select: none;
  padding: 0 6px;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 8px 14px 4px;
  font-size: 12px;
  color: #616161;
  text-align: center;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  padding: 4px 14px 14px;
}

.cal-cell {
  height: 38px;
  width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  border-radius: 10px;
  background-color: #c5e7f2;
  border: 0.4 solid #b8dce8;
  color: #084861;
  font-weight: bold;
}

.cal-cell:hover {
  background: #e3f2fd;
  cursor: pointer;
}

.cal-cell.selected {
  background: #084861;
  color: #fff;
}

.cal-cell.other {
  color: #9e9e9e;
}

.cal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 14px;
  gap: 8px;
}

.cal-footer button {
  border: none;
  background-color: transparent;
  border-radius: 6px;
  cursor: pointer;
}

.cal-footer .cal-ok {
  color: #084861;
  opacity: 0.5;
  pointer-events: none;
}
.cal-footer .cal-ok.active {
  opacity: 1;
  pointer-events: auto;
}

#cal-prev,
#cal-next {
  font-size: 1.3rem;
  background-color: transparent;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-content: center;
}

#cal-prev:hover,
#cal-next:hover {
  transition: all 0.3s ease;
  background-color: #fffffc;
  border-color: #e0e0e0;
}

.cal-cell.disabled {
  background: #e7e7e7;
  color: #9a9a9a;
  cursor: not-allowed;
  opacity: 0.6;
}

.cal-cell.disabled:hover {
  background: #e7e7e7;
}


.cal-cell.disabled {
  color: #aaa;
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f5f5f5;
}
.cal-cell.today {
  border: 2px solid #007bff;
  border-radius: 6px;
}

/* --- Retour Button (aligned to match-container left) --- */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.625rem 1rem;
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #033244;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  
  /* Ensure it sticks to container's left side */
  margin-bottom: 1.25rem;
  margin-left: 0;  /* aligns to container’s inner left edge */
  display: block;  /* takes full control of its positioning */
}

.back-btn:hover {
  background-color: #f8f7ff;
  border-color: #033244;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.back-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Version Mobile */
@media (max-width: 575.98px) {

  .days-nav {
    display: flex; /* show the day tabs on mobile */
    overflow-x: auto;
  }
  .day-switch {
    display: none; /* hide old mobile arrows */
  }

  .container {
    padding: 1.5rem 0;
  }
  .content-head {
    background-color: var(--bg-kikof) !important;
    position: relative;
  }
  .match-container {
    margin-top: 60px;
    border: none;
    padding: 1rem 0;
  }

  .team-name {
    font-size: 0.8125rem;
  }

  .match-time {
    font-size: 1rem;
    min-width: 60px;
  }

  .team-logo {
    width: 28px;
    height: 28px;
  }
  .search-bar {
    margin-bottom: auto;
  }

  .days-nav {
    display: none;
  }

  .day-switch {
    display: flex;
  }

  .cal-card {
    width: 90vw;
  }
}


.hidden {
  display: none !important;
}

@media (max-width: 575px) {
  .back-btn {
    font-size: 0.85rem;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    margin-left: 0;
  }

  
  .days-nav {
    display: flex; /* show the day tabs on mobile */
    overflow-x: auto;
  }
  .day-switch {
    display: none; /* hide old mobile arrows */
  }
}


/* ===== "Autres compétitions" page ===== */
.other-comp-back { text-decoration: none !important; width: max-content; }
.other-comp-title { display: flex; align-items: center; gap: 12px; }
.other-comp-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; }
.other-comp-day {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: capitalize;
  color: var(--color-kikof);
  opacity: 0.8;
  margin: 1.5rem 0 0.75rem;
}
.other-comp-empty { text-align: center; color: #777; margin-top: 2rem; }



.match-container {
  max-width: 650px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  background-color: var(--bg-kikof);
  border-right: 2px solid var(--border-aside-kikof);
  border-left: 2px solid var(--border-aside-kikof);
  color: var(--color-kikof) !important;
}

h1 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-kikof) !important;
  margin-bottom: 1.5rem;
}

/* Search Bar */
.search-bar {
  position: relative;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.75rem;
}

.search-wrapper {
  flex: 1;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  border: 1px solid var(--bg-search-main-kikof);
  border-radius: 12px;
  font-size: 0.875rem;
  color: var(--color-kikof);
  outline: none;
  transition: all 0.3s;
  background-color: var(--bg-search-main-kikof);
}

.search-input:focus {
  border-color: var(--border-aside-kikof);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 1rem;
}

.calendar-btn {
  width: 50px;
  height: 50px;
  background-color: var(--bg-search-main-kikof);
  border: 1px solid var(--border-aside-kikof);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.calendar-btn:hover {
  border-color: var(--color-kikof);
  background: #f8f7ff;
}

.calendar-btn i {
  font-size: 1.125rem;
  color: var(--color-kikof);
}

/* Days Navigation */
.days-nav {
  display: flex;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.days-nav::-webkit-scrollbar {
  height: 4px;
}

.days-nav::-webkit-scrollbar-thumb {
  background: #e5e5e5;
  border-radius: 4px;
}

.day-tab {
  padding: 0.625rem 1rem;
  border: none;
  background: transparent;
  color: #999;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
  border-bottom: 2px solid #f0f0ed;
}

.day-tab:hover {
  color: var(--color-kikof);
}

.day-tab.active {
  color: var(--color-kikof);
  border-bottom-color: var(--color-kikof);
}

/* Match Cards */
.matches-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.match-card {
  background-color: var(--card-bg-kikof);
  border-radius: 12px;
  border: 1px solid  var(--card-bg-kikof);
  padding: 1.25rem;
  transition: all 0.3s;
  cursor: pointer;
}

.match-card:hover {
  background: var(--bg-card-hover-kikof);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.league-name {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-kikof);
  margin-bottom: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.match-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--color-kikof);
}

/* Team container */
.team {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 0.625rem;
}

/* Home team: logo à gauche, texte à droite */
.team.home {
  justify-content: flex-end;
  flex-direction: row;
}

/* Away team: logo à droite, texte à gauche */
.team.away {
  justify-content: flex-start;
  flex-direction: row-reverse;
}

/* Logo parfaitement centré */
.team-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  vertical-align: middle;
}

/* Texte */
.team-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-kikof);
  line-height: 1;
}

/* Heure du match */
.match-time {
  font-size: 1.25rem;
  font-weight: 700;
  color:var(--color-kikof);
  min-width: 80px;
  text-align: center;
}

/* Alignement du nom du stade */
.stadium-name {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-kikof);
  margin-top: 0.75rem;
}

.no-result {
  text-align: center;
  display: none;
  margin-top: 15px;
  color: #6e6e6e;
}

.day-switch {
  display: none; /* hidden on PC */
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 15px 0;
  background: var(--bg-kikof);
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  color: var(--color-kikof);
  font-weight: 600;
  font-size: 1rem;
}

.day-switch .day-btn {
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  color: var(--color-kikof);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  background-color: var(--bg-kikof);
  border: 0.5px solid var(--border-aside-kikof);
  border-radius: 50%;
}

.day-switch .day-btn:hover {
  color: #0077b6;
}

/* ---------- CALENDAR POP-UP ---------- */
.cal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none; /* hidden by default */
  justify-content: center;
  align-items: center;
  background-color: rgba(0,0,0,0.3);
  z-index: 9999;
}


.cal-card {
  background: #f8f8f5;
  width: 350px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  margin-top: 6px;
}

.cal-header {
  color: #033244;
  padding: 14px 18px;
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
}
.cal-header .cal-nav {
  cursor: pointer;
  font-size: 22px;
  user-select: none;
  padding: 0 6px;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 8px 14px 4px;
  font-size: 12px;
  color: #616161;
  text-align: center;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  padding: 4px 14px 14px;
}

.cal-cell {
  height: 38px;
  width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  border-radius: 10px;
  background-color: #c5e7f2;
  border: 0.4 solid #b8dce8;
  color: #084861;
  font-weight: bold;
}

.cal-cell:hover {
  background: #e3f2fd;
  cursor: pointer;
}

.cal-cell.selected {
  background: #084861;
  color: #fff;
}

.cal-cell.other {
  color: #9e9e9e;
}

.cal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 14px;
  gap: 8px;
}

.cal-footer button {
  border: none;
  background-color: transparent;
  border-radius: 6px;
  cursor: pointer;
}

.cal-footer .cal-ok {
  color: #084861;
  opacity: 0.5;
  pointer-events: none;
}
.cal-footer .cal-ok.active {
  opacity: 1;
  pointer-events: auto;
}

#cal-prev,
#cal-next {
  font-size: 1.3rem;
  background-color: transparent;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-content: center;
}

#cal-prev:hover,
#cal-next:hover {
  transition: all 0.3s ease;
  background-color: #fffffc;
  border-color: #e0e0e0;
}

.cal-cell.disabled {
  background: #e7e7e7;
  color: #9a9a9a;
  cursor: not-allowed;
  opacity: 0.6;
}

.cal-cell.disabled:hover {
  background: #e7e7e7;
}


.cal-cell.disabled {
  color: #aaa;
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f5f5f5;
}
.cal-cell.today {
  border: 2px solid #007bff;
  border-radius: 6px;
}

/* --- Retour Button (aligned to match-container left) --- */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.625rem 1rem;
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #033244;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  
  /* Ensure it sticks to container's left side */
  margin-bottom: 1.25rem;
  margin-left: 0;  /* aligns to container’s inner left edge */
  display: block;  /* takes full control of its positioning */
}

.back-btn:hover {
  background-color: #f8f7ff;
  border-color: #033244;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.back-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Version Mobile */
@media (max-width: 575.98px) {

  .days-nav {
    display: flex; /* show the day tabs on mobile */
    overflow-x: auto;
  }
  .day-switch {
    display: none; /* hide old mobile arrows */
  }

  .container {
    padding: 1.5rem 0;
  }
  .content-head {
    background-color: var(--bg-kikof) !important;
    position: relative;
  }
  .match-container {
    margin-top: 60px;
    border: none;
    padding: 1rem 0;
  }

  .team-name {
    font-size: 0.8125rem;
  }

  .match-time {
    font-size: 1rem;
    min-width: 60px;
  }

  .team-logo {
    width: 28px;
    height: 28px;
  }
  .search-bar {
    margin-bottom: auto;
  }

  .days-nav {
    display: none;
  }

  .day-switch {
    display: flex;
  }

  .cal-card {
    width: 90vw;
  }
}


.hidden {
  display: none !important;
}

@media (max-width: 575px) {
  .back-btn {
    font-size: 0.85rem;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    margin-left: 0;
  }

  
  .days-nav {
    display: flex; /* show the day tabs on mobile */
    overflow-x: auto;
  }
  .day-switch {
    display: none; /* hide old mobile arrows */
  }
}


/* ===== "Autres compétitions" page ===== */
.other-comp-back { text-decoration: none !important; width: max-content; }
.other-comp-title { display: flex; align-items: center; gap: 12px; }
.other-comp-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; }
.other-comp-day {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: capitalize;
  color: var(--color-kikof);
  opacity: 0.8;
  margin: 1.5rem 0 0.75rem;
}
.other-comp-empty { text-align: center; color: #777; margin-top: 2rem; }

