.list-categories li{
   margin-bottom: 1em;
   font-size: 1.3em;
}

.list-categories a {
   color: black;
}




.search-box {
  margin-bottom: 20px;
  position: relative;
}

.list-performers {
  list-style: none;
  padding: 0;
}

a .is-performer{
  color: black;
}

.is-team{
   display: flex;
   width: 100%;
   align-items: center;
   box-sizing: border-box;   
}


.is-team .team-avatar{
   color: white;
   width: 48px;
   height: 48px;
   margin-right: 8px;
   flex-shrink: 0;
   border-radius: 8px;
   text-align:center;
   line-height: 48px;
   font-size: 1.4em;
}

.is-team .team-avatar-logo {
   background: none;
   padding: 0;
   display: flex;
   align-items: center;
   justify-content: center;
}

.is-team .team-avatar-logo img {
   width: 100%;
   height: 100%;
   object-fit: contain;
   border-radius: 8px;
}

.team-info {
   display: flex;
   flex-direction: column;
   justify-content: center;
   flex-grow: 1;
   text-decoration: none !important;
   color: black;
   max-width: calc(100% - 56px); /* Adjust this value as needed to account for the avatar and margin */
}


.team-info strong {
   font-weight: 700;
   margin-bottom: 5px;
   font-size: 1.3em;

      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      display: block;
      max-width: 100%; /* Adjust the width as needed */

}

.team-info span {
   cursor: pointer;
   font-size: 1.1em;
}

#list-teams-container h3{
   margin-bottom: 16px;
}

#list-teams-container h4{
   padding-bottom: 16px;
   margin-bottom: 16px;
} 

.is-performer {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  border-bottom: 1px solid #f1f1f1;
  border-radius: 8px;
  margin: 0;
  padding: 0;
}
li.is-performer a.link-wrapper {
  position: relative;
  width: 100%;
  display: block;
  height: 100%;
  padding: 24px 12px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
li.is-performer a{
  color: black;
}

.performer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  position:absolute;

}

.performer-info {
  margin-left: 72px;
}

.is-performer strong {
  font-size: 1.3em;
  margin-bottom: 5px;
  display: block;
}

.is-performer span {
  color: #222;
}


.list-performers li.is-performer:hover {
  cursor: pointer;
  webkit-box-shadow: 0 2px 4px rgba(0,0,0,.2);
  -moz-box-shadow: 0 2px 4px rgba(0,0,0,.2);
  box-shadow: 0 2px 4px rgb(0 0 0/20%);
  border: 1px solid #E5E5E5;
  transition: box-shadow 200ms ease-out 0s;
  z-index: 1
}

.list-performers li.is-performer strong:hover {
  text-decoration: underline
}

.list-performers {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
   gap: 24px 12px;
   margin-bottom: 40px;

}
#list-teams-container:not(.active-search) .list-performers{
   border-left: 4px solid #E5E5E5;
   padding-left: 16px;
}



.item-card .img-contain{
  position: relative;
}
.item-card .img-contain .mask{
  position: absolute;
  z-index: 4;
  background: rgb(0 0 0 / 70%);
  color: white;
  text-align:center;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: clamp(0.5rem, 2vw, 1.3rem);
  padding: 8px;
}


.search-box {
  margin: 16px 0;
  display: flex;
  margin-bottom: 32px;
}

#search-input {
  width: 100%;
  padding: 16px 16px;
  border-radius: 36px;
  background-color: #F1F1F1;
  outline: none;
  transition: all 0.3s ease;
  font-size: 1.4em;
  color: #444;
  line-height: 24px;
}
#search-input::placeholder{
  color: #888;
  opacity: 1;
}

#search-input:focus {
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
  background-color: #f8f8f8;
}

#clear-btn {
  position: absolute;
  right: 16px;
  top: 12px;
  height: 32px;
  line-height: 32px;
  background-color: #666;
  color: white;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  display: none;
}

#clear-btn:hover {
}

#clear-btn.hidden {
  display: none;
}


.spinner {
  display: inline-block;
  width: 80px;
  height: 80px;
  border: 8px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: #007bff;
  animation: spin 1s linear infinite;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#more-information .item{
  max-width: 700px;   
}

#more-information .item *{
  transform: scale(0.9);
  transform-origin: left top;   
}
#more-information .item h3{
  font-weight: 500;
}


#list-teams-container.active-search h3, #list-teams-container.active-search h4{
   display: none;
}
#list-teams-container.active-search ul{
   display: unset;
}

#list-teams-container.active-search ul li.is-team{
   margin-bottom: 24px;
}

#list-teams-container.active-search ul.list-performers a.link-wrapper{
   width: unset;
   display: table;
}

#list-teams-container.active-search section{
   margin-bottom: 0;
}

/* Button containers styling */
.level-buttons-container, .conference-buttons-container {
   margin-bottom: 16px; /* Space below the button containers */
}

/* Filter buttons styling */
.filter-level, .filter-conference {
   padding: 8px 12px;
   border-radius: 24px;
   border: 1px solid #E5E5E5;
   background-color: #F8F8F8;
   color: #666;
   font-size: 1em;
   cursor: pointer;
   margin-right: 8px; /* Space between buttons */
   margin-bottom: 8px; /* Space between rows when buttons wrap */
   box-shadow: none; /* Overwrite any default box-shadow */
   transition: background-color 0.3s, color 0.3s;
}

/* Hover state */
.filter-level:hover, .filter-conference:hover {
   background-color: #E5E5E5;
   color: #333;
}

/* Selected state */
.filter-level.is-selected, .filter-conference.is-selected {
   background-color: #333;
   color: #FFF;
   border-color: #333;
}

/* Ensuring the button list looks clean and wraps if needed */
.level-buttons-container, .conference-buttons-container {
   display: flex;
   flex-wrap: wrap;
   gap: 8px; /* Space between buttons */
}

#list-teams-container.active-search .list-performers {
   display: block !important; /* Temporarily change the layout to block to avoid gaps */
   margin-bottom: 0;
}

#list-teams-container.active-search .list-performers .is-team:not(.is-match) {
   display: none; /* Hide all teams initially */
}

#list-teams-container.active-search .list-performers .is-team.is-match {
   
}


#list-teams-container.active-search .list-performers .is-team:not(.is-match) {
   display: none; /* Hide all teams initially */
}

.league-banner[data-league='mlb']{
   background: #041e43;
   color: white;
   padding: 6px 16px;
   line-height: 30px;
   display: flex;
   width: 100%;
   position: absolute;
   bottom: 0;
   font-size: clamp(12px, 2vw, 15px);
   font-weight: bold;      
}
.league-banner[data-league='mlb'] img{
   height: 30px;
   float: left;
}