-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathstyle.css
More file actions
69 lines (63 loc) · 5.45 KB
/
Copy pathstyle.css
File metadata and controls
69 lines (63 loc) · 5.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
:root{--bg:#f5f1ea;--ink:#1c1c1e;--soft:#3a3a3c;--muted:#6e6e73;--line:#e7e1d6;--accent:#b86a2b;--surface:#fff}
*{box-sizing:border-box}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text",Inter,sans-serif;background:var(--bg);color:var(--ink);min-height:100vh;display:grid;place-items:start center;padding:24px}
.phone{width:min(420px,100%);background:var(--surface);border-radius:38px;border:1px solid var(--line);box-shadow:0 30px 80px rgba(28,28,30,.12),0 8px 24px rgba(28,28,30,.06);overflow:hidden;max-height:90vh;display:flex;flex-direction:column}
.phone__status{display:flex;justify-content:space-between;align-items:center;padding:14px 28px 6px;font-weight:600;font-size:.85rem}
.phone__status .dot{width:8px;height:8px;background:var(--ink);border-radius:50%}
.player{padding:18px 26px 24px;text-align:center}
.art{aspect-ratio:1/1;border-radius:26px;background:linear-gradient(135deg,#b86a2b,#7a4a1c);box-shadow:0 20px 40px rgba(184,106,43,.35);background-size:cover;background-position:center;transition:background 250ms ease}
.title{margin:22px 0 4px;font-size:1.35rem;letter-spacing:-.02em}
.artist{margin:0 0 18px;color:var(--muted);font-size:.95rem}
.scrub{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;margin-bottom:18px}
.t{font-variant-numeric:tabular-nums;font-size:.78rem;color:var(--muted)}
input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:4px;background:var(--line);border-radius:999px;outline:0}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;border-radius:50%;background:var(--ink);border:0;cursor:pointer}
input[type=range]::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:var(--ink);border:0;cursor:pointer}
.controls{display:flex;justify-content:center;align-items:center;gap:24px}
.ctl{width:54px;height:54px;border-radius:50%;border:0;background:transparent;color:var(--ink);display:grid;place-items:center;cursor:pointer;transition:transform 120ms ease,background 120ms ease}
.ctl:hover{background:var(--bg)}
.ctl:active{transform:scale(.94)}
.ctl--main{width:72px;height:72px;background:var(--ink);color:#fff}
.ctl--main:hover{background:#000}
.queue{border-top:1px solid var(--line);padding:18px 22px 26px}
.queue h2{margin:0 0 10px;font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.queue__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.queue__list li{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:14px;cursor:pointer}
.queue__list li:hover{background:var(--bg)}
.queue__list li[aria-current=true]{background:#efe1cf}
.q-art{width:44px;height:44px;border-radius:10px;background-size:cover;background-position:center;flex-shrink:0}
.q-text{flex:1;min-width:0}
.q-text strong{display:block;font-size:.95rem;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.q-text span{display:block;font-size:.8rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.q-dur{font-variant-numeric:tabular-nums;font-size:.78rem;color:var(--muted)}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Search Section */
.search-section{padding:16px 16px 12px;border-bottom:1px solid var(--line)}
.search-container{display:flex;gap:8px}
.search-input{flex:1;padding:10px 14px;border:1px solid var(--line);border-radius:20px;font-size:.95rem;font-family:inherit;background:var(--bg);color:var(--ink);outline:0;transition:border-color 120ms ease}
.search-input:focus{border-color:var(--accent)}
.search-input::placeholder{color:var(--muted)}
.search-btn{width:44px;height:44px;border-radius:50%;border:0;background:var(--ink);color:#fff;display:grid;place-items:center;cursor:pointer;transition:background 120ms ease,transform 120ms ease}
.search-btn:hover{background:#000}
.search-btn:active{transform:scale(.94)}
/* Loading Spinner */
.loading{display:flex;justify-content:center;padding:12px 0}
.spinner{width:20px;height:20px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
/* Error Message */
.error-msg{padding:10px 16px;background:#fef5f5;color:#d32f2f;font-size:.85rem;border-radius:8px;margin:0 16px;text-align:center}
/* Search Results */
.search-results{list-style:none;margin:0;padding:12px 12px;display:flex;flex-direction:column;gap:8px;max-height:200px;overflow-y:auto}
.result-item{display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:12px;cursor:pointer;transition:background 120ms ease}
.result-item:hover{background:var(--bg)}
.result-art{width:50px;height:50px;border-radius:8px;background-size:cover;background-position:center;flex-shrink:0;background-color:var(--line)}
.result-art img{width:100%;height:100%;border-radius:8px;object-fit:cover}
.result-info{flex:1;min-width:0;font-size:.85rem}
.result-info strong{display:block;font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.result-info span{display:block;color:var(--muted);font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.result-info small{display:block;color:var(--muted);font-size:.7rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
/* Utility */
.hidden{display:none!important}
/* Responsive adjustments */
.player{padding:18px 26px 24px;text-align:center;flex:1;overflow-y:auto}
.queue{border-top:1px solid var(--line);padding:18px 22px 26px;overflow-y:auto}