:root {
  --primary: #FF6B00;
  --secondary: #FFD100;
  --danger: #D90429;
  --surface: rgba(255, 255, 255, 0.1);
  --surface-blur: rgba(255, 255, 255, 0.05);
  --text: #FFFFFF;
  --accent: #FFBE0B;
  --glow-primary: 0 0 30px rgba(255, 107, 0, 0.8);
  --glow-secondary: 0 0 25px rgba(255, 209, 0, 0.8);
  --glow-text: 0 0 10px rgba(255, 255, 255, 0.6);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#video-background {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  object-fit: cover;
  filter: brightness(0.9git push origin main
) contrast(1.1) saturate(1.2);
}

.content {
  position: relative;
  z-index: 1;
  color: var(--text);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

#logo {
  width: auto;
  height: 100px;
  margin-bottom: 20px;
  filter: drop-shadow(var(--glow-text));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#logo:hover {
  transform: scale(1.05);
}

h1 {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  padding: 12px 24px;
  margin: 0 0 20px 0;
  background: linear-gradient(135deg, var(--danger), var(--primary));
  color: var(--text);
  border-radius: 50px;
  box-shadow: var(--glow-primary);
  text-shadow: var(--glow-text);
  letter-spacing: 0.5px;
}

#timer {
  width: min(90%, 500px);
  min-height: 400px;
  padding: 24px;
  background: var(--surface-blur);
  backdrop-filter: blur(8px) brightness(1.2);
  -webkit-backdrop-filter: blur(8px) brightness(1.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  box-shadow: 
    var(--glow-primary),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#timer:hover {
  transform: translateY(-4px) scale(1.02);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 0 50px rgba(255, 107, 0, 0.9),
    inset 0 0 30px rgba(255, 255, 255, 0.15);
}

p#description {
  margin: 0;
  padding: 8px 16px;
  color: var(--secondary);
  font-weight: 600;
  background: rgba(255, 209, 0, 0.15);
  border: 1px solid rgba(255, 209, 0, 0.3);
  border-radius: 12px;
  text-decoration: none;
  text-shadow: var(--glow-secondary);
}

p#countDown {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  margin: 20px 0;
  color: var(--primary);
  text-shadow: 
    var(--glow-primary),
    0 0 60px rgba(255, 107, 0, 0.5);
  font-variant-numeric: tabular-nums;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { 
    text-shadow: 
      var(--glow-primary),
      0 0 60px rgba(255, 107, 0, 0.5);
  }
  50% { 
    text-shadow: 
      var(--glow-primary),
      0 0 80px rgba(255, 107, 0, 0.8);
  }
}

hr {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.5), 
    transparent);
  border: none;
  margin: 16px 0;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

#settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  width: 100%;
}

.setting-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.setting-label {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  text-shadow: var(--glow-secondary);
}

input[type="number"] {
  width: 80px;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid var(--primary);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--secondary);
  text-align: center;
  transition: all 0.2s ease;
  outline: none;
  text-shadow: 0 0 5px currentColor;
}

input[type="number"]:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 15px rgba(255, 190, 11, 0.5);
}

input[type="number"]:focus {
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(255, 209, 0, 0.6);
}

#controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}

button {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px currentColor;
}

button#start {
  background: linear-gradient(135deg, 
    rgba(255, 107, 0, 0.4), 
    rgba(255, 190, 11, 0.4));
  box-shadow: var(--glow-primary);
}

button#stop {
  background: linear-gradient(135deg, 
    rgba(217, 4, 41, 0.4), 
    rgba(255, 32, 82, 0.4));
  box-shadow: 0 0 25px rgba(217, 4, 41, 0.8);
}

button#reset {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

button#music {
  background: linear-gradient(135deg, 
    rgba(255, 209, 0, 0.4), 
    rgba(255, 190, 11, 0.4));
  color: var(--text);
  box-shadow: var(--glow-secondary);
}

button:hover {
  transform: translateY(-2px) scale(1.05);
  background-blend-mode: screen;
  filter: brightness(1.3);
}

button:active {
  transform: translateY(0) scale(0.98);
}


@supports (backdrop-filter: blur(10px)) {
  .content > * {
    position: relative;
  }
  
  .content > *::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: radial-gradient(
      circle at center,
      rgba(0, 0, 0, 0.1),
      transparent
    );
    z-index: -1;
    filter: blur(20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 480px) {
  #timer {
    width: 95%;
    min-height: 350px;
  }
  
  button {
    padding: 8px 16px;
    font-size: 12px;
  }
}