@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
[data-bg-video-invalid="true"] {
  outline: 2px dashed var(--ub-danger);
  outline-offset: -2px;
}

#convert {
  display: block;
  height: 0;
  scroll-margin-top: 90px;
}

#tool-sample-rate-converter {
  padding: 24px;
  background: #fff;
  scroll-margin-top: 90px;
  box-sizing: border-box;
}

#sample-rate-container {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff4c4;
  border-radius: 28px;
  padding: clamp(24px, 5vw, 48px);
  box-sizing: border-box;
}

#sample-rate-back {
  font-size: 14px;
  font-weight: 600;
  color: #1c1c1e;
  text-decoration: none;
}

#sample-rate-category {
  margin-top: 16px;
}

#sample-rate-label {
  display: inline-block;
  background: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #1c1c1e;
}

#sample-rate-title {
  font-family: var(--ub-font-display);
  font-size: clamp(28px, 5vw, 40px);
  margin: 12px 0 8px;
  color: #1c1c1e;
  line-height: 1.15;
}

#sample-rate-description {
  margin: 0 0 24px;
  max-width: 620px;
  color: #2c2c34;
  font-size: 17px;
  line-height: 1.6;
}

#sample-rate-dropzone {
  background: #fff;
  border-radius: 20px;
  padding: 28px 20px;
  border: 2px dashed #1c1c1e55;
  text-align: center;
  margin-bottom: 20px;
}

#sample-rate-formats {
  font-size: 14px;
  color: #555a6a;
  margin: 4px 0 12px;
}

body,
body * {
  font-family: var(--ub-font-display) !important;
}

#tool-sample-rate-converter #sample-rate-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 36px 20px;
  margin-bottom: 0;
  background: transparent;
  border: none;
  text-align: center;
}

#tool-sample-rate-converter #sr-pick,
#tool-sample-rate-converter #sample-rate-droptext,
#tool-sample-rate-converter #sr-replace,
#tool-sample-rate-converter #sr-convert,
#tool-sample-rate-converter #sr-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: #ffdf75 !important;
  color: #1c1c1e !important;
  border: none !important;
  border-radius: 999px !important;
  font-family: inherit;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

#tool-sample-rate-converter #sr-pick {
  width: 130px !important;
  height: 130px !important;
  min-width: 130px !important;
  min-height: 130px !important;
  border-radius: 50% !important;
  background: #ffdf75 url("https://api.iconify.design/lucide/sliders-horizontal.svg?color=%231c1c1e") center / 64px 64px no-repeat !important;
  font-size: 0 !important;
}

#sr-pick img {
  display: block;
  width: 64px;
  height: 64px;
}

#tool-sample-rate-converter #sample-rate-droptext,
#tool-sample-rate-converter #sr-replace,
#tool-sample-rate-converter #sr-convert,
#tool-sample-rate-converter #sr-download {
  min-height: 56px;
  padding: 16px 24px;
  font-size: 18px;
  text-decoration: none;
}

#tool-sample-rate-converter #sample-rate-droptext,
#tool-sample-rate-converter #sample-rate-formats {
  margin: 0;
}

#sr-workspace {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

#sr-art-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 220px;
  max-width: 100%;
  overflow: hidden;
  margin: 0 auto 8px;
  background: #fff;
  border-radius: 18px;
}

#sr-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#sr-placeholder {
  font-size: 80px;
  color: #d6b759;
}

#sr-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(28, 28, 30, 0.85);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

#sr-name {
  display: block;
  max-width: 100%;
  font-size: 20px;
  overflow-wrap: anywhere;
}

#sr-info {
  margin: 0;
  font-size: 14px;
  color: #555a6a;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

#sr-status {
  margin: 22px auto 0;
  text-align: center;
}

#sr-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 480px;
  margin: 18px auto;
  text-align: left;
}

#sr-settings label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  color: #1c1c1e;
  font-size: 14px;
  font-weight: 700;
}

#sr-settings select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e4cb80;
  border-radius: 12px;
  color: #1c1c1e;
  font: inherit;
}

#sr-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

#tool-sample-rate-converter #sr-replace,
#tool-sample-rate-converter #sr-convert {
  width: 100%;
  min-width: 0;
}

#tool-sample-rate-converter #sr-download {
  margin: 8px auto 0;
}

#sr-progress {
  height: 10px;
  accent-color: #e5b530;
}

#sr-result-player {
  width: 100%;
  max-width: 400px;
}

#tool-sample-rate-converter [hidden] {
  display: none !important;
}

#tool-sample-rate-converter button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#tool-sample-rate-converter #sr-pick img {
  display: none !important;
}

#tool-sample-rate-converter #sr-bitrate-wrap {
  grid-column: 1 / -1;
}

#tool-sample-rate-converter #sr-bitrate-warning {
  display: block;
  max-width: 440px;
  margin: 4px auto 0;
  color: #64562e;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
}

#sr-replace {
  background-color: #efc64e !important;
}

#sr-convert,
#tool-audio-converter :is(#converter-upload-icon, #converter-start),
#tool-audio-compressor :is(#compressor-upload-icon, #bc-compress),
#tool-video-to-mp3 :is(#vtm-pick, #vtm-download),
#tool-sample-rate-converter :is(#sr-pick, #sr-download) {
  background-color: #ffdf75 !important;
  transition: background-color 0.2s ease;
}

#sr-convert,
#tool-audio-converter :is(#converter-upload-icon, #converter-start):not(:disabled):hover,
#tool-audio-compressor :is(#compressor-upload-icon, #bc-compress):not(:disabled):hover,
#tool-video-to-mp3 :is(#vtm-pick, #vtm-download):not(:disabled):hover,
#tool-sample-rate-converter :is(#sr-pick, #sr-download):not(:disabled):hover {
  background-color: #efc64e !important;
}

#tool-sample-rate-converter #sample-rate-droptext {
  background-color: #ffdf75 !important;
  transition: background-color 0.2s ease !important;
}

#tool-sample-rate-converter #sample-rate-droptext:hover {
  background-color: #efc64e !important;
}

@media (max-width: 480px) {
#sr-settings {
    gap: 12px;
  }

#tool-sample-rate-converter #sr-replace,
  #tool-sample-rate-converter #sr-convert {
    padding: 14px 10px;
    font-size: 15px;
  }
}

:root {
  --ub-font-display: 'Poppins', Arial, sans-serif;
  --ub-font-body: 'Poppins', Arial, sans-serif;
  --ub-font-display-color: #1c1c1e;
  --ub-font-body-color: #2c2c34;
  --ub-bg: #ffffff;
  --ub-surface: #ffffff;
  --ub-border: #ececf3;
  --ub-section-bg: #ffffff;
  --ub-max-width: 1200px;
  --ub-section-padding-v: 32px;
  --ub-heading-h1-size: clamp(32px, 5vw, 56px);
  --ub-heading-h1-line-height: 1.15;
  --ub-heading-h1-weight: 700;
  --ub-heading-h2-size: clamp(28px, 4vw, 38px);
  --ub-heading-h2-line-height: 1.2;
  --ub-heading-h2-weight: 600;
  --ub-heading-h3-size: 24px;
  --ub-heading-h3-weight: 600;
  --typography-paragraph-font-size-level-1: 16px;
  --typography-paragraph-line-height-level-1: 1.6;
  --ub-paragraph-weight: 400;
  --ub-paragraph-letter-spacing: 0;
  --ub-link-color: #3158ad;
  --ub-link-color-hover: #22438c;
  --ub-link-color-active: #19336b;
  --ub-link-md-font-size: 14px;
  --ub-button-primary-font: var(--ub-font-display);
  --ub-button-primary-default-fill: #292b32;
  --ub-button-primary-default-text: #ffffff;
  --ub-button-primary-default-border: #292b32;
  --ub-button-primary-default-radius: 10px;
  --ub-button-primary-hover-fill: #41444e;
  --ub-button-primary-hover-text: #ffffff;
  --ub-button-primary-hover-border: #41444e;
  --ub-button-primary-active-fill: #17191f;
  --ub-button-primary-active-text: #ffffff;
  --ub-button-primary-active-border: #17191f;
  --ub-button-primary-font-weight: 600;
  --ub-button-primary-lg-padding-x: 24px;
  --ub-button-primary-lg-padding-y: 14px;
  --r-lg: 20px;
}
body { margin: 0; font-family: var(--ub-font-body); color: var(--ub-font-body-color); }
button, input, select, textarea { font-family: inherit; }
