/* ATLAS BEATS — v12.0 “Personal”: Made for you · Live Pulse · play queue · song menu · Speed & Pitch · lyric cards · voice search */

/* ── row grids gain a ⋯ column ── */
.pd-row { grid-template-columns: 34px 46px minmax(0, 1fr) auto auto auto auto auto 52px; }
.pd-more { grid-column: 8; } .pd-row .pd-d { grid-column: 9; }
.pd-more, .ss-more { width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; color: rgba(255, 255, 255, .45); display: grid; place-items: center; cursor: pointer; transition: color .2s, background .2s, transform .25s var(--spring, cubic-bezier(.2, .9, .3, 1.3)); }
.pd-more:hover, .ss-more:hover { color: #fff; background: rgba(255, 255, 255, .1); transform: scale(1.08); }
.lib-sec .ar-row { grid-template-columns: 34px 46px minmax(0, 1fr) auto auto auto 52px; }
.lib-sec .pl-row { grid-template-columns: 34px 46px minmax(0, 1fr) auto auto auto auto 52px; }
.ss-row { grid-template-columns: 46px 1fr auto auto 34px 34px 36px; }
.ss-row .ss-more { grid-column: 6; } .ss-row .ss-play { grid-column: 7; }
@media (max-width: 760px) {
  .pd-row { grid-template-columns: 26px 42px minmax(0, 1fr) 36px 36px 36px; }
  .pd-row:not(.ar-row):not(.pl-row) .pd-add { display: none; }
  .pd-row:not(.ar-row):not(.pl-row) .pd-dl { grid-column: 4; } .pd-row:not(.ar-row):not(.pl-row) .pd-like { grid-column: 5; } .pd-row:not(.ar-row):not(.pl-row) .pd-more { grid-column: 6; }
}
@media (max-width: 720px) {
  .ss-row { grid-template-columns: 42px 1fr auto 32px 32px; }
  .ss-row .ss-add { display: none; } .ss-row .ss-more { grid-column: 4; width: 32px; height: 32px; } .ss-row .ss-play { grid-column: 5; }
}
@media (max-width: 640px) {
  .lib-sec .ar-row { grid-template-columns: 26px 42px minmax(0, 1fr) 36px 36px; } .lib-sec .ar-row .pd-add { display: none; }
  .lib-sec .pl-row { grid-template-columns: 26px 40px minmax(0, 1fr) 32px 32px 32px 32px; gap: 5px; } .lib-sec .pl-row .pd-dl, .lib-sec .pl-row .pd-more { width: 32px; height: 32px; }
}

/* ── song menu ── */
body.v12-menu-open { overflow: hidden; }
.v12-menu { position: fixed; inset: 0; z-index: 1300; } .v12-menu[hidden] { display: none; }
.v12-menu-bd { position: absolute; inset: 0; background: rgba(3, 2, 8, .35); }
.v12-menu-card { position: absolute; width: min(300px, calc(100vw - 16px)); border-radius: 20px; padding: 10px; background: linear-gradient(180deg, #1a1530, #0c0a16); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 24px 70px rgba(0, 0, 0, .65), 0 0 0 1px rgba(124, 58, 237, .15); animation: v12pop .22s var(--spring, cubic-bezier(.2, .9, .3, 1.3)) both; transform-origin: top; }
@keyframes v12pop { from { opacity: 0; transform: translateY(-6px) scale(.96); } to { opacity: 1; transform: none; } }
.v12-mh { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 4px 4px 10px; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: 6px; }
.v12-mh img { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; background: rgba(255, 255, 255, .06); }
.v12-mht { min-width: 0; display: grid; gap: 1px; } .v12-mht b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .v12-mht small { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v12-mx { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .07); color: var(--ink); display: grid; place-items: center; cursor: pointer; } .v12-mx:hover { background: rgba(255, 255, 255, .14); }
.v12-mb { display: grid; gap: 2px; }
.v12-mi { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 10px; border: 0; border-radius: 12px; background: none; color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: start; transition: background .15s, transform .15s; }
.v12-mi .i { color: rgba(255, 255, 255, .6); } .v12-mi:hover { background: rgba(255, 255, 255, .08); } .v12-mi:hover .i { color: #c4b5fd; } .v12-mi:active { transform: scale(.985); }
@media (max-width: 720px) {
  .v12-menu { display: grid; place-items: end center; }
  .v12-menu-bd { background: rgba(3, 2, 8, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .v12-menu-card { position: relative; width: 100%; left: auto !important; top: auto !important; border-radius: 26px 26px 0 0; border-bottom: 0; padding: 14px 14px calc(12px + env(safe-area-inset-bottom)); animation: v12up .28s var(--ease, ease) both; }
  .v12-menu-card::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .2); margin: -4px auto 12px; }
  .v12-mi { padding: 13px 12px; font-size: 15px; }
  @keyframes v12up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ── queue: badge + “Up next” block in the track panel ── */
#btnQueue { position: relative; }
#btnQueue .q-n { position: absolute; top: 2px; inset-inline-end: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: linear-gradient(135deg, #7c3aed, #3b82f6); color: #fff; font-size: 10px; font-weight: 800; font-style: normal; display: grid; place-items: center; line-height: 1; box-shadow: 0 0 0 2px #0e0c18; }
.uq-upnext { margin: 2px 0 10px; padding: 8px 8px 6px; border-radius: 16px; background: linear-gradient(180deg, rgba(124, 58, 237, .14), rgba(59, 130, 246, .06)); border: 1px solid rgba(167, 139, 250, .22); }
.uq-upnext[hidden] { display: none; }
.uq-upnext-h { display: flex; align-items: center; gap: 8px; padding: 2px 6px 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #c4b5fd; }
.uq-upnext-h b { font-weight: 800; } .uq-upnext-h .num { color: var(--muted); } .uq-upnext-h .uq-ctl { margin-inline-start: auto; }
.uq-upnext .qrow { grid-template-columns: 26px 40px minmax(0, 1fr) auto; }
.q-act { display: inline-flex; gap: 2px; } .q-act .uq-ctl { width: 30px; height: 30px; }
.uq-upnext .uq-thumb { width: 40px; height: 40px; }

/* ── Speed & Pitch (inside the equalizer panel) ── */
.fx-box { margin-top: 16px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); display: grid; gap: 12px; }
.fx-h { display: flex; align-items: center; gap: 12px; } .fx-h b { display: block; font-size: 15px; } .fx-h small { color: var(--muted); font-size: 12px; }
.fx-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #7c3aed, #3b82f6); color: #fff; flex: none; }
.fx-presets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.fx-p { display: grid; gap: 2px; padding: 9px 4px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: var(--ink); font: inherit; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.fx-p b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .fx-p small { color: var(--muted); font-size: 10.5px; }
.fx-p:hover { background: rgba(255, 255, 255, .09); } .fx-p.on { background: linear-gradient(135deg, rgba(124, 58, 237, .45), rgba(59, 130, 246, .35)); border-color: rgba(167, 139, 250, .6); } .fx-p.on small { color: #e9d5ff; }
.fx-rate { display: grid; grid-template-columns: auto minmax(0, 1fr) 58px; gap: 10px; align-items: center; font-size: 13px; } .fx-rate .num { text-align: end; color: #c4b5fd; font-weight: 700; }
.fx-rate input[type="range"] { width: 100%; accent-color: #a78bfa; }
.fx-keep { margin: 0; }
.fx-chip { display: inline-flex; align-items: center; gap: 5px; margin-inline-start: 8px; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(167, 139, 250, .4); background: rgba(124, 58, 237, .18); color: #e9d5ff; font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; vertical-align: middle; }
.fx-chip em { font-style: normal; color: #c4b5fd; font-weight: 600; } .fx-chip:hover { background: rgba(124, 58, 237, .32); }
@media (max-width: 520px) { .fx-presets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── Made for you ── */
.fy-home { margin: 18px 0 4px; }
.fy-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.fy-ht { display: flex; align-items: center; gap: 10px; min-width: 0; } .fy-ht b { display: block; font-size: 18px; letter-spacing: -.01em; } .fy-ht small { color: var(--muted); font-size: 12.5px; }
.fy-hic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #7c3aed, #ec4899); color: #fff; flex: none; box-shadow: 0 8px 20px rgba(124, 58, 237, .35); }
.fy-strip { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 12px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; } .fy-strip::-webkit-scrollbar { display: none; }
.fy-card { position: relative; flex: 0 0 auto; width: 208px; height: 250px; border-radius: 22px; overflow: hidden; isolation: isolate; cursor: pointer; scroll-snap-align: start; background: linear-gradient(160deg, var(--c1), var(--c2)); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); transition: transform .3s var(--spring, cubic-bezier(.2, .9, .3, 1.3)), box-shadow .3s; color: #fff; text-align: start; }
.fy-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 24px 50px rgba(0, 0, 0, .5); } .fy-card:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.fy-card.busy { opacity: .7; } .fy-card.busy .fy-play { animation: fySpin 1s linear infinite; } @keyframes fySpin { to { transform: rotate(360deg); } }
.fy-mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; z-index: -1; opacity: .55; filter: saturate(1.2); transform: rotate(-8deg) scale(1.3); transition: transform .5s var(--ease, ease), opacity .3s; }
.fy-card:hover .fy-mosaic { transform: rotate(-5deg) scale(1.36); opacity: .62; }
.fy-mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fy-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .15) 40%, rgba(5, 3, 14, .9) 100%); }
.fy-kicker { position: absolute; top: 12px; inset-inline-start: 12px; padding: 4px 9px; border-radius: 999px; background: rgba(0, 0, 0, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .22); font-size: 10px; letter-spacing: .14em; font-weight: 800; }
.fy-tx { position: absolute; inset-inline: 14px; bottom: 14px; display: grid; gap: 3px; padding-inline-end: 44px; }
.fy-tx b { font-size: 18px; line-height: 1.15; letter-spacing: -.01em; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fy-tx small { font-size: 11.5px; color: rgba(255, 255, 255, .78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .fy-tx em { font-style: normal; font-size: 11px; color: rgba(255, 255, 255, .6); min-height: 13px; }
.fy-play { position: absolute; inset-inline-end: 12px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: #0b0a14; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); transition: transform .25s var(--spring, cubic-bezier(.2, .9, .3, 1.3)), opacity .2s; }
.fy-play .i { width: 18px; height: 18px; fill: currentColor; stroke: none; margin-inline-start: 2px; }
.fy-play:hover { transform: scale(1.1); }
@media (hover: hover) { .fy-play { opacity: 0; transform: translateY(6px); } .fy-card:hover .fy-play, .fy-card:focus-within .fy-play { opacity: 1; transform: none; } }
@media (max-width: 720px) { .fy-card { width: 168px; height: 212px; border-radius: 18px; } .fy-tx b { font-size: 15.5px; } .fy-play { width: 36px; height: 36px; } .fy-ht b { font-size: 16px; } .fy-h .btn span { display: none; } }
html.reduce-motion .fy-card, html.reduce-motion .fy-mosaic { transition: none; }

/* ── Live Pulse ── */
.pulse-home { margin: 6px 0 10px; } .pulse-home[hidden] { display: none; }
.pulse-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .pulse-h b { font-size: 15px; } .pulse-h small { color: var(--muted); font-size: 12px; margin-inline-start: 4px; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulseDot 1.6s ease-out infinite; }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 100% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } }
.pulse-list { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; } .pulse-list::-webkit-scrollbar { display: none; }
.pulse-row { flex: 0 0 auto; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 250px; padding: 7px 10px 7px 7px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(135deg, color-mix(in srgb, var(--s1) 18%, transparent), rgba(255, 255, 255, .03)); color: var(--ink); font: inherit; text-align: start; cursor: pointer; transition: transform .2s, background .2s; }
.pulse-row:hover { transform: translateY(-2px); background: linear-gradient(135deg, color-mix(in srgb, var(--s1) 32%, transparent), rgba(255, 255, 255, .06)); }
.pulse-row.me { border-color: rgba(167, 139, 250, .45); }
.pulse-row img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: rgba(255, 255, 255, .06); }
.pulse-tx { min-width: 0; display: grid; gap: 1px; } .pulse-tx small { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pulse-tx b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pulse-tx b i { font-style: normal; font-weight: 500; color: rgba(255, 255, 255, .6); }
.pulse-eq { display: flex; align-items: flex-end; gap: 2px; height: 14px; } .pulse-eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--s2, #3b82f6); transform-origin: bottom; animation: pulseEq .9s ease-in-out infinite alternate; } .pulse-eq i:nth-child(2) { animation-delay: -.3s; } .pulse-eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes pulseEq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
html.reduce-motion .pulse-eq i, html.reduce-motion .pulse-dot { animation: none; }

/* ── generic sheet (lyric card) ── */
body.v12-sheet-open { overflow: hidden; }
.v12-sheet { position: fixed; inset: 0; z-index: 1250; display: grid; place-items: end center; } .v12-sheet[hidden] { display: none; }
.v12-bd { position: absolute; inset: 0; background: rgba(3, 2, 8, .66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.v12-card { position: relative; width: min(880px, 100%); max-height: 92vh; overflow: auto; border-radius: 26px 26px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, #16122a, #0b0a14); border: 1px solid rgba(255, 255, 255, .1); border-bottom: 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .6); animation: v12up .3s var(--ease, ease) both; }
@media (min-width: 720px) { .v12-sheet { place-items: center; } .v12-card { border-radius: 26px; border-bottom: 1px solid rgba(255, 255, 255, .1); } }
.v12-ch { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 14px; }
.v12-chic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, #7c3aed, #ec4899); color: #fff; }
.v12-ch b { display: block; font-size: 16px; } .v12-ch small { color: var(--muted); font-size: 12px; }
.v12-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .07); color: var(--ink); display: grid; place-items: center; cursor: pointer; } .v12-x:hover { background: rgba(255, 255, 255, .14); }
.lc-body { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 18px; align-items: start; }
.lc-prev { width: 100%; height: auto; aspect-ratio: 1080 / 1350; border-radius: 18px; background: #0b0a14; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); display: block; }
.lc-styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.lc-st { display: grid; justify-items: center; gap: 5px; padding: 8px 4px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: var(--ink); font: inherit; font-size: 11.5px; cursor: pointer; }
.lc-st i { width: 26px; height: 26px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .15); } .lc-st.cover i { background: linear-gradient(135deg, #7c3aed, #ec4899, #3b82f6); } .lc-st.dark i { background: linear-gradient(160deg, #0b0a17, #2a0f4a); } .lc-st.light i { background: #f6f4ff; }
.lc-st.on { border-color: rgba(167, 139, 250, .7); background: rgba(124, 58, 237, .18); }
.lc-song { display: grid; gap: 1px; margin-bottom: 10px; } .lc-song b { font-size: 15px; } .lc-song small { color: var(--muted); font-size: 12px; }
.lc-pick { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 6px; } .lc-pick em { font-style: normal; color: #c4b5fd; }
.lc-lines { display: grid; gap: 4px; max-height: min(46vh, 420px); overflow: auto; padding: 2px; scrollbar-width: thin; }
.lc-line { display: block; width: 100%; padding: 9px 12px; border-radius: 11px; border: 1px solid transparent; background: rgba(255, 255, 255, .04); color: rgba(255, 255, 255, .85); font: inherit; font-size: 13.5px; line-height: 1.5; text-align: start; cursor: pointer; transition: background .15s, border-color .15s; }
.lc-line:hover { background: rgba(255, 255, 255, .08); } .lc-line.on { background: linear-gradient(90deg, rgba(124, 58, 237, .35), rgba(236, 72, 153, .2)); border-color: rgba(167, 139, 250, .6); color: #fff; font-weight: 700; }
.lc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; } .lc-actions .btn { height: 42px; }
@media (max-width: 720px) { .lc-body { grid-template-columns: 1fr; } .lc-prev { max-width: 240px; margin: 0 auto; } .lc-styles { max-width: 240px; margin: 10px auto 0; } .lc-lines { max-height: 32vh; } }

/* ── voice search ── */
.voice-btn { position: absolute; inset-inline-end: 42px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 0; background: none; color: rgba(255, 255, 255, .55); display: grid; place-items: center; cursor: pointer; transition: color .2s, background .2s; }
.voice-btn:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.voice-btn i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #a78bfa; opacity: 0; }
.voice-btn.on { color: #fff; background: linear-gradient(135deg, #7c3aed, #ec4899); } .voice-btn.on i { animation: voiceRing 1.2s ease-out infinite; }
@keyframes voiceRing { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
body.has-voice .search input { padding-inline-end: 78px; }
@media (max-width: 640px) { .voice-btn { inset-inline-end: 34px; } }
