.tiktok-downloader-container {
  font-family: Arial, sans-serif;
  background-color: #111827;
  padding-top: 80px;
}
.search-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-color: #111827;
  padding-bottom: 80px;
}
.tiktok-downloader-container h2 {
  color: #fff;
  margin-bottom: 15px;
  text-align: center;
  font-size: 3rem;
  line-height: 1;
}
.tiktok-downloader-container p {
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
}
#tiktok-video-preview {
  margin: 20px 0;
  text-align: center;
}
#tiktok-video-preview video {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.download-button {
  display: inline-block;
  background: #fe2c55;
  color: white;
  padding: 12px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
  text-align: center;
  margin: 10px auto;
}
.download-button:hover {
  background: #e61a40;
  color: white;
}
#tiktok-loading {
  text-align: center;
  padding: 20px;
  color: #fff;
}
#tiktok-error {
  color: #dc3545;
  text-align: center;
  padding: 10px;
  margin-top: 10px;
}
.tiktok-note {
  margin-top: 20px;
  font-size: 14px;
  color: #666;
  border-top: 1px solid #eee;
  padding-top: 15px;
}
#tiktok-result-container {
  text-align: center;
  padding: 50px;
  display: block;
}
#tiktok-profile-image {
  width: 100px;
  margin: 0 auto;
  border-radius: 50%;
}


@media (max-width: 601px) {
  .search-container {
    padding-bottom: 0px;
  }
  .gap-left {
    margin-left: 0px;
    margin-top: 10px;
  }
  .btn.paste {
    line-height: 23px;
    position: relative;
    bottom: 2px;
  }
}
.download-loading {
  display: none;
  text-align: center;
  margin: 15px 0;
}
.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #fe2c55;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


.search-form {
    
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);
    display: grid;
    gap: 6px;
    grid-template-columns: 1fr max-content;
    margin: 0 auto;
    width: 800px;
    padding: 8px
}

@media (max-width: 768px) {
    .search-form {
        background:none;
        box-shadow: none;
        gap: 12px;
        grid-template-columns: 1fr;
        padding: 0
    }
	.tiktok-downloader-container{
		padding-left: 15px;
		padding-right: 15px;
		padding-bottom: 30px
	}
}

.search-form__field {
    display: grid;
    gap: 2px;
    grid-template-columns: 1fr max-content
}

@media (max-width: 768px) {
    .search-form__field {
        background:#fff;
    }
}

.search-form__label {
    display: flex;
    width: 100%
}

.search-form__input {
    border: none;
    color: #000;
	background: #f8f9fa;
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
    padding: 0 14px;
    width: 100%;
}

@media (max-width: 768px) {
    .search-form__input {
        border-radius:8px 0 0 8px
    }
}

.search-form__clipboard {
    display: flex
}

.search-form__clipboard button {
    align-items: center;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #000;
    cursor: pointer;
    display: flex;
    font-size: 16px;
    font-weight: 400;
    gap: 4px;
    justify-items: center;
    line-height: 24px;
    padding: 18px 12px
}

@media (max-width: 768px) {
    .search-form__clipboard button {
        border-radius:0 8px 8px 0
    }
}

@media (hover: hover) and (pointer:fine) {
    .search-form__clipboard button:hover {
        background:rgba(243,244,246,.6)
    }
}

.search-form__button {
    background: rgb(239 68 68);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    padding: 20px
}

@media (max-width: 768px) {
    .search-form__button {
        padding:16px 20px
    }
}

@media (hover: hover) and (pointer:fine) {
    .search-form__button:hover {
        background:rgb(220 38 38) !important;
		   color: #fff;
    }
}

@media (max-width: 768px) {
    body:dir(rtl) .search-form__clipboard button {
        border-radius: 5px 0 0 5px
    }

    body:dir(rtl) .search-form__input {
        border-radius: 0 5px 5px 0
    }
}