:root {
  --pr-gradient: linear-gradient(to right, #d78dd2, #b999ee, #9da5e9, #8fa9f0);
  --tracklistAltRowColor: hsla(0, 0%, 100%, 0.015);
  --tracklistHoverColor: hsla(0, 0%, 100%, 0.06);
}

#player-wrapper {
  position: -webkit-sticky;
  position: sticky;
  top: var(--pico-block-spacing-vertical);
}

footer {
  text-align: center;
}

#service-from-results {
  width: fit-content;
}

.fw-normal {
  font-weight: normal;
}

.fl-row-btw {
  display: flex;
  justify-content: space-between;
}

.thick {
  font-weight: bold;
}

.text-muted {
  color: var(--pico-muted-color);
}

.margin-0 {
  margin: 0;
}

#history details[open] > summary {
  margin: 0;
}

#history details summary {
  padding: var(--pico-typography-spacing-vertical) 0;
}

#history details summary::after {
  background-image: none;
}

#history details[open] > summary .bro::after {
  transform: rotate(0);
}

#history details summary .bro::after {
  width: 1rem;
  height: 1rem;
  margin-inline-start: calc(var(--pico-spacing, 1rem) * 0.5);
  float: right;
  transform: rotate(-90deg);
  background-image: var(--pico-icon-chevron);
  background-position: right center;
  background-size: 1rem auto;
  background-repeat: no-repeat;
  content: "";
  transition: transform var(--pico-transition);
}

#history details summary:focus:not([role]) {
  color: inherit;
}

.bro {
  float: right;
}

#cancel-button {
  float: right;
  text-decoration: none;
  border-bottom: none;
  cursor: pointer;
}

.view-history {
  text-decoration: none;
}

nav {
  padding: 16px 0;
}

nav a {
  text-decoration: none;
  display: flex;
  align-items: center;
}

nav a:nth-child(1) {
  font-size: 24px;
  font-weight: 700;
}

.gradient-text {
  background: var(--pr-gradient);
  background-clip: text;
  color: transparent;
}

.history-nav-link:hover {
  text-decoration: #b999ee wavy underline;
  text-underline-offset: 6px;
}

h2 svg {
  width: 32px;
  height: 32px;
  margin-left: 4px;
}

#search-form > fieldset > button {
  width: 64px;
  padding: 0 4px;
}

.gradient {
  background: var(--pr-gradient);
}

#start-creating {
  border: transparent;
}

nav h2 {
  margin-top: 16px;
}

.sp-track,
.yt-video {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 16px;
  column-gap: 4px;
  border-color: transparent;
}

.track-title {
  text-align: left;
}

iframe#player {
  width: 100%;
  aspect-ratio: 16/9;
}

iframe#spotify-player {
  border-radius: 12px;
}

.service-select {
  width: auto;
}

.track-btn-wrapper {
  border-radius: var(--pico-border-radius);
}

.track-btn-wrapper:hover {
  background-color: var(--pico-code-background-color);
}

.track-btn-wrapper:nth-child(odd) {
  background-color: var(--pico-table-row-stripped-background-color);
}

.track.outline {
  color: var(--pico-h2-color);
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
  section:nth-child(1) {
    order: 2;
  }
  secition:nth-child(2) {
    order: 1;
  }
}

@media (max-width: 400px) {
  .fl-row-btw {
    flex-direction: column;
  }

  #service-from-results {
    margin-top: 8px;
  }
}
