body {
  font-family: 'Montserrat', sans-serif;
  /*background-color: #F5F7FA;*/
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 10px;
  font-family: 'DM Sans', sans-serif;
  transition: background .4s ease-in;
  background-color: #c394f8;
  
  &.blue {
    background-color: #428aa6;
  }
}

/* Main Section */
.main-container{
  text-align: center;
  justify-content: center;
  display: flex;
  flex-direction: row-reverse;
  width: 90%;
  background-color: #fff;
  margin: 20px auto;
  box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.2);
}


table{
    width: 100%;
    border-spacing: 10px;
    margin: 10px 10px 10px 10px;
    border: 0;
}

td, th, tr {
  border: 10px;
  border-spacing: 10px;
}

/* картинка на странице */
.minimized {
  /* width: 570px; */
  display: table-cell;
  width: 100%;
  cursor: pointer;
  /*margin-bottom: 10px;*/
  vertical-align: middle;
  /* margin: 20px 20px 20px 20px; */
  box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.2);
}
.minimized:hover {
  box-shadow: 0px 0px 20px rgb(2, 230, 21);
}
/* увеличенная картинка */
#magnify {
  display: none;
  position: fixed;
  max-width: 800px;
  height: auto;
  z-index: 9999;
}
#magnify img {
  width: 100%;
}

/* Иконка лупы на карточке */
.magnifier-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color 0.3s ease;
}

.card:hover .magnifier-icon {
  color: rgba(255, 255, 255, 1);
}
/* затемняющий фон */
#overlay {
  display: none;
  background: #000;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  opacity: 0.5;
  z-index: 9990;
}
/* кнопка закрытия */
#close-popup {
  width: 30px;
  height: 30px;
  background: #FFFFFF;
  border: 1px solid #AFAFAF;
  border-radius: 15px;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 15px;
}
#close-popup i {
  width: 30px;
  height: 30px;
  background: url(https://codernote.ru/files/cross.png) no-repeat center center;
  background-size: 16px 16px;
  display: block;
}
@keyframes rota {
 25% { transform: rotate(360deg); }
}
#close-popup:hover {
  animation: rota 4s infinite normal;
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1;
}

/*стили блоков с слайдами*/
@import url("https://fonts.googleapis.com/css?family=DM+Sans:400,500,700&display=swap");

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

input[type=radio] {
  display: none;
}

.card {
  position: absolute;
  width: 70%;
  height: 100%;
  left: 0;
  right: 0;
  margin: auto;
  transition: transform .4s ease, box-shadow .3s ease;
  cursor: pointer;
}

.card.zoomed {
  transform: scale(1.2);
  z-index: 2;
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.3);
}

.card .zoom-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.card .zoom-icon::before {
  content: "🔍"; /* Иконка лупы */
  color: white;
  font-size: 18px;
}

.card:hover .zoom-icon {
  background: rgba(0, 0, 0, 0.7);
}

/* Увеличение изображения */
.card.minimized {
  transform: scale(1.2);
  z-index: 2;
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.3);
}

/* Отключаем увеличение на мобильных */
@media (max-width: 768px) {
  .card.minimized {
      transform: none;
  }
}

.container {
  width: 100%;
  max-width: 450px;
  max-height: 1000px;
  height: auto; /*height: 100%;*/
  transform-style: preserve-3d;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  margin: 2vh auto; /* Добавляем отступы сверху и снизу */
  padding: 20px 0; /* Дополнительный отступ */
}

.cards {
  position: relative;
  width: 100%;
  height: 80vh; /* Ограничиваем высоту для лучшего размещения */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;

}

img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  /*object-fit: contain; /* Позволяет изображению вписываться в блок без обрезки */

  object-fit: cover;
}

@media screen and (max-width: 768px) {
  .cards {
    height: 60vh; /* Ограничиваем высоту блока слайдов */
  }
  img {
    width: 100%; /* Делаем изображение шире контейнера */
    height: auto;
    object-fit: cover; /* Оставляем заполнение контейнера */
  }
}

#item-1:checked ~ .cards #song-3, #item-2:checked ~ .cards #song-1, #item-3:checked ~ .cards #song-2 {
  transform: translatex(-70%) scale(.8);
  opacity: .4;
  z-index: 0;
}

#item-1:checked ~ .cards #song-2, #item-2:checked ~ .cards #song-3, #item-3:checked ~ .cards #song-1 {
  transform: translatex(70%) scale(.8);
  opacity: .4;
  z-index: 0;
}

#item-1:checked ~ .cards #song-1, #item-2:checked ~ .cards #song-2, #item-3:checked ~ .cards #song-3 {
  transform: translatex(0) scale(1);
  opacity: 1;
  z-index: 1;
  
  img {
    box-shadow: 0px 0px 5px 0px rgba(81, 81, 81, 0.47);
  }
}

.player {
  background-color: #fff;
  border-radius: 8px;
  min-width: 320px;
  padding: 8px 10px;
  margin-top: 10px; /* Добавляем отступ сверху */
  
}

.upper-part {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  height: 36px;
  overflow: hidden;
}

.play-icon{ margin-right: 10px; }

.song-info {
  width: calc(100% - 32px);
  display: block;
}

.song-info .title {
  color: #403d40;
  font-size: 14px;
  line-height: 24px;
}

.sub-line {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.subtitle, .time {
  font-size: 12px;
  line-height: 16px;
  color: #c6c5c6;
}

.time {
  font-size: 12px;
  line-height: 16px;
  color: #a5a5a5;
  font-weight: 500;
  margin-left: auto;
}

.progress-bar {
  height: 3px;
  width: 100%;
  background-color: #e9efff;
  border-radius: 2px;
  overflow: hidden;
}

.progress {
  display: block;
  position: relative;
  width: 60%;
  height: 100%;
  background-color: #2992dc;
  border-radius: 6px;
}

.info-area {
  width: 100%;
  position: absolute;
  top: 0;
  left: 30px;
  transition: transform .4s ease-in;
}

#item-2:checked ~ .player #test {
  transform: translateY(0);
}

#item-2:checked ~ .player #test  {
  transform: translateY(-40px);
}

#item-3:checked ~ .player #test  {
  transform: translateY(-80px);
}