#uvr-app {
  max-width: 100%;
  width: 100%;
  margin: 20px auto;
  padding: 20px;
  background: #215F88;
  color: #fff;
  border-radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  box-sizing: border-box;
  --control-height: 44px;
  --control-padding-x: 16px;
  --gap: 14px;
}

/* Десктоп: ширина по контейнеру Elementor */
@media (min-width: 768px) {
  #uvr-app {
    max-width: 100%;
    width: 100%;
  }
}

/* Мобильные устройства */
@media (max-width: 767px) {
  #uvr-app {
    margin: 10px;
    padding: 15px;
    border-radius: 8px;
    --control-height: 48px;
    --gap: 12px;
  }
  
  #uvr-app h2 {
    font-size: 1.3em;
  }
  
  #uvr-app input[type="file"],
  #uvr-app button {
    font-size: 15px;
  }
  
  #uvr-app input[type="file"]::file-selector-button {
    font-size: 14px;
  }
}

#uvr-app h2 {
  margin-top: 0;
  color: #fff;
  text-align: center;
}

#uvr-app input[type="file"] {
  width: 100%;
  height: var(--control-height);
  padding: 0 var(--control-padding-x);
  margin-top: 0;
  background: #fff;
  color: #215F88;
  border: 2px solid #215F88;
  border-radius: 6px;
  cursor: pointer;
  box-sizing: border-box;
}

#uvr-app input[type="file"]::file-selector-button {
  background: #215F88;
  color: #fff;
  border: none;
  height: calc(var(--control-height) - 14px);
  padding: 0 18px;
  border-radius: 6px;
  cursor: pointer;
  margin: 6px 12px 6px 6px;
  font-weight: bold;
}

#uvr-app input[type="file"]::file-selector-button:hover {
  background: #1a4a6b;
}

#uvr-app button {
  width: 100%;
  height: var(--control-height);
  padding: 0 var(--control-padding-x);
  margin-top: var(--gap);
  background: #ff3b3b;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  box-sizing: border-box;
}

#uvr-app button:hover:not(:disabled) {
  background: #ff5555;
}

#uvr-app button:disabled {
  background: #666;
  cursor: not-allowed;
}

#progress {
  width: 100%;
  height: 10px;
  background: #222;
  margin-top: var(--gap);
  border-radius: 999px;
  overflow: hidden;
}

#bar {
  height: 100%;
  width: 0%;
  background: #ff3b3b;
  transition: width 0.3s;
  border-radius: 999px;
}

#status {
  margin-top: 10px;
  color: #fff;
  font-size: 14px;
}

#instructions {
  margin-top: 12px;
}

#help-list {
  font-size: 16px;
  line-height: 1.5;
  color: #eaf3fb;
}

#help-list > div + div {
  margin-top: 8px;
}

#result {
  margin-top: var(--gap);
}

#result audio {
  width: 100%;
  margin-bottom: var(--gap);
  height: var(--control-height);
  border-radius: 0;
}

#download {
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  height: var(--control-height);
  line-height: var(--control-height);
  padding: 0 var(--control-padding-x);
  background: #ff3b3b;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  margin-top: 0;
  font-size: 16px;
  font-weight: bold;
  transition: background 0.3s;
}

#download:hover {
  background: #ff5555;
}
