:root {
  --background: 240 10% 3.9%;
  --foreground: 0 0% 98%;
  --card: 240 10% 3.9%;
  --card-foreground: 0 0% 98%;
  --popover: 240 10% 3.9%;
  --popover-foreground: 0 0% 98%;
  --primary: 0 0% 98%;
  --primary-foreground: 240 5.9% 10%;
  --secondary: 240 3.7% 15.9%;
  --secondary-foreground: 0 0% 98%;
  --muted: 240 3.7% 15.9%;
  --muted-foreground: 240 5% 64.9%;
  --accent: 240 3.7% 15.9%;
  --accent-foreground: 0 0% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 0 0% 98%;
  --border: 240 3.7% 15.9%;
  --input: 240 3.7% 15.9%;
  --ring: 240 4.9% 83.9%;
  --chart-1: 220 70% 50%;
  --chart-2: 160 60% 45%;
  --chart-3: 30 80% 55%;
  --chart-4: 280 65% 60%;
  --chart-5: 340 75% 55%;

  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: dark;
  color: hsl(var(--foreground));
  stroke: hsl(var(--foreground));
  background-color: hsl(var(--background));

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*:focus {
  outline: 2px solid hsl(var(--ring));
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
}

[data-lucide] {
  cursor: pointer;
}

#app {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  width: 90vw;
}

button {
  border-radius: 6px;
  display: flex;
  align-items: center;
  border: none;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  height: 34px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  background-color: hsl(var(--foreground));
  color: hsl(var(--background));
  cursor: pointer;
  transition: border-color 0.25s;
}

button:hover {
  background: hsl(var(--muted-foreground));
}

#player-container {
  aspect-ratio: 16/9;
  display: flex;
  position: relative;
  width: 100%;
  margin: 0 auto;
  justify-content: center;
  border-radius: 6px;
  align-items: center;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

#progress {
  backdrop-filter: blur(40px) brightness(60%);
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

#progress>h1 {
  font-size: 4rem;
  font-weight: 600;
}

#controls {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-top: 24px;
  margin-bottom: 20px;
}

#playback {
  display: flex;
  align-items: center;
  gap: 15px;
}

#time {
  font-weight: 600;
}

.loader {
  width: 14px;
  padding: 5px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #000;
  --_m:
    conic-gradient(#0000 10%, #000),
    linear-gradient(#000 0 0) content-box;
  -webkit-mask: var(--_m);
  mask: var(--_m);
  -webkit-mask-composite: source-out;
  mask-composite: subtract;
  animation: l3 1s infinite linear;
}


@keyframes l3 {
  to {
    transform: rotate(1turn)
  }
}

#timeline {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background-color: hsl(var(--muted-foreground) / 0.3);
  cursor: pointer;
}

#timeline > div {
  position: absolute;
  left: 0;
  width: 4px;
  top: 0;
  bottom: 0;
  background-color: red;
  transform: translateX(-2px);
}
