/* Keep original design 1:1, scoped to the widget so theme doesn't break it */
.fts-widget .input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.fts-widget .clear-icon {
  position: absolute;
  right: 10px;
  cursor: pointer;
  font-size: 25px;
  color: #999;
  background-color: white;
  padding-left: 5px;
  border-radius: 4px;
  margin-left: -20px;
  user-select: none;
}

/* Reset input styles - original values */
.fts-widget .elementor-field {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 4px;
  box-shadow: none;
  outline: none;
  background: none;
  width: 100%;
  padding-right: 40px;
  white-space: nowrap;
  overflow: hidden;
}

@media (max-width: 768px) {
  .fts-widget .clear-icon {
    font-size: 30px !important;
  }

  .fts-widget ::-webkit-input-placeholder {
    font-size: 14px !important;
    font-weight: bold !important;
  }
  .fts-widget :-moz-placeholder {
    font-size: 14px !important;
    font-weight: bold !important;
  }
  .fts-widget ::-moz-placeholder {
    font-size: 14px !important;
    font-weight: bold !important;
  }
  .fts-widget :-ms-input-placeholder {
    font-size: 14px !important;
    font-weight: bold !important;
  }

  .fts-widget .elementor-field {
    font-size: 11px !important;
    padding: 20px;
    padding-right: 40px;
  }

  .fts-widget .trackurlfield,
  .fts-widget .musicgenrefield {
    font-size: 14px !important;
  }
}

/* Hover effects - original */
.fts-widget .elementor-field:hover,
.fts-widget .elementor-field:focus {
  border-color: #00aaff;
  box-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
}

/* Button and hover effects - original */
.fts-widget .cus-button {
  background-color: yellow;
  color: black;
  transition: transform 0.3s;
}
.fts-widget .cus-button:hover {
  transform: scale(1.05);
}
.fts-widget .cus-button.submitting {
  background-color: yellow !important;
  color: black !important;
}

/* Loader animation - original */
.fts-widget .loader {
  border: 4px solid #f3f3f3;
  border-radius: 50%;
  border-top: 4px solid black;
  width: 20px;
  height: 20px;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
  display: none;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.fts-widget .elementor-button-content-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.fts-widget #submit-button-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 24px;
  height: 24px;
}

.fts-widget #submit-button-icon svg,
.fts-widget #loader {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  left: 0;
  margin: auto;
}

/* Search results dropdown - original */
.fts-widget .spinner-style {
  position: absolute;
  z-index: 1000;
  background: white;
  border: 0px solid #ddd;
  width: 96%;
  max-height: 50px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  top: 55px;
  display: flex;
  align-items: center;
  padding: 10px;
}

.fts-widget .spinner-text {
  font-size: 14px;
  color: #DBDDDD;
  line-height: 1.2;
  margin-left: 0px;
}

.fts-widget .track-results {
  position: absolute;
  z-index: 1000;
  background: white;
  border: 0px solid #ddd;
  width: 96%;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  top: 55px;
}

.fts-widget .track-result-item {
  display: flex;
  align-items: center;
  padding: 10px;
  cursor: pointer;
  font-size: 14px;
  color: black;
  line-height: 1.2;
}

.fts-widget .track-result-item img {
  width: 35px;
  height: 35px;
  margin-right: 10px;
  border-radius: 4px;
  object-fit: cover;
}

.fts-widget .track-result-item:hover {
  background: #f0f0f0;
}

@media (max-width: 768px) {
  .fts-widget .spinner-style,
  .fts-widget .track-results {
    width: 94%;
  }
}

.fts-widget #embed {
  width: 100%;
  display: flex;
  justify-content: center;
}

.fts-widget #embed iframe {
  width: 100%;
}

