﻿/* CLOUDEX — Your files. Your cloud. (black & white) */

:root {
  --bg: #000000;
  --bg-elev: #0d0d0f;
  --surface: #121214;
  --surface-2: #1a1a1d;
  --text: #ffffff;
  --muted: #a3a3ab;
  --faint: #6b6b74;
  --border: #232327;
  --border-strong: #3a3a41;
  --accent: #ffffff;
  --accent-2: #d4d4d8;
  --accent-soft: rgba(255, 255, 255, .07);
  --success: #ffffff;
  --danger: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 6px rgba(0,0,0,.4), 0 18px 50px rgba(0,0,0,.6);
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: var(--font-ui);
  background: linear-gradient(175deg, #000 0%, #050505 38%, #1c1c1f 78%, #3b3b40 115%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection { background: rgba(255, 255, 255, .25); }

a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; opacity: .8; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; }

.icon {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.icon-sm { width: 15px; height: 15px; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; max-width: 960px; margin: 0 auto; width: 100%;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 19px; letter-spacing: .06em;
  color: var(--text);
}
.brand:hover { color: #fff; opacity: 1; }
.brand .icon { width: 23px; height: 23px; color: #fff; }
.site-header nav { display: flex; gap: 18px; font-size: 13px; color: var(--muted); }
.site-header nav a:hover { color: var(--text); opacity: 1; }

main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 10px 20px 48px; }

.hero { text-align: center; padding: 30px 0 24px; }
.hero .tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 99px; padding: 5px 14px; margin-bottom: 16px;
}
.hero .tag .icon { width: 13px; height: 13px; color: #fff; }
.hero h1 {
  font-size: clamp(30px, 6vw, 44px); margin: 0 0 8px; font-weight: 700; letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 20%, #6f6f78 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero p { color: var(--muted); font-size: 16px; margin: 0; }

/* Upload card */
.upload-card {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.015) 60%);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 54px 24px;
  text-align: center;
  cursor: pointer;
  outline: none;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}
.dropzone:hover { border-color: #fff; background: rgba(255, 255, 255, .03); }
.dropzone:focus-visible { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
.dropzone.dragging {
  border-color: #fff;
  background: rgba(255, 255, 255, .06);
  transform: scale(1.006);
}
.dropzone .icon { width: 46px; height: 46px; stroke-width: 1.4; color: #fff; margin-bottom: 14px; }
.dropzone h2 { margin: 0 0 6px; font-size: 19px; font-weight: 600; }
.dropzone p { margin: 0; color: var(--muted); font-size: 14px; }

.dz-buttons { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }

.smallprint { text-align: center; color: var(--faint); font-size: 12.5px; margin-top: 14px; }

/* Queue */
.queue { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.file-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 13px 15px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
  animation: rise .18s ease;
}
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.file-item .row { display: flex; align-items: center; gap: 12px; }
.file-item .icon { color: var(--muted); }
.file-meta { flex: 1; min-width: 0; }
.file-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-sub { color: var(--muted); font-size: 12.5px; display: flex; gap: 10px; flex-wrap: wrap; }
.file-status { font-size: 13px; display: flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.file-status.ok { color: #fff; }
.file-status.err { color: #fff; }

.progress { margin-top: 10px; height: 4px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress > div { height: 100%; width: 0%; background: linear-gradient(90deg, #9a9aa2, #ffffff); border-radius: 99px; transition: width .2s ease; }

.link-box {
  margin-top: 10px; display: flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 8px 10px;
}
.link-box input {
  flex: 1; border: none; background: transparent; font-family: inherit;
  font-size: 13px; color: #fff; min-width: 0; outline: none;
}
.link-box .icon-sm { color: #fff; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, #ffffff, #b9b9c0); color: #000; border: 1px solid #fff; border-radius: 10px;
  padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: opacity .14s ease, transform .05s ease;
  text-decoration: none;
}
.btn:hover { opacity: .85; text-decoration: none; color: #000; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); color: var(--text); opacity: 1; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); opacity: 1; }

.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 16px 24px; font-size: 12.5px; color: var(--faint); }
.site-footer .inner { max-width: 960px; margin: 0 auto; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); opacity: 1; }

/* ============ Music player (download page) ============ */

.player-card {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.015) 60%);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 26px;
  margin: 14px auto;
  max-width: 720px;
}

.player-grid { display: flex; gap: 26px; align-items: flex-start; }

.art-wrap { position: relative; width: 240px; height: 240px; flex-shrink: 0; }
.art {
  width: 240px; height: 240px; border-radius: 18px;
  object-fit: cover; display: block;
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
  background: var(--surface-2);
}
.art-fallback {
  width: 240px; height: 240px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
}
.art-fallback .icon { width: 64px; height: 64px; stroke-width: 1.2; color: rgba(255,255,255,.9); }
.art-badge {
  position: absolute; bottom: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgba(0,0,0,.6); backdrop-filter: blur(6px);
  border-radius: 99px; padding: 5px 10px;
}

.player-info { flex: 1; min-width: 0; padding-top: 6px; }
.track-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 30px); font-weight: 700; letter-spacing: -0.02em;
  margin: 0 0 4px; line-height: 1.2;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.track-artist { color: var(--muted); font-size: 16px; font-weight: 500; margin: 0 0 12px; }
.track-artist .sep { color: var(--faint); margin: 0 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 99px; padding: 4px 11px;
  font-variant-numeric: tabular-nums;
}
.chip .icon { width: 13px; height: 13px; color: var(--muted); }
.chip b { color: #fff; font-weight: 550; }

/* Art-on-top layout */
.art-block { max-width: 400px; margin: 0 auto 4px; }
.art-block .art, .art-block .art-fallback { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 20px; }
.vol-row { display: flex; align-items: center; gap: 10px; max-width: 460px; margin: 20px auto 4px; }
.vol-row input[type=range] { flex: 1; accent-color: #fff; cursor: pointer; height: 4px; }
.track-head { margin-top: 16px; }

/* Controls */
.player-controls { margin-top: 22px; }
.seek-row { display: flex; align-items: center; gap: 12px; }
.time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 44px; }
.time.right { text-align: right; }

.seekbar { position: relative; flex: 1; height: 26px; cursor: pointer; touch-action: none; outline: none; }
.seekbar:focus-visible .seek-thumb { box-shadow: 0 0 0 3px rgba(255,255,255,.2); }
.seek-rail {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden;
}
.seek-buffer { position: absolute; inset: 0; width: 0%; background: rgba(255,255,255,.1); }
.seek-fill {
  position: absolute; inset: 0; width: 0%;
  background: linear-gradient(90deg, #9a9aa2, #ffffff);
  border-radius: 99px;
}
.seek-thumb {
  position: absolute; top: 50%; left: 0%;
  width: 14px; height: 14px; border-radius: 99px;
  background: #fff; transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0,0,0,.6);
  transition: transform .1s ease;
}
.seekbar:hover .seek-thumb, .seekbar.dragging .seek-thumb { transform: translate(-50%, -50%) scale(1.25); }

.controls-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }

.pbtn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; border-radius: 99px;
  background: transparent; color: var(--muted);
  width: 40px; height: 40px;
  transition: color .12s ease, background-color .12s ease;
}
.pbtn:hover { color: #fff; background: var(--surface-2); }
.pbtn .icon { width: 19px; height: 19px; }

.play-btn {
  width: 64px; height: 64px; border-radius: 99px; border: 1px solid #fff; cursor: pointer;
  background: linear-gradient(180deg, #ffffff, #b9b9c0);
  color: #000; display: inline-flex; align-items: center; justify-content: center;
  transition: transform .1s ease, opacity .12s ease;
}
.play-btn:hover { opacity: .85; }
.play-btn:active { transform: scale(.96); }
.play-btn svg { width: 24px; height: 24px; }

.skip-wrap { display: flex; flex-direction: column; align-items: center; gap: 0; }
.skip-label { font-size: 9.5px; color: var(--faint); margin-top: -3px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }

.vol-group { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-left: 8px; }
.vol-group .icon { width: 17px; height: 17px; }
.vol-group input[type=range] { width: 90px; accent-color: #fff; cursor: pointer; height: 4px; }

.visualizer { margin-top: 18px; width: 100%; height: 46px; display: block; border-radius: 8px; }

.player-actions { display: flex; gap: 10px; margin-top: 16px; align-items: center; flex-wrap: wrap; }
.player-actions .spacer { flex: 1; }

.kbd-hint { color: var(--faint); font-size: 11.5px; margin-top: 12px; text-align: center; }
.kbd-hint kbd {
  font-family: var(--font-ui); font-size: 10.5px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; color: var(--muted);
}

/* Generic file (non-audio) card */
.dl-card {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.015) 60%);
  border: 1px solid var(--border); border-radius: 24px;
  box-shadow: var(--shadow); max-width: 720px; margin: 14px auto; overflow: hidden;
}
.dl-head { padding: 20px 22px; display: flex; gap: 14px; align-items: center; border-bottom: 1px solid var(--border); }
.dl-head .icon { width: 36px; height: 36px; color: #fff; stroke-width: 1.5; }
.dl-head .file-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.dl-actions { padding: 14px 22px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.dl-actions .btn .icon-sm { color: #000; }
.dl-actions .meta { color: var(--muted); font-size: 12.5px; margin-left: auto; }
.preview { background: rgba(255,255,255,.02); padding: 16px 22px 22px; }
.preview img, .preview video { max-width: 100%; border-radius: 12px; display: block; margin: 0 auto; max-height: 62vh; }
.preview iframe.pdf { width: 100%; height: 62vh; border: none; border-radius: 12px; background: #fff; }
.preview pre.text {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 15px; overflow: auto; max-height: 60vh; font-size: 13px; margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* States */
.state { text-align: center; padding: 64px 20px; color: var(--muted); }
.state .icon { width: 38px; height: 38px; margin-bottom: 12px; }
.state.error .icon { color: #fff; }
.state h2 { color: var(--text); margin: 0 0 6px; font-size: 20px; }
.state p { margin: 0; }
.state .btn { margin-top: 16px; }

.shimmer { color: var(--muted); animation: pulse 1.4s ease infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* Legal */
.legal { max-width: 720px; margin: 0 auto; padding-top: 10px; }
.legal h1 { font-size: 30px; margin-bottom: 4px; }
.legal .updated { color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.legal h2 { font-size: 17px; margin-top: 30px; margin-bottom: 6px; }
.legal p, .legal li { color: var(--muted); font-size: 14.5px; }
.legal ul { padding-left: 20px; }
.legal strong { color: var(--text); font-weight: 600; }

@media (max-width: 640px) {
  .site-header { padding: 14px 16px; }
  main { padding: 4px 14px 36px; }
  .dropzone { padding: 40px 14px; }
  .hero { padding: 20px 0 18px; }
  .player-card { padding: 18px; }
  .art-block { max-width: 100%; }
  .player-grid { flex-direction: column; align-items: center; }
  .art-wrap, .art, .art-fallback { width: 200px; height: 200px; }
  .player-info { text-align: center; width: 100%; padding-top: 4px; }
  .chips { justify-content: center; }
  .player-actions { justify-content: center; }
  .player-actions .spacer { display: none; }
}


/* Album track list */
.album-tracks { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 8px; }
.album-track { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: transparent; border: none; border-radius: 10px; padding: 9px 10px; cursor: pointer; color: var(--text); font-family: inherit; font-size: 13.5px; transition: background-color .12s ease; }
.album-track:hover { background: var(--surface-2); }
.album-track.current { background: var(--accent-soft); }
.album-track-num { color: var(--faint); min-width: 20px; text-align: right; font-variant-numeric: tabular-nums; }
.album-track.current .album-track-num { color: #fff; }
.album-track-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 550; }
.album-track.current .album-track-name { color: #fff; }
.album-track-size { color: var(--faint); font-size: 12px; }
.album-track-dl { color: var(--muted); padding: 4px; border-radius: 6px; }
.album-grip { color: var(--faint); cursor: grab; display: inline-flex; padding: 2px; }
.album-grip:hover { color: var(--text); }
.album-nudge { background: transparent; border: none; color: var(--faint); cursor: pointer; font-size: 12px; padding: 3px 5px; border-radius: 6px; font-family: inherit; }
.album-nudge:hover { color: #fff; background: var(--surface-2); }
.album-track.dragging { opacity: .4; }
.album-track-dl:hover { color: #fff; }

/* Polished link row after upload */
.link-box { padding: 12px 12px; border-radius: 12px; background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); }
.link-box input { font-size: 13.5px; letter-spacing: .01em; }
.link-box .btn { padding: 8px 14px; font-size: 13px; gap: 6px; box-shadow: 0 4px 14px rgba(255,255,255,.15); }
.link-box .btn-secondary { border-color: var(--border-strong); }
.file-item.done { border-color: var(--border-strong); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)); }
.file-item.done .file-name { color: #fff; }
.done-check { color: #fff; }
.album-track-dl:hover { color: #fff; }
.folder-link { color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; background: none; border: none; padding: 0; font-family: inherit; }
.folder-link:hover { color: var(--text); }

@media (max-width: 640px) {
  .album-track-name { font-size: 12.5px; }
  .album-track-size { display: none; }
}

/* ================================================================
   ACCOUNTS & PROJECTS
   ================================================================ */

/* ---- shared page scaffolding ---- */
.page { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 10px 24px 90px; }
.page-wide { max-width: 1200px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 0 22px;
}
.topbar .left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar .right { display: flex; align-items: center; gap: 10px; }

.back-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  color: var(--muted); background: transparent;
  border: 1px solid var(--border);
  transition: all .15s ease;
}
.back-btn:hover { color: #fff; border-color: var(--border-strong); background: rgba(255,255,255,.04); }

.avatar {
  border-radius: 50%; object-fit: cover; background: var(--surface-2);
  display: block;
}
.avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--surface-2); color: var(--muted);
  font-weight: 600;
}

.account-chip {
  display: flex; align-items: center; gap: 9px;
  padding: 4px 12px 4px 4px; border-radius: 99px;
  border: 1px solid var(--border); background: rgba(255,255,255,.02);
  color: var(--text); font-size: 13px; font-weight: 500;
  transition: border-color .15s ease, background .15s ease;
}
.account-chip:hover { border-color: var(--border-strong); background: rgba(255,255,255,.05); color: #fff; opacity: 1; }
.account-chip .avatar { width: 26px; height: 26px; }

/* ---- generic pill buttons (non-.btn solid styles) ---- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px; border-radius: 99px;
  font-family: var(--font-ui); font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--border-strong); background: transparent; color: var(--text);
  cursor: pointer; transition: all .15s ease; white-space: nowrap;
}
.pill:hover { background: rgba(255,255,255,.07); border-color: #fff; }
.pill.primary { background: #fff; color: #000; border-color: #fff; }
.pill.primary:hover { background: #e8e8e8; border-color: #e8e8e8; }
.pill.danger:hover { border-color: #ff6b6b; color: #ff6b6b; background: rgba(255,107,107,.06); }
.pill .icon { width: 15px; height: 15px; }

/* ---- modal ---- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.72);
  display: flex; align-items: center; justify-content: center;
  z-index: 90; padding: 18px; backdrop-filter: blur(6px);
}
.modal {
  width: 100%; max-width: 480px; max-height: 86vh; overflow: auto;
  background: linear-gradient(180deg, #141416, #0b0b0d);
  border: 1px solid var(--border-strong); border-radius: 18px;
  padding: 22px; box-shadow: var(--shadow);
}
.modal h2 { margin: 0 0 4px; font-size: 19px; }
.modal .modal-sub { color: var(--muted); font-size: 13px; margin: 0 0 16px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.field input[type="text"], .field input[type="url"], .field textarea {
  width: 100%; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  font-family: var(--font-ui); font-size: 14px; padding: 10px 12px;
  outline: none; transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus { border-color: #fff; }
.field textarea { resize: vertical; min-height: 74px; }
.field .hint { font-size: 12px; color: var(--faint); margin-top: 5px; }
.field .err { font-size: 12.5px; color: #ff8080; margin-top: 5px; }

.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* ---- login page ---- */
.login-wrap {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 40px 20px 80px;
}
.login-card { width: 100%; max-width: 380px; text-align: center; }
.login-card .brand-mark { margin-bottom: 22px; }
.login-card .brand-mark .icon { width: 46px; height: 46px; color: #fff; }
.login-card h1 {
  font-size: 34px; margin: 0 0 10px; letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 20%, #6f6f78 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  color: transparent;
}
.login-card .lede { color: var(--muted); font-size: 15px; margin: 0 0 30px; }

.google-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px;
  height: 50px; border-radius: 99px; border: 1px solid var(--border-strong);
  background: #fff; color: #111; font-family: var(--font-ui);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform .12s ease, background .15s ease;
}
.google-btn:hover { background: #f0f0f0; transform: translateY(-1px); }
.google-btn:active { transform: translateY(0); }
.google-btn svg { width: 20px; height: 20px; }
.login-fine { color: var(--faint); font-size: 12.5px; margin-top: 18px; line-height: 1.6; }
.login-error {
  margin: 0 0 18px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid rgba(255,107,107,.35); background: rgba(255,107,107,.08);
  color: #ff9c9c; font-size: 13.5px;
}


/* ---- library (projects grid) ---- */
.library-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 6px 0 26px; }
.library-head .kicker { color: var(--muted); font-size: 14.5px; margin: 0; }
.library-head h1 {
  font-size: clamp(34px, 6vw, 54px); margin: 2px 0 0; letter-spacing: -0.03em; font-weight: 700;
}
.library-sort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; }
.library-sort select {
  background: transparent; color: var(--text); border: 1px solid var(--border-strong);
  border-radius: 8px; font-family: var(--font-ui); font-size: 13.5px; padding: 5px 8px; cursor: pointer;
}
.library-sort select option { background: #0d0d0f; }

.lib-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 26px 18px;
}
.lib-card { position: relative; text-align: left; cursor: pointer; background: none; border: none; padding: 0; color: inherit; font: inherit; }
.lib-card .cover {
  position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden;
  background: linear-gradient(160deg, #1d1d20 0%, #060607 100%);
  border: 1px solid var(--border);
  transition: transform .18s ease, border-color .18s ease;
}
.lib-card:hover .cover { transform: scale(1.02); border-color: var(--border-strong); }
.lib-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib-card .cover .cover-play {
  position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px;
  border-radius: 50%; background: #fff; color: #000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(6px); transition: all .18s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,.5);
}
.lib-card:hover .cover-play { opacity: 1; transform: translateY(0); }
.lib-card .cover .cover-play:hover { transform: scale(1.08); }
.lib-card .cover .cover-play .icon { width: 17px; height: 17px; }
.lib-card .cover .badge {
  position: absolute; top: 8px; left: 8px; padding: 3px 9px; border-radius: 99px;
  background: rgba(0,0,0,.65); border: 1px solid rgba(255,255,255,.2);
  font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.lib-card .cover .glyph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #3c3c42; }
.lib-card .cover .glyph .icon { width: 46px; height: 46px; }
.lib-card .t { margin-top: 9px; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-card .a { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-card .new-card .cover { display: flex; align-items: center; justify-content: center; color: var(--faint); }
.lib-card .new-card .cover:hover { color: #fff; }
.lib-card .new-card .cover .icon { width: 34px; height: 34px; }

.lib-card .card-menu {
  position: absolute; top: 8px; right: 8px; z-index: 5;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.14);
  color: #fff; display: none; align-items: center; justify-content: center; cursor: pointer;
}
.lib-card:hover .card-menu { display: flex; }
.menu-pop {
  position: absolute; top: 40px; right: 6px; z-index: 50; min-width: 168px;
  background: #151517; border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 5px; box-shadow: var(--shadow); display: none;
}
.menu-pop.open { display: block; }
.menu-pop button {
  width: 100%; display: flex; align-items: center; gap: 9px;
  background: none; border: none; color: var(--text);
  font: 500 13.5px var(--font-ui); padding: 9px 11px; border-radius: 8px; cursor: pointer; text-align: left;
}
.menu-pop button:hover { background: rgba(255,255,255,.07); }
.menu-pop button.danger { color: #ff8484; }
.menu-pop button .icon { width: 15px; height: 15px; }

/* ---- empty & error states ---- */
.empty-state {
  text-align: center; padding: 64px 20px; color: var(--muted);
  border: 1.5px dashed var(--border-strong); border-radius: 18px;
}
.empty-state .icon { width: 40px; height: 40px; color: var(--faint); margin-bottom: 10px; }
.empty-state h2 { color: var(--text); font-size: 20px; margin: 0 0 6px; }
.empty-state p { font-size: 14px; margin: 0 0 20px; }

.state { text-align: center; padding: 70px 20px; color: var(--muted); }
.state.error .icon { width: 34px; height: 34px; color: #ff8484; }
.state h2 { color: var(--text); font-size: 21px; margin: 8px 0 6px; }
.state p { font-size: 14px; margin: 0 0 18px; }


/* ---- project page ---- */
.proj-hero { display: flex; gap: 26px; padding: 8px 0 30px; }
.proj-cover {
  width: 230px; height: 230px; flex-shrink: 0; border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, #1d1d20 0%, #060607 100%);
  border: 1px solid var(--border); box-shadow: 0 22px 60px rgba(0,0,0,.55);
  position: relative;
}
.proj-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-cover .glyph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #3c3c42; }
.proj-cover .glyph .icon { width: 64px; height: 64px; }
.proj-cover .cover-edit-overlay {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55); color: #fff; font-size: 13px; font-weight: 600; gap: 8px; cursor: pointer;
}
.proj-cover.editable:hover .cover-edit-overlay { display: flex; }
.proj-cover.editable:hover { outline: 1px solid rgba(255,255,255,.25); }

.proj-info { min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.proj-info .meta { color: var(--muted); font-size: 13.5px; margin: 0 0 6px; }
.proj-info h1 {
  font-size: clamp(30px, 5.4vw, 58px); margin: 0 0 4px; letter-spacing: -0.03em; line-height: 1.05;
  font-weight: 700; word-break: break-word;
}
.proj-info .artist-line { color: var(--muted); font-size: 16px; margin: 0 0 10px; font-weight: 500; }
.proj-info .artist-line a { color: var(--muted); }
.proj-info .artist-line a:hover { color: #fff; opacity: 1; }
.proj-info .vis-tag {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); border: 1px solid var(--border); border-radius: 99px; padding: 3px 10px;
}
.proj-info .desc { color: var(--muted); font-size: 14px; margin: 12px 0 0; max-width: 640px; white-space: pre-line; }
.proj-actions { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

.play-all {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 26px; border-radius: 99px;
  background: #fff; color: #000; border: none; cursor: pointer;
  font-family: var(--font-ui); font-size: 15px; font-weight: 700;
  transition: transform .12s ease, background .15s ease;
}
.play-all:hover { transform: scale(1.03); }
.play-all svg { width: 17px; height: 17px; fill: #000; }

.circle-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  color: var(--text); cursor: pointer; transition: all .15s ease;
}
.circle-btn:hover { background: rgba(255,255,255,.1); border-color: var(--border-strong); }
.circle-btn .icon { width: 17px; height: 17px; }

/* ---- tracklist ---- */
.tracklist { border-top: 1px solid var(--border); margin-top: 8px; }
.trk {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 12px; border-radius: 10px; cursor: pointer;
  transition: background .13s ease; position: relative;
}
.trk:hover { background: rgba(255,255,255,.05); }
.trk.current { background: rgba(255,255,255,.09); }
.trk .num { width: 26px; text-align: right; color: var(--faint); font-size: 13.5px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.trk.playing .num { color: #fff; }
.trk .num .icon { width: 14px; height: 14px; }
.trk .t { min-width: 0; flex: 1; }
.trk .t .name { font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk .t .sub { color: var(--faint); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.trk .dur { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.trk .trk-dl { color: var(--faint); display: inline-flex; padding: 5px; border-radius: 7px; }
.trk .trk-dl:hover { color: #fff; background: rgba(255,255,255,.08); }
.trk .trk-menu { color: var(--faint); display: inline-flex; padding: 5px; border-radius: 7px; background: none; border: none; cursor: pointer; }
.trk .trk-menu:hover { color: #fff; background: rgba(255,255,255,.08); }
.trk .grip { color: #4a4a52; cursor: grab; flex-shrink: 0; display: inline-flex; }
.trk.drag-over { outline: 1.5px dashed rgba(255,255,255,.4); outline-offset: -2px; }
.trk.dragging { opacity: .4; }
.trk input.renaming {
  background: var(--surface); border: 1px solid #fff; color: #fff; border-radius: 7px;
  font: 500 14.5px var(--font-ui); padding: 5px 9px; width: 100%; outline: none;
}
.trk .remove-x { color: #ff8484; }


/* ---- sticky bottom mini player ---- */
.miniplayer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: linear-gradient(180deg, rgba(20,20,22,.94), rgba(8,8,9,.98));
  border-top: 1px solid var(--border-strong);
  backdrop-filter: blur(14px);
  display: flex; align-items: center; gap: 16px;
  padding: 10px 20px; min-height: 72px;
  transform: translateY(105%); transition: transform .28s ease;
}
.miniplayer.show { transform: translateY(0); }
.mp-art { width: 52px; height: 52px; border-radius: 9px; overflow: hidden; flex-shrink: 0; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: #3c3c42; }
.mp-art img { width: 100%; height: 100%; object-fit: cover; }
.mp-art .icon { width: 20px; height: 20px; }
.mp-meta { width: 200px; min-width: 0; flex-shrink: 0; }
.mp-meta .name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-meta .by { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.mp-btn {
  width: 34px; height: 34px; border-radius: 50%; border: none; background: none; color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.mp-btn:hover { background: rgba(255,255,255,.1); }
.mp-btn svg { width: 17px; height: 17px; fill: #fff; }
.mp-btn.main { width: 42px; height: 42px; background: #fff; }
.mp-btn.main:hover { background: #e8e8e8; }
.mp-btn.main svg { fill: #000; width: 20px; height: 20px; }
.mp-progress { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 80px; }
.mp-progress .time { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.mp-bar { flex: 1; height: 26px; display: flex; align-items: center; cursor: pointer; }
.mp-bar .rail { position: relative; width: 100%; height: 4px; border-radius: 99px; background: rgba(255,255,255,.16); }
.mp-bar .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: #fff; width: 0; }
.mp-vol { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mp-vol input { width: 90px; accent-color: #fff; }
@media (max-width: 860px) { .mp-vol, .mp-progress .time.end { display: none; } .mp-meta { width: 120px; } }
@media (max-width: 640px) { .miniplayer { gap: 10px; padding: 8px 10px; } .mp-progress { min-width: 40px; } .mp-meta { display: none; } }


/* ---- profile page ---- */
.profile-head { display: flex; align-items: center; gap: 24px; padding: 26px 0 34px; }
.profile-head .avatar, .profile-head .avatar-fallback { width: 108px; height: 108px; font-size: 38px; flex-shrink: 0; }
.profile-head h1 { font-size: clamp(28px, 5vw, 46px); margin: 0 0 2px; letter-spacing: -0.03em; }
.profile-head .handle { color: var(--muted); font-size: 15px; margin: 0 0 8px; }
.profile-head .bio { color: var(--muted); font-size: 14px; margin: 0; max-width: 560px; }
.profile-count { color: var(--faint); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }

/* ---- create page ---- */
.create-shell { max-width: 640px; margin: 0 auto; }
.create-shell h1 { font-size: clamp(26px, 5vw, 40px); margin: 4px 0 4px; letter-spacing: -0.03em; }
.create-shell .lede { color: var(--muted); font-size: 14.5px; margin: 0 0 26px; }
.create-card {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.012) 60%);
  border: 1px solid var(--border); border-radius: 18px; padding: 22px; box-shadow: var(--shadow);
}
.create-row { display: flex; gap: 20px; align-items: flex-start; }
.create-cover {
  width: 148px; height: 148px; border-radius: 12px; flex-shrink: 0;
  border: 1.5px dashed var(--border-strong); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--faint); cursor: pointer; font-size: 12.5px; text-align: center;
  transition: all .15s ease; overflow: hidden; position: relative;
}
.create-cover:hover { color: var(--text); border-color: #fff; background: rgba(255,255,255,.04); }
.create-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.create-cover .icon { width: 26px; height: 26px; }
.create-tracks { margin-top: 20px; }
.create-tracks .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.create-tracks .head h3 { margin: 0; font-size: 15px; }
.create-list { border-top: 1px solid var(--border); }
.create-list .trk { cursor: default; }
.create-list .trk .remove-x { background: none; border: none; color: #ff8484; cursor: pointer; display: inline-flex; padding: 5px; border-radius: 7px; }
.create-list .trk .remove-x:hover { background: rgba(255,107,107,.1); }

/* ---- toast ---- */
.toast {
  position: fixed; bottom: 92px; left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; color: #000; font: 600 13.5px var(--font-ui);
  padding: 10px 18px; border-radius: 99px; box-shadow: 0 10px 30px rgba(0,0,0,.5);
  opacity: 0; pointer-events: none; transition: all .22s ease; z-index: 120;
  max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- responsive ---- */
@media (max-width: 760px) {
  .proj-hero { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
  .proj-cover { width: 190px; height: 190px; }
  .proj-info { align-items: center; }
  .proj-info .vis-tag { align-self: center; }
  .proj-info .desc { text-align: center; }
  .proj-actions { justify-content: center; }
  .create-row { flex-direction: column; align-items: center; }
  .create-row .fields { width: 100%; }
  .profile-head { flex-direction: column; text-align: center; }
  .profile-head .bio { margin: 0 auto; }
}
@media (max-width: 560px) {
  .lib-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px 12px; }
  .page { padding: 10px 16px 90px; }
}


/* ================================================================
   UI OVERHAUL v2 â€” artwork-forward, bold type, soft elevation
   (untitled.stream / samply / unrlsd.app direction)
   ================================================================ */

:root {
  --bg: #050506;
  --bg-elev: #0c0c0e;
  --surface: #111113;
  --surface-2: #19191c;
  --text: #f4f4f5;
  --muted: #9b9ba4;
  --faint: #63636c;
  --border: #1e1e22;
  --border-strong: #2e2e34;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,.5), 0 24px 70px rgba(0,0,0,.65);
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

/* ---- canvas: deep black with a soft top glow ---- */
body {
  background:
    radial-gradient(1100px 480px at 50% -140px, rgba(255,255,255,.085), transparent 62%),
    linear-gradient(175deg, #050506 0%, #070708 55%, #121215 120%);
  background-attachment: fixed;
  color: var(--text);
  letter-spacing: -0.006em;
}
::selection { background: rgba(255,255,255,.28); }

/* ---- sticky glass header ---- */
.site-header {
  position: sticky; top: 0; z-index: 70;
  max-width: 1160px;
  padding: 14px 24px;
  background: rgba(5,5,6,.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.brand { font-size: 21px; letter-spacing: .05em; gap: 11px; }
.brand .icon { width: 26px; height: 26px; }
.site-header nav { gap: 22px; font-size: 13.5px; }
.site-header nav a { color: var(--muted); font-weight: 500; transition: color .14s ease; }
.site-header nav a:hover { color: #fff; }

/* ---- home hero: big statement ---- */
main { max-width: 1160px; padding: 26px 24px 80px; }
.hero {
  text-align: center;
  padding: 64px 0 42px;
}
.hero .tag {
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  padding: 6px 16px;
  font-size: 11.5px;
  backdrop-filter: blur(6px);
}
.hero h1 {
  font-size: clamp(40px, 7.4vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 20px 0 16px;
  background: linear-gradient(180deg, #ffffff 30%, rgba(255,255,255,.55) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero p {
  color: var(--muted);
  font-size: clamp(15px, 2.2vw, 18px);
  margin: 0 auto;
  max-width: 520px;
}

/* feature chips under hero */
.hero-chips {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin-top: 26px;
}
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 500; color: var(--muted);
  border: 1px solid var(--border); border-radius: 99px;
  padding: 7px 14px; background: rgba(255,255,255,.025);
}
.hero-chip .icon { width: 14px; height: 14px; color: #fff; }

/* ---- upload card: floating panel ---- */
.upload-card {
  max-width: 780px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.012) 65%);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 14px;
}
.dropzone {
  border: 1.5px dashed rgba(255,255,255,.16);
  border-radius: 18px;
  padding: 58px 28px 50px;
  background: rgba(255,255,255,.012);
}
.dropzone .icon { width: 30px; height: 30px; padding: 14px; box-sizing: content-box; border-radius: 50%; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); margin-bottom: 18px; }
.dropzone:hover .icon { background: rgba(255,255,255,.12); }
.dropzone h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 8px; }
.dropzone p { font-size: 14.5px; }
.dz-buttons { margin-top: 22px; gap: 12px; }

/* ---- buttons: refined ---- */
.btn {
  height: 44px; padding: 0 24px; border-radius: 99px;
  background: #fff; color: #000; border: none;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 4px 18px rgba(255,255,255,.08);
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.btn:hover { background: #fff; color: #000; opacity: 1; transform: translateY(-1px); box-shadow: 0 8px 26px rgba(255,255,255,.16); }
.btn:active { transform: translateY(0) scale(.985); box-shadow: none; }
.btn-secondary, .btn-ghost {
  background: rgba(255,255,255,.05); color: var(--text);
  border: 1px solid var(--border-strong); box-shadow: none;
}
.btn-secondary:hover, .btn-ghost:hover {
  background: rgba(255,255,255,.1); color: #fff; transform: translateY(-1px); box-shadow: none;
}

/* ---- queue rows: quieter chrome, louder status ---- */
.queue { gap: 12px; margin-top: 18px; }
.file-item {
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.008));
  transition: border-color .15s ease;
}
.file-item:hover { border-color: rgba(255,255,255,.14); }
.file-item .qicon .icon { color: #fff; }
.file-name { font-size: 14.5px; font-weight: 600; }
.file-sub { font-size: 12px; color: var(--faint); }
.progress { height: 3px; background: rgba(255,255,255,.08); border-radius: 99px; }
.progress > div { background: #fff; box-shadow: 0 0 12px rgba(255,255,255,.55); }
.link-box {
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
}
.smallprint { margin-top: 18px; font-size: 12.5px; color: var(--faint); }

/* ---- footer: slim & centered ---- */
.site-footer { border-top: 1px solid rgba(255,255,255,.05); padding: 26px 20px 34px; margin-top: 30px; }
.site-footer .inner { max-width: 1160px; margin: 0 auto; display: flex; justify-content: space-between; color: var(--faint); font-size: 12.5px; }


/* ---- library: release-wall polish ---- */
.lib-grid { gap: 30px 20px; }
.lib-card .cover {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.lib-card:hover .cover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 18px 44px rgba(0,0,0,.6);
}
.lib-card .cover-play { width: 42px; height: 42px; box-shadow: 0 8px 24px rgba(0,0,0,.55); }
.lib-card .t { margin-top: 11px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.lib-card .a { color: var(--faint); }
.library-head h1 { font-size: clamp(36px, 6.4vw, 60px); letter-spacing: -0.04em; }
.library-head .kicker { color: var(--faint); font-size: 13px; letter-spacing: .02em; text-transform: none; }
.new-card .cover { background: rgba(255,255,255,.03); border-style: dashed; border-color: rgba(255,255,255,.14); }

/* ---- project page: editorial hero ---- */
.page, .page-wide { padding-top: 22px; }
.proj-cover { border-radius: 18px; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 80px rgba(0,0,0,.65); }
.proj-info h1 { font-size: clamp(34px, 6vw, 68px); letter-spacing: -0.04em; line-height: 1.03; }
.proj-info .meta { color: var(--faint); font-size: 13.5px; letter-spacing: .01em; }
.proj-info .artist-line { color: var(--muted); font-size: 16.5px; }
.play-all {
  height: 48px; padding: 0 30px; font-size: 15px;
  box-shadow: 0 6px 24px rgba(255,255,255,.1);
}
.play-all:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 34px rgba(255,255,255,.18); }

/* tracklist: hover reveals play, numbers fade */
.tracklist { border-top: 1px solid rgba(255,255,255,.07); margin-top: 14px; }
.trk { padding: 13px 14px; border-radius: 12px; }
.trk .num { color: var(--faint); font-size: 13px; }
.trk .t .name { font-size: 15px; font-weight: 550; }
.trk:hover .num { color: transparent; position: relative; }
.trk:hover .num::after {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  width: 0; height: 0; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.trk:hover { background: rgba(255,255,255,.06); }
.trk.current { background: rgba(255,255,255,.1); box-shadow: inset 2px 0 0 #fff; }

/* ---- miniplayer: floating dock ---- */
.miniplayer {
  left: 50%; right: auto; bottom: 18px; transform: translateX(-50%) translateY(130%);
  width: min(1060px, calc(100% - 28px));
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(180deg, rgba(24,24,27,.92), rgba(12,12,14,.96));
  box-shadow: 0 20px 60px rgba(0,0,0,.65);
  padding: 10px 16px;
}
.miniplayer.show { transform: translateX(-50%) translateY(0); }
.mp-bar .rail { background: rgba(255,255,255,.14); }
.mp-bar:hover .fill { box-shadow: 0 0 12px rgba(255,255,255,.6); }
@media (max-width: 640px) {
  .miniplayer { left: 10px; right: 10px; width: auto; transform: translateY(130%); }
  .miniplayer.show { transform: translateY(0); }
}

/* ---- modals: glassy ---- */
.modal-backdrop { backdrop-filter: blur(10px); }
.modal {
  border-radius: 20px;
  background: linear-gradient(180deg, #17171a, #0d0d0f);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 90px rgba(0,0,0,.7);
}
.pill { height: 40px; padding: 0 18px; font-size: 13.5px; border-radius: 99px; }
.pill.primary { background: #fff; color: #000; border-color: #fff; }

/* ---- auth ---- */
.login-card .brand-mark .icon { padding: 18px; box-sizing: content-box; border-radius: 24px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.google-btn { height: 52px; font-size: 15.5px; box-shadow: 0 8px 30px rgba(255,255,255,.09); }

/* ---- create ---- */
.create-card { border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.012) 60%); border-color: rgba(255,255,255,.08); }
.create-cover { border-radius: 16px; }

/* ---- empty states ---- */
.empty-state { border: 1.5px dashed rgba(255,255,255,.12); border-radius: 20px; background: rgba(255,255,255,.012); }

