#container-countdown {
    display: flex;
    justify-content: center;
}

#countdown {
    font-size: 60px;
    margin-top: 100px;
    background: linear-gradient(to right, #98e4c4, #f0f3f5);
    border-radius: 20px;
    padding: 30px;
}

#myVideo {
    position: fixed;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -10;
}

.timer-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(200px, 60vw, 300px);  /* автоматична адаптація */
    height: clamp(200px, 60vw, 300px);
    z-index: 2;
}

.timer-svg {
    position: absolute;
    inset: 0;
    transform: rotate(-90deg);
}

.timer-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 10;
    display: none;
}

.timer-progress {
    fill: none;
    stroke: transparent;
    stroke-width: 10;
    stroke-linecap: round;
    filter: blur(15px)
            drop-shadow(0 0 40px rgba(255,255,255,0.9))
            drop-shadow(0 0 60px rgba(0,150,255,0.7));
    transition: stroke-dashoffset 0.25s linear;
}

.timer-center {
    position: relative;
    width: 105%;
    height: 105%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    border-radius: 50%;
}

.timer-display {
    font-size: clamp(1.5rem, 5vw, 2.4rem); /* масштаб цифр */
    font-weight: bold;
    color: #fff; /* робимо цифри білими */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* Кнопки */
.timer-controls, .timer-options {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.timer-controls button,
.timer-options button {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    border-radius: 6px;
    padding: clamp(4px, 1vw, 8px) clamp(8px, 2vw, 16px);
    font-size: clamp(1rem, 4vw, 1.2rem);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.25s ease;
}

.timer-controls button:hover,
.timer-options button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@media (max-width: 600px) {
  #header-title h1 {
    font-size: 1.8rem;
  }
  
  .timer-wrapper {
    width: 220px;
    height: 220px;
  }
  
  .timer-display {
    font-size: 1.8rem;
  }

  #myVideo {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
}

@media (max-width: 400px) {
  .timer-wrapper {
    width: 180px;
    height: 180px;
  }
  .timer-display {
    font-size: 1.5rem;
  }
  
  .timer-controls,
  .timer-options {
    flex-direction: column;
    gap: 6px;
  }

  #myVideo {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
}