@font-face {
    font-family: 'Gilroy';
    src: url('fonts/Gilroy-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
	body {
		font-family: 'Gilroy', Arial, sans-serif;
        background-image: url('images/background.jpg'); 
		background-size: cover;
		background-position: center; 
		background-attachment: fixed;
		background-repeat: no-repeat; 
		background-color: #000; 
		text-align: center;
        margin: 0;
        padding: 0;
	}
	.logo {
		max-width: 500px;
		width: 85%;
		margin-bottom: 20px;
	}
	.slogan {
		max-width: 300px;
		width: 60%;
		margin-bottom: 20px;
	}
	footer {
		margin-top: 50px;
		position: relative;
		padding: 15px 0;
		text-align: center;
		z-index: 1000;
	}
	footer p {
		max-width: 880px; 
		width: 95%;
		margin: 0 auto; 
		font-size: 14px; 
		line-height: 1.5; 
		color: #fff; 
	}

        .player-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            margin-top: 50px;
        }
        #cover {
            width: 100px;
            height: 100px;
            background: gray;
            border-radius: 50%;
            background-size: cover;
            background-position: center;
            margin-bottom: 20px;
			border: 4px solid white;
			margin-top: 50px;		
        }
        #track-info {
            font-size: 24px;
            margin-bottom: 20px;
        }
        .controls {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        .volume-slider {
            width: 200px;
        }
        button {
            padding: 10px 20px;
            font-size: 16px;
            cursor: pointer;
        }
        .info {
            display: flex;
			flex-direction: column;
            justify-content: space-between;
            align-items: center;
            max-width: 500px;
			width: 90%;
            margin-bottom: 20px;
			color: #fff;
			min-height: 200px;
        }
        .artist-name {
            font-size: 24px;
			font-weight: bold;
			margin: 20px 0px 0px;
        }
		.track-name {
            font-size: 36px;
			margin: 5px 0px 0px;
        }
        .volume-controls {
            display: flex;
            align-items: center;
        }
        .volume-icon {
            font-size: 24px;
        }
        .volume-value {
            margin-left: 10px;
            font-size: 18px;
        }
		#radio-player, #track-info {
			display: none;
		}
		
/* Общий контейнер */
.slider-wrapper {
  display: flex;
  align-items: center;
  gap: 10px; /* Расстояние между элементами */
  max-width: 500px;
  width: 80%;
}

/* Значок громкости (изображение) */
.volume-icon {
  width: 20px; 
  height: 20px; 
  flex-shrink: 0;
  cursor: pointer;  
}


/* Контейнер для ползунка */
.slider-container {
  position: relative;
  flex-grow: 1; /* Ползунок занимает оставшееся пространство */
  height: 5px; /* Высота заполненной части */
}

/* Фоновая полоса (незаполненная часть) */
.slider-background {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px; /* Высота незаполненной части */
  background: #ffffff; /* Цвет незаполненной части */
  transform: translateY(-50%);
  z-index: 1;
}

/* Заполненная часть */
.slider-fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 5px; /* Высота заполненной части */
  background: #ffffff; /* Цвет заполненной части */
  transform: translateY(-50%);
  z-index: 2;
  width: 50%; /* Начальная ширина (можно изменить через JavaScript) */
}

/* Основной ползунок */
.volume-slider {
  -webkit-appearance: none; /* Отключаем стандартный вид ползунка */
  appearance: none;
  width: 100%; /* Ширина ползунка */
  height: 14px; /* Увеличиваем высоту интерактивной области */
  background: transparent; /* Прозрачный фон */
  outline: none; /* Убираем контур при фокусе */
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 3;
}

/* Убираем бегунок */
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none; /* Отключаем стандартный вид бегунка */
  appearance: none;
  width: 0; /* Делаем бегунок невидимым */
  height: 0;
  background: transparent;
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 0;
  height: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

.volume-value {
  font-size: 16px;
  color: #ffffff; 
  flex-shrink: 0; 
}

.info {
    position: relative;
    text-align: center;
}

#cover {
    background-size: cover;
    margin: 0 auto;
    position: relative;
}

.overlay-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    z-index: 10;
}
.hidden {
    display: none;
}

#initial-play {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  margin: 50px;
}

#initial-play img {
  width: 100px; /* или нужный размер */
  height: auto;  
}
   #cover {
	  will-change: opacity;
      cursor: pointer;
      position: relative;
      background-size: cover;
      background-position: center;
      display: none;
      opacity: 0;
      transition: background-image 0.5s ease-in-out, opacity 2s ease-in-out;
	  margin-top: 50px;
    }


#cover.paused::after {
	  content: ''; /* Оставляем content пустым, так как мы используем background-image */
	  display: block; /* Устанавливаем блочный тип для корректного отображения */
	  width: 48px; /* Задаем ширину изображения */
	  height: 48px; /* Задаем высоту изображения */
	  background-image: url('images/pause.png'); /* Указываем путь к изображению */
	  background-size: cover; /* Масштабируем изображение, чтобы оно полностью заполнило элемент */
	  background-repeat: no-repeat; /* Отключаем повторение изображения */
	  background-position: center; /* Центрируем изображение внутри элемента */
	  position: absolute;
	  top: 50%;
	  left: 50%;
	  transform: translate(-50%, -50%);
}

    .artist-name, .track-name {
      display: none;
    }

    #initial-play {
      padding: 12px 24px;
      font-size: 20px;
      cursor: pointer;
    }
#initial-play, #cover {
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0px #fff);
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px #fff);
  }
}	
@media (max-width: 768px) {
    footer p {
		font-size: 10px;

	}
    footer {
		margin-top: 50px;
		position: relative;
	}
}
@media (min-width: 768px) {
#cover:hover::after {
	  content: ''; 
	  display: block; 
	  width: 48px; 
	  height: 48px; 
	  background-image: url('images/pause.png'); 
	  background-size: cover; 
	  background-repeat: no-repeat; 
	  background-position: center; 
	  position: absolute;
	  top: 50%;
	  left: 50%;
	  transform: translate(-50%, -50%);
}
}		
@media (min-width: 768px) and (max-width: 1200px) {
	.logo {
		max-width: 300px;
		width: 85%;
		margin-bottom: 20px;
	}
	.slogan {
		max-width: 200px;
		width: 60%;
		margin-bottom: 20px;
	}
	#cover {
		margin-top: 20px;
	}
	footer p {
		font-size: 10px;

	}
    footer {
		margin-top: 50px;
		position: relative;
	}
}	




