html { background-color:transparent; } 
body {
    min-height: 100%;
    max-width: 100%;
    
    margin: auto;
    opacity: 1;
    /*background: linear-gradient(to right, aliceblue, #ffffff);*/
}
.youtube-video {
  aspect-ratio: 16 / 9;
  width: 100%;
}
/* Logo section */
.header-logo {
    /*flex:1;
    /*margin-bottom: 20px; /* Add some space below the logo */
}

.progress-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}
.progress-bar {
    height: 30px;
    background-color: #76c7c0;
    width: <?php echo $pourcentage; ?>%;
    line-height: 30px;
    color: #fff;
    text-align: center;
    transition: width 0.5s;
}
.progress-text {
    text-align: center;
    font-size: 18px;
    margin-top: 10px;
}
.chart-container {
    position: relative;
    margin: auto;
    height: 300px;
    width: 300px;
    max-width: 100%;
    max-height: 100%;
}

.chart-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.chart-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: #333;
    pointer-events: none; /* Empêche le texte d'interférer avec les événements de la souris sur le canvas */
    text-align: center;
}

/* Option plus douce (pulse) */
.pulse {
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%     { opacity: .35; }
}

/* On ajoute le zoom séparément */
.zoom {
  animation: zoom 1s ease-in-out infinite;
  transform-origin: center;
  will-change: transform;
}
@keyframes zoom { 0%,100%{transform:scale(1)} 50%{transform:scale(1.5)} }
.header-logo img {
    width: 200px;
    height: auto;
    margin-right: 30px;
}

.navbar-brand {
    font-size: 1.8em;
    font-weight: bold;
}

.card {
    border-radius: 20px;
}

.card h5 {
    font-weight: bold;
}

.btn-light {
    font-weight: bold;
    padding: 10px 20px;
}

.shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.icon {
    width: 40px;
    height: 40px;
}

.icon-transparent {
    color: rgba(255, 255, 255, 0.7); /* Blanc avec 70% d'opacité */
}

.heat-progress {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.heat-square {
    width: 20px;
    height: 20px;
    margin: 5px;
    border: 1px solid #ccc;
}

.heat-square.consumed {
    background-color: #28a745; /* Vert pour les heats consommés */
    border-color: #28a745;
}


.scoreboard {
 display: flex;
  /*flex-direction: column; /* ou row, selon votre besoin */
  align-items: center; /* Centre les éléments horizontalement */
  /*justify-content: center; /* Centre les éléments verticalement */
  /*width: 50%; /* Utilisez 100% pour occuper toute la largeur du conteneur parent */
  /*max-width: 1200px; /* Vous pouvez définir une largeur maximale pour éviter que le conteneur ne devienne trop large sur les grands écrans */
  /*margin: 0; /* Centre le conteneur */
    width: 100%;
    padding: 0;
    margin: 0;

}

.competitor {
  display: grid;
    grid-template-columns: 1fr 5fr 2fr 5fr; /* Crée 4 colonnes avec des tailles égales */
    gap: 10px; /* Espacement entre les éléments de la grille */
    padding: 0px;
    margin: 0;
    height: auto; 
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1px;
    
}
.competitor-row {
  display: block;
   
    
}
.globalcompetitor {
  margin-bottom: 1px;
background-color: white;
}


.heatcompetitor {
    display: grid;
    grid-template-columns: 2fr 4fr 1fr  2fr; /* Crée 4 colonnes avec des tailles égales */
    gap: 10px; /* Espacement entre les éléments de la grille */
    padding: 0px;
    margin: 0px; 
    margin-bottom: 1px;
    width: 100%;
    padding-bottom: 10px;
    padding-top: 10px;
    background: linear-gradient(135deg, #202537, #3ea086 40% 40%, #020617 100%);
}

.logobgcolor {
    
    /* background-color:aquamarine; */
   
}
table {
    width: 100%; /* Ajuste la largeur de la table */
    border-collapse: collapse; /* Assure que les bordures de la table sont bien alignées */
}

th, td {
    white-space: nowrap; /* Empêche le texte de revenir à la ligne */
    padding: 8px; /* Ajoute un peu d'espace autour du texte dans les cellules */
    border: 1px solid #ddd; /* Ajoute des bordures aux cellules */
    text-align: left; /* Aligne le texte à gauche, ou à ajuster selon votre préférence */
}

th {
    font-weight: bold; /* Met les en-têtes en gras */
}

.comp_position {
    width: 20px;
    height: 20px;
    font-size: 13px;
    text-align: center;
    border: 2px solid;
    display: inline-block;
    margin-left: 3px;
    margin-right: 3px;
    vertical-align: top;
    /* padding: 2px; */
    color: black;
    border-radius: 50%;
    background-color: slategray;
    color: white;
}

.blinking {
    animation: blink 1s infinite;
    color:orange;
   
  }

  @keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
  }

.waiting-for-score {
    display: inline-block;
    font-size: 16px;  /* Taille du sablier */
    color: black;
    animation: flip 3s infinite;  /* Animation en boucle */
}

/* Animation pour faire tourner le sablier à 180 degrés */
@keyframes flip {
    0% {
        transform: rotate(0deg);  /* Sablier à l'endroit */
    }
    50% {
        transform: rotate(180deg);  /* Sablier à l'envers */
    }
    100% {
        transform: rotate(0deg);  /* Retour à l'endroit */
    }
}

.stint-ultra-condensed-regular {
  font-family: "Stint Ultra Condensed", serif;
  font-weight: 400;
  font-style: normal;
}


 .externalDiv {
        background-color: gray;
        width: 100%; /* Utilisez 100% pour occuper toute la largeur du conteneur parent */
         margin: 0;
     padding:0;
     box-shadow: 5px 5px 7px -2px rgba(0, 0, 0, 0.4);
}
 .headers {
            font-size: 16px;
            text-align: right;
     color: white;
     display: flex;
    flex-direction: column;
    
        }
 .main_div {
            text-align:center;
            position: relative;
        }
 .div_bottom {
            position: absolute;
            bottom: 0px;
        }
 .div_scores {
            width:auto;
    
        }

.name {
  font-size: 20px;
    /*font-weight: bold;*/
    white-space: nowrap;
  overflow-x: hidden;
font-family: sans-serif, -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue";
  /*font-family: "Stint Ultra Condensed", serif;*/
  font-weight: 400;
  font-style: normal;
    text-transform: uppercase;

    
}
 .club {
  font-size: 12px;
     float: left;
    display: inline-block;
     white-space: nowrap;
  
}

#remaining-time {
    font-size: 80px;
    color:white;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
    font-weight: 800;
    font-size: clamp(72px, 10vw, 140px);
    line-height: 1;
    text-shadow: 0 0 22px #000;
    user-select: none;
    
}

.chrono {
  font-size: 32px;
  font-weight: bold;
    /*color:white;
    border: 4px solid;
    border-color: aqua;*/
    text-align: center;  
}

.chronoback {
  font-size: 3vw;
  font-weight: bold;
    //background-color: darkblue;
    //color: aquamarine;
    
    text-align: left;  
}
.score {
  font-size: 20px;
    font-weight: bold; 
    text-align: right;
}
.title {
  font-size: 24px;
    font-weight: bold; 
    color: white;
}

.scores {
  font-size: 20px;
}


.scores-need {
      font-size: 16px;
    text-align: left;
    border: 1px solid;
    display: inline-block;
    /* margin-left: 20px; */
    vertical-align: top;
    /* padding: 2px; */
    float: right;
    /* border-radius: 5px;
  /* padding: 10px; Optionnel : Ajoute un espace à l'intérieur du div pour éloigner le contenu de la bordure */
    
}

.heats-need {
      font-size: 16px;
    text-align: right;
    
    display: inline-block;
    /* margin-left: 20px; */
    vertical-align: top;
    /* padding: 2px; */
    float: right;
    /* border-radius: 5px;
  /* padding: 10px; Optionnel : Ajoute un espace à l'intérieur du div pour éloigner le contenu de la bordure */
    
}

.details {
  margin-top: 5px;
}

.image-container {
    /* Assurez-vous que le conteneur ne dépasse pas les limites que vous souhaitez pour votre image */
    max-width: 20vw; /* Largeur maximale du conteneur */
    min-width: 15vw; /* Largeur minimale du conteneur */
    margin: auto; /* Centrer l'image si le conteneur est plus large que l'image */
}

 .competitor-img {
    width: 100%; /* Permet à l'image de s'adapter à la largeur du conteneur */
    height: auto; /* Garde le ratio de l'image */
    max-width: 60px; /* Largeur maximale de l'image */
    min-width: 2vw; /* Largeur minimale de l'image */
    border: 3px solid;
    border-radius: 50%;
      
}
.color-1 { border-color: #F20606; }
.color-2 { border-color: #FFEC33; }
.color-3 { border-color: #063FF2; }
.color-4 { border-color:gainsboro; }
.color-5 { border-color:black; }

.responsive-flag {
    width: 30px; /* Permet à l'image de s'adapter à la largeur du conteneur */
    height: auto; /* Garde le ratio de l'image */
    min-width: 2vw; /* Largeur minimale de l'image */
    margin-right: 5px;
}
.responsive-logo {
    width: auto; /* Permet à l'image de s'adapter à la largeur du conteneur */
    height: auto; /* Garde le ratio de l'image */
    /*max-width: 10vw; /* Largeur maximale de l'image */
    min-width: 3vw; /* Largeur minimale de l'image */
    max-height: 50px;
    padding-left: 5px;
        /*margin-left: 18px;*/
}
.waves-scores {
  font-family: Arial, sans-serif;
  text-align: center;
  margin-bottom: 10px; /* Adjust as needed */
}

.waves-scores .header .col,
.waves-scores .scores .col {
  padding: 5px; /* Adjust padding */
  display: inline-block;
  width: 33%; /* Adjust the width based on the number of columns */
  box-sizing: border-box;
}

.waves-scores .scores .col {
  color: white; /* Score text color */
  background-color: #f0ad4e; /* Score background color */
  border-radius: 5px; /* Adjust as needed for rounded corners */
  font-weight: bold; /* Bold font for scores */
}

.scores-video {
     width:100%;
    padding: 0;  
}
.top-score {
  color: red; /* or the specific shade of red you want */
}

.best-score {
  color: red; /* Adjust the color as needed */
}
.wave-score-pair {
  /* Your existing styles */
    font-size: 2vw;
    overflow: hidden;
    
}

.wave-scores-container {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  justify-content: space-around;
    flex-wrap: wrap;
     justify-content: flex-start;
    /*background-color: beige;
  /* Add more styling as needed */
}

.hidden-desktop {
          display: none;
        }

.best-score {
  color: red; /* Or any color you want for the best scores */
}

.normal-score {
  color: black; /* Optional: Style for normal scores, if needed */
}

.wave-score-pair {
  min-width: 25px; /* Adjust the minimum width as needed to prevent collapsing */
}

.wave-scores-container {
  /*overflow-x: auto;  Allows scrolling horizontally if there are many scores */
}



@media (max-width: 768px) { 
        .hidden-mobile {
          display: none;
        }
    .hidden-desktop {
          display: flex;
        }

        .scoreboard {
 
          width: 100%; /* Utilisez 100% pour occuper toute la largeur du conteneur parent */
          /*max-width: 768; /* Vous pouvez définir une largeur maximale pour éviter que le conteneur ne devienne trop */
            
}
    .competitor {
        grid-template-columns: 1fr 5fr 2fr;
       
        
        
    }
     .externalDiv {
 
          width: 100%; /* Utilisez 100% pour occuper toute la largeur du conteneur parent */
          /*max-width: 768px; /* Vous pouvez définir une largeur maximale pour éviter que le conteneur ne devienne trop */
         margin: auto;
            
}
    .responsive-flag {
    width: 75%; /* Permet à l'image de s'adapter à la largeur du conteneur */
    height: auto; /* Garde le ratio de l'image */
    max-width: 10vw; /* Largeur maximale de l'image */
    min-width: 2vw; /* Largeur minimale de l'image */
     }
     .responsive-logo {
    width: 100%; /* Permet à l'image de s'adapter à la largeur du conteneur */
    height: auto; /* Garde le ratio de l'image */
    
         padding: 0;
         margin:0;
        }
    
        .name {
          /*font-size: 3vw;*/
          /*font-weight: bold;*/
          overflow-x: hidden;
        }
        
        .score {
          /*font-size: 16px;*/
          font-weight: bold;
        text-align: right;
          
        }
        .club {
          font-size: 3vw;
          /*font-weight: bold;*/
            float: left;
            display: inline-block;
            white-space: nowrap;
          
        }
        .scores {
            font-size: 5vw;
            text-align: center;
    
        }
    .scores-need {
        font-size: 3vw;
        text-align: right;
        }
    .scores-video {
     width:100%;
    
        }
      .headers {
            font-size: 12px;
        text-align: right;
          display: flex;
    flex-direction: column;
    
        }
    .title {
  font-size: 14px;
     
}
     .div_scores {
            width:50%;
    
        }
    .competitor-img {
    width: 50px;
        height: auto;
        max-width: 50px;
        min-width: 2vw;
        }
    .chrono {
  font-size: 24px;
  
}
   
}

.public-live-root {
    padding-top: 10px;
    justify-content: center;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: auto;
}

.public-heats-browser {
    width: 100%;
}

.live-legend {
    margin: 8px 0 18px;
    color: #475569;
    font-weight: 600;
}

/* Public live refresh -------------------------------------------------- */
:root {
    --live-ink: #15222d;
    --live-muted: #667784;
    --live-line: #d9e5e9;
    --live-paper: #f6faf9;
    --live-panel: #ffffff;
    --live-marine: #0c6f78;
    --live-marine-deep: #09404a;
    --live-coral: #e34f3f;
    --live-green: #2f9b72;
    --live-shadow: 0 16px 36px rgba(9, 64, 74, .13);
}

html {
    background: var(--live-paper);
}

body {
    min-height: 100vh;
    color: var(--live-ink);
    background:
        linear-gradient(180deg, rgba(12,111,120,.12), rgba(246,250,249,0) 260px),
        var(--live-paper);
    font-family: Avenir Next, Helvetica Neue, Arial, sans-serif;
}

.public-live-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 12px 0 10px;
    backdrop-filter: blur(14px);
}

.public-live-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--live-marine-deep);
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.public-live-brand img {
    width: auto;
    height: 42px;
    object-fit: contain;
}

.public-live-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid rgba(47,155,114,.24);
    border-radius: 999px;
    color: var(--live-green);
    background: rgba(47,155,114,.08);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.public-live-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--live-green);
    box-shadow: 0 0 0 5px rgba(47,155,114,.13);
}

.public-live-status-muted {
    color: var(--live-marine-deep);
    border-color: rgba(9,64,74,.16);
    background: rgba(255,255,255,.62);
}

.public-live-status-muted::before {
    background: var(--live-marine);
    box-shadow: 0 0 0 5px rgba(12,111,120,.12);
}

.public-live-root {
    width: min(1180px, calc(100% - 28px));
    max-width: 1180px;
    gap: 18px;
    padding: 0 0 32px;
}

.contest-heading {
    display: grid;
    gap: 2px;
    margin: 6px 0 12px;
}

#contest-title {
    max-width: 100%;
    color: var(--live-marine-deep);
    font-size: 26px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

#contest-subtitle {
    max-width: 100%;
    color: var(--live-muted);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.externalDiv {
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(9,64,74,.13);
    border-radius: 8px;
    background: var(--live-panel);
    box-shadow: var(--live-shadow);
}

.heatcompetitor {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 170px;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,.2);
    background: linear-gradient(90deg, var(--live-marine-deep), var(--live-marine) 58%, #18313c);
}

.live-title-capsule {
    justify-self: center;
    width: min(100%, 560px);
    padding: 0 12px;
    text-align: center;
}

.responsive-logo {
    width: auto;
    min-width: 0;
    height: auto;
    padding: 0;
}

.title,
.headers,
.chrono {
    color: #fff;
}

.title {
    font-size: 22px;
    line-height: 1.05;
    text-transform: uppercase;
}

.live-submeta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 7px;
}

.headers {
    align-items: flex-end;
    gap: 3px;
    color: rgba(255,255,255,.82);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.chronoback {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    text-align: right;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 10px;
    border: 0;
    border-radius: 0;
    color: rgba(255,255,255,.74);
    background: transparent;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.live-heat-meta {
    float: none;
    color: rgba(255,255,255,.76);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.chrono {
    min-width: 128px;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(1,17,24,.72), rgba(10,56,65,.48));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 8px 24px rgba(0,0,0,.22);
    backdrop-filter: blur(14px);
    font-size: 34px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-align: center;
}

.globalcompetitor {
    margin: 0;
    border-bottom: 1px solid var(--live-line);
    background: #fff;
}

.competitor {
    display: grid;
    align-items: start;
    grid-template-columns: 72px minmax(190px, 1.15fr) 120px minmax(260px, 2fr);
    gap: 12px;
    min-height: 74px;
    padding: 9px 12px;
}

.competitor-img {
    width: 56px;
    height: 56px;
    min-width: 56px;
    max-width: 56px;
    border-width: 4px;
    object-fit: cover;
    background: #eef4f3;
}

.color-1 { border-color: #f20606; }
.color-2 { border-color: #ffec33; }
.color-3 { border-color: #063ff2; }
.color-4 { border-color: #ffffff; box-shadow: 0 0 0 1px rgba(0,0,0,.28); }
.color-5 { border-color: #111111; }

.name {
    color: var(--live-ink);
    font-size: 19px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: normal;
    overflow: visible;
}

.club {
    display: inline-flex;
    float: none;
    color: var(--live-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: normal;
}

.responsive-flag,
.competitor-flag {
    width: 24px;
    height: 16px;
    margin: 4px 6px 0 0;
    border-radius: 2px;
    object-fit: cover;
}

.score {
    color: var(--live-marine-deep);
    font-size: 26px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.competitor > div:nth-child(3) {
    justify-self: end;
    align-self: start;
    min-width: 96px;
    text-align: right;
}

.competitor .headers {
    color: var(--live-muted) !important;
    font-size: 11px;
    letter-spacing: 0;
}

.scores-need {
    display: block;
    float: none;
    width: fit-content;
    max-width: 120px;
    margin-left: auto;
    margin-top: 3px;
    padding: 4px 7px;
    border: 1px solid rgba(9,64,74,.18);
    border-radius: 8px;
    color: var(--live-marine-deep);
    background: rgba(255,255,255,.72);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
    text-align: right;
}

.wave-scores-container {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 5px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: thin;
}

.wave-score-pair {
    min-width: 38px;
    overflow: visible;
    font-size: 18px;
    align-self: flex-start;
}

.scores {
    min-width: 36px;
    padding: 4px 5px;
    border-radius: 7px;
    background: rgba(9,64,74,.06);
    font-size: 17px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.live-legend {
    margin: 9px 0 18px;
    color: var(--live-muted);
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

.public-heats-browser {
    width: 100%;
    box-sizing: border-box;
    padding: 18px;
    border: 1px solid rgba(9,64,74,.13);
    border-radius: 8px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 10px 24px rgba(9,64,74,.08);
}

.public-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--live-marine-deep);
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
}

.public-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    margin-left: 14px;
    background: linear-gradient(90deg, rgba(12,111,120,.28), transparent);
}

#files-nav,
#rounds-nav {
    justify-content: flex-start;
    gap: 8px;
    padding: 0 0 12px;
    border-bottom: 0;
    white-space: normal;
}

#files-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

#files-nav.category-focus-mode {
    padding-bottom: 8px;
}

#files-nav.hidden {
    display: none;
}

.public-back-button {
    min-height: 32px;
    padding: 7px 10px;
    border: 1px solid rgba(9,64,74,.14);
    border-radius: 999px;
    background: rgba(255,255,255,.84);
    color: var(--live-marine-deep);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.public-back-button:hover {
    border-color: var(--live-marine);
    background: var(--live-marine);
    color: #fff;
}

.public-back-button {
    flex: 0 0 auto;
    border-color: rgba(227,79,63,.22);
    color: var(--live-coral);
}

.public-fanpick-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.public-fanpick-btn:hover,
.public-fanpick-btn.is-active:hover {
    border-color: rgba(255,255,255,.55);
    background: rgba(255,255,255,.2);
    transform: translateY(-1px);
}

.public-fanpick-btn:disabled {
    opacity: .46;
    cursor: not-allowed;
}

.fanpick-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #ffcc4d;
    box-shadow: 0 0 12px rgba(255,204,77,.9);
}

.fanpick-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(3,16,22,.62);
    backdrop-filter: blur(7px);
}

.fanpick-modal.is-open {
    display: flex;
}

.fanpick-dialog {
    width: min(760px, 100%);
    max-height: min(780px, calc(100vh - 32px));
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(246,252,251,.98), rgba(225,240,239,.96));
    box-shadow: 0 24px 70px rgba(0,0,0,.26);
}

.fanpick-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px 12px;
    background: linear-gradient(120deg, var(--live-marine-deep), var(--live-marine));
    color: #fff;
}

.fanpick-eyebrow {
    color: rgba(255,255,255,.68);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fanpick-title {
    margin-top: 3px;
    font-size: 26px;
    font-weight: 950;
    line-height: 1;
}

.fanpick-meta {
    margin-top: 6px;
    color: rgba(255,255,255,.72);
    font-size: 13px;
    font-weight: 800;
}

.fanpick-close {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 10px;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.fanpick-status {
    padding: 12px 18px 0;
    color: var(--live-marine-deep);
    font-size: 14px;
    font-weight: 850;
}

.fanpick-riders {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-height: min(560px, calc(100vh - 170px));
    overflow: auto;
    padding: 14px 18px 18px;
}

.fanpick-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 42px 78px;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(9,64,74,.12);
    border-radius: 10px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 8px 22px rgba(9,64,74,.08);
}

.fanpick-card.is-voting {
    grid-template-columns: 56px minmax(0, 1fr) 78px;
}

.fanpick-card.is-selected {
    border-color: rgba(227,79,63,.45);
    background: rgba(255,246,244,.96);
}

.fanpick-photo {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border: 3px solid var(--live-marine);
    border-radius: 999px;
    background: #fff;
}

.fanpick-info {
    min-width: 0;
}

.fanpick-info strong {
    display: block;
    overflow: hidden;
    color: #0e1a2a;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fanpick-info span {
    display: block;
    margin-top: 2px;
    color: var(--live-muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.fanpick-bar {
    height: 5px;
    margin-top: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(9,64,74,.1);
}

.fanpick-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--live-coral), #ffcc4d);
}

.fanpick-vote-count {
    color: var(--live-marine-deep);
    font-size: 20px;
    font-weight: 950;
    text-align: center;
}

.fanpick-vote-btn {
    min-height: 34px;
    border: 1px solid rgba(9,64,74,.14);
    border-radius: 8px;
    background: var(--live-marine-deep);
    color: #fff;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    cursor: pointer;
}

.fanpick-vote-btn:disabled {
    background: rgba(9,64,74,.16);
    color: rgba(9,64,74,.58);
    cursor: default;
}

.public-rounds-panel {
    margin: 0 0 14px;
    padding: 14px;
    border: 1px solid rgba(9,64,74,.13);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.97), rgba(234,244,243,.88)),
        #fff;
    box-shadow: 0 9px 22px rgba(9,64,74,.08);
}

.public-rounds-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 11px;
    color: var(--live-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.public-rounds-header span,
.public-rounds-header strong {
    display: block;
}

.public-rounds-header strong {
    color: var(--live-marine-deep);
    font-size: 18px;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.public-rounds-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 12px;
}

.public-empty-state {
    grid-column: 1 / -1;
    padding: 18px;
    border: 1px dashed rgba(9,64,74,.2);
    border-radius: 8px;
    color: var(--live-muted);
    background: rgba(255,255,255,.62);
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.file-entry,
.round-entry {
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--live-line);
    border-radius: 8px;
    color: var(--live-marine-deep);
    background: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
    box-shadow: 0 4px 12px rgba(9,64,74,.05);
}

.file-entry {
    min-height: 46px;
    padding: 11px 14px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.97), rgba(234,244,243,.88)),
        #fff;
    text-align: left;
}

.file-entry:hover,
.round-entry:hover {
    color: #fff;
    border-color: var(--live-marine);
    background: var(--live-marine);
}

.file-entry.selected,
.round-entry.selected {
    color: #fff;
    border-color: var(--live-coral);
    background: var(--live-coral);
}

#matches-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.match {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid var(--live-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(9,64,74,.07);
}

.heat-title,
.heat-details-title {
    float: none;
    margin: 0 0 8px;
    color: var(--live-marine-deep);
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.heat-details-title {
    text-align: right;
    margin-top: -26px;
}

.heat-details-title a,
.heat-details-toggle,
.replay-badge {
    color: var(--live-coral);
    font-size: 12px;
    font-weight: 900;
    text-transform: none;
}

.heat-details-toggle,
.replay-badge {
    appearance: none;
    text-decoration: none;
}

.heat-details-toggle:hover,
.replay-badge:hover {
    text-decoration: none;
}

.heat-vote-toggle {
    border-color: rgba(10, 126, 89, .22);
    color: #087454;
}

.heat-vote-toggle:hover {
    border-color: #087454;
    background: #087454;
    color: #fff;
}

.heat-start-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 10px;
    border: 1px solid rgba(9,64,74,.13);
    border-radius: 8px;
    background: rgba(255,255,255,.68);
    color: rgba(9,64,74,.72);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.heat-details-toggle:disabled {
    cursor: wait;
    opacity: .72;
}

.heat-competitor {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 46px;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-top: 1px solid rgba(217,229,233,.75);
}

.detail-name {
    color: var(--live-ink);
    font-size: 13px;
    line-height: 1.15;
    text-transform: uppercase;
}

.detail-country {
    color: var(--live-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.heat-competitor .competitor-img {
    width: 38px;
    height: 38px;
    min-width: 38px;
    max-width: 38px;
    border-width: 3px;
}

.heat-competitor .score {
    color: var(--live-marine-deep);
    font-size: 15px;
}

.heat-details-open {
    overflow: hidden;
}

.heat-details-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.heat-details-modal.is-open {
    display: flex;
}

.heat-details-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5,18,25,.68);
    backdrop-filter: blur(7px);
}

.heat-details-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(1180px, 100%);
    height: min(88vh, 820px);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 10px;
    background: var(--live-paper);
    box-shadow: 0 30px 80px rgba(0,0,0,.32);
}

.heat-details-modal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 46px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(9,64,74,.14);
    background: linear-gradient(90deg, var(--live-marine-deep), var(--live-marine));
}

.heat-details-modal-title {
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.heat-details-modal-event {
    display: flex;
    min-width: 0;
    max-width: calc(100% - 46px);
    align-items: center;
}

.heat-details-modal-logo {
    display: block;
    width: auto;
    height: 34px;
    max-width: none;
    max-height: 34px;
    object-fit: contain;
    flex: 0 0 auto;
}

.heat-details-close {
    appearance: none;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255,255,255,.36);
    border-radius: 8px;
    background: rgba(255,255,255,.16);
    color: #fff;
    cursor: pointer;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
}

.heat-details-close:hover {
    background: var(--live-coral);
}

.heat-details-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--live-paper);
}

.public-histo-detail .scores-video {
    padding-top: 0;
}

.public-histo-detail .contest-heading {
    margin: 8px 12px 8px;
}

.public-histo-detail #contest-title {
    overflow-wrap: anywhere;
}

.public-histo-detail .heatcompetitor {
    display: block;
    margin: 0 12px 8px;
    padding: 7px 10px;
    border: 1px solid rgba(9,64,74,.12);
    border-radius: 8px;
    background: rgba(255,255,255,.88) !important;
    color: var(--live-marine-deep);
}

.public-histo-detail .heatcompetitor .logobgcolor,
.public-histo-detail .heatcompetitor .chronoback {
    display: none !important;
}

.public-histo-detail .heatcompetitor .live-title-capsule {
    width: 100%;
    padding: 0;
}

.public-histo-detail .heatcompetitor #categ {
    display: inline;
    font-size: 13px;
    line-height: 1.1;
    font-weight: 900;
    text-transform: uppercase;
}

.public-histo-detail .heatcompetitor .live-submeta {
    display: inline-flex;
    gap: 5px;
    margin: 0 0 0 8px;
    vertical-align: middle;
}

.public-histo-detail .heatcompetitor .live-pill,
.public-histo-detail .heatcompetitor .live-heat-meta {
    min-height: 18px;
    padding: 2px 7px;
    border: 1px solid rgba(9,64,74,.10);
    border-radius: 999px;
    background: rgba(9,64,74,.07);
    color: rgba(9,64,74,.78) !important;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
}

@media (max-width: 960px) {
    .public-live-root,
    .public-live-header {
        width: min(100% - 18px, 760px);
    }

    .heatcompetitor {
        grid-template-columns: 58px minmax(0, 1fr) 96px;
        gap: 8px;
    }

    .live-title-capsule {
        padding: 0 8px;
    }

    .live-submeta {
        gap: 5px;
        margin-top: 5px;
        flex-wrap: wrap;
    }

    .live-pill {
        min-height: 26px;
        padding: 0 4px;
        font-size: 10px;
    }

    .chrono {
        min-width: 96px;
        font-size: 25px;
    }

    .competitor {
        grid-template-columns: 58px minmax(0, 1fr) 92px;
        gap: 9px;
        min-height: 68px;
        padding: 8px;
    }

    .competitor-img {
        width: 48px;
        height: 48px;
        min-width: 48px;
        max-width: 48px;
    }

    .name {
        font-size: 16px;
    }

    .score {
        font-size: 22px;
    }

    .hidden-mobile {
        display: none;
    }

    .hidden-desktop {
        display: flex;
    }

    .ws-container1 {
        display: flex;
        width: 100%;
        padding: 0 8px 9px;
        margin: 0;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 5px;
        overflow-x: visible;
        white-space: normal;
        box-sizing: border-box;
    }

    .ws-container1 > .wave-scores-container {
        display: flex;
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 5px;
        overflow-x: visible;
        white-space: normal;
    }

    .ws-container1 .wave-score-pair {
        flex: 0 0 auto;
        min-width: 36px;
        margin: 0;
        padding-right: 0 !important;
    }

    .ws-container1 .scores {
        min-width: 34px;
    }

    #matches-container {
        grid-template-columns: 1fr;
    }

    .public-rounds-header {
        align-items: flex-start;
    }

    .heat-details-modal {
        padding: 10px;
    }

    .heat-details-dialog {
        height: 92vh;
        max-width: 100%;
    }

    .heat-details-modal-bar {
        min-width: 0;
        padding: 8px 10px;
    }

    .heat-details-modal-logo {
        max-width: min(180px, 54vw);
        max-height: 30px;
    }
}

@media (min-width: 961px) and (max-width: 1180px) {
    #matches-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body {
        background:
            linear-gradient(180deg, rgba(12,111,120,.10), rgba(246,250,249,0) 190px),
            var(--live-paper);
    }

    .public-live-header,
    .public-live-root {
        width: calc(100% - 12px);
    }

    .public-live-header {
        gap: 8px;
        padding: 7px 0 6px;
    }

    .public-live-brand {
        gap: 7px;
        font-size: 11px;
    }

    .public-live-brand img {
        width: auto;
        height: 32px;
    }

    .public-live-status {
        padding: 5px 8px;
        font-size: 10px;
    }

    .contest-heading {
        margin: 4px 0 8px;
    }

    #contest-title {
        font-size: 18px;
        line-height: 1.12;
    }

    #contest-subtitle {
        font-size: 12px;
        line-height: 1.25;
    }

    .externalDiv {
        border-radius: 8px;
        box-shadow: 0 8px 18px rgba(9,64,74,.10);
    }

    .heatcompetitor {
        grid-template-columns: minmax(44px, 74px) minmax(0, 1fr) 82px;
        gap: 7px;
        padding: 9px 8px;
    }

    .public-fanpick-btn {
        grid-column: 1 / -1;
        min-height: 34px;
        padding: 7px 9px;
        border-radius: 8px;
        font-size: 11px;
    }

    .fanpick-dialog {
        max-height: calc(100vh - 18px);
        border-radius: 10px;
    }

    .fanpick-head {
        padding: 13px 14px 10px;
    }

    .fanpick-title {
        font-size: 22px;
    }

    .fanpick-riders {
        grid-template-columns: 1fr;
        max-height: calc(100vh - 158px);
        padding: 12px;
    }

    .fanpick-card {
        grid-template-columns: 48px minmax(0, 1fr) 34px 66px;
        gap: 8px;
        padding: 9px;
    }

    .fanpick-card.is-voting {
        grid-template-columns: 48px minmax(0, 1fr) 66px;
    }

    .fanpick-photo {
        width: 44px;
        height: 44px;
    }

    .fanpick-info strong {
        font-size: 13px;
    }

    .fanpick-vote-count {
        font-size: 17px;
    }

    .responsive-logo {
        width: auto;
        height: auto;
    }

    .live-title-capsule {
        width: 100%;
        padding: 0;
    }

    .title {
        font-size: 14px;
        line-height: 1.1;
    }

    .live-submeta {
        gap: 4px;
        margin-top: 3px;
    }

    .live-pill,
    .live-heat-meta {
        min-height: 18px;
        padding: 0;
        font-size: 9px;
        line-height: 1.05;
    }

    .chrono {
        min-width: 76px;
        padding: 7px 6px;
        border-radius: 8px;
        font-size: 21px;
    }

    .globalcompetitor {
        border-bottom: 1px solid rgba(217,229,233,.9);
    }

    .competitor {
        grid-template-columns: 48px minmax(0, 1fr) 78px;
        gap: 7px;
        min-height: 58px;
        padding: 7px 7px 5px;
        align-items: start;
    }

    .competitor > div:first-child {
        padding: 0 !important;
        align-self: start;
    }

    .competitor > div:nth-child(2) {
        align-self: start;
    }

    .competitor > div:nth-child(3) {
        min-width: 0;
        padding-right: 0 !important;
        align-self: start;
    }

    .competitor > .hidden-desktop.align-items-right {
        display: none !important;
    }

    .competitor-img {
        width: 44px;
        height: 44px;
        min-width: 44px;
        max-width: 44px;
        border-width: 3px;
    }

    .name {
        font-size: 14px;
        line-height: 1.08;
    }

    .club {
        max-width: 100%;
        font-size: 10px;
        line-height: 1.1;
        white-space: normal;
    }

    .responsive-flag,
    .competitor-flag {
        width: 18px;
        height: 12px;
        margin: 2px 5px 0 0;
    }

    .score {
        font-size: 20px;
        line-height: 1;
    }

    .competitor .headers {
        font-size: 9px !important;
        line-height: 1;
    }

    .scores-need {
        max-width: 78px;
        padding: 3px 5px;
        font-size: 10px;
        line-height: 1.12;
    }

    .ws-container1 {
        padding: 0 7px 8px;
        gap: 4px;
    }

    .ws-container1 > .wave-scores-container {
        gap: 4px;
    }

    .ws-container1 .wave-score-pair {
        min-width: 32px;
        font-size: 14px;
    }

    .ws-container1 .scores {
        min-width: 31px;
        padding: 3px 4px;
        border-radius: 6px;
        font-size: 14px;
    }

    .live-legend {
        margin: 6px 0 12px;
        font-size: 11px;
        text-align: left;
    }

    .public-heats-browser {
        padding: 12px;
        border-radius: 8px;
    }

    .public-section-title {
        margin-bottom: 10px;
        font-size: 15px;
    }

    #files-nav,
    #rounds-nav {
        gap: 6px;
        padding-bottom: 9px;
    }

    .file-entry,
    .round-entry {
        min-height: 38px;
        padding: 8px 10px;
        border-radius: 8px;
        font-size: 11px;
        line-height: 1.1;
    }

    .public-rounds-panel {
        padding: 11px;
        margin-bottom: 10px;
    }

    .public-rounds-header {
        gap: 8px;
        margin-bottom: 9px;
    }

    .public-rounds-header strong {
        font-size: 15px;
    }

    .public-back-button {
        min-height: 30px;
        padding: 6px 9px;
        border-radius: 8px;
        font-size: 11px;
    }

    #matches-container {
        gap: 9px;
    }

    .match {
        padding: 10px;
    }

}

@media (max-width: 380px) {
    .public-live-status {
        display: none;
    }

    .heatcompetitor {
        grid-template-columns: minmax(38px, 64px) minmax(0, 1fr) 72px;
    }

    .title {
        font-size: 13px;
    }

    .chrono {
        min-width: 68px;
        font-size: 19px;
    }


    .competitor {
        grid-template-columns: 42px minmax(0, 1fr) 72px;
    }

    .competitor-img {
        width: 39px;
        height: 39px;
        min-width: 39px;
        max-width: 39px;
    }

    .name {
        font-size: 13px;
    }

}
