html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
}

body {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  color: #f8feff;
  font-family: Arial, sans-serif;
}

.broadcast2-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  background: #000;
}

#broadcast2-canvas {
  display: block;
  width: min(100vw, calc((100vh - 94px) * 16 / 9));
  height: auto;
  max-width: 100vw;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.broadcast2-games {
  display: flex;
  gap: 12px;
  min-height: 94px;
  padding: 12px 16px 14px;
  overflow-x: auto;
  overflow-y: hidden;
  border-top: 1px solid rgba(104, 247, 255, 0.2);
  background: linear-gradient(180deg, rgba(3, 8, 14, 0.96), rgba(0, 0, 0, 0.98));
  box-sizing: border-box;
}

.broadcast2-games:empty {
  display: none;
}

.broadcast2-game-card {
  flex: 0 0 276px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  min-height: 70px;
  padding: 10px 14px;
  border: 1px solid rgba(104, 247, 255, 0.2);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(6, 10, 18, 0.92), rgba(2, 5, 10, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  box-sizing: border-box;
  cursor: pointer;
}

.broadcast2-game-card.is-current {
  border-color: #1ca8ff;
  box-shadow:
    inset 0 0 0 1px rgba(28, 168, 255, 0.36),
    0 0 24px rgba(28, 168, 255, 0.28);
}

.broadcast2-game-card.is-unavailable {
  border-color: rgba(126, 158, 171, 0.22);
  background:
    linear-gradient(180deg, rgba(7, 12, 18, 0.88), rgba(3, 7, 11, 0.94));
  cursor: default;
}

.broadcast2-game-card.is-unavailable .broadcast2-game-card__name {
  color: rgba(218, 235, 241, 0.74);
}

.broadcast2-game-card.is-unavailable .broadcast2-game-card__score {
  color: rgba(115, 198, 213, 0.74);
}

.broadcast2-game-card.is-unavailable .broadcast2-game-card__avatar {
  background: #161d24;
}

.broadcast2-game-card.is-unavailable .broadcast2-game-card__avatar-initial {
  color: rgba(222, 236, 240, 0.68);
}

.broadcast2-game-card:focus-visible {
  outline: 2px solid #68f7ff;
  outline-offset: 3px;
}

.broadcast2-game-card__avatar {
  position: relative;
  width: 46px;
  height: 46px;
  overflow: hidden;
  background: #1b2028;
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

.broadcast2-game-card__avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(104, 247, 255, 0.2);
}

.broadcast2-game-card__avatar-image {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.broadcast2-game-card__avatar.has-image .broadcast2-game-card__avatar-image {
  display: block;
}

.broadcast2-game-card__avatar-initial {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(248, 254, 255, 0.76);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.broadcast2-game-card__avatar.has-image .broadcast2-game-card__avatar-initial {
  display: none;
}

.broadcast2-game-card__text {
  min-width: 0;
}

.broadcast2-game-card__name {
  min-width: 0;
  overflow: hidden;
  color: #f8feff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}

.broadcast2-game-card__score {
  min-width: 0;
  overflow: hidden;
  color: #68f7ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}

.broadcast2-current-overlay {
  display: none;
}

html.broadcast2-current .broadcast2-current-overlay {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: block;
  overflow: hidden;
  pointer-events: none;
}

html.broadcast2-current {
  --broadcast2-current-top-clearance: 92px;
  --broadcast2-current-right-clearance: 360px;
  --broadcast2-current-left-clearance: 14px;
  --broadcast2-current-bottom-clearance: 14px;
}

html.broadcast2-current.broadcast2-current-active .broadcast2-stage {
  box-sizing: border-box;
  padding:
    var(--broadcast2-current-top-clearance)
    var(--broadcast2-current-right-clearance)
    var(--broadcast2-current-bottom-clearance)
    var(--broadcast2-current-left-clearance);
}

html.broadcast2-current.broadcast2-current-active #broadcast2-canvas {
  width: min(
    calc(100vw - var(--broadcast2-current-left-clearance) - var(--broadcast2-current-right-clearance)),
    calc((100vh - 94px - var(--broadcast2-current-top-clearance) - var(--broadcast2-current-bottom-clearance)) * 16 / 9)
  );
  max-width: calc(100vw - var(--broadcast2-current-left-clearance) - var(--broadcast2-current-right-clearance));
  max-height: calc(100vh - 94px - var(--broadcast2-current-top-clearance) - var(--broadcast2-current-bottom-clearance));
}

html.broadcast2-current:not(.broadcast2-current-active) .broadcast2-stage,
html.broadcast2-current:not(.broadcast2-current-active) .broadcast2-games {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

html.broadcast2-current:not(.broadcast2-current-active) .broadcast2-current-overlay {
  background: #000 url("../wp-content/themes/king-child/assets/imgs/Helix_gif.gif") center center / min(78vmin, 560px) no-repeat;
}

.broadcast2-current-timer {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 30;
  display: grid;
  gap: 2px;
  min-width: 126px;
  padding: 8px 10px;
  border: 1px solid rgba(104, 247, 255, 0.24);
  background: rgba(3, 8, 14, 0.82);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.38);
  box-sizing: border-box;
}

.broadcast2-current-timer span,
.broadcast2-current-kicker,
.broadcast2-current-statline span {
  color: rgba(159, 214, 229, 0.72);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.broadcast2-current-timer strong {
  color: #f8feff;
  font-family: "Courier New", monospace;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.broadcast2-current-timer.is-empty {
  max-width: min(270px, calc(100vw - 28px));
}

.broadcast2-current-timer.is-empty strong {
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.08;
}

.broadcast2-current-center {
  display: none;
}

html.broadcast2-current:not(.broadcast2-current-active) .broadcast2-current-center {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 28;
  display: grid;
  gap: 10px;
  width: min(900px, calc(100vw - 48px));
  padding: clamp(18px, 4vw, 34px) clamp(20px, 5vw, 48px);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(104, 247, 255, 0.36);
  background: rgba(0, 0, 0, 0.68);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  text-align: center;
}

.broadcast2-current-center span {
  color: rgba(159, 214, 229, 0.84);
  font-size: clamp(12px, 2vw, 22px);
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.9);
  text-transform: uppercase;
}

.broadcast2-current-center strong {
  color: #f8feff;
  font-family: "Courier New", monospace;
  font-size: clamp(44px, 13vw, 132px);
  font-weight: 900;
  line-height: 1;
  text-shadow:
    0 4px 22px rgba(0, 0, 0, 0.92),
    0 0 26px rgba(28, 168, 255, 0.24);
  white-space: nowrap;
}

.broadcast2-current-center.is-empty strong {
  font-family: Arial, sans-serif;
  font-size: clamp(24px, 6vw, 68px);
  line-height: 1.04;
  white-space: normal;
}

.broadcast2-current-stats {
  position: fixed;
  top: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 30;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 10px;
  width: min(282px, calc(100vw - 28px));
  pointer-events: none;
}

html.broadcast2-current:not(.broadcast2-current-active) .broadcast2-current-stats {
  display: none;
}

.broadcast2-current-panel {
  min-height: 0;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(104, 247, 255, 0.2);
  background: rgba(3, 8, 14, 0.84);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.36);
  box-sizing: border-box;
}

.broadcast2-current-panel h1 {
  margin: 3px 0 10px;
  overflow: hidden;
  color: #f8feff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.broadcast2-current-kicker {
  margin: 0;
}

.broadcast2-current-statline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-height: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 7px;
}

.broadcast2-current-statline strong {
  min-width: 0;
  overflow: hidden;
  color: #68f7ff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.broadcast2-current-list {
  display: grid;
  gap: 6px;
  max-height: 100%;
  margin-top: 8px;
  overflow: hidden;
}

.broadcast2-current-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 28px;
  color: #f8feff;
  font-size: 12px;
  line-height: 1.15;
}

.broadcast2-current-row span {
  color: rgba(159, 214, 229, 0.78);
  font-weight: 900;
}

.broadcast2-current-row strong {
  min-width: 0;
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.broadcast2-current-row em {
  color: #68f7ff;
  font-style: normal;
  font-weight: 900;
}

.broadcast2-current-end {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 40;
  width: min(470px, calc(100vw - 32px));
  padding: 24px 28px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(104, 247, 255, 0.34);
  background: rgba(3, 8, 14, 0.92);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.56);
  text-align: center;
  box-sizing: border-box;
}

.broadcast2-current-end p {
  margin: 0 0 8px;
  color: rgba(159, 214, 229, 0.78);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.broadcast2-current-end h2 {
  margin: 0;
  color: #f8feff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.08;
  text-transform: uppercase;
}

.broadcast2-current-end strong {
  display: block;
  margin-top: 10px;
  color: #68f7ff;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.broadcast2-current-end span {
  display: block;
  margin-top: 12px;
  color: rgba(248, 254, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.is-hidden {
  display: none !important;
}

html.broadcast2-obs,
html.broadcast2-obs body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

html.broadcast2-obs body {
  grid-template-rows: minmax(0, calc(100vh - 118px)) 118px;
}

html.broadcast2-obs .broadcast2-stage {
  overflow: hidden;
}

html.broadcast2-obs #broadcast2-canvas {
  width: min(100vw, calc((100vh - 118px) * 16 / 9));
  height: auto;
  max-height: calc(100vh - 118px);
}

html.broadcast2-obs .broadcast2-games {
  min-height: 118px;
  max-height: 118px;
  padding: 14px 16px;
  scrollbar-width: none;
}

html.broadcast2-obs .broadcast2-games::-webkit-scrollbar {
  display: none;
}

@media (max-width: 760px) {
  html.broadcast2-current {
    --broadcast2-current-top-clearance: 76px;
    --broadcast2-current-right-clearance: 12px;
    --broadcast2-current-left-clearance: 12px;
    --broadcast2-current-bottom-clearance: 222px;
  }

  .broadcast2-current-stats {
    top: auto;
    left: 12px;
    right: 12px;
    bottom: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 1fr;
    width: auto;
    max-height: 210px;
  }

  .broadcast2-current-panel h1 {
    font-size: 13px;
  }

  .broadcast2-current-row {
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 6px;
    font-size: 11px;
  }
}
