/* Stage Focus demo player */
.stage-focus-demo-player {
  color-scheme: dark;
  --bg: #111313;
  --panel: #181b1b;
  --panel-soft: #202424;
  --panel-deep: #0c0e0e;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.58);
  --dim: rgba(255, 255, 255, 0.32);
  --teal: #55dcca;
  --teal-deep: #1f8f83;
  --yellow: #e7c934;
  --red: #f04b3d;
  --green: #46df72;
  --shadow: rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
}

.stage-focus-demo-player,
.stage-focus-demo-player *,
.stage-focus-demo-player *::before,
.stage-focus-demo-player *::after {
  box-sizing: border-box;
}

.stage-focus-demo-player button,
.stage-focus-demo-player input {
  font: inherit;
}

.stage-focus-demo-player button {
  color: inherit;
}

.stage-focus-demo-player .stage-focus-player {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 38%),
    linear-gradient(135deg, rgba(85, 220, 202, 0.045), transparent 34%),
    var(--panel);
  box-shadow:
    0 28px 70px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(0, 0, 0, 0.7);
}

.stage-focus-demo-player .player-top,
.stage-focus-demo-player .player-main,
.stage-focus-demo-player .player-bottom {
  display: grid;
  gap: 24px;
  align-items: center;
}

.stage-focus-demo-player .player-top {
  grid-template-columns: minmax(150px, 0.48fr) minmax(610px, 1.78fr) minmax(210px, 0.55fr);
  min-height: 104px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
}

.stage-focus-demo-player .logo-lockup {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  color: var(--text);
  text-decoration: none;
}

.stage-focus-demo-player .logo-image {
  max-width: min(225px, 100%);
  max-height: 38px;
  object-fit: contain;
}

.stage-focus-demo-player .source-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stage-focus-demo-player .source-tab,
.stage-focus-demo-player .ab-button {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.stage-focus-demo-player .source-tab {
  font-size: 14px;
  font-weight: 500;
}

.stage-focus-demo-player .source-tab:last-child,
.stage-focus-demo-player .ab-button:last-child {
  border-right: 0;
}

.stage-focus-demo-player .source-tab.is-active {
  color: var(--teal);
  background: linear-gradient(180deg, rgba(85, 220, 202, 0.12), rgba(85, 220, 202, 0.035));
  box-shadow: inset 0 -3px 0 var(--teal);
}

.stage-focus-demo-player .ab-toggle {
  justify-self: end;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 240px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.28);
}

.stage-focus-demo-player .ab-button {
  min-height: 44px;
  border-right: 0;
  border-radius: 999px;
  background: transparent;
}

.stage-focus-demo-player .ab-button.is-active {
  color: #071412;
  background: linear-gradient(180deg, #72eadc, #40baac);
  box-shadow: 0 0 22px rgba(85, 220, 202, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.stage-focus-demo-player .player-main {
  grid-template-columns: 74px minmax(0, 1fr) 220px;
  padding: 30px 28px 26px;
}

.stage-focus-demo-player .play-button,
.stage-focus-demo-player .icon-button {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 26px rgba(0, 0, 0, 0.26);
  cursor: pointer;
}

.stage-focus-demo-player .play-button {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  color: var(--teal);
}

.stage-focus-demo-player .play-button svg,
.stage-focus-demo-player .icon-button svg,
.stage-focus-demo-player .loop-pill svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.stage-focus-demo-player .play-button .pause-icon {
  display: none;
}

.stage-focus-demo-player .is-playing .play-button .play-icon {
  display: none;
}

.stage-focus-demo-player .is-playing .play-button .pause-icon {
  display: block;
}

.stage-focus-demo-player .wave-panel {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 10px;
}

.stage-focus-demo-player .waveform {
  width: 100%;
  height: 172px;
  display: block;
  cursor: pointer;
}

.stage-focus-demo-player .playhead {
  position: absolute;
  top: 7px;
  bottom: 34px;
  left: var(--playhead, 0%);
  width: 2px;
  translate: -1px 0;
  background: rgba(255, 255, 255, 0.72);
}

.stage-focus-demo-player .playhead span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  translate: -50% -50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(18, 21, 21, 0.84);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.24);
}

.stage-focus-demo-player .time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}

.stage-focus-demo-player .volume {
  width: 100%;
  accent-color: var(--teal);
  cursor: pointer;
}

.stage-focus-demo-player .meter-block {
  justify-self: end;
  display: grid;
  grid-template-columns: auto auto;
  gap: 12px;
  justify-content: center;
  align-items: start;
  min-width: 116px;
}

.stage-focus-demo-player .meter-scale {
  height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 1px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.stage-focus-demo-player .meters {
  display: flex;
  gap: 20px;
  align-items: end;
  min-height: 164px;
}

.stage-focus-demo-player .meter-column {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.stage-focus-demo-player .meter-label {
  color: var(--muted);
  font-size: 14px;
}

.stage-focus-demo-player .meter-track {
  position: relative;
  width: 12px;
  height: 126px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055));
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.42);
}

.stage-focus-demo-player .meter-fill {
  position: absolute;
  inset: auto 0 0 0;
  height: 0%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(0deg, var(--green) 0 58%, var(--yellow) 74%, var(--red) 100%);
  transition: height 90ms linear;
}

.stage-focus-demo-player .player-bottom {
  grid-template-columns: minmax(190px, 1fr) minmax(260px, auto) minmax(190px, 1fr);
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.14);
}

.stage-focus-demo-player .utility-group,
.stage-focus-demo-player .volume-control,
.stage-focus-demo-player .loop-pill {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stage-focus-demo-player .volume-control {
  min-width: 160px;
}

.stage-focus-demo-player .icon-button {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 999px;
  color: var(--teal);
}

.stage-focus-demo-player .icon-button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stage-focus-demo-player .is-muted .volume-wave {
  opacity: 0.24;
}

.stage-focus-demo-player .status-stack {
  display: grid;
  gap: 4px;
  justify-self: center;
  justify-items: center;
}

.stage-focus-demo-player .status-text,
.stage-focus-demo-player .listening-note {
  margin: 0;
}

.stage-focus-demo-player .status-text {
  color: var(--muted);
  text-align: center;
}

.stage-focus-demo-player .listening-note {
  color: rgba(255, 255, 255, 0.56);
  font-size: 15px;
  text-align: center;
}

.stage-focus-demo-player .loop-pill {
  justify-self: end;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stage-focus-demo-player .loop-pill svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 920px) {
  .stage-focus-demo-player .player-top {
    grid-template-columns: 1fr;
  }

  .stage-focus-demo-player .ab-toggle {
    justify-self: stretch;
    width: 100%;
  }

  .stage-focus-demo-player .player-main {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .stage-focus-demo-player .meter-block {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .stage-focus-demo-player .player-bottom {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .stage-focus-demo-player .status-stack {
    justify-items: start;
  }

  .stage-focus-demo-player .status-text,
  .stage-focus-demo-player .listening-note {
    text-align: left;
  }

  .stage-focus-demo-player .loop-pill {
    justify-self: start;
  }
}

@media (max-width: 560px) {

  .stage-focus-demo-player .player-top,
  .stage-focus-demo-player .player-main,
  .stage-focus-demo-player .player-bottom {
    padding-left: 16px;
    padding-right: 16px;
    gap: 16px;
  }

  .stage-focus-demo-player .source-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stage-focus-demo-player .player-main {
    grid-template-columns: 1fr;
  }

  .stage-focus-demo-player .play-button {
    width: 58px;
    height: 58px;
  }

  .stage-focus-demo-player .waveform {
    height: 124px;
  }

  .stage-focus-demo-player .utility-group {
    align-items: flex-start;
    flex-direction: column;
  }

  .stage-focus-demo-player .volume-control {
    width: 100%;
  }
}
