:root {
      --bg: #0a0f1c;
      --card-bg: rgba(0, 0, 0, 0.89);
      --accent: #0b272eff;
      --text: #e5e7eb;
      --muted: #9ca3af;
      --radius: 8px;
      --glow: 0 0 12px var(--accent);
    }
    body{
      background-color:var(--bg);
       background-color: var(--bg);
  color: var(--text); /* fallback to white */
  font-family: 'Segoe UI', sans-serif;
  
  margin: 0;
  padding: 0;
    }
  .soccer-team-section{
     background-color:var(--bg);
       background-color: var(--bg);
  color: var(--text);}
  
  
    .carousel-wrapper {
  position: relative;
  background-color: var(--bg);
  color: var(--text);
  width: 100%;
  justify-content: center;
  min-height:  50vh;
  justify-self: center;
  padding: 9px;
  overflow: hidden;
}

.carousel-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.carousel-track {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  border: 2px solid rgba(0, 0, 0, 0);
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
   scrollbar-width: none;

  /* Hide scrollbar for WebKit (Chrome, Safari) */
  -ms-overflow-style: none; /* IE and Edge */
}

.carousel-track::-webkit-scrollbar {
  display: none;
}



.player-card {
  flex: 0 0 auto;
  position: relative; /* Required for ::before and ::after */
  border: 1px solid rgb(8, 0, 112);
  width: 260px;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 3px;
  
  transition: box-shadow 0.3s ease;
  z-index:5;
  box-shadow: rgba(94, 94, 94, 0.2) 0px 2px 8px 0px;
}

.player-image {
  position: relative;

  width: 100%;


 
  z-index: -50; /* 👈 Sends image to the back */

}

/* Glass effect overlay */
.player-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75); /* Semi-transparent dark overlay */
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  z-index: 1; /* Above image */
}

/* Dark gradient overlay */
.player-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 60%);
  z-index: 2; /* Above glass */
}

/* Actual content */
.player-card .content {
  position: relative;
  z-index: 3; /* Top layer */
}

.player-number {
  font-size: 1.5rem;
  font-weight: bold;
  background: var(--accent);
  color: #ffffffff;
  justify-self: center;
  border-radius: 50%;
  border: 2px solid rgb(0, 0, 0);
   width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;z-index:5655;
  margin-bottom: 0.2rem;
}
 .player-table-number{
 font-size: 1rem;
  font-weight: bold;
  margin-right: 4px;
}
.player-name {
  font-size: 1rem;
  margin: 0;
  color: aliceblue;
  text-align: center;
  margin-bottom: 6px;
}

.player-position {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
  margin-top: 4px;
  text-align: center;
}



.player-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;        /* Ensures the image fills the card */
  object-position: center;  /* Keeps the image focus centered */
  z-index: 0;               /* Behind overlays and content */
  border-radius: var(--radius); /* Optional: match card border radius */
}

.player-stats-overlaysup {
  position: absolute;
  bottom: 0;
  justify-content: center;
  width: 100%;
  flex-direction: column;
  padding: 5px;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
 
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  z-index: 1000;
}





.forwrapper{
  justify-content: center;
  display: flex;
  flex-direction: column;
  justify-self: center;
}
.player-stats-overlay div {
  display: flex;
  justify-content: space-between;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;

  color: #000;
  border: none;
  padding: 0.5rem 0.75rem;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1;
}

.carousel-arrow.left {
  left: 1rem;
}

.carousel-arrow.right {
  right: 1rem;
}

@media (max-width: 600px) {
  .carousel-arrow {
    display: block;
  }
  .carousel-arrow.left {
  left: 0.5rem;
}

.carousel-arrow.right {
  right: 0.5rem;
}
.carousel-wrapper {
  position: relative;
  background-color: var(--bg);
  color: var(--text);
  max-width: 100%;
  justify-content: center;
  justify-self: center;
  padding: 3px;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  border: 2px solid rgba(128, 128, 128, 0);
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color:  transparent;
  margin: 1px;
    scrollbar-width: none;
 

  /* Hide scrollbar for WebKit (Chrome, Safari) */
  -ms-overflow-style: none; /* IE and Edge */
}
 .player-card {
  flex: 0 0 auto;
  position: relative; /* Required for ::before and ::after */
  border: 3px solid rgba(25, 22, 75, 0.76);
  width: 200px;
  overflow: hidden;
  scroll-snap-align: start;
  background:  rgba(0, 0, 0, 0.75);
  border-radius: var(--radius);
  padding: 3px;
  box-shadow: 0 0 0 transparent;
  transition: box-shadow 0.3s ease;
  z-index:5;
  box-shadow: rgba(94, 94, 94, 0.2) 0px 2px 8px 0px;
}
.player-stats-overlaysup {
  position: absolute;
  bottom: 0;
  justify-content: center;
  width: auto;
  flex-direction: column;
  padding: 5px;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
 
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  z-index: 1000;
}
.player-number {
  font-size: 9px;
   width: 20px;
  height: 20px;}
.player-stats-table {
  
  min-width: 200px;
  font-size: 0.65rem;
  justify-self: center;
  align-self:center;
  font-weight: 600;
  margin-top: 9px;
  color: #fff;
  background: rgba(0, 0, 0, 0);
  border-collapse: collapse;
}
.player-stats-table td {
  text-align: center;
  width: fit-content;
  font-size: 9px;
    vertical-align: middle;
    padding: 10px;
    border: 1px solid #cccccc1a;
  color: aquamarine;
  padding: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);}

.carousel-track::-webkit-scrollbar {
  display: none;
}
}
.player-number {
  font-size: 1.1rem;
  font-weight: bold;
  background: var(--accent);
  color: #ffffffff;
  justify-self: center;
  border-radius: 50%;
  border: 3px solid white;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;z-index:5655;
  margin-bottom: 0.2rem;
}


.player-stats-table {
  width: 100%;
  font-size: 0.85rem;
  justify-self: center;
  align-self:center;
  font-weight: 600;
  margin-top: 9px;
  color: #fff;
  background: rgba(0, 0, 0, 0);
  border-collapse: collapse;
}

.player-stats-table td {
  text-align: center;
    vertical-align: middle;
    padding: 10px;
    border: 1px solid #cccccc1a;
  color: aquamarine;
  padding: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.vertical-line {
  width: 200px;
  margin-top:8px;
  color: #f3f3f362;
  justify-self: center;
  height: 2px; /* adjust as needed */
  background-color: #f3f3f3a1;
}


.unique-button {
  background: transparent;
  color: #fff;
  padding: 4px 1rem;
  border-left:1px solid white;
  border-right:1px solid white;
  border-top:2px solid white;
  border-bottom:2px solid white;
  font-size: 1.1rem;
 
  justify-self: center;
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(13, 63, 65, 0.6);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
}

.unique-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(13, 63, 65, 0.9);
}
.center-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;     /* horizontal centering */
  justify-content: center; /* vertical centering */
  text-align: center;
  gap: 1rem;
  padding: 6px;
}
.hidden {
  display: none;
}



/* Desktop screens (768px and above) */
@media screen and (min-width: 768px) {
  .player-overlay .hidden {
    width: 600px; /* Custom width for desktop */
  }
}
.overlay-content{border-top:2px solid blue;border-bottom:2px solid blue;
  background:rgba(0, 0, 0, 0.75);height:200px;width: 100%;}

@media screen {
  .overlay-content {
  
    min-width: 260px;
  }
}


.profileclosebtn{
  cursor: pointer;  
  position: absolute;
  border-radius:50%;
  background:transparent; 
  border:none;
  right: 3px;
 
  margin-top:1px;
}
.profilesvg {
  width: 16px;              /* Size */
  height: 16px;
  cursor: pointer;  
  border-radius:50%;
  background:transparent;        /* Pointer cursor on hover */
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.8;             /* Slightly transparent by default */
}

.profilesvg:hover {
  transform: scale(1.1);    /* Zoom on hover */
  opacity: 1;
}
 .range {
  position: relative;
  background-color: #E5E7EB;
  width: 100%;
  height: 3px;
  border-radius: 0.25rem;
}

 .range .fill {
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgb(0, 19, 185);
  width: 5%;
  height: 100%;
  border-radius: 0.25rem;
}
/* Wrapper for centering and scroll */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  padding: 0 10px;
  display: block;
}

/* Main soccer table styling */
.soccer-team-table {
  width: 100%;
  max-width: 1000px;
  margin: 20px auto; /* center table horizontally */
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  box-shadow: rgba(71, 71, 76, 0.1) 0px 4px 16px,
              rgba(17, 17, 26, 0.1) 0px 8px 24px,
              rgba(17, 17, 26, 0.1) 0px 16px 56px;
}

/* Table headers & cells */
.soccer-team-table th,
.soccer-team-table td {
  border: 1px solid #38383893;
  padding: 6px;
   color: #fff;
  text-align: center;
  font-size: 14px;
}

.soccer-team-table th {
  background-color: #000;
  color: #fff;
  border: 2px solid #8585859c;
  border-radius: 7px;
  padding: 15px;
}

/* Player Info Row */
.soccer-player-info {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 20px;
  gap: 15px;
}

.soccer-player-info img,
.profilecontainer {
  width: 80px;
  height: 80px;
  padding: 2px;
  border: 2px solid rgba(80, 80, 80, 0.521);
  object-fit: cover;
  border-radius: 50%;
}

/* Section container */
.soccer-team-section {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

/* Responsive styles for mobile */
@media (max-width: 600px) {
  .soccer-team-section {
    padding: 5px;
    overflow-x: auto;
  }

  .table-wrapper {
    overflow-x: auto;
    padding: 0;
  }

  .soccer-team-table {
    width: 100%;
    min-width: 360px; /* was 660px – lowered to fit more screens */
    font-size: 8px;
  }

  .soccer-team-table th,
  .soccer-team-table td {
    font-size: 8px;
    min-width: fit-content;
    padding: 2px 3px;
  }

  .soccer-player-info {
    padding-left: 10px;
    gap: 8px;
  }

  .soccer-player-info img,
  .profilecontainer {
    width: 25px;
    height: 25px;
  }
}

  /* From Uiverse.io by andrei0x309 */ 
.input {
  display: flex;
  flex-direction: row;
  width: fit-content;
  background-color: #251a2c6b;
  justify-content: center;
  border-radius: 5px;
  gap: 7.5px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  padding-left: 10px;
  padding-right: 10px;
  transition: all 0.2s ease;
  border: 2px solid #21262cad; 
  box-shadow: rgba(170, 170, 170, 0.1) 0px 4px 12px;
  border-radius: 9px;
  font-size: 0.9rem;
}

.value {
  background-color: transparent;
  box-shadow: rgba(37, 37, 37, 0.1) 9px 4px 3px;
  border: none;
  padding: 10px;
  color: aliceblue;
  justify-self: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  display: flex;
  position: relative;
  margin: 3px;
  gap: 5px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-family: 'Segoe UI', sans-serif;
   width: 110px;       /* Set a fixed width */
  height: 35px;       /* Set a fixed height */
  box-sizing: border-box;
}
@media (max-width: 600px) {
  .value {
  background-color: transparent;
  box-shadow: rgba(37, 37, 37, 0.1) 9px 4px 3px;
  border: none;
  padding: 10px;
  color: aliceblue;
  justify-self: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  display: flex;
  position: relative;
  margin: 3px;
  align-items: center;
  text-align: center;
  gap: 5px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-family: 'Segoe UI', sans-serif;
   width: 80px;       /* Set a fixed width */
  height: 30px;       /* Set a fixed height */
  box-sizing: border-box;
}
}

.value:not(:active):hover,
.active,
.value:focus {
  background-color: #21262cad;
}

.value:focus,
.value:active {
  background-color: #1a1f24;
  outline: none;
}

.value::before {
  content: "";
  position: absolute;
  top: 35px;
  right: 0px;
   text-align: center;
  width: 100%;
  height: 1px;
  background-color: #0a01303f;
  border-radius: 5px;
  opacity: 0;
}

.value:focus::before,
.value:active::before {
  opacity: 1;
}

.value svg {
  width: 15px;
  margin-top: 4px;
}

.value svg.normal {
  width: 15px;
  margin-top: 1px;
}
.td-wrap-left {
  text-align: left;
  vertical-align: top;
  white-space: normal;
}
.carousel-arrow {
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 1rem 1rem;
  cursor: pointer;
  align-items:center;
  transform: translateY(-50%);
  font-size: 1.5rem;

  border-radius: 50%;
  user-select: none;
  position: absolute;
  top: 30%;
  transform: translateY(-50%);
  z-index: 10;
}

.carousel-arrow.left {
  left: 0.5rem;
}

.carousel-arrow.right {
  right: 0.5rem;
}

 #searchPanel {
      display: none;
      margin-top: 15px;
      padding: 1px;
      border: 1px solid white;
      justify-self: center;width:auto;
      border-radius: 8px;
      background-color: transparent;
      min-width: fit-content;
    }

    #searchInput {
      padding: 8px;
      width: 70%;
      border: 1px solid #ccc;
      border-radius: 4px;
    }

    #submitSearch {
      padding: 8px 12px;
      margin-left: 1px;
      background-color: #0078D4;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
    }

    #submitSearch:hover {
      background-color: #005A9E;}