initial state: muzick music player + recommendation engine

This commit is contained in:
kami
2026-07-14 01:35:52 +04:00
commit 737bf19fd1
196 changed files with 32431 additions and 0 deletions
+283
View File
@@ -0,0 +1,283 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
/* ── Self-hosted fonts (no CDN — see Ethos threat model) ─────────────────── */
@font-face {
font-family: 'Geist';
src: url('/fonts/Geist-Light.woff2') format('woff2');
font-weight: 300;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Geist';
src: url('/fonts/Geist-Regular.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Geist';
src: url('/fonts/Geist-Medium.woff2') format('woff2');
font-weight: 500;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Geist';
src: url('/fonts/Geist-SemiBold.woff2') format('woff2');
font-weight: 600;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Geist';
src: url('/fonts/Geist-Bold.woff2') format('woff2');
font-weight: 700;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Geist Mono';
src: url('/fonts/GeistMono-Regular.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Geist Mono';
src: url('/fonts/GeistMono-Medium.woff2') format('woff2');
font-weight: 500;
font-style: normal;
font-display: swap;
}
/* ── Ethos Design Tokens (default dark) ────────────────────────────────────── */
:root {
/* warm brown-tinted neutral ramp — Ethos law, not cool grey */
--ethos-bg0: #14110D;
--ethos-bg1: #1B1712;
--ethos-bg2: #221D17;
--ethos-surface0: #2C261D;
--ethos-surface1: #372F24;
--ethos-surface2: #423927;
--ethos-border: rgba(244,234,220,0.09);
--ethos-border-hi: rgba(244,234,220,0.16);
--ethos-text: #F4EEE4;
--ethos-secondary: #B4AA98;
--ethos-muted: #756C5C;
--ethos-disabled: #5a5347;
/* muzick fingerprint: honey amber */
--ethos-accent: #EDA24E;
--ethos-accent-hover: #E08F32;
--ethos-on-accent: #14110D;
/* semantic colors */
--ethos-green: #22c55e;
--ethos-amber: #eab308;
--ethos-red: #ef4444;
--ethos-purple: #a855f7;
--ethos-cyan: #22d3ee;
--ethos-orange: #f97316;
}
/* ── Base reset ───────────────────────────────────────────────────────────── */
body {
margin: 0;
padding: 0;
background-color: var(--ethos-bg0);
color: var(--ethos-text);
font-family: 'Geist', -apple-system, BlinkMacSystemFont,
'Segoe UI', 'Roboto', sans-serif;
font-size: 14px;
line-height: 20px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
#root {
position: relative;
z-index: 1;
}
/* ── Focus ring: 2px accent, for keyboard users only ──────────────────────── */
:focus-visible {
outline: 2px solid var(--ethos-accent);
outline-offset: 2px;
border-radius: 4px;
}
/* ── Selection ────────────────────────────────────────────────────────────── */
::selection {
background: color-mix(in srgb, var(--ethos-accent) 35%, transparent);
color: var(--ethos-text);
}
/* ── Scrollbars (thin, themed) ────────────────────────────────────────────── */
* {
scrollbar-width: thin;
scrollbar-color: var(--ethos-border) transparent;
}
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
background: color-mix(in srgb, var(--ethos-border) 80%, transparent);
border-radius: 9999px;
border: 2px solid transparent;
background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
background: color-mix(in srgb, var(--ethos-muted) 60%, transparent);
background-clip: padding-box;
}
/* ── Smooth scroll for main content ───────────────────────────────────────── */
html { scroll-behavior: smooth; }
/* ── Utility classes ──────────────────────────────────────────────────────── */
/* Surfaced bar (top bar / playback bar) — depth from light, not blur */
.glass {
background: var(--ethos-bg1);
border-top: 1px solid var(--ethos-border);
box-shadow: 0 2px 8px rgba(0,0,0,.35), 0 12px 32px rgba(0,0,0,.28);
}
/* Hide scrollbars but keep scroll behavior */
.scrollbar-hide {
scrollbar-width: none;
-ms-overflow-style: none;
}
.scrollbar-hide::-webkit-scrollbar { display: none; }
/* Skeleton shimmer */
@keyframes shimmer {
0% { opacity: 0.4; }
50% { opacity: 0.8; }
100% { opacity: 0.4; }
}
.skeleton {
animation: shimmer 1.5s ease-in-out infinite;
background: var(--ethos-surface1);
border-radius: 4px;
}
/* ── Component base classes ────────────────────────────────────────────────── */
/* Card surface — standard container */
.card-surface {
display: flex;
flex-direction: column;
gap: 12px;
border-radius: 8px;
border: 1px solid var(--ethos-border);
background: var(--ethos-surface0);
padding: 12px;
transition: background 150ms ease, border-color 150ms ease;
}
.card-surface:hover {
background: var(--ethos-surface1);
border-color: color-mix(in srgb, var(--ethos-accent) 40%, transparent);
}
/* Artwork frame */
.artwork-frame {
aspect-ratio: 1 / 1;
border-radius: 8px;
overflow: hidden;
}
/* Play button overlay */
.play-overlay {
position: absolute;
inset: 0;
display: flex;
align-items: flex-end;
justify-content: flex-end;
padding: 8px;
background: linear-gradient(to top, rgba(0,0,0,0.5), transparent 60%);
opacity: 0;
transition: opacity 150ms ease;
}
.group:hover .play-overlay { opacity: 1; }
.play-overlay-btn {
width: 44px;
height: 44px;
border-radius: 9999px;
background: var(--ethos-accent);
display: flex;
align-items: center;
justify-content: center;
color: var(--ethos-on-accent);
box-shadow: 0 8px 24px -4px color-mix(in srgb, var(--ethos-accent) 40%, transparent);
transform: translateY(8px);
transition: transform 150ms ease;
}
.group:hover .play-overlay-btn { transform: translateY(0); }
/* Transport button */
.transport-btn {
width: 40px;
height: 40px;
border-radius: 9999px;
background: var(--ethos-accent);
display: flex;
align-items: center;
justify-content: center;
color: var(--ethos-on-accent);
transition: background 150ms ease, transform 150ms ease;
}
.transport-btn:hover { background: var(--ethos-accent-hover); transform: scale(1.06); }
.transport-btn:active { transform: scale(0.94); }
.transport-btn:disabled { opacity: 0.4; }
/* Gradient text — used sparingly for page headings */
.text-gradient {
background: linear-gradient(120deg, var(--ethos-text), color-mix(in srgb, var(--ethos-accent) 75%, var(--ethos-text)));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
/* Range slider styling */
input[type='range'] {
-webkit-appearance: none;
appearance: none;
background: transparent;
cursor: pointer;
}
input[type='range']::-webkit-slider-runnable-track {
height: 4px;
border-radius: 9999px;
background: color-mix(in srgb, var(--ethos-border) 90%, transparent);
}
input[type='range']::-moz-range-track {
height: 4px;
border-radius: 9999px;
background: color-mix(in srgb, var(--ethos-border) 90%, transparent);
}
input[type='range']::-webkit-slider-thumb {
-webkit-appearance: none;
width: 12px;
height: 12px;
border-radius: 9999px;
background: var(--ethos-accent);
margin-top: -4px;
transition: transform 150ms ease;
}
input[type='range']:hover::-webkit-slider-thumb { transform: scale(1.15); }
input[type='range']::-moz-range-thumb {
width: 12px; height: 12px; border: none;
border-radius: 9999px; background: var(--ethos-accent);
}
input[type='range']:focus-visible {
outline: none;
}
input[type='range']:focus-visible::-webkit-slider-thumb {
box-shadow: 0 0 0 6px color-mix(in srgb, var(--ethos-accent) 30%, transparent);
}
input[type='range']:focus-visible::-moz-range-thumb {
box-shadow: 0 0 0 6px color-mix(in srgb, var(--ethos-accent) 30%, transparent);
}