@font-face {
  font-family: 'Arial-MT';
  src: url("../assets/fonts/Arial-MT.woff"); /* Путь к файлу со шрифтом */
}

html {
  -webkit-tap-highlight-color: transparent;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-width: 480px;
  min-height: 100vh;
  font-family: 'Arial', sans-serif;
  font-size: 16px;
  color: #fff;
  text-align: center;
  background: url("") center/cover, rgba(0, 0, 0, 0.5);
  background-blend-mode: multiply;
  transition: background-image 1s ease-in-out;
  background-size: cover;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  height: 30vh;
  min-height: 220px;  
  padding: 20px;
}

.player {
  display: flex;
  flex-wrap: wrap;
  column-gap: 5px;
  align-items: center;
  max-width: 500px;
  margin-right: 20px;
}

.main-control-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.main-control-panel > * {
  flex: 1;
}

.player-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
  width: 120px;
}

@media (max-width: 550px) {

  .player-controls {
    gap: 0;
  }

}

.track-time {
  display: flex;
  justify-content: center;
  height: 18px;
  gap: 4px;
  margin-left: auto;
}

.duration {
  cursor: pointer;
}

.play-list {
  position: relative;
  text-align: left;
  overflow-y: auto;
  height: 115px;
  margin-top: 5px;
  padding-right: 5px;
  width: 100%;
  /*-webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);*/
}

/*.play-list::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  right: 8px; /* Добавляем отступ справа на ширину полосы прокрутки, если она есть */
  /*height: 30px; /* Высота псевдоэлемента равна высоте скрытых элементов списка */
 /* background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%); /* Градиентный фон с прозрачностью */
  
/*}*/

.play-list::-webkit-scrollbar {
  width: 5px;
}

.play-list::-webkit-scrollbar-track {
  background-color: rgba(255, 255, 255, 0.400);
  border-radius: 3px;
}

.play-list::-webkit-scrollbar-thumb {
  background: linear-gradient(0deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255, 1) 50%, rgba(255,255,255,0.8) 100%);
  border-radius: 2px;
}

.play-item {
  position: relative;
  padding: 5px;
  padding-left: 20px;
  list-style: none;
  opacity: .8;
  cursor: pointer;
  transition: .3s;
  margin-left: 5px;
}

.play-item:hover {
  opacity: 1;
}

.play-item::before {
  content: url("../assets/svg/tiny-play.svg");
  position: absolute;
  left: -10px;
  top: -4px;
}

.stop::before {
  content: url("../assets/svg/tiny-stop.svg");
}

.item-active {
  opacity: 1;
}

.player-icon,
.slider-icon,
.change-quote {
  width: 32px;
  height: 32px;
  background-size: 32px 32px;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: transparent;
  border: 0;
  outline: 0;
  opacity: .8;
  cursor: pointer;
  transition: .3s;  
}

.player-icon:hover,
.slider-icon:hover,
.change-quote:hover {
  opacity: 1;
}

.player-icon:active,
.slider-icon:active,
.change-quote:active {
  border: 0;
  outline: 0;  
  transform: scale(1.1);
}

.play {
  width: 40px;
  height: 40px;
  background-size: 40px 40px;
  background-image: url("../assets/svg/play.svg");
}

.pause {
  background-image: url("../assets/svg/pause.svg");
}

.play-prev {
  background-image: url("../assets/svg/play-prev.svg");
}

.play-next {
  background-image: url("../assets/svg/play-next.svg");
}

.track {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 500px;
  gap: 5px;
  margin: 10px 0;
}

.track-name {
  height: 20px;
  overflow: hidden;
}

input[type=range].styled-slider {
  height: 10px;
  max-width: 100%;
  background: transparent;
  -webkit-appearance: none;
  cursor: pointer;
}

input[type=range].styled-slider:focus {
  outline: none;
}

/*progress support*/
input[type=range].styled-slider.slider-progress {
  --range: calc(var(--max) - var(--min));
  --ratio: calc((var(--value) - var(--min)) / var(--range));
  --sx: calc(0.5 * 15px + var(--ratio) * (100% - 15px));
}

/*webkit*/
input[type=range].styled-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 16px;
  background: #5981A900;
  border: 3px solid #FFFFFFE6;
  box-shadow: 0 0 2px #000000;
  margin-top: calc(5px * 0.5 - max(15px * 0.5,3px));
}

input[type=range].styled-slider.music-bar::-webkit-slider-thumb {
  width: 0;
  height: 0;
  border-radius: 16px;
  background: #5981A900;
  border: 0px solid #FFFFFFE6;
  box-shadow: 0 0 2px #000000;
  margin-top: calc(17px * 0.5 - max(15px * 0.5,3px));
  transform: translateX(0/var(--sx));
  transition: 0.12s, border 0.12s, margin-top 0.08s;
}

input[type=range].styled-slider.music-bar:hover::-webkit-slider-thumb {
  width: 15px;
  height: 15px;
  border-radius: 16px;
  background: #5981A900;
  border: 3px solid #FFFFFFE6;
  box-shadow: 0 0 2px #000000;
  margin-top: calc(5px * 0.5 - max(15px * 0.5,3px));
  transform: translateX(0);
  transition: 0.12s, border 0.04s, margin-top 0.16s;
}

input[type=range].styled-slider::-webkit-slider-runnable-track {
  height: 4px;
  border: none;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.400);
  box-shadow: none;
  transition: height 0.1s;
}

input[type=range].styled-slider.music-bar:hover::-webkit-slider-runnable-track {
  height: 6px;
}

input[type=range].styled-slider.slider-progress::-webkit-slider-runnable-track {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.800) calc(100% - 5px),rgba(255, 0, 0, 0) calc(100% - 5px)) 0/var(--sx) 100% no-repeat, rgba(255, 255, 255, 0.400);
}

input[type=range].styled-slider.music-bar.slider-progress::-webkit-slider-runnable-track {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.800) calc(100%),rgba(255, 0, 0, 0) calc(100% - 5px)) 0/var(--sx) 100% no-repeat, rgba(255, 255, 255, 0.400);
}

input[type=range].styled-slider.music-bar.slider-progress:hover::-webkit-slider-runnable-track {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.800) calc(100% - 5px),rgba(255, 0, 0, 0) calc(100% - 5px)) 0/var(--sx) 100% no-repeat, rgba(255, 255, 255, 0.400);
}

/*mozilla*/
input[type=range].styled-slider::-moz-range-thumb {
  width: max(calc(15px - 3px - 3px),0px);
  height: max(calc(15px - 3px - 3px),0px);
  border-radius: 16px;
  background: #5981A900;
  border: 3px solid #FFFFFFE6;
  box-shadow: 0 0 2px #000000;
}

input[type=range].styled-slider::-moz-range-track {
  height: 5px;
  border: none;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.400);
  box-shadow: none;
}

input[type=range].styled-slider.slider-progress::-moz-range-track {
  background: linear-gradient(#31C028,#31C028) 0/var(--sx) 100% no-repeat, rgba(255, 255, 255, 0.400);
}

/*ms*/
input[type=range].styled-slider::-ms-fill-upper {
  background: transparent;
  border-color: transparent;
}

input[type=range].styled-slider::-ms-fill-lower {
  background: transparent;
  border-color: transparent;
}

input[type=range].styled-slider::-ms-thumb {
  width: 15px;
  height: 15px;
  border-radius: 16px;
  background: #5981A900;
  border: 3px solid #FFFFFFE6;
  box-shadow: 0 0 2px #000000;
  margin-top: 0;
  box-sizing: border-box;
}

input[type=range].styled-slider::-ms-track {
  height: 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.400);
  border: none;
  box-shadow: none;
  box-sizing: border-box;
}

input[type=range].styled-slider.slider-progress::-ms-fill-lower {
  height: 5px;
  border-radius: 5px 0 0 5px;
  background: #31C028;
  border: none;
  border-right-width: 0;
}

.volume {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
}

.sound-icon-container {
  display: flex;
  width: 27px;
}

.sound {
  cursor: pointer;
  opacity: 0.8;
  max-height: 24px;
  max-width: 30px;
}

input[type=range].sound-bar {
  max-width: 130px;
  width: 100%;
}

.player-info {
  cursor: pointer;
  opacity: 0.8;
  position: absolute;
  right: 0;
}

@media (max-width: 650px) {
  
  .player-info {
    top: -17px;
  }

}

.help-info {
  opacity: 0.85;
  position: absolute;
  z-index: 5;
  background: #000000;
  width: 500px;
  display: none;
  top: 50px;
  text-align: left;
  padding: 10px;
  border-radius: 15px;
  border: none;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.800);
}

.help-info li {
  margin: 5px 0 5px 15px;
}

.weather {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  row-gap: 5px;
  width: 180px;
  min-height: 180px;  
  text-align: left;
}

.weather-error {
  margin-top: -10px;
}

.description-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  column-gap: 12px;
}

.weather-icon {
  font-size: 44px;
}

.city {
  width: 170px;
  height: 34px;
  padding: 5px;
  font-size: 20px;
  line-height: 24px;
  color: #fff;  
  border: 0;
  outline: 0;
  border-bottom: 1px solid #fff;
  background-color: transparent;
}

.city::placeholder {  
  font-size: 20px;
  color: #fff;
  opacity: .6;
}

.main {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 40vh;
  min-height: 260px;  
  padding: 20px;
}

.slider-icon {
  position: absolute;
  top: 50%;
  margin-top: -16px;
  cursor: pointer;
}

.slide-prev {
  left: 20px;
  background-image: url("../assets/svg/slider-prev.svg");
}

.slide-next {
  right: 20px;
  background-image: url("../assets/svg/slider-next.svg");
}

.time {
  min-height: 124px;
  margin-bottom: 10px;
  font-family: 'Arial-MT';
  font-size: 100px;
  letter-spacing: -4px;  
}

.date {
  min-height: 28px;
  font-size: 24px;
  margin-bottom: 20px;
}

.greeting-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: stretch;
  align-items: center;
  min-height: 48px;
  width: 100vw;
  font-size: 40px;
}

.greeting {
  flex: 1;  
  padding: 10px;
  text-align: right;
}

.name {
  flex: 1;
  max-width: 50%;
  padding: 10px;
  font-size: 40px;
  text-align: left;
  color: #fff;
  background-color: transparent;
  border: 0;
  outline: 0;
}

.name::placeholder {
  color: #fff;
  opacity: .6;
}

.footer {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  height: 30vh;
  min-height: 160px;  
  padding: 20px;
  position: relative;
}

@media (max-height: 930px) {
  
  .footer {
    height: 29vh;
  }

}

.change-quote {
  margin-bottom: 30px;
  background-image: url("../assets/svg/reload.svg");  
}

.quote-box {
  max-width: calc(100% - 130px);
}

.quote {
  min-height: 32px;
  line-height: 20px;
  margin-bottom: 10px;
}

.author {
  min-height: 20px;
}

@media (max-width: 768px) {
  .time {
    min-height: 80px;
    font-size: 72px;    
  }

  .greeting-container {
    min-height: 40px;
    font-size: 32px;
  }

  .greeting {
    padding: 5px;
  }

  .name {
    font-size: 32px;
    padding: 5px;
  }
}

.settings-icon {
  background-image: url("../assets/svg/settings.svg");
  width: 50px;
  height: 50px;
  position: absolute;
  left: 20px;
  bottom: 20px;
  cursor: pointer;
  z-index: 1;
  transition: 0.3s ease-in-out;
}

.settings-opened {
  transform: rotate(144deg);
}

.settings-hover {
  transform: rotate(72deg);
}

.settings-panel {
  position: absolute;
  width: 0;
  height: 0;
  background: rgba(0, 0, 0, 0.5);
  left: 45px;
  bottom: 45px;
  transition: all 0.4s ease-in-out, left 0.2s 0.3s, bottom 0.2s 0.3s;
  overflow: hidden;
  opacity: 0;
}

.settings-panel-opened {
  width: 400px;
  height: 500px;
  border-radius: 25px;
  left: 20px;
  bottom: 20px;
  opacity: 1;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.800);
}

.settings-panel-opened:hover {
  transition: 0.2s;
  box-shadow: 0 0 15px;
}

.settings-content {
  opacity: 0;
  transition: 0.8s;
}

.settings-content-opened {
  opacity: 1;
}

.setting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 15px auto;
  transition: 1s;
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 19px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #999999;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 13px;
  width: 13px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: #999999;
}

input:checked + .slider:before {
  transform: translateX(19px);
}

input.on-off:checked + .slider {
  background-color: #00f0f0;
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.fieldset {
  width: 350px;
  margin: 10px auto;
  border-radius: 20px;
  border: dashed 1px;
}

.fieldset-bg {
  width: 300px;
}

.api-quality-label {
  width: 210px;
}

.fieldset-hidings {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 10px;
}

.fieldset-hidings > .setting {
  margin: 15px;
}

.fieldset-hidings > .setting:nth-child(even) {
  display: flex;
  flex-direction: row-reverse;
}

.settings-title {
  height: 20px;
  padding: 0 5px;
  margin-left: 20px;
  text-align: left;
}

.input-tags {
  margin-top: 5px;
  position: relative;
  width: 200px;
}

.tags {
  height: 27px;
  width: 100%;
  border: none;
  padding: 5px;
  padding-right: 23px;
  font-size: 1em;
  color: white;
  background: none;
  transition: 0.2s;
  border-radius: 10px;
}

.tags:focus {
  outline: none;
  background-color: rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 10px 10px rgba(0, 0, 0, 0.9);
}

.input-help {
  position: absolute;
  left: 0;
  padding: 5px;
  pointer-events: none;
  transition: 0.2s;
}

.tags:focus ~ .input-help,
.tags:valid ~ .input-help {
  color: #00f0f0;
  transform: translateY(-20px) translateX(-5px);
  font-size: 0.8em;
  font-weight: 700;
}

.input-border {
  position: absolute;
  height: 2px;
  width: 100%;
  left: 0;
  bottom: 0;
  background: #ffffff;
  overflow: hidden;
}

.input-border::before,
.input-border::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 100%;
  background: #00f0f0;
  transition: 0.6s ease-in-out;
}

.input-border::before {
  left: -50%;
}

.input-border::after {
  right: -50%;
}

.tags:focus ~ .input-border::before {
  left: 0;
}

.tags:focus ~ .input-border::after {
  right: 0;
}

.send {
  position: absolute;
  right: -25px;
  bottom: 3px;
  cursor: pointer;
  visibility: hidden;
  opacity: 0;
  transition: 1s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.send-path {
  stroke: #ffffff;
}

.send:hover {
  transition: 0.2s;
  transform: scaleY(80%);
}

.sended {
  animation: send-request 1s forwards;
}

@keyframes send-request {
  0% {
    right: 0;
  }
  40% {
    transform: scaleY(100%);
  }
  70% {
    right: -50px;
    opacity: 0;
  }
  71% {
    right: 0;
  }
}

.tags:valid ~ .send {
  visibility: visible;
  right: 0;
  opacity: 1;
}

.api-msgs {
  height: 15px;
}

.disabled {
  opacity: 0.3;
  filter: blur(2px);
}

.show {
  transition: 1s opacity, 1s visibility;
  opacity: 1;
  visibility: visible;
}

.hide {
  opacity: 0;
  visibility: hidden;
}

.honors {
  margin-left: auto;
  margin-right: 40px;
  cursor: pointer;
  text-decoration: underline;
  font-style: italic;
}

.not-loaded {
  display: none;
}