* {
  box-sizing: border-box;
}
html {
  color-scheme: light;
  background: #f7f8f4;
  color: #182c26;
  font:
    16px/1.45 "Segoe UI",
    sans-serif;
}
body {
  margin: 0;
}
header,
main {
  padding-inline: max(5vw, calc((100vw - 1100px) / 2));
}
header {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid #d7ded6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 650;
  font-size: 19px;
}
main {
  padding-top: 42px;
  padding-bottom: 60px;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 620;
}
h2 {
  font-weight: 580;
}
.heading,
.filters,
.transport,
.listtitle,
.playerhead,
.axis {
  display: flex;
  align-items: center;
  gap: 12px;
}
.heading,
.listtitle,
.playerhead,
.axis {
  justify-content: space-between;
}
button,
input,
select {
  font: inherit;
  border: 1px solid #a7b7ab;
  border-radius: 7px;
  color: inherit;
  background: #fff;
}
button {
  padding: 9px 15px;
  cursor: pointer;
  font-weight: 550;
}
button:hover {
  background: #eaf1e9;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
input:not([type="range"]),
select {
  height: 44px;
  padding: 6px 12px;
  min-width: 0;
}
label {
  font-size: 13px;
  font-weight: 650;
  display: grid;
  gap: 5px;
}
label input,
label select {
  font-size: 16px;
  font-weight: 450;
}
.filters {
  margin: 28px 0 18px;
  align-items: end;
  flex-wrap: wrap;
}
.filters select {
  width: clamp(170px, 27vw, 320px);
}
.filters button {
  margin-left: auto;
}
.player {
  background: #18372f;
  color: #f6fff7;
  padding: clamp(20px, 3vw, 36px);
  border-radius: 14px;
}
.playerhead {
  color: #bbcec3;
  font-size: 14px;
}
.playerhead time,
.axis,
.event time {
  font-variant-numeric: tabular-nums;
}
.playerhead time {
  color: #baf2bb;
  font-size: 22px;
}
.frame {
  min-height: 118px;
  display: flex;
  align-items: center;
  gap: 17px;
  overflow-wrap: anywhere;
}
.frame img {
  width: 48px;
  height: 48px;
}
.frame h2 {
  font-size: clamp(24px, 3.5vw, 41px);
  line-height: 1.13;
}
.frame p {
  color: #c6d7cc;
  margin-top: 4px;
}
.track {
  position: relative;
  height: 52px;
  background: #24493d;
  border-radius: 4px;
}
.track canvas,
.track input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}
.track input {
  opacity: 0;
  cursor: ew-resize;
}
.track:focus-within {
  outline: 2px solid #c3ffc4;
}
.axis {
  font-size: 12px;
  color: #c8d9cd;
  margin-top: 5px;
}
.transport {
  margin-top: 14px;
}
.transport button {
  background: #294b40;
  color: #fff;
  border-color: #5a7768;
  min-height: 40px;
}
.transport #play {
  background: #b9ecb8;
  color: #19382c;
  border: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}
.transport #prev,
.transport #next {
  font-size: 24px;
  line-height: 1;
  padding: 3px 13px;
}
.mode {
  margin-left: auto;
  color: #c1d4c6;
  font-size: 13px;
}
.listtitle {
  margin: 32px 0 12px;
}
.listtitle h2 {
  font-size: 26px;
}
.listtitle span,
#status {
  color: #495e51;
}
.event {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 83px 95px 1fr;
  gap: 14px;
  align-items: baseline;
  border: 0;
  border-top: 1px solid #d5dfd6;
  background: transparent;
  border-radius: 0;
  padding: 12px 8px;
  font-weight: 500;
}
.event small {
  color: #51695c;
}
.event span {
  overflow-wrap: anywhere;
}
.event em {
  display: block;
  font-style: normal;
  font-size: 14px;
  color: #475e50;
}
.event[aria-current="true"] {
  background: #e0efdf;
}
.empty {
  font-size: 16px;
  color: #485e51;
  padding: 14px 0;
}
#status {
  margin-top: 15px;
}
#login {
  max-width: 540px;
  margin: clamp(15px, 8vh, 90px) auto;
}
.login-rule {
  height: 4px;
  width: 56px;
  background: #2f7750;
  margin-bottom: 28px;
}
#login p {
  font-size: 18px;
  margin: 17px 0 26px;
  color: #4c6053;
}
#loginForm {
  display: grid;
  gap: 14px;
}
#loginForm label input {
  height: 48px;
}
.primary {
  background: #24543c;
  color: white;
  border-color: #24543c;
}
.primary:hover {
  background: #17422c;
}
#pairForm {
  padding: 20px;
  background: #e8eee6;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: end;
}
#pairForm a {
  color: #244c38;
  font-size: 14px;
}
output {
  display: block;
  color: #203f30;
}
.event:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid #4d8b61;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
::selection {
  background: #b7e3b3;
  color: #163926;
}
@media (max-width: 620px) {
  header {
    height: 61px;
  }
  main {
    padding-top: 27px;
  }
  .heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .filters {
    gap: 8px;
  }
  .filters label {
    flex: 1 1 140px;
  }
  .filters select {
    width: 100%;
  }
  .filters button {
    margin: 0;
  }
  .event {
    grid-template-columns: 68px 1fr;
    gap: 4px 10px;
  }
  .event small {
    grid-column: 2;
  }
  .event span {
    grid-column: 2;
  }
  .mode {
    display: none;
  }
  .frame {
    min-height: 134px;
  }
  .transport {
    gap: 8px;
  }
}
