Files
2026-04-17 16:52:51 -04:00

249 lines
3.8 KiB
CSS

:root {
color-scheme: dark;
--bg: #111315;
--panel: #181b1f;
--panel-2: #20252b;
--text: #eceff4;
--muted: #9ba3af;
--accent: #7aa2f7;
--danger: #f7768e;
--ok: #9ece6a;
--border: #2c323a;
}
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
min-height: 100%;
font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, sans-serif;
background: var(--bg);
color: var(--text);
}
body {
display: flex;
flex-direction: column;
}
.app {
width: min(980px, 100%);
margin: 0 auto;
padding: 1rem 1rem 7.5rem;
}
.search-header h1 {
margin: 0 0 0.75rem;
font-size: 1.25rem;
font-weight: 650;
}
#search-form {
display: grid;
grid-template-columns: 1fr auto;
gap: 0.5rem;
}
#search-input,
#search-button,
.player-controls button,
#progress {
border-radius: 8px;
border: 1px solid var(--border);
background: var(--panel);
color: var(--text);
}
#search-input {
padding: 0.65rem 0.75rem;
font-size: 0.95rem;
}
#search-button {
padding: 0.65rem 0.9rem;
cursor: pointer;
background: var(--panel-2);
}
#search-button:disabled {
opacity: 0.65;
cursor: wait;
}
.status {
margin: 0.65rem 0 0;
color: var(--muted);
font-size: 0.9rem;
}
.status[data-type='ok'] {
color: var(--ok);
}
.status[data-type='error'] {
color: var(--danger);
}
.results-section {
margin-top: 1rem;
}
.results-list {
list-style: none;
margin: 0;
padding: 0;
border: 1px solid var(--border);
border-radius: 12px;
overflow: hidden;
background: var(--panel);
}
.result-item,
.result-empty {
display: grid;
grid-template-columns: 44px 1fr auto;
align-items: center;
gap: 0.65rem;
padding: 0.65rem 0.75rem;
border-bottom: 1px solid var(--border);
}
.result-item:last-child,
.result-empty:last-child {
border-bottom: none;
}
.result-item {
cursor: pointer;
}
.result-item:hover {
background: #1d2228;
}
.result-cover {
width: 44px;
height: 44px;
border-radius: 6px;
object-fit: cover;
background: #0f1113;
}
.result-meta {
min-width: 0;
}
.result-title,
.result-subtitle,
.result-duration {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.result-title {
font-size: 0.95rem;
}
.result-subtitle,
.result-duration,
.result-empty {
color: var(--muted);
font-size: 0.85rem;
}
.player-bar {
position: fixed;
left: 0;
right: 0;
bottom: 0;
background: #0f1114;
border-top: 1px solid var(--border);
display: grid;
grid-template-columns: minmax(220px, 2fr) auto minmax(180px, 3fr);
align-items: center;
gap: 0.75rem;
padding: 0.75rem 1rem;
}
.player-meta {
display: flex;
align-items: center;
gap: 0.65rem;
min-width: 0;
}
#player-cover {
width: 52px;
height: 52px;
border-radius: 8px;
object-fit: cover;
background: #1a1d21;
}
#player-title,
#player-artist {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
#player-title {
font-size: 0.95rem;
}
#player-artist {
color: var(--muted);
font-size: 0.85rem;
}
.player-controls {
display: flex;
gap: 0.4rem;
}
.player-controls button {
width: 2.25rem;
height: 2.25rem;
cursor: pointer;
}
.progress-wrap {
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
gap: 0.5rem;
}
#current-time,
#duration {
color: var(--muted);
font-size: 0.8rem;
min-width: 2.4rem;
text-align: center;
}
#progress {
width: 100%;
accent-color: var(--accent);
}
@media (max-width: 860px) {
.player-bar {
grid-template-columns: 1fr;
gap: 0.6rem;
}
.player-controls {
justify-self: center;
}
.progress-wrap {
width: 100%;
}
}