.songs-page {
  caret-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.songs-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 8px 48px;
}

.songs-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.songs-header .learn-heading p {
  max-width: 34rem;
}

.songs-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: 1 1 240px;
  min-width: min(100%, 260px);
}

.songs-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 320px);
  padding: 10px 16px;
  border: 2px solid #d5e6f2;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 14px rgb(16 84 115 / 0.08);
}

.songs-search-icon {
  flex: none;
  color: #7a93a8;
}

.songs-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #234868;
  caret-color: #234868;
  user-select: text;
  -webkit-user-select: text;
}

.songs-search input::placeholder {
  color: #8aa0b4;
  font-weight: 700;
}

.songs-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.songs-chip {
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: #dff1fb;
  color: #2f5f82;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.songs-chip.is-active {
  background: #1f6fa8;
  color: #fff;
  box-shadow: 0 3px 0 #175a88;
}

.songs-layout {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.songs-cats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 12px;
  list-style: none;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 22px rgb(16 84 115 / 0.1);
}

.songs-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #234868;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.songs-cat-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #3d8bfd;
}

.songs-cat.is-active {
  background: #dff1fb;
  color: #145a8c;
}

.songs-cat.is-active .songs-cat-icon {
  color: #1f6fa8;
}

.songs-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.song-card {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) minmax(140px, 1.4fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 22px rgb(16 84 115 / 0.1);
}

.song-art {
  flex: none;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  font-size: 34px;
  line-height: 1;
  box-shadow: inset 0 -4px 0 rgb(0 0 0 / 0.08);
}

.song-art.is-star { background: linear-gradient(160deg, #ffe08a, #f6c445); }
.song-art.is-buns { background: linear-gradient(160deg, #ffd0b8, #f08a5a); }
.song-art.is-ode { background: linear-gradient(160deg, #c9e4ff, #6db3f2); }
.song-art.is-lamb { background: linear-gradient(160deg, #e8f7d8, #8fd16a); }
.song-art.is-jingle { background: linear-gradient(160deg, #ffd4d8, #ef6b78); }

.song-meta {
  min-width: 0;
}

.song-meta h2 {
  margin: 0;
  font-family: 'Baloo 2', cursive;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.15;
  color: #002b43;
}

.song-level {
  display: inline-flex;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.song-level.is-beginner {
  background: #d9f5e2;
  color: #1f8a4c;
}

.song-level.is-intermediate {
  background: #d7eaff;
  color: #1f6fa8;
}

.song-level.is-advanced {
  background: #eadcff;
  color: #6b3db5;
}

.song-staff {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  background: #f7fbff;
  border: 1.5px solid #d7e6f1;
}

.song-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.song-play {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #3aa7e0;
  color: #fff;
  box-shadow: 0 4px 0 #2b86b6;
  cursor: pointer;
}

.song-play:hover {
  background: #49b4ea;
}

.song-play svg {
  display: block;
  margin-left: 2px;
}

.song-fav {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #c45b6e;
  cursor: pointer;
}

.song-fav:hover {
  background: #ffe8ec;
}

@media (max-width: 900px) {
  .songs-layout {
    grid-template-columns: 1fr;
  }

  .songs-cats {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .songs-cat {
    flex: none;
    white-space: nowrap;
  }

  .song-card {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      'art meta actions'
      'staff staff staff';
  }

  .song-art { grid-area: art; }
  .song-meta { grid-area: meta; }
  .song-staff {
    grid-area: staff;
    max-width: none;
  }
  .song-actions { grid-area: actions; }
}

@media (max-width: 640px) {
  .songs-header {
    flex-direction: column;
  }

  .songs-tools {
    width: 100%;
    align-items: stretch;
  }

  .songs-search {
    width: 100%;
  }

  .songs-chips {
    justify-content: flex-start;
  }
}
