section.table {
  max-width: 700px;
  margin: 0 auto;
}

.sub__navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.sub__navigation .btn:hover,
.sub__navigation .btn.active {
  background: var(--contrast);
  color: var(--base);
}

table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 0.5rem;
}

table thead tr th {
  visibility: hidden;
  background: var(--subtle);
  padding: 0.25rem 0.5rem;
}

td,
th {
  text-align: left;
}

td {
  padding: 0.5rem 0;
}

table tbody tr {
  border-bottom: 1px solid var(--subtle);
}

td.place {
  width: 50px;
  height: 50px;
  position: relative;
}

td.place p {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  color: var(--shade);
  font-size: 1.5rem;
  padding: 0.25rem;
}

td.place .position {
  position: absolute;
  bottom: 1rem;
  left: 0;
  background: var(--subtle);
  border-radius: 0.5rem;
  height: auto;
  width: auto;
  padding: 0 0.5rem;
  font-size: 0.625rem;
  z-index: 10;
}

td .song__artist,
td .song__name,
td .mobile-album {
  margin-left: 1rem;
}

.song__artist {
  font-style: italic;
  color: var(--tint);
}

.song .mobile-album {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--tint);
  margin-top: 0.25rem;
}

td.released,
td.album,
th.released,
th.album {
  text-align: left;
}

td.album {
  visibility: hidden;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  margin-left: 3rem;
  margin-bottom: 4rem;
}

.pagination a {
  color: var(--tint);
  &:hover {
    color: var(--contrast);
  }
}

.pagination a.active {
  color: var(--contrast);
}

.liked {
  display: none;
}

td label svg {
  min-width: 16px;
  max-width: 24px;
  cursor: pointer;
  &:hover {
    transform: scale(1.2);
  }
}

td input:checked + label svg {
  fill: currentColor;
}

@media only screen and (min-width: 64rem) {
  table thead tr th {
    visibility: visible;
  }
  td.album {
    visibility: visible;
    align-items: center;
    justify-content: center;
    height: 80px;
  }

  td.released,
  td.album,
  th.released,
  th.album {
    text-align: left;
  }

  .song .mobile-album {
    display: none;
  }
  td.place .position {
    left: inherit;
    right: 0;
    bottom: 0.5rem;
  }
}
