@charset "UTF-8";
/* Шрифт */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}

/* Контейнер */
#bar-wrap {
  width: 100%;
  height: 10px;
  background: #374151;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}

/* Серый фон с движущимися полосами */
#bar-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    #4b5563,
    #4b5563 10px,
    #374151 10px,
    #374151 20px
  );
  background-size: 40px 40px;
  animation: stripesMove 1s linear infinite;
  z-index: 0;
}

/* Зелёная прогресс-полоса */
#bar {
  position: relative;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: 5px;
  z-index: 1;
  transition: width 0.3s ease;
}

/* Анимация движения серых полос */
@keyframes stripesMove {
  from { background-position: 0 0; }
  to { background-position: 40px 0; }
}

/* Когда загрузка завершена — остановить фон */
#bar-wrap.done::before {
  animation: none;
  background: #374151;
}
/* плавное исчезание */
#progress-circle {
  transition: stroke-dashoffset 1s linear;
}

/* ---------- HEADER ---------- */
header {
  position: static;     /* теперь обычный блок */
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0.4rem 1rem;
}

header .container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #d1d5db;
}

header svg {
  height: 20px;
  width: 20px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

header a:hover svg {
  transform: scale(1.2);
  opacity: 0.8;
}
/* ---------- captcha ---------- */
.imsave-captcha {
    margin-top: 20px;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.imsave-captcha-card {
    background-color: #111827; /* тёмно-серый в стиле сайта */
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    text-align: center;
    max-width: 360px;
}

.imsave-captcha-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.imsave-captcha-image {
    display: block;
    margin: 0 auto 10px;
    border-radius: 8px;
    border: 1px solid #4b5563;
    max-width: 220px;
}

.imsave-captcha-input {
    display: block;
    margin: 0 auto;
    padding: 8px 10px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #4b5563;
    background-color: #ffffff;   /* белый фон */
    color: #111827;              /* тёмный текст — будет видно */
    text-align: center;
    width: 200px;
}

.imsave-captcha-button {
    margin-top: 10px;
    padding: 8px 20px;
    border-radius: 9999px;
    border: none;
    background-color: #2563EB;   /* синий как у "Найти видео" */
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.imsave-captcha-button:hover {
    background-color: #1D4ED8;
}

.imsave-captcha-error {
    margin-top: 8px;
    font-size: 14px;
    color: #f97373; /* аккуратный красный */
}
.imsave-captcha-refresh {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    margin-left: 8px;
    color: #9ca3af;
}

.imsave-captcha-refresh:hover {
    color: #fff;
    transform: rotate(20deg);
}
/* ---------- END captcha ---------- */