- Frontend HTML/CSS/JS in webui/ (stile Spotify-like, hero gradient, modal blur) - API bridge JS<->Python in api/bridge.py - Core invariato: downloader yt-dlp, upgrader, spotify client, config - Build scripts macOS (WebKit) e Windows (EdgeChromium) - .gitignore esclude credenziali (config.json, cookies.txt) e artefatti build Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
779 lines
15 KiB
CSS
779 lines
15 KiB
CSS
/* ===============================
|
|
MusicDownload — Spotify-like UI
|
|
=============================== */
|
|
|
|
:root {
|
|
--bg: #0A0A0A;
|
|
--bg-elev: #121212;
|
|
--bg-card: #181818;
|
|
--bg-card-2: #1F1F1F;
|
|
--bg-input: #2A2A2A;
|
|
--bg-input-hover: #3A3A3A;
|
|
|
|
--border: #232323;
|
|
--divider: #1F1F1F;
|
|
|
|
--green: #1DB954;
|
|
--green-hover: #1ED760;
|
|
--green-press: #169B46;
|
|
--green-dim: #0F3B22;
|
|
|
|
--blue: #509BF5;
|
|
--blue-hover: #6FB1F7;
|
|
--blue-dim: #1A2F4A;
|
|
|
|
--purple: #A855F7;
|
|
--purple-hover: #C084FC;
|
|
--purple-dim: #2D1B4D;
|
|
|
|
--red: #E22134;
|
|
--red-hover: #FF4055;
|
|
|
|
--text: #FFFFFF;
|
|
--text-2: #B3B3B3;
|
|
--text-3: #727272;
|
|
|
|
--r-sm: 8px;
|
|
--r-md: 12px;
|
|
--r-lg: 14px;
|
|
--r-pill: 999px;
|
|
|
|
--shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
|
|
--shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
html, body {
|
|
height: 100%;
|
|
width: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
body {
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
-webkit-font-smoothing: antialiased;
|
|
user-select: none;
|
|
}
|
|
|
|
button, input, select, textarea { font-family: inherit; font-size: inherit; }
|
|
|
|
/* ===============================
|
|
LAYOUT
|
|
=============================== */
|
|
.app {
|
|
display: grid;
|
|
grid-template-columns: 240px 1fr;
|
|
height: 100vh;
|
|
}
|
|
|
|
/* ===============================
|
|
SIDEBAR
|
|
=============================== */
|
|
.sidebar {
|
|
background: var(--bg-elev);
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 24px 12px;
|
|
border-right: 1px solid var(--border);
|
|
}
|
|
|
|
.brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 0 8px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.brand-logo {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, var(--green), var(--green-press));
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 22px;
|
|
font-weight: 900;
|
|
color: #000;
|
|
box-shadow: 0 4px 12px rgba(29, 185, 84, 0.35);
|
|
}
|
|
|
|
.brand-name {
|
|
font-size: 17px;
|
|
font-weight: 700;
|
|
letter-spacing: -0.2px;
|
|
}
|
|
|
|
.divider {
|
|
height: 1px;
|
|
background: var(--divider);
|
|
margin: 0 8px 16px;
|
|
}
|
|
|
|
.nav {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
flex: 1;
|
|
}
|
|
|
|
.nav-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
padding: 12px 14px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-2);
|
|
cursor: pointer;
|
|
border-radius: var(--r-sm);
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
text-align: left;
|
|
transition: background-color 0.15s ease, color 0.15s ease;
|
|
}
|
|
|
|
.nav-item:hover {
|
|
background: #1A1A1A;
|
|
color: var(--text);
|
|
}
|
|
|
|
.nav-item.active {
|
|
background: #1F1F1F;
|
|
color: var(--green);
|
|
}
|
|
|
|
.nav-icon {
|
|
font-size: 16px;
|
|
width: 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.footer {
|
|
text-align: center;
|
|
padding-top: 16px;
|
|
border-top: 1px solid var(--divider);
|
|
}
|
|
|
|
.footer-by {
|
|
color: var(--green);
|
|
font-weight: 700;
|
|
font-size: 12px;
|
|
letter-spacing: 0.4px;
|
|
}
|
|
|
|
.footer-version {
|
|
color: var(--text-3);
|
|
font-size: 11px;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
/* ===============================
|
|
MAIN
|
|
=============================== */
|
|
.main {
|
|
overflow-y: auto;
|
|
padding: 24px 32px 32px;
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
.view {
|
|
display: none;
|
|
animation: fadeIn 0.25s ease both;
|
|
}
|
|
|
|
.view.active {
|
|
display: block;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; transform: translateY(6px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
/* ===============================
|
|
HERO
|
|
=============================== */
|
|
.hero {
|
|
position: relative;
|
|
border-radius: var(--r-lg);
|
|
padding: 28px 32px;
|
|
margin-bottom: 24px;
|
|
overflow: hidden;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.hero-green {
|
|
background: linear-gradient(135deg, #16893E 0%, #0F3B22 60%, #062614 100%);
|
|
}
|
|
|
|
.hero-blue {
|
|
background: linear-gradient(135deg, #2D4D7A 0%, #1A2F4A 60%, #0D1A2B 100%);
|
|
}
|
|
|
|
.hero-purple {
|
|
background: linear-gradient(135deg, #5D2C9C 0%, #2D1B4D 60%, #1A0F2E 100%);
|
|
}
|
|
|
|
.hero-content { position: relative; z-index: 2; max-width: 70%; }
|
|
|
|
.hero-eyebrow {
|
|
font-size: 11px;
|
|
font-weight: 800;
|
|
letter-spacing: 1.5px;
|
|
color: var(--green);
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.hero-eyebrow.blue { color: var(--blue); }
|
|
.hero-eyebrow.purple { color: var(--purple); }
|
|
|
|
.hero-title {
|
|
font-size: 36px;
|
|
font-weight: 900;
|
|
letter-spacing: -0.8px;
|
|
line-height: 1.1;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.hero-subtitle {
|
|
font-size: 14px;
|
|
color: rgba(255, 255, 255, 0.7);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.hero-deco {
|
|
position: absolute;
|
|
right: -10px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
font-size: 180px;
|
|
font-weight: 900;
|
|
opacity: 0.08;
|
|
line-height: 1;
|
|
user-select: none;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* ===============================
|
|
SECTION LABELS
|
|
=============================== */
|
|
.section-label {
|
|
font-size: 11px;
|
|
font-weight: 800;
|
|
letter-spacing: 1.2px;
|
|
color: var(--text-3);
|
|
text-transform: uppercase;
|
|
margin: 8px 4px 10px;
|
|
}
|
|
|
|
/* ===============================
|
|
CARDS
|
|
=============================== */
|
|
.card {
|
|
background: var(--bg-card);
|
|
border-radius: var(--r-md);
|
|
padding: 18px 20px;
|
|
margin-bottom: 18px;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.card-accent-purple {
|
|
background: linear-gradient(180deg, #1F1532 0%, #181818 80%);
|
|
border: 1px solid rgba(168, 85, 247, 0.2);
|
|
}
|
|
|
|
.card.actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.log-card {
|
|
padding: 12px;
|
|
}
|
|
|
|
/* ===============================
|
|
FIELDS
|
|
=============================== */
|
|
.field { margin-bottom: 14px; }
|
|
.field:last-child { margin-bottom: 0; }
|
|
|
|
.field.inline {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
}
|
|
.field.inline .field-label { margin-bottom: 0; }
|
|
|
|
.field-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
color: var(--text-2);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.6px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.row.gap { gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
|
|
.row.spread { justify-content: space-between; }
|
|
|
|
.badge {
|
|
background: rgba(29, 185, 84, 0.15);
|
|
color: var(--green);
|
|
padding: 2px 8px;
|
|
border-radius: 10px;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* ===============================
|
|
INPUTS
|
|
=============================== */
|
|
.input {
|
|
width: 100%;
|
|
background: var(--bg-input);
|
|
color: var(--text);
|
|
border: 1px solid transparent;
|
|
padding: 10px 16px;
|
|
border-radius: var(--r-sm);
|
|
outline: none;
|
|
transition: background-color 0.15s, border-color 0.15s;
|
|
}
|
|
|
|
.input.pill { border-radius: var(--r-pill); }
|
|
|
|
.input::placeholder { color: var(--text-3); }
|
|
|
|
.input:focus {
|
|
background: #333;
|
|
border-color: rgba(29, 185, 84, 0.4);
|
|
}
|
|
|
|
.input-sm { max-width: 200px; }
|
|
|
|
select.input {
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='%23B3B3B3' d='M2 4l4 4 4-4z'/></svg>");
|
|
background-repeat: no-repeat;
|
|
background-position: right 14px center;
|
|
background-size: 12px;
|
|
padding-right: 36px;
|
|
}
|
|
|
|
input[type="number"] { -moz-appearance: textfield; }
|
|
input[type="number"]::-webkit-outer-spin-button,
|
|
input[type="number"]::-webkit-inner-spin-button {
|
|
-webkit-appearance: none;
|
|
margin: 0;
|
|
}
|
|
|
|
.path-display {
|
|
flex: 1;
|
|
background: var(--bg-input);
|
|
color: var(--text);
|
|
padding: 10px 16px;
|
|
border-radius: var(--r-pill);
|
|
font-size: 13px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.path-display:empty,
|
|
.path-display.empty { color: var(--text-3); }
|
|
|
|
/* ===============================
|
|
BUTTONS
|
|
=============================== */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
border: none;
|
|
cursor: pointer;
|
|
padding: 10px 22px;
|
|
font-weight: 700;
|
|
border-radius: var(--r-sm);
|
|
white-space: nowrap;
|
|
transition: transform 0.06s ease, background-color 0.15s, color 0.15s;
|
|
}
|
|
|
|
.btn.pill { border-radius: var(--r-pill); }
|
|
.btn.btn-sm { padding: 8px 16px; font-size: 12px; }
|
|
.btn.btn-lg { padding: 14px 32px; font-size: 14px; }
|
|
|
|
.btn:active { transform: scale(0.96); }
|
|
.btn:disabled { cursor: not-allowed; opacity: 0.4; }
|
|
.btn:not(:disabled):hover { filter: brightness(1.06); }
|
|
|
|
.btn-primary {
|
|
background: var(--green);
|
|
color: #000;
|
|
}
|
|
|
|
.btn-primary:not(:disabled):hover {
|
|
background: var(--green-hover);
|
|
transform: scale(1.02);
|
|
}
|
|
|
|
.btn-blue {
|
|
background: var(--blue);
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-purple {
|
|
background: var(--purple);
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-success {
|
|
background: #00CEC9;
|
|
color: #000;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.btn-danger {
|
|
background: transparent;
|
|
color: var(--red);
|
|
border: 1px solid var(--red);
|
|
}
|
|
|
|
.btn-danger:not(:disabled):hover {
|
|
background: var(--red);
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-ghost {
|
|
background: var(--bg-input);
|
|
color: var(--text);
|
|
}
|
|
|
|
.btn-ghost:not(:disabled):hover {
|
|
background: var(--bg-input-hover);
|
|
}
|
|
|
|
.ico {
|
|
font-size: 12px;
|
|
line-height: 1;
|
|
}
|
|
|
|
/* ===============================
|
|
COUNTER / PROGRESS
|
|
=============================== */
|
|
.counter {
|
|
color: var(--text-2);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.progress-head {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.micro-label {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.8px;
|
|
color: var(--text-2);
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.percent {
|
|
font-size: 14px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.percent.green { color: var(--green); }
|
|
.percent.blue { color: var(--blue); }
|
|
|
|
.progress {
|
|
width: 100%;
|
|
height: 6px;
|
|
background: var(--bg-input);
|
|
border-radius: 3px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.progress-fill {
|
|
width: 0%;
|
|
height: 100%;
|
|
border-radius: 3px;
|
|
transition: width 0.2s ease-out;
|
|
}
|
|
|
|
.progress-fill.green {
|
|
background: linear-gradient(90deg, var(--green), var(--green-hover));
|
|
}
|
|
|
|
.progress-fill.blue {
|
|
background: linear-gradient(90deg, var(--blue), var(--blue-hover));
|
|
}
|
|
|
|
/* ===============================
|
|
LOG BOX
|
|
=============================== */
|
|
.log {
|
|
background: var(--bg-card-2);
|
|
border-radius: var(--r-sm);
|
|
padding: 14px 16px;
|
|
font-family: "SF Mono", Menlo, Consolas, monospace;
|
|
font-size: 12px;
|
|
color: var(--text-2);
|
|
height: 220px;
|
|
overflow-y: auto;
|
|
white-space: pre-wrap;
|
|
user-select: text;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.log .l-ok { color: var(--green); }
|
|
.log .l-err { color: var(--red); }
|
|
.log .l-info { color: var(--blue); }
|
|
.log .l-warn { color: #FDCB6E; }
|
|
.log .l-muted { color: var(--text-3); }
|
|
|
|
/* ===============================
|
|
CHECKBOX
|
|
=============================== */
|
|
.checkbox {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
cursor: pointer;
|
|
color: var(--text);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
margin: 6px 0 14px;
|
|
user-select: none;
|
|
}
|
|
|
|
.checkbox input { display: none; }
|
|
|
|
.check-box {
|
|
width: 18px;
|
|
height: 18px;
|
|
border-radius: 4px;
|
|
background: var(--bg-input);
|
|
border: 1px solid var(--bg-input-hover);
|
|
position: relative;
|
|
transition: background-color 0.15s, border-color 0.15s;
|
|
}
|
|
|
|
.checkbox input:checked + .check-box {
|
|
background: var(--blue);
|
|
border-color: var(--blue);
|
|
}
|
|
|
|
.checkbox input:checked + .check-box::after {
|
|
content: "";
|
|
position: absolute;
|
|
left: 5px;
|
|
top: 1px;
|
|
width: 5px;
|
|
height: 11px;
|
|
border: solid #fff;
|
|
border-width: 0 2px 2px 0;
|
|
transform: rotate(45deg);
|
|
}
|
|
|
|
/* ===============================
|
|
INFO ROW (Upgrade tab)
|
|
=============================== */
|
|
.info-row {
|
|
color: var(--green);
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
margin-bottom: 14px;
|
|
min-height: 18px;
|
|
}
|
|
|
|
/* ===============================
|
|
SETTINGS
|
|
=============================== */
|
|
.version-line {
|
|
color: var(--text-2);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.strong { color: var(--text); font-weight: 700; }
|
|
|
|
.update-status {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
margin-top: 12px;
|
|
min-height: 18px;
|
|
}
|
|
|
|
.update-status.ok { color: var(--green); }
|
|
.update-status.warn { color: #FDCB6E; }
|
|
.update-status.err { color: var(--red); }
|
|
|
|
.update-notes {
|
|
color: var(--text-3);
|
|
font-size: 12px;
|
|
margin-top: 8px;
|
|
white-space: pre-line;
|
|
}
|
|
|
|
.save-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
margin: 20px 0 32px;
|
|
}
|
|
|
|
.save-status {
|
|
color: var(--green);
|
|
font-weight: 700;
|
|
font-size: 13px;
|
|
opacity: 0;
|
|
transition: opacity 0.25s;
|
|
}
|
|
|
|
.save-status.show { opacity: 1; }
|
|
|
|
/* ===============================
|
|
MODAL
|
|
=============================== */
|
|
.modal-backdrop {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.65);
|
|
backdrop-filter: blur(4px);
|
|
-webkit-backdrop-filter: blur(4px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 200;
|
|
animation: fadeIn 0.18s ease both;
|
|
}
|
|
|
|
.modal-backdrop[hidden] { display: none; }
|
|
|
|
.modal {
|
|
background: var(--bg-card);
|
|
border-radius: var(--r-lg);
|
|
width: min(560px, calc(100% - 40px));
|
|
max-height: 80vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
box-shadow: var(--shadow-lg);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.modal-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 18px 22px;
|
|
border-bottom: 1px solid var(--divider);
|
|
}
|
|
|
|
.modal-head h2 {
|
|
font-size: 17px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.modal-close {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-2);
|
|
font-size: 26px;
|
|
cursor: pointer;
|
|
line-height: 1;
|
|
padding: 0 6px;
|
|
}
|
|
|
|
.modal-close:hover { color: var(--text); }
|
|
|
|
.modal-body {
|
|
padding: 18px 22px;
|
|
font-family: "SF Mono", Menlo, Consolas, monospace;
|
|
font-size: 13px;
|
|
color: var(--text-2);
|
|
white-space: pre-wrap;
|
|
overflow-y: auto;
|
|
line-height: 1.6;
|
|
user-select: text;
|
|
flex: 1;
|
|
}
|
|
|
|
.modal-foot {
|
|
display: flex;
|
|
gap: 10px;
|
|
padding: 14px 22px;
|
|
border-top: 1px solid var(--divider);
|
|
}
|
|
|
|
/* ===============================
|
|
TOAST
|
|
=============================== */
|
|
.toast {
|
|
position: fixed;
|
|
bottom: 32px;
|
|
left: 50%;
|
|
transform: translate(-50%, 100px);
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
color: var(--text);
|
|
padding: 14px 22px;
|
|
border-radius: var(--r-pill);
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
box-shadow: var(--shadow-lg);
|
|
opacity: 0;
|
|
transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1), opacity 0.3s;
|
|
z-index: 300;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.toast.show {
|
|
opacity: 1;
|
|
transform: translate(-50%, 0);
|
|
}
|
|
|
|
.toast.toast-error { border-color: var(--red); color: var(--red); }
|
|
.toast.toast-success { border-color: var(--green); color: var(--green); }
|
|
|
|
/* ===============================
|
|
SCROLLBARS (WebKit)
|
|
=============================== */
|
|
::-webkit-scrollbar { width: 10px; height: 10px; }
|
|
::-webkit-scrollbar-track { background: transparent; }
|
|
::-webkit-scrollbar-thumb {
|
|
background: #404040;
|
|
border-radius: 5px;
|
|
border: 2px solid var(--bg);
|
|
}
|
|
::-webkit-scrollbar-thumb:hover { background: #606060; }
|
|
|
|
.log::-webkit-scrollbar-thumb { border-color: var(--bg-card-2); }
|
|
.main::-webkit-scrollbar-thumb { border-color: var(--bg); }
|