|
| 1 | +:root { |
| 2 | + --background: 240 10% 3.9%; |
| 3 | + --foreground: 0 0% 98%; |
| 4 | + --card: 240 10% 3.9%; |
| 5 | + --card-foreground: 0 0% 98%; |
| 6 | + --popover: 240 10% 3.9%; |
| 7 | + --popover-foreground: 0 0% 98%; |
| 8 | + --primary: 0 0% 98%; |
| 9 | + --primary-foreground: 240 5.9% 10%; |
| 10 | + --secondary: 240 3.7% 15.9%; |
| 11 | + --secondary-foreground: 0 0% 98%; |
| 12 | + --muted: 240 3.7% 15.9%; |
| 13 | + --muted-foreground: 240 5% 64.9%; |
| 14 | + --accent: 240 3.7% 15.9%; |
| 15 | + --accent-foreground: 0 0% 98%; |
| 16 | + --destructive: 0 62.8% 30.6%; |
| 17 | + --destructive-foreground: 0 0% 98%; |
| 18 | + --border: 240 3.7% 15.9%; |
| 19 | + --input: 240 3.7% 15.9%; |
| 20 | + --ring: 240 4.9% 83.9%; |
| 21 | + --chart-1: 220 70% 50%; |
| 22 | + --chart-2: 160 60% 45%; |
| 23 | + --chart-3: 30 80% 55%; |
| 24 | + --chart-4: 280 65% 60%; |
| 25 | + --chart-5: 340 75% 55%; |
| 26 | + |
| 27 | + font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; |
| 28 | + line-height: 1.5; |
| 29 | + font-weight: 400; |
| 30 | + |
| 31 | + color-scheme: dark; |
| 32 | + color: hsl(var(--foreground)); |
| 33 | + stroke: hsl(var(--foreground)); |
| 34 | + background-color: hsl(var(--background)); |
| 35 | + |
| 36 | + font-synthesis: none; |
| 37 | + text-rendering: optimizeLegibility; |
| 38 | + -webkit-font-smoothing: antialiased; |
| 39 | + -moz-osx-font-smoothing: grayscale; |
| 40 | +} |
| 41 | + |
| 42 | +*:focus { |
| 43 | + outline: 2px solid hsl(var(--ring)); |
| 44 | +} |
| 45 | + |
| 46 | +body { |
| 47 | + margin: 0; |
| 48 | + display: flex; |
| 49 | + place-items: center; |
| 50 | + min-width: 320px; |
| 51 | + min-height: 100vh; |
| 52 | +} |
| 53 | + |
| 54 | +[data-lucide] { |
| 55 | + cursor: pointer; |
| 56 | +} |
| 57 | + |
| 58 | +#app { |
| 59 | + max-width: 900px; |
| 60 | + margin: 0 auto; |
| 61 | + text-align: center; |
| 62 | + width: 90vw; |
| 63 | +} |
| 64 | + |
| 65 | +button { |
| 66 | + border-radius: 6px; |
| 67 | + display: flex; |
| 68 | + align-items: center; |
| 69 | + border: none; |
| 70 | + justify-content: center; |
| 71 | + gap: 8px; |
| 72 | + padding: 0 12px; |
| 73 | + height: 34px; |
| 74 | + font-size: 14px; |
| 75 | + font-weight: 600; |
| 76 | + font-family: inherit; |
| 77 | + background-color: hsl(var(--foreground)); |
| 78 | + color: hsl(var(--background)); |
| 79 | + cursor: pointer; |
| 80 | + transition: border-color 0.25s; |
| 81 | +} |
| 82 | + |
| 83 | +button:hover { |
| 84 | + background: hsl(var(--muted-foreground)); |
| 85 | +} |
| 86 | + |
| 87 | +#player-container { |
| 88 | + aspect-ratio: 16/9; |
| 89 | + display: flex; |
| 90 | + position: relative; |
| 91 | + width: 100%; |
| 92 | + margin: 0 auto; |
| 93 | + justify-content: center; |
| 94 | + border-radius: 6px; |
| 95 | + align-items: center; |
| 96 | + overflow: hidden; |
| 97 | + background-color: rgba(0, 0, 0, 0.3); |
| 98 | + overflow: hidden; |
| 99 | +} |
| 100 | + |
| 101 | +#progress { |
| 102 | + backdrop-filter: blur(40px) brightness(60%); |
| 103 | + position: absolute; |
| 104 | + inset: 0; |
| 105 | + display: flex; |
| 106 | + justify-content: center; |
| 107 | + align-items: center; |
| 108 | +} |
| 109 | + |
| 110 | +#progress>h1 { |
| 111 | + font-size: 4rem; |
| 112 | + font-weight: 600; |
| 113 | +} |
| 114 | + |
| 115 | +#controls { |
| 116 | + display: flex; |
| 117 | + width: 100%; |
| 118 | + justify-content: center; |
| 119 | + align-items: center; |
| 120 | + gap: 28px; |
| 121 | + margin-top: 24px; |
| 122 | + margin-bottom: 20px; |
| 123 | +} |
| 124 | + |
| 125 | +#playback { |
| 126 | + display: flex; |
| 127 | + align-items: center; |
| 128 | + gap: 15px; |
| 129 | +} |
| 130 | + |
| 131 | +#time { |
| 132 | + font-weight: 600; |
| 133 | +} |
| 134 | + |
| 135 | +.loader { |
| 136 | + width: 14px; |
| 137 | + padding: 5px; |
| 138 | + aspect-ratio: 1; |
| 139 | + border-radius: 50%; |
| 140 | + background: #000; |
| 141 | + --_m: |
| 142 | + conic-gradient(#0000 10%, #000), |
| 143 | + linear-gradient(#000 0 0) content-box; |
| 144 | + -webkit-mask: var(--_m); |
| 145 | + mask: var(--_m); |
| 146 | + -webkit-mask-composite: source-out; |
| 147 | + mask-composite: subtract; |
| 148 | + animation: l3 1s infinite linear; |
| 149 | +} |
| 150 | + |
| 151 | + |
| 152 | +@keyframes l3 { |
| 153 | + to { |
| 154 | + transform: rotate(1turn) |
| 155 | + } |
| 156 | +} |
| 157 | + |
| 158 | +#timeline { |
| 159 | + position: relative; |
| 160 | + overflow: hidden; |
| 161 | + margin-top: 20px; |
| 162 | + width: 100%; |
| 163 | + height: 6px; |
| 164 | + border-radius: 3px; |
| 165 | + background-color: hsl(var(--muted-foreground) / 0.3); |
| 166 | + cursor: pointer; |
| 167 | +} |
| 168 | + |
| 169 | +#timeline > div { |
| 170 | + position: absolute; |
| 171 | + left: 0; |
| 172 | + width: 4px; |
| 173 | + top: 0; |
| 174 | + bottom: 0; |
| 175 | + background-color: red; |
| 176 | + transform: translateX(-2px); |
| 177 | +} |
0 commit comments