:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #000;
  color: #111;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.stage {
  position: absolute;
  width: 520px;
  height: 292px;
  opacity: 0;
  pointer-events: none;
}

.stage.is-ad {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  height: auto;
  aspect-ratio: 16 / 9;
  opacity: 1;
  pointer-events: auto;
  background: #000;
}

#ad-container {
  position: absolute;
  inset: 0;
}

.pill {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 248px;
  height: 36px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  background: #f2f2f2;
  color: #1c1c1c;
}

.icon-btn {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.icon-btn svg {
  width: 14px;
  height: 14px;
  display: block;
}

#mute svg {
  width: 18px;
  height: 14px;
}

#time {
  min-width: 36px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.icon-btn:focus-visible,
.skip:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.skip {
  border: 0;
  background: transparent;
  color: #f2f2f2;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}

.skip:disabled {
  cursor: default;
  color: #8d8d8d;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

#stream {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
