/* General styles */
:root {
  --app-vh: 100vh;
  --stat-tile-bg: rgba(255, 255, 255, 0.03);
  --stat-tile-border: rgba(255, 255, 255, 0.1);
  --stat-tile-hover: rgba(255, 255, 255, 0.05);
  --gradient-official: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
  --gradient-community: linear-gradient(135deg, rgba(78, 205, 196, 0.1) 0%, rgba(78, 205, 196, 0.05) 100%);
  --gradient-all: linear-gradient(135deg, rgba(155, 89, 182, 0.1) 0%, rgba(155, 89, 182, 0.05) 100%);
}

/* Update offcanvas/sidebar to use the custom property */
.offcanvas-lg,
.vh-100 {
  height: calc(var(--app-vh, 1vh) * 100) !important;
  min-height: 0 !important;
}

main {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  min-height: 100vh;
  -webkit-box-flex: 1;
  -ms-flex: 1 0 auto;
  flex: 1 0 auto;
}

/* ============================================
   MODERN STATS DASHBOARD STYLES
   ============================================ */

.stats-dashboard {
  position: relative;
}

.stats-header-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.stats-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--bs-body-color);
  letter-spacing: -0.5px;
}

.stat-tile {
  background: var(--stat-tile-bg);
  border: 1px solid var(--stat-tile-border);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  backdrop-filter: blur(10px);
}

.stat-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.stat-tile-official::before {
  background: var(--gradient-official);
}

.stat-tile-community::before {
  background: var(--gradient-community);
}

.stat-tile-all::before {
  background: var(--gradient-all);
}

.stat-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.stat-tile:hover::before {
  opacity: 1;
}

.stat-tile-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--stat-tile-border);
  position: relative;
  z-index: 1;
}

.stat-category-icon {
  font-size: 1.25rem;
  margin-right: 0.75rem;
  opacity: 0.9;
}

.stat-tile-official .stat-category-icon {
  color: #FFD700;
}

.stat-tile-community .stat-category-icon {
  color: #4ECDC4;
}

.stat-tile-all .stat-category-icon {
  color: #9B59B6;
}

.stat-category-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bs-body-color);
  letter-spacing: -0.3px;
}

.stat-tile-body {
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.stat-metric {
  position: relative;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bs-secondary-color);
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bs-body-color);
  line-height: 1.2;
}

.stat-record {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bs-body-color);
  font-family: 'Courier New', monospace;
}

/* ApexCharts customization for stats tiles */
.apexcharts-radialbar-track {
  stroke: var(--stat-tile-border) !important;
}

.apexcharts-datalabel-value {
  fill: var(--bs-body-color) !important;
  font-weight: 600 !important;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .stats-section-title {
    font-size: 1.5rem;
  }
  
  .stat-tile-body {
    padding: 1.25rem;
  }
  
  .stat-value {
    font-size: 1.75rem;
  }
  
  .stat-record {
    font-size: 1.1rem;
  }
}

@media (max-width: 575.98px) {
  .stats-header-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .stats-section-title {
    font-size: 1.25rem;
  }
  
  .stat-category-title {
    font-size: 0.9rem;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
}

/* ============================================
   EXISTING STYLES (PRESERVED)
   ============================================ */

.matchtablerow {
  background-color: #f38b2f;
}

.mainmargin {
  margin-top: 3.78rem !important;
}

.mainmargin_mobile {
  margin-top: 3.4rem !important;
}

.vertical-text {
  -webkit-writing-mode: vertical-rl;
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.centered {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.cardback-container {
  position: relative;
  text-align: center;
  color: white;
}

.cardback-text {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.cardback-img {
  opacity: 0.75;
}

/* --- VOD upload placeholder fix --- */
.vod-upload-placeholder {
  min-width: 350px;
  min-height: 197px;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16/9;
  background: #222;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  overflow: hidden;
}
.vod-upload-img {
  width: 100%;
  height: auto;
  min-width: 350px;
  min-height: 197px;
  aspect-ratio: 16/9;
  display: block;
}
.vod-upload-text {
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 90%;
  font-size: 1.1rem;
  z-index: 2;
}
@media (max-width: 600px) {
  .vod-upload-placeholder {
    min-width: 100vw;
    min-height: 30vw;
    aspect-ratio: 16/9;
  }
  .vod-upload-img {
    min-width: 100vw;
    min-height: 30vw;
    aspect-ratio: 16/9;
  }
}

.player {
  display: -webkit-box;

  display: -ms-flexbox;

  display: flex;
  margin: 1em 0 5px 0;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  font-family: "Bebas Neue", sans-serif;
}

.player_stream {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin: 1em 0 5px 0;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  font-family: "Bebas Neue", sans-serif;
}

.player__tile {
  width: 100%;
  height: 300px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin: 0 auto;
  max-width: 400px;
  border-radius: 8px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-shadow:
    inset 4px 4px 0 rgb(0, 0, 0),
    inset -4px 4px 0 rgb(0, 0, 0),
    inset -4px -4px 0 rgb(0, 0, 0),
    inset 4px -4px 0 rgb(0, 0, 0);
  box-shadow:
    inset 4px 4px 0,
    rgb(0, 0, 0),
    inset -4px 4px 0 rgb(0, 0, 0),
    inset -4px -4px 0 rgb(0, 0, 0),
    inset 4px -4px 0 rgb(0, 0, 0);
  margin-top: 5px;
  background-size: auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  background-color: #121212;
}

.player__tile_stream {
  width: 100%;
  height: 75vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin: 0 auto;
  max-width: 400px;
  border-radius: 8px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-shadow:
    inset 4px 4px 0 rgb(0, 0, 0),
    inset -4px 4px 0 rgb(0, 0, 0),
    inset -4px -4px 0 rgb(0, 0, 0),
    inset 4px -4px 0 rgb(0, 0, 0);
  box-shadow:
    inset 4px 4px 0,
    rgb(0, 0, 0),
    inset -4px 4px 0 rgb(0, 0, 0),
    inset -4px -4px 0 rgb(0, 0, 0),
    inset 4px -4px 0 rgb(0, 0, 0);
  margin-top: 5px;
  background-size: auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  background-color: #121212;
}

.player__digits {
  font-size: 5.5rem;
  font-weight: bold;
}

@media only screen and (orientation: landscape) and (max-width: 850px) {
  .player {
    max-width: 610px;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    margin: 5px auto 0 auto;
  }
  .player__tile {
    max-width: 300px;
    max-height: 250px;
    margin: 0 3px 5px 3px;
  }
  .player__digits {
    font-size: 5rem;
    background-color: rgba(17, 17, 17, 0.75);
    border-radius: 8px;
  }
  .player__name {
    font-size: 2rem;
    background-color: rgba(17, 17, 17, 0.75);
    border-radius: 8px;
    color: #ffffff;
  }
}

@media only screen and (orientation: portrait) and (min-width: 350px) {
  .player__tile {
    height: 200px;
  }
  .player__digits {
    font-size: 6rem;
    background-color: rgba(17, 17, 17, 0.75);
    border-radius: 8px;
  }
  .player__name {
    font-size: 2rem;
    background-color: rgba(17, 17, 17, 0.75);
    border-radius: 8px;
    color: #ffffff;
  }
}
@media only screen and (min-width: 850px) {
  .player {
    margin: 3em auto 10px auto;
    max-width: 810px;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
  }
  .player_stream {
    margin: 3em auto 10px auto;
    /*max-width: 810px;*/
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
  }
  .player__tile {
    height: 250px;
  }

  .player-1 {
    margin-top: 0;
  }

  .player-2 {
    margin-top: 0;
  }
  .player__digits {
    font-size: 7rem;
    background-color: rgba(17, 17, 17, 0.75);
    border-radius: 8px;
  }
  .player__name {
    font-size: 2rem;
    background-color: rgba(17, 17, 17, 0.75);
    border-radius: 8px;
    color: #ffffff;
  }
}

.stats__row_header_vertical {
  -webkit-transform: rotate(270deg);
  transform: rotate(270deg);
}

.stats__row_header {
  line-height: 150px;
}

.cursor-not-allowed {
  cursor: not-allowed;
}

.cursor-pointer {
  cursor: pointer;
}

.stats-table-first-col {
  position: sticky;
  left: 0px;
}

.rotated-header th {
  height: 100px;
  vertical-align: bottom;
  text-align: left;
  line-height: 1;
}

.rotated-header-container {
  width: 35px;
}

.rotated-header-content {
  width: 300px;
  -webkit-transform-origin: bottom left;
  transform-origin: bottom left;
  -webkit-transform: translateX(17px) rotate(-45deg);
  transform: translateX(17px) rotate(-45deg);
}

.rotated-header-cell {
  width: 35px;
}

.rotated-header-row {
  width: 70px;
}

#preloader1 {
  background: #ffffff url("/assets/logos/uml-logo-2.1s-47px.gif") no-repeat
    center center;
  bottom: 0;
  position: fixed;
  top: 3.78rem;
  width: 100%;
  z-index: 99999;
}

.group-card {
  background-position: center;
}

.group-card__header {
  background-color: rgba(17, 17, 17, 0.8);
  border-radius: 8px;
  color: #ffffff;
}

.group-card__body {
  //background-color: rgba(17, 17, 17, 0.8);
  //--bs-bg-opacity: 0.5;
  background-color: rgba(17, 17, 17, 0.8);
  border-radius: 8px;
  //color: #ffffff;
}

.cmp_bracket {
  background: #16a085;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-flow: row;
  flex-flow: row;
  -ms-flex-preferred-size: auto;
  flex-basis: auto;
  min-height: 100vh;
}

.cmp_round {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-flow: column;
  flex-flow: column;
  /*width: 15%;*/
  -ms-flex-pack: distribute;
  justify-content: space-around;
}

.cmp_bracket_pending {
  background-color: #000000 !important;
  color: white !important;
}

.cmp_bracket_winner {
  background-color: rgba(
    var(--x-success-rgb),
    var(--bs-bg-opacity, 0.7)
  ) !important;
  border-radius: 4px !important;
}

.cmp_bracket_loser {
  background-color: rgba(
    var(--x-danger-rgb),
    var(--bs-bg-opacity, 0.7)
  ) !important;
  border-radius: 4px !important;
}

competition_header,
.competition_header {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 700;
  text: white;
}
competition_header,
.competition_header {
  font-size: calc(1.4rem + 1.8vw);
}
@media (min-width: 1200px) {
  competition_header,
  .competition_header {
    font-size: 2.75rem;
  }
}

.pick-image-container {
  position: relative;
  display: inline-block;
  min-height: 200px;
  aspect-ratio: 3/4;
}
.pick-image-container img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover; /* or contain, depending on desired behavior */
}
.pick-image {
  display: block;
}

.pick-overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.7); /* Opaque black background */
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-align: center;
  font-size: 1.2rem;
}

.pick-overlay-text-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7); /* Opaque black background */
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-align: center;
  font-size: 0.8rem;
}

/*Pick Selection Text Overlay Media query for mobile devices */
@media (max-width: 767.98px) {
  .pick-overlay-text {
    font-size: 0.75rem; /* Adjust font size for mobile */
    padding: 8px 16px; /* Adjust padding for mobile */
  }
}
.container-lg {
  -webkit-box-flex: 1;
  -ms-flex: 1 0 auto;
  flex: 1 0 auto;
}
.fixed-bottom-row {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 100%;
  background: var(--bs-body-bg);
  -webkit-box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
  padding: 1rem 0;
  margin: 0;
}

.picks-banned {
  border-style: solid;
  border-width: 2px;
  border-color: #dc3545;
}
/**
[data-bs-theme="dark"] .tagify {
  --tagify-dd-color-primary: #e4bc64 !important;
  --tagify-dd-bg-color: hsl(44, 85%, 90%) !important;
  --placeholder-color: white;
  // tagify list to comply with WCAG 
  --bs-primary-bg-subtle: #beb5f7;
  // tagify bg color 
  --bs-primary-text-emphasis: #faebd7;
  // tagify text color 
  --tag-text-color: white;
  --tag-remove-btn-color: white;
}
**/
