@-webkit-keyframes pulse {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0.2;
  }
}
@keyframes pulse {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0.2;
  }
}
.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.actions {
  bottom: 0;
  display: none;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 6em var(--small-space) var(--small-space) var(--small-space);
  pointer-events: none;
  position: fixed;
  width: 100%;
  z-index: 10;
}
@media screen and (min-width: 640px) {
  .actions {
    display: grid;
  }
}
@media screen and (min-width: 1024px) {
  .actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.actions.has-opacity {
  background: linear-gradient(0deg, white 0%, rgba(255, 255, 255, 0.9) 66%, rgba(255, 255, 255, 0) 100%);
}
.actions a,
.actions li,
.actions p {
  pointer-events: auto;
}
.actions .pages {
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  align-items: flex-start;
  justify-content: flex-end;
}
@media screen and (min-width: 1024px) {
  .actions .pages {
    grid-column: span 3;
  }
}
.actions .pages ul {
  list-style-type: none;
  padding-left: 0;
}
.actions .pages ul li.is-open span {
  animation: pulse 2s linear infinite alternate-reverse;
}
.actions .pages ul li.is-open:before {
  background-color: #000;
  border: 1px solid;
  content: "";
  display: inline-block;
  height: calc(1em - 2px);
  margin-bottom: -0.2em;
  margin-right: 0.25em;
  width: calc(1em - 2px);
}
.actions .filters {
  list-style-type: none;
  padding-left: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.actions .filters li {
  cursor: pointer;
  transition: margin-left 0.3s ease;
}
.actions .filters li:before {
  background-color: #000;
  content: "";
  display: inline-block;
  height: 1em;
  left: 0;
  margin-top: 0.1em;
  opacity: 0;
  position: absolute;
  transition: opacity 0.3s ease;
  width: 1em;
}
.actions .filters li.is-active {
  margin-left: 1.5em;
}
.actions .filters li.is-active span {
  animation: pulse 2s linear infinite alternate-reverse;
}
.actions .filters li.is-active:before {
  opacity: 1;
}

.container.is-hidden,
.list.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.timeline-line {
  border-left: 1px solid red;
  height: 100vh;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  transition: opacity 0.3s ease;
  z-index: 12;
}
@media (pointer: fine) {
  .timeline-line.is-visible {
    opacity: 1;
  }
}

.container {
  bottom: 0;
  left: 0;
  max-width: 100vw;
  overflow: hidden;
  position: fixed;
  right: 0;
  top: 0;
  transition: opacity 0.3s ease;
}
.container .shape-wrapper {
  height: 2em;
  left: 0;
  position: fixed;
  top: 0;
  width: 2em;
  z-index: 15;
}

.list {
  gap: 0 10px;
  grid-template-columns: 1fr 1fr 50px;
  margin: 0 var(--small-space) 10em var(--small-space);
  position: relative;
  transition: opacity 0.3s ease;
  overflow: hidden;
}
@media screen and (min-width: 640px) {
  .list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media screen and (min-width: 1024px) {
  .list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.list .list-item-wrapper {
  display: flex;
  grid-column: span 2;
  justify-content: flex-start;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media screen and (min-width: 640px) {
  .list .list-item-wrapper {
    grid-column: span 2;
  }
}
@media screen and (min-width: 1024px) {
  .list .list-item-wrapper {
    grid-column: span 3;
  }
}
.list .list-item {
  cursor: pointer;
  display: flex;
  justify-content: flex-start;
  max-width: 100%;
}
.list .list-item > * {
  display: inline-block;
  white-space: nowrap;
  pointer-events: none;
}
.list .list-item .shape-wrapper {
  padding: 0.25em 0.5em;
}
.list .list-item .track-info {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.shape-wrapper {
  padding: 0.5em;
}
.shape-wrapper > * {
  flex: 0;
}

.track-clickable {
  cursor: pointer;
}
.track-clickable.is-active .shape {
  -webkit-clip-path: polygon(0 0, 100% calc(50%), 100% calc(50%), 0% 100%) !important;
          clip-path: polygon(0 0, 100% calc(50%), 100% calc(50%), 0% 100%) !important;
  background-color: #000;
}
.track-clickable:hover .shape {
  -webkit-clip-path: polygon(0 0, 100% calc(50% - 0.5px), 100% calc(50% + 0.5px), 0% 105%);
          clip-path: polygon(0 0, 100% calc(50% - 0.5px), 100% calc(50% + 0.5px), 0% 105%);
}
.track-clickable:hover .shape div:nth-child(1) {
  transform: skew(0deg, 25.3deg);
  margin-top: calc(0.25em);
}
.track-clickable:hover .shape div:nth-child(2) {
  height: 0;
  margin-top: 0.5em;
}
.track-clickable:hover .shape div:nth-child(3) {
  transform: skew(0deg, -25.3deg);
  margin-top: calc(0.75em - 1px);
}
.track-clickable:hover .shape div:nth-child(4) {
  height: calc(1em - 2px);
  margin-top: 1px;
}
.track-clickable.is-weird .shape {
  background: linear-gradient(to right, #fff, #f5ff00 50%, #fff);
  width: 3em;
}
.track-clickable.is-weird .shape div {
  border-color: transparent;
}

.shape {
  height: 1em;
  width: 1em;
  min-width: 1em;
  color: inherit;
  overflow: hidden;
  transition: background-color 0.2s ease, -webkit-clip-path 0.2s ease;
  transition: clip-path 0.2s ease, background-color 0.2s ease;
  transition: clip-path 0.2s ease, background-color 0.2s ease, -webkit-clip-path 0.2s ease;
  pointer-events: none;
}
.shape:hover {
  cursor: pointer;
}
.shape > div {
  position: absolute;
  transition: transform 0.2s ease;
}
.shape div:nth-child(1) {
  border-bottom: 1px solid;
  transition: transform 0.2s ease, margin-top 0.2s ease;
  width: 1em;
  margin-top: 0;
}
.shape div:nth-child(2) {
  border-left: 1px solid;
  height: 1em;
  margin-left: calc(1em - 1px);
  transition: margin 0.2s ease, height 0.2s ease;
}
.shape div:nth-child(3) {
  border-top: 1px solid;
  margin-top: calc(1em - 1px);
  transition: transform 0.2s ease, margin-top 0.2s ease;
  width: 1em;
}
.shape div:nth-child(4) {
  border-left: 1px solid;
  height: 1em;
  margin-left: 0;
  transition: margin 0.2s ease, height 0.2s ease;
}

.reset-filters {
  bottom: 0;
  opacity: 0;
  padding: var(--small-space);
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 10;
}
.reset-filters.is-visible {
  opacity: 1;
  pointer-events: all;
}
@media screen and (min-width: 640px) {
  .reset-filters {
    display: none;
  }
}

.switch-wrapper {
  bottom: 0;
  display: flex;
  opacity: 0;
  padding: var(--small-space);
  pointer-events: none;
  position: absolute;
  z-index: 10;
}
.switch-wrapper ul {
  list-style-type: none;
  padding-left: 0;
  display: flex;
}
.switch-wrapper ul > * {
  margin-right: 1em;
}
.switch-wrapper.is-visible {
  opacity: 1;
  pointer-events: all;
}
@media screen and (min-width: 640px) {
  .switch-wrapper {
    display: none;
  }
}
