body.night-theme .album {
  transition: all 0.2s;
  background-color: #272727;
  box-shadow: 0px 2px 8px 0px rgb(60, 60, 60);
  border: solid 1px #323232;
  color: #d4d4d4;
}
@media screen and (min-width: 525px){
    .album {
          margin: 15px;
    }
}
.album {
  max-width: 170px;
  transition: all 0.2s;
  border-radius: 5px;
  background-color: rgba(242, 242, 242, 0);
  box-shadow: 0px 2px 4px 0px rgb(43, 36, 43);
  height: fit-content;
}
.album_photo {
  width: 152px;
  border-radius: 5px 5px 0px 0px;
  transform: scale(1.11);
  top: 10px;
  position: relative;
}
h2 {
  width: fit-content;
  font-size: 18px;
  text-decoration: none;
}
.h1, h2, h3, h4, pre {
  -ms-user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}
h1, h2 {
  font-family: Pompadur, 'site', cursive;
}
a {
  color: rgb(43, 36, 43);
}
  .album>a:hover{  
  color: var(--main-color);
  transform: scale(1.15);
}
  .album:hover{
  transition: 0.2s;
  transition-property: all;
  transform: scale(1.1);
}
  .album>a>img:hover{ 
  transition: 0.2s;
  transform: scale(1.12);
}
body.night-theme .album {
  transition: all 0.2s;
  background-color: #272727;
  box-shadow: 0px 2px 8px 0px rgb(60, 60, 60);
  border: solid 1px #323232;
  color: #d4d4d4;
}
body.night-theme .album {
  transition: all 0.2s;
  background-color: #272727;
  box-shadow: 0px 2px 4px 0px rgb(60, 60, 60);
  border: solid 1px #323232;
  color: var(--main-color);
  width: 152px;
}
body.night-theme a{
  text-decoration: none;
  color: #d4d4d4;
}
body.night-theme .album>a:hover{  
  color: var(--main-color);
  transform: scale(1.15);
}
.playlist_album {
  display: flex;
  justify-content: center;
}


.playlist_album {
    display: flex;
    flex-wrap: wrap; /* Разрешаем перенос на новую строку */
    justify-content: center;
    gap: 20px; /* Отступ между альбомами */
    margin: 20px 0;
}

.album {
    flex: 0 0 calc(33.333% - 20px); /* 3 в ряд на десктопе */
    max-width: 170px;
    transition: all 0.2s;
    border-radius: 5px;
    background-color: rgba(242, 242, 242, 0);
    box-shadow: 0px 2px 4px 0px rgb(43, 36, 43);
    height: fit-content;
    margin: 10px;
}

/* Адаптивность для планшетов */
@media (max-width: 768px) {
    .album {
        flex: 0 0 calc(50% - 20px); /* 2 в ряд */
    }
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .album {
        flex: 0 0 calc(100% - 20px); /* 1 в ряд */
        max-width: 152px;
    }
    
    .playlist_album {
        gap: 15px;
    }
}

/* Убираем фиксированную высоту у контейнера */
.playlist_album_all {
    padding: 0 10px;
}