@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@400;700;900&display=swap');

html,
body {
    margin: 0;
    height: 100vh;
    font-family: "Lexend", Arial, Helvetica, sans-serif;
}

body {
    background-color: green;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-height: 100%;
    overflow: hidden;
}

.coun-title {
    display: flex;
    justify-content: space-between;
    font-size: 94px;
    font-weight: 800;
    padding: 0 .2em;
    z-index: 10;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: flex-start;
    justify-content: space-between;
    align-items: flex-start;
    text-shadow: #000 2px 2px 5px;
}

.heat-container {
    display: flex;
    align-items: center;
    gap: 0.08em;
}

#current-heat {
    text-transform: capitalize;
    max-width: 60vw;         /* cap at 60% of screen width */
    min-width: 0;
    white-space: nowrap;     /* never wrap to a second line */
    overflow: hidden;
    text-overflow: ellipsis; /* show … when clipped */
}

#coun-logo {
    height: 90px; /* 50 - 150; width scales to keep the logo's aspect ratio */
    width: auto;
    flex: 0 0 auto;
    object-fit: contain;
}

.event-name {
    font-size: 50px;
    font-weight: 700;
    margin: 0px;
}
/* Event title — same "lower third" panel treatment as the dancers list, kept bottom-left */
#event-name {
    position: absolute;
    bottom: 1.5vw;
    left: 1.5vw;
    margin: 0;
    max-width: 92vw;
    padding: 0.5vw 1.8vw;
    background: rgba(8, 10, 40, 0.55);
    border-left: 0.5vw solid #FFBF3B;
    border-radius: 0.8vw;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}
/* Current dancers — centered "lower third" panel (keeps clear of the top-left counter) */
#current-dancers {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    max-width: 92vw;
}
#current-dancers .dancers-list {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 0.6vw 1.8vw;
    list-style: none;
    background: rgba(8, 10, 40, 0.55) !important;
    border-left: 0.5vw solid #FFBF3B;
    border-radius: 0.8vw;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}
#current-dancers .couple {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55em;
    margin: 0;
    padding: 0.3em 0;
    font-size: 2.6vw;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
#current-dancers .couple:last-child {
    border-bottom: 0;
}
#current-dancers .number-on-back {
    flex: 0 0 auto;
    min-width: 2.4em;
    display: flex;
    justify-content: flex-end;
    color: #FFBF3B;
    font-weight: 800;
}
#current-dancers .couple-name {
    flex: 0 1 auto;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}
#current-dancers .country {
    display: none;
}
/* Dancers-at-bottom option (better when only one couple is shown) */
body.dancers-bottom #current-dancers {
    top: auto;
    bottom: 2vw;
    transform: translateX(-50%);
}
.dancers {
    display: flex;
    justify-content: center;
    font-size: 40px;
    flex: inherit;
    align-items: center;
    order:+1;
}

.couple {
    list-style-type: none;
    margin: 15px 0;
    font-size: 40px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}
.couple-name {
    flex: auto;
}
.country {
    padding: 0px 40px 0px 0px;
}
h1 {
    text-align: center;
}


.videoforeground,
.videobackground {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.videobackground {
    z-index:-99;
    background: #000;
}
video.video-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-name-wrapper {
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
}
/*  #comp-logo {
    display: flex;
    align-content: center;
    justify-content: center;
    z-index: 2;
    align-items: center;
}
.comp-logo {
    max-height: 80vh;
    max-width: 1024px;
} */

/* Base — centered full-size logo */
.comp-logo {
  position: absolute;       /* or fixed if you want it pinned to viewport */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;
  transition: transform 300ms ease;
  max-width: 60vw;
  max-height: 75vh;
}

/* When upcoming heats counter is visible, shrink 20% and shift left ~25% */
.video-visible .comp-logo {
  transform: translate(calc(-50% - 25%), -50%) scale(0.8);
}

/* Small-screen tweak */
@media (max-width: 480px) {
  .comp-logo { width: 220px; max-width: 60vw; }
  .video-visible .comp-logo { transform: translate(calc(-50% - 18%), -50%) scale(0.75); }
}

#current-nib-video-counter {
    position: absolute;
    z-index: 20;
    width: 500px;
    left: 710px;
    
}

/* Time */
#current-time {
    position: absolute;
    right: 1vw;
}
#current-time .ampm {
    font-size: 0.45em;
    vertical-align: super;
    font-weight: 700;
    margin-left: 0.12em;
    text-transform: uppercase;
}

/* Running early/late — styled pill, centered at the top */
.schedule-time {
    position: fixed;
    top: 1.2vw;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 15;
    font-size: 2vw;
    font-weight: 700;
    color: #fff;
    background: rgba(8, 10, 40, 0.55);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border-radius: 999px;
    padding: 0.35em 1.1em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
}
.schedule-time.is-early { color: #8affb0; }
.schedule-time.is-late { color: #ffb0b0; }



/*  NIB */
.video-counter-current-nib-dancers-list::before {
    content: "On the Floor";
    position: absolute;
    top: 0;
    font-size: 1.7rem;
}

.video-counter-current-nib-dancers-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding: 20px 0px 0px 20px;
    align-items: flex-start;
    background: none!important;
}

.video-counter-current-nib-dancers-list .couple {
    margin: 0px;
    padding: 0px 5px;
} 

/*  UPCOMING  */

#next-heats {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.upcoming-heat {
    padding-left: 0;
}
.upcoming-heat:not(:has(.floor-list:nth-child(3))) .sub-floor {
    display: none;
}
li.floor-list {
    list-style-type: none;
}
.adv-heat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.adv-numbers-on-back {
    font-size: 2rem;
    font-weight: 500;
}

ul.dancers-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: start;
    padding: 0px;
    align-items: flex-start;
    background: none!important;
}

.couple {
    list-style-type: none;
    margin: 0px;
    font-size: 2rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
}
.sub-floor {
    font-weight: 700;
}


#upcoming-heats-video-counter {
    width: 420px;
    background: rgba(8, 10, 40, 0.55);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    padding: 2rem;
    order: +1;
    position: absolute;
    right: 0;
    min-height: 100%;
}

#next-heats {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: flex-start;
    justify-content: space-between;
    height: -webkit-fill-available;
    padding-bottom: 50px;
}

#upcoming-heats-video-counter .dancers-list {
    background: none !important;
    padding: 0px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-start;
}
#upcoming-heats-video-counter .couple {
    padding: 5px 5px;
    margin: 0px;
}
.adv-heat-number {
    font-size: 2rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.3);
    border-left: 5px solid #FFBF3B;
    border-radius: 6px;
    padding: 0.35em 0.7em;
    margin-bottom: 0.7rem;
}
/* Floor sub-label: gold accent so the hierarchy reads Heat > Floor > numbers */
#upcoming-heats-video-counter .sub-floor {
    color: #FFBF3B;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0.4rem 0 0.2rem;
}

/* Remove bullets and reset spacing for Upcoming Heats list */
ul.upcoming-heat,
ul.upcoming-heat li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Ensure container has consistent vertical spacing and layout */
ul.upcoming-heat {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;       /* space between each upcoming-heat block */
  margin-bottom: 1rem;
  padding-left: 0;    /* remove any default indent */
}

/* Soft divider between each upcoming heat, like the couples in the dancers list */
#next-heats > *:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 1.25rem;
}
