body {
  background-color: #272f2c;
  margin: 0px;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
}

.ct-settings {
  height: 40px;
  width: 100%;
  position: absolute;
  background-color: #151a18;
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  align-items: center;
  column-gap: 30px;
  padding-left: 20px;
  flex-shrink: 0;

  color: #bfd4cc;
  font-family: Verdana, sans-serif;
  font-size: 14px;

  z-index: 10;
}

.ct-settings.collapsed {
  top: -40px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0);
}

.ct-settings.pinned {
  top: 0px;
}

.ct-settings-section {
  display: inline;
}

.hidden {
  display:none !important;
}

.help {
  width: 60vw;
  height: 60vh;
  position: absolute;
  z-index: 99;
  top: 15vh;
  left: 20vw;
  background-color: #9bb8ad;
  padding: 15px;
  border: black 5px solid;
  border-radius: 10px;
}

.help h1 {
  text-align: center;
}

.search {
  height: 75vh;
  width: 20vw;
  position: absolute;
  top: 80px;
  left: 0;
  background-color: #181d1b;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding: 5px;
  font-family: "Inter", "Roobert", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.search .error {
  color: #f09098;
  text-align: center;
  background-color: #4a1317;
  padding: 5px;
  margin: 10px 2vw;
  border-radius: 10px;
}

.search .auth {
  color: #9146FF;
  text-align: center;
}

.search .auth button {
  background-color: #9146FF;
  border-style: solid;
  border-color: black;
  padding: 5px 15px;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.search-controls {
  min-height: 0;
}

.search input {    
  padding: 6px 12px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  appearance: none;
  border-radius: 4px;
  transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;  
}
.search input:focus {
  color: #212529;
  background-color: #fff;
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgb(13 110 253 / 25%);
}

.search-container {
  max-height: 100%;
  display: flex;
  flex-direction: column;
}

.search-container > .results {
  overflow-y: scroll;
}

.category {
  color: #DDDDDD;
  font-size: large;
  margin: 10px 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #2e393e;
  border-radius: 5px;
  padding: 5px;
}

.category img {
  width: 52px;
  height: 72px;
}

.stream {
  color: #DDDDDD;
  margin: 10px 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #2e393e;
  border-radius: 5px;
  padding: 5px;
}

.stream img {
  width: 75px;
  height: 75px;
  flex-shrink: 0;
  border-radius: 50%;
}

.stream > div {
  display: flex;
  flex-direction: column;
}

.category-label-container {
  color: white;
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 1.5rem;
}

.ct-container {
  display: flex;
  width: 100%;
  height: 100%;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.ct-container.horizontal.even, .ct-container.vertical.focus {
  flex-direction: row;  
}

.ct-container.vertical.even, .ct-container.horizontal.focus {
  flex-direction: column;
}

.ct-player-container {
  order: 2;
}

.ct-player-container.primary {
  order: 0;
}

.ct-container.isolate .ct-player-container:not(.primary){
  display: none;
}

.ct-container-break {
  order: 3;
}

.ct-container.horizontal.focus .ct-container-break {
  order: 1;
  width: 0;
  flex-basis: 100%;
}

.ct-container.vertical.focus .ct-container-break {
  order: 1;
  height: 0;
  flex-basis: 100%;
}

.ct-playercount-1 .ct-container-break {
  display: none;
}

/* Horizontal even layouts */
/* One player */
.ct-container.horizontal.even.ct-playercount-1 .ct-player-container {
  width: 100vw;
  height: 56.25vw;
  max-width: 177.78vh;
  max-height: 100vh;
}

/* Two players */
.ct-container.horizontal.even.ct-playercount-2 .ct-player-container {
  width: 50vw;
  height: 28.125vw;
  max-width: 177.78vh;
  max-height: 100vh;
}

/* Three or Four players */
.ct-container.horizontal.even.ct-playercount-3 .ct-player-container, .ct-container.horizontal.even.ct-playercount-4 .ct-player-container {
  width: 50vw;
  height: 28.125vw;
  max-width: 88.9vh;
  max-height: 50vh;
}

/* Vertical even layouts */
/* One player */
.ct-container.vertical.even.ct-playercount-1 .ct-player-container {
  width: 100vw;
  height: 56.25vw;
  max-width: 177.78vh;
  max-height: 100vh;
}

/* Two players */
.ct-container.vertical.even.ct-playercount-2 .ct-player-container {
  width: 88.9vh;
  height: 50vh;
  max-width: 100vw;
  max-height: 56.25vw;
}

/* Three or Four players */
.ct-container.vertical.even.ct-playercount-3 .ct-player-container, .ct-container.vertical.even.ct-playercount-4 .ct-player-container {
  width: 88.9vh;
  height: 50vh;
  max-width: 50vw;
  max-height: 28.125vw;
}

/* Focus layouts */
/* Single player */
.ct-container.horizontal.focus.ct-playercount-1 .ct-player-container.primary, .ct-container.vertical.focus.ct-playercount-1 .ct-player-container.primary {
  width: 100vw;
  height: 56.25vw;
  max-width: 177.78vh;
  max-height: 100vh;
}
/* Horizontal primary player */
.ct-container.horizontal.focus .ct-player-container.primary {
  width: calc(100vw - 58.674vh);
  height: calc((100vw - 58.674vh) * .5625);
  max-width: 177.78vh;
  max-height: 100vh;  
}
/* Horizontal other players */
.ct-container.horizontal.focus .ct-player-container {
  width: 58.674vh;
  height: 33vh;
}
/* Vertical primary player */
.ct-container.vertical.focus .ct-player-container.primary {
  width: calc((100vh - 18.5625vw) * 1.778);
  height: calc(100vh - 18.5625vw);
  max-width: 100vw;
  max-height: 56.25vw;
}
/* Vertical other player */
.ct-container.vertical.focus .ct-player-container {
  width: 33vw;
  height: 18.5625vw;
}

.ct-player {
  width: 100%;
  height: 100%;

  box-sizing: border-box;
  /* border: 3px solid white; */
}

.ct-player-overlay {
  position: absolute;
  width: inherit;
  height: inherit;
  box-sizing: border-box;  
  display: flex;
  justify-content: center;
  align-items: center;
  container-type: size;
}

.ct-player-overlay span {
  color: white;
  background-color: #272f2c;
  padding: 10px;
  font-family: verdana, sans-serif;
  font-weight: bold;
}

@container (min-width: 50px){
  .ct-player-overlay span {
    font-size: 5cqi;
  }
}


.ct-settings button {
  display: inline-block;
  outline: 0;
  cursor: pointer;
  padding: 5px 16px;
  font-size: 12x;
  font-weight: 500;
  line-height: 10px;
  vertical-align: middle;
  border: 1px solid;
  border-radius: 6px;
  color: #24292e;
  background-color: #fafbfc;
  border-color: #1b1f2326;
  box-shadow: rgba(27, 31, 35, 0.04) 0px 1px 0px 0px, rgba(255, 255, 255, 0.25) 0px 1px 0px 0px inset;
  transition: 0.2s cubic-bezier(0.3, 0, 0.5, 1);
  transition-property: color, background-color, border-color;
}
.ct-settings button:hover {
  background-color: #dbdbdb;
  border-color: #1b1f2326;
  transition-duration: 0.1s;
}

.ct-settings button.active {  
  color: #ffffff;
  background-color: #2ea44f;
}
.ct-settings button.active:hover {
  background-color: #2a8f46;
}

.ct-settings button.isolate {  
  color: #ffffff;
  background-color: #3b6bd4;
}
.ct-settings button.isolate:hover {
  background-color: #2a4a8f;
}

#ct-player-0 {
  background-color: #11ABC1;
}

#ct-player-1 {
  background-color: #F5B935;
}

#ct-player-2 {
  background-color: #4BAC3F;
}

#ct-player-3 {
  background-color: #DF3062;
}