/* Общие стили для всего тела страницы */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f0f0f0; /* светлый фон */
  color: #333; /* цвет текста */
}

/* Шапка сайта */
.header {
  background-color: #222;
  color: #fff;
  padding: 20px;
  border-radius: 10px;
}

.container_header1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
a{
  color: inherit;
  text-decoration: none;
}
.header_text1 {
  font-size: 24px;
  margin: 0;
}

.header_list {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}

.header_item {
  cursor: pointer;
  font-size: 16px;

}

.header_item:hover {
  text-decoration: underline;
}

/* Заголовок и подзаголовок в шапке */
.container_header2 {
  max-width: 1200px;
  margin: 20px auto;
  text-align: center;
}

.header_title2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.header_text2 {
  font-size: 16px;
}

/* Основной контент */
.main {
  padding: 20px;
  background-color: #fff;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.main_title2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
}

/* Контейнер для избранных треков */
#favorites-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Для каждого трека */
.favorite_track {
  background-color: #fafafa;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color:#222 ;
  color: #fff;

}

/* Заголовок трека */
.favorite_track h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
  text-align: center;
}

/* Аудио элемент */
.favorite_track audio {
  width: 100%;
  max-width: 400px;
  margin-bottom: 10px;
}

/* Кнопка "Удалить" */
.delete-btn {
  padding: 8px 12px;
  background-color: #d33;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
  margin-top: 10px;
}

.delete-btn:hover {
  background-color: #b22;
}

/* Стиль ссылки "Назад" */
a.back-link {
  display: inline-block;
  margin-top: 20px;
  text-decoration: none;
  font-size: 16px;
  color: #333;
}

a.back-link:hover {
  text-decoration: underline;
}









/* Подвал сайта */
.footer {
  background-color: #222;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  margin-top: 40px;
  border-radius: 10px;
}

.footer_list {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.btn_footer {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  font-family: inherit;
  padding: 5px;
  transition: opacity 0.3s;
}

.btn_footer:hover {
  opacity: 0.7;
}

.footer_img {
  width: 45px;
  height: 45px;
  margin-bottom: 5px;
  border-radius: 5px;
}

/* Текст под иконками в футере */
.footer_text1 {
  font-size: 14px;
  text-align: center;
  margin: 0;
}




@media (max-width: 768px) {
  .header{
    height: 100px;
    font-size: 9px;
  }
  .header_list{
    display: inline;
    padding: 5px;
    text-align: center;
  }
  .header_item{
    font-size: 11px;
  }
  .header_title2{
    font-size: 9px;
  }
  .header_text2{
    font-size: 8px;
  }
  .header_text1{
    font-size: 11px;
  }
  .main_title2{
    margin-left: 4%;
    font-size: 15px;
  }
  .btn_like{
    background-color: #1d1d1d;
    color: #fff;
    border-radius: 8px;
    width: 30%;
    margin-left: 33%;
  }
  .favorites_container{
    width: 100%;
    max-width: 100%;
    font-size: 8px;
  }


}  