:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #24151f;
  color: #fff0eb;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }

body { margin: 0; }
[hidden] { display: none !important; }

.bbb-demo {
  min-height: 100vh;
  background: radial-gradient(ellipse at 22% 0%, #532642, transparent 50%), #24151f;
}

.bbb-demo main {
  max-width: 62rem;
  margin: 0 auto;
  padding: clamp(.75rem, 3vw, 2.4rem);
}

.bbb-demo nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bbb-demo nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #f9c6d9;
  font-size: .9rem;
  font-weight: 750;
  text-underline-offset: .23em;
}

.bbb-demo__languages { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.bbb-demo nav [data-demo-language] { padding-inline: .55rem; }
.bbb-demo nav [aria-current="page"] { color: #fff0eb; text-decoration-thickness: 2px; }

.bbb-demo__header { margin: .55rem 0 1.15rem; }

.bbb-demo__header h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.7rem);
  font-weight: 950;
  letter-spacing: -.045em;
  line-height: 1;
}

.bbb-demo__header p {
  max-width: 58ch;
  margin: .62rem 0 0;
  color: #f9c6d9;
  line-height: 1.5;
}

.bbb-demo__transport {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: .62rem;
  row-gap: .45rem;
  margin-bottom: 1.1rem;
  padding: .55rem .75rem;
  border: 1px solid #a36283;
  border-radius: .65rem;
  background: #392631;
}

.bbb-demo__track { margin-inline-end: .5rem; }

.bbb-demo__track > * { display: block; }
.bbb-demo__track span { color: #f9c6d9; font-size: .82rem; }

.bbb-demo__transport button {
  min-height: 44px;
  padding: .35rem .75rem;
  border: 1px solid #f9c6d9;
  border-radius: .35rem;
  background: #271820;
  color: #ffeee9;
  font: 750 .88rem/1.15 system-ui, sans-serif;
  cursor: pointer;
}

.bbb-demo__transport [data-demo-play] {
  background: #bbf28c;
  color: #271820;
  border-color: #bbf28c;
}

.bbb-demo__transport button:disabled { opacity: .68; cursor: default; }
.bbb-demo :where(button, a, input):focus-visible { outline: 2px solid #ffd847; outline-offset: 3px; }

.bbb-demo__seek {
  display: flex;
  flex: 1 1 10rem;
  align-items: center;
  gap: .55rem;
  min-width: 0;
}

.bbb-demo__seek input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  accent-color: #ffb5d1;
}

.bbb-demo__seek output {
  flex: none;
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
}

.bbb-demo__transport p {
  flex-basis: 100%;
  margin: 0 0 .24rem;
  color: #ffd847;
  font-size: .88rem;
}

.bbb-demo__signal {
  margin: .9rem 0 0;
  max-width: 76ch;
  color: #f9c6d9;
  font-size: .9rem;
  line-height: 1.5;
}

.bbb-demo__visually-hidden {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

@media (max-width: 30rem) {
  .bbb-demo__track { flex-basis: 100%; }
  .bbb-demo__seek { flex-basis: 100%; }
}
