/* ATLAS BEATS v8.5 — ATLAS Jam (listen together) + ATLAS DJ (one-sentence mixes) */
/* ── DJ section ── */
.dj-sec { margin: 6px 0 26px; }
.dj-card { position: relative; overflow: hidden; border-radius: 26px; padding: 22px 24px 20px; border: 1px solid rgba(255, 255, 255, .1); background: linear-gradient(135deg, rgba(124, 58, 237, .28), rgba(59, 130, 246, .14) 55%, rgba(231, 201, 138, .1)); box-shadow: 0 30px 60px -40px rgba(124, 58, 237, .8); isolation: isolate; }
.dj-glow { position: absolute; inset: -30% -10% auto auto; width: 50%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(167, 139, 250, .45), transparent 65%); filter: blur(10px); pointer-events: none; z-index: -1; animation: djGlow 7s ease-in-out infinite alternate; }
@keyframes djGlow { from { transform: translate(0, 0) scale(.9); opacity: .6; } to { transform: translate(-10%, 10%) scale(1.15); opacity: 1; } }
.dj-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.dj-logo { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(135deg, #7c3aed, #3b82f6); box-shadow: 0 10px 26px -10px rgba(124, 58, 237, .9); flex: none; }
.dj-logo .i { width: 22px; height: 22px; color: #fff; }
.dj-head h2 { margin: 0; font-size: 20px; letter-spacing: .02em; } .dj-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.dj-badge { margin-inline-start: auto; font-size: 10.5px; font-weight: 900; letter-spacing: .1em; padding: 4px 9px; border-radius: 999px; background: linear-gradient(135deg, #e7c98a, #f5e6c4); color: #2a1d07; }
.dj-form { display: flex; gap: 8px; align-items: stretch; }
.dj-form input { flex: 1; min-width: 0; min-height: 50px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(0, 0, 0, .28); color: inherit; font: inherit; font-size: 15px; padding: 0 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
.dj-form input:focus { border-color: rgba(167, 139, 250, .8); box-shadow: 0 0 0 4px rgba(124, 58, 237, .18); }
.dj-go { display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border-radius: 16px; border: 0; background: linear-gradient(135deg, #7c3aed, #3b82f6); color: #fff; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; box-shadow: 0 12px 28px -12px rgba(124, 58, 237, .9); transition: transform .2s, filter .2s; white-space: nowrap; }
.dj-go:hover { filter: brightness(1.08); transform: translateY(-1px); } .dj-go .i { width: 16px; height: 16px; }
.dj-chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; } .dj-chips::-webkit-scrollbar { display: none; }
.dj-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06); color: inherit; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.dj-chip:hover { background: rgba(255, 255, 255, .12); transform: translateY(-1px); } .dj-chip i { font-style: normal; font-size: 14px; }
.dj-chip.now { background: linear-gradient(135deg, rgba(231, 201, 138, .25), rgba(231, 201, 138, .08)); border-color: rgba(231, 201, 138, .5); color: #f5e6c4; } .dj-chip.now b { font-weight: 900; }
.dj-out:empty { display: none; }
.dj-none { margin: 14px 0 0; color: var(--muted); font-size: 13.5px; }
.dj-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 12px; padding: 12px 14px; border-radius: 16px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .08); }
.dj-line p { margin: 0; flex: 1 1 260px; font-size: 14px; line-height: 1.7; } .dj-dot { width: 10px; height: 10px; border-radius: 50%; background: #a78bfa; box-shadow: 0 0 0 0 rgba(167, 139, 250, .6); animation: djPulse 1.8s ease-out infinite; flex: none; }
@keyframes djPulse { to { box-shadow: 0 0 0 10px rgba(167, 139, 250, 0); } }
.dj-play { display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; min-height: 44px; border-radius: 999px; border: 0; background: #fff; color: #0b0a14; font: inherit; font-weight: 900; font-size: 14px; cursor: pointer; transition: transform .2s; } .dj-play:hover { transform: scale(1.03); } .dj-play .i { width: 16px; height: 16px; fill: currentColor; stroke: none; } .dj-play.on { background: linear-gradient(135deg, #e7c98a, #f5e6c4); }
.dj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dj-res { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .09); background: linear-gradient(135deg, color-mix(in srgb, var(--s1) 24%, transparent), rgba(255, 255, 255, .02)); min-width: 0; }
.dj-res.top { border-color: rgba(231, 201, 138, .45); box-shadow: 0 16px 36px -22px rgba(231, 201, 138, .7); }
.dj-art { width: 58px; height: 58px; border-radius: 14px; flex: none; display: grid; place-items: center; font-size: 26px; background: linear-gradient(135deg, var(--s1), var(--s2)); overflow: hidden; position: relative; } .dj-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dj-tx { min-width: 0; flex: 1; display: grid; gap: 2px; } .dj-tx b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dj-tx small { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dj-tags { display: flex; gap: 4px; flex-wrap: wrap; } .dj-tags i { font-style: normal; font-size: 10px; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--muted); }
.dj-one { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: #0b0a14; display: grid; place-items: center; cursor: pointer; flex: none; transition: transform .2s; } .dj-one:hover { transform: scale(1.08); } .dj-one .i { width: 14px; height: 14px; fill: currentColor; stroke: none; }
@media (max-width: 900px) { .dj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dj-card { padding: 16px 14px 14px; border-radius: 22px; } .dj-head h2 { font-size: 18px; } .dj-form { flex-direction: column; } .dj-go { min-height: 46px; justify-content: center; } .dj-grid { grid-template-columns: 1fr; } .dj-line { padding: 10px 12px; } .dj-play { width: 100%; justify-content: center; } }

/* ── Jam: player button, pill, sheet ── */
#plJam { position: relative; } #plJam .live { position: absolute; top: 6px; inset-inline-end: 6px; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; display: none; } body.jam-on #plJam .live { display: block; animation: jamLive 1.4s ease-out infinite; } body.jam-on #plJam { color: #f5e6c4; }
@keyframes jamLive { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .7); } 100% { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); } }
.jam-pill { position: fixed; z-index: 95; inset-inline-end: 16px; bottom: calc(var(--player-h, 88px) + 18px); display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(14, 11, 28, .85); backdrop-filter: blur(16px); color: #fff; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .9); }
.jam-pill[hidden] { display: none; } .jam-pill .live { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: jamLive 1.4s ease-out infinite; } .jam-pill .code { font-family: ui-monospace, monospace; letter-spacing: .12em; color: #f5e6c4; } .jam-pill .n { color: var(--muted); font-weight: 600; }
body.has-apptabs .jam-pill { bottom: calc(var(--player-h, 88px) + var(--apptabs-h, 62px) + 14px); inset-inline-end: 12px; }
.jam-wrap { position: fixed; inset: 0; z-index: 960; display: grid; place-items: end center; opacity: 0; transition: opacity .25s; } .jam-wrap.in { opacity: 1; } .jam-wrap[hidden] { display: none; }
.jam-bg { position: absolute; inset: 0; background: rgba(4, 3, 10, .6); backdrop-filter: blur(6px); }
.jam-sheet { position: relative; width: min(560px, 100%); max-height: min(92dvh, 820px); overflow: auto; overscroll-behavior: contain; border-radius: 28px 28px 0 0; background: linear-gradient(180deg, #171230, #0c0a18 40%); border: 1px solid rgba(255, 255, 255, .1); border-bottom: 0; box-shadow: 0 -30px 80px -30px rgba(124, 58, 237, .6); transform: translateY(40px); transition: transform .3s cubic-bezier(.2, .8, .2, 1); scrollbar-width: thin; }
.jam-wrap.in .jam-sheet { transform: none; }
.jam-body { padding: 20px 20px calc(22px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 14px; }
.jam-head { display: flex; align-items: center; gap: 14px; } .jam-head h3 { margin: 0; font-size: 20px; display: flex; align-items: center; gap: 10px; } .jam-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.jam-logo { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #e7c98a, #b8893a); color: #2a1d07; flex: none; box-shadow: 0 12px 28px -12px rgba(231, 201, 138, .9); } .jam-logo .i { width: 24px; height: 24px; }
.jam-x { margin-inline-start: auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06); color: inherit; cursor: pointer; font-size: 14px; flex: none; }
.jam-live { font-size: 10.5px; font-weight: 900; letter-spacing: .1em; padding: 3px 8px; border-radius: 999px; background: rgba(239, 68, 68, .18); color: #fca5a5; display: inline-flex; align-items: center; gap: 5px; } .jam-live i { width: 6px; height: 6px; border-radius: 50%; background: #ef4444; animation: jamLive 1.4s ease-out infinite; }
.jam-code { font-family: ui-monospace, monospace; letter-spacing: .18em; font-size: 15px; color: #f5e6c4; }
.jam-invite { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 16px; background: rgba(231, 201, 138, .12); border: 1px solid rgba(231, 201, 138, .4); font-size: 13.5px; } .jam-invite b { font-family: ui-monospace, monospace; letter-spacing: .18em; color: #f5e6c4; font-size: 16px; } .jam-invite .jam-btn { margin-inline-start: auto; }
.jam-field { display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); }
.jam-row { display: flex; gap: 8px; } .jam-row input { flex: 1; min-width: 0; min-height: 46px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .3); color: inherit; font: inherit; font-size: 15px; padding: 0 14px; outline: none; } .jam-row input:focus { border-color: rgba(231, 201, 138, .7); }
.jam-row input.code { font-family: ui-monospace, monospace; letter-spacing: .3em; text-transform: uppercase; text-align: center; font-size: 18px; }
.jam-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .07); color: inherit; font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; transition: background .2s, transform .2s; white-space: nowrap; } .jam-btn:hover { background: rgba(255, 255, 255, .12); } .jam-btn .i { width: 15px; height: 15px; }
.jam-btn.primary { background: linear-gradient(135deg, #7c3aed, #3b82f6); border-color: transparent; color: #fff; } .jam-btn.danger { color: #fca5a5; border-color: rgba(239, 68, 68, .35); }
.jam-cta { display: flex; align-items: center; gap: 14px; text-align: start; padding: 16px 18px; border-radius: 20px; border: 0; background: linear-gradient(135deg, #e7c98a, #c9a35a); color: #1f1606; font: inherit; cursor: pointer; box-shadow: 0 18px 40px -18px rgba(231, 201, 138, .9); transition: transform .2s; } .jam-cta:hover { transform: translateY(-2px); }
.jam-cta .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .18); font-size: 16px; flex: none; } .jam-cta b { display: block; font-size: 16px; } .jam-cta small { display: block; font-size: 12px; opacity: .8; margin-top: 2px; }
.jam-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; } .jam-or i { flex: 1; height: 1px; background: rgba(255, 255, 255, .1); }
.jam-how { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); font-size: 13px; color: var(--muted); } .jam-how b { color: #fff; display: block; margin-bottom: 4px; } .jam-how p { margin: 0; line-height: 1.7; }
.jam-acts { display: flex; gap: 8px; flex-wrap: wrap; } .jam-acts .danger { margin-inline-start: auto; }
.jam-status { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .3); font-size: 13px; } .jam-status i { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: djPulse 1.8s ease-out infinite; } .jam-status small { grid-column: 2; color: var(--muted); font-size: 11.5px; }
.jam-status.wait { background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .35); } .jam-status.wait i { background: #fbbf24; }
.jam-np { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); } .jam-np .k { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); flex: none; } .jam-np-tx { min-width: 0; display: grid; } .jam-np-tx b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .jam-np-tx small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jam-sec > b { display: block; font-size: 13px; margin-bottom: 8px; } .jam-peers { display: flex; gap: 8px; flex-wrap: wrap; }
.jam-peer { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-size: 13px; } .jam-peer i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; background: linear-gradient(135deg, #7c3aed, #3b82f6); color: #fff; font-size: 13px; } .jam-peer.host { border-color: rgba(231, 201, 138, .5); } .jam-peer.host i { background: linear-gradient(135deg, #e7c98a, #b8893a); color: #2a1d07; } .jam-peer em { font-style: normal; font-size: 12px; } .jam-peer.me { background: rgba(124, 58, 237, .18); }
.jam-hint { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; }
.jam-reacts { display: flex; gap: 6px; justify-content: space-between; } .jam-reacts button { flex: 1; min-height: 46px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); font-size: 22px; cursor: pointer; transition: transform .15s, background .2s; } .jam-reacts button:hover { background: rgba(255, 255, 255, .12); } .jam-reacts button:active { transform: scale(1.25); }
.jam-feed { max-height: 180px; min-height: 48px; overflow: auto; display: grid; gap: 6px; align-content: start; padding: 8px 10px; border-radius: 14px; background: rgba(0, 0, 0, .25); font-size: 13px; scrollbar-width: thin; }
.jam-ev.n { color: var(--muted); font-size: 12px; text-align: center; } .jam-ev.r { color: var(--muted); } .jam-ev.m { display: flex; gap: 8px; align-items: baseline; } .jam-ev.m b { color: #c4b5fd; font-size: 12px; flex: none; } .jam-ev.m.me b { color: #f5e6c4; } .jam-ev.m span { overflow-wrap: anywhere; }
.jam-float { position: fixed; inset: auto 0 calc(var(--player-h, 88px) + 20px); height: 0; pointer-events: none; z-index: 970; } .jam-float b { position: absolute; bottom: 0; font-size: 34px; animation: jamUp 3s ease-out forwards; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .6)); }
@keyframes jamUp { 0% { transform: translateY(0) scale(.6); opacity: 0; } 12% { opacity: 1; transform: translateY(-30px) scale(1.1); } 100% { transform: translateY(-60vh) translateX(20px) scale(1); opacity: 0; } }
body.jam-guest .player .ctl:not(#plLike):not(#plFavM) { opacity: .55; }
@media (min-width: 768px) { .jam-wrap { place-items: center; } .jam-sheet { border-radius: 28px; border-bottom: 1px solid rgba(255, 255, 255, .1); max-height: min(90vh, 820px); } }
.dr-page#drJam .cnt.live { background: rgba(239, 68, 68, .2); color: #fca5a5; display: none; } body.jam-on .dr-page#drJam .cnt.live { display: inline-flex; }

.dj-jam { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 12px 14px; border-radius: 18px; border: 1px solid rgba(231, 201, 138, .35); background: linear-gradient(135deg, rgba(231, 201, 138, .16), rgba(231, 201, 138, .04)); color: inherit; font: inherit; text-align: start; cursor: pointer; transition: transform .2s, border-color .2s; }
.dj-jam:hover { transform: translateY(-1px); border-color: rgba(231, 201, 138, .7); }
.dj-jam-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #e7c98a, #b8893a); color: #2a1d07; flex: none; } .dj-jam-ic .i { width: 20px; height: 20px; }
.dj-jam-tx { flex: 1; min-width: 0; display: grid; gap: 2px; } .dj-jam-tx b { font-size: 14px; display: flex; align-items: center; gap: 8px; } .dj-jam-tx em { font-style: normal; font-size: 9.5px; font-weight: 900; letter-spacing: .12em; padding: 2px 7px; border-radius: 999px; background: rgba(239, 68, 68, .18); color: #fca5a5; } .dj-jam-tx small { color: var(--muted); font-size: 12px; }
.dj-jam-go { font-size: 13px; font-weight: 800; color: #f5e6c4; white-space: nowrap; }

/* ── v10: ATLAS DJ as a native page + now-playing dock ── */
.pg-frame.pg-native { overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 18px clamp(12px, 3vw, 40px) 120px; background: radial-gradient(900px 500px at 50% -10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%), #06060b; }
.pg-frame.pg-native .dj-sec { max-width: 1080px; margin: 0 auto; }
.pg-frame.pg-native .dj-card { margin-top: 0; }
.dj-now { position: sticky; bottom: 0; z-index: 4; max-width: 1080px; margin: 14px auto 0; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 18px; background: color-mix(in srgb, var(--bg-2) 86%, var(--c1) 14%); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); backdrop-filter: blur(18px); }
.dj-now[hidden] { display: none; }
.dj-now-art { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--c1), var(--c2)); font-size: 22px; }
.dj-now-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dj-now-tx { min-width: 0; display: grid; gap: 3px; }
.dj-now-tx b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dj-now-tx small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dj-now-bar { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: 3px; }
.dj-now-bar u { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--c2)); transition: width .9s linear; }
.dj-now-ctl { display: flex; align-items: center; gap: 6px; }
.dj-now-ctl button { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--ink); background: rgba(255, 255, 255, .06); transition: background .2s, transform .2s; }
.dj-now-ctl button:hover { background: rgba(255, 255, 255, .12); }
.dj-now-ctl button.big { width: 46px; height: 46px; border-radius: 15px; background: linear-gradient(135deg, var(--accent), var(--c2)); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 45%, transparent); }
.dj-now-ctl button.big:active { transform: scale(.94); }
/* apps row on the home page */
.apps-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 22px 0 6px; }
.app-tile { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px; border-radius: 18px; text-align: start; color: var(--ink); background: linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)); border: 1px solid rgba(255, 255, 255, .08); overflow: hidden; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; isolation: isolate; }
.app-tile::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(240px 120px at 0% 0%, color-mix(in srgb, var(--tile, var(--accent)) 35%, transparent), transparent 70%); transition: opacity .3s; }
.app-tile:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--tile, var(--accent)) 50%, transparent); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.app-tile:hover::before { opacity: 1; }
.app-tile.dj { --tile: #d946ef; } .app-tile.jam { --tile: #22c55e; } .app-tile.shop { --tile: #f59e0b; } .app-tile.account { --tile: #3b82f6; }
.app-ic { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--tile, var(--accent)), color-mix(in srgb, var(--tile, var(--accent)) 55%, #000)); box-shadow: 0 8px 20px color-mix(in srgb, var(--tile, var(--accent)) 40%, transparent); }
.app-ic .i { width: 20px; height: 20px; }
.app-tx { display: grid; gap: 2px; min-width: 0; }
.app-tx b { font-size: 14px; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-tx small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-new, .app-live { position: absolute; top: 8px; inset-inline-end: 8px; font-size: 9px; font-weight: 900; letter-spacing: .8px; padding: 2px 6px; border-radius: 6px; background: var(--tile, var(--accent)); color: #fff; }
.app-live { display: inline-flex; align-items: center; gap: 4px; background: rgba(34, 197, 94, .18); color: #4ade80; }
.app-live i { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; animation: appLive 1.4s ease-in-out infinite; }
@keyframes appLive { 50% { opacity: .35; } }
.dj-top { width: auto; padding-inline: 11px; gap: 6px; display: inline-flex; font-weight: 800; font-size: 12px; letter-spacing: .4px; color: #fff; background: linear-gradient(135deg, #7c3aed, #d946ef); border: 0; }
.dj-top:hover { filter: brightness(1.1); }
@media (max-width: 900px) { .apps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .apps-row { gap: 8px; margin-top: 16px; } .app-tile { min-height: 58px; padding: 9px 10px; gap: 9px; border-radius: 16px; } .app-ic { width: 38px; height: 38px; } .app-tx small { display: none; } .dj-top span { display: none; } .dj-top { padding-inline: 0; width: 40px; } .pg-frame.pg-native { padding: 12px 10px 110px; } .dj-now { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 8px 10px; border-radius: 16px; } .dj-now-art { width: 44px; height: 44px; } }

/* ── v10: ATLAS Jam v2 — profiles, deck, queue, search ── */
.jam-ava { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--c2)); color: #fff; font-weight: 900; font-size: 14px; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
.jam-ava img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.jam-ava i { font-style: normal; position: relative; z-index: 0; }
.jam-ava img + i { visibility: hidden; }
.jam-ava.pr { box-shadow: 0 0 0 2px #0b0b12, 0 0 0 4px #e7c98a, 0 4px 14px rgba(231, 201, 138, .4); }
.jam-ava .crown { position: absolute; top: -9px; inset-inline-end: -6px; font-size: 13px; font-style: normal; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }
.jam-ava.lg { width: 52px; height: 52px; font-size: 20px; }
.jam-tick { width: 15px; height: 15px; vertical-align: -2px; margin-inline-start: 3px; }
.jam-me { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .1); }
.jam-me-tx { display: grid; gap: 2px; min-width: 0; } .jam-me-tx small { font-size: 11px; color: var(--muted); } .jam-me-tx b { font-size: 15px; display: flex; align-items: center; } .jam-me-tx span { font-size: 12px; color: var(--muted); } .jam-me-tx em { font-style: normal; color: #e7c98a; font-weight: 700; }
.jam-signin { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 8px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.jam-peer { padding: 5px 12px 5px 5px; height: auto; gap: 9px; cursor: pointer; font: inherit; color: var(--ink); text-align: start; }
[dir=rtl] .jam-peer { padding: 5px 5px 5px 12px; }
.jam-peer-tx { display: grid; gap: 0; min-width: 0; } .jam-peer-tx b { font-size: 12.5px; display: flex; align-items: center; white-space: nowrap; } .jam-peer-tx small { font-size: 10.5px; color: var(--muted); }
.jam-peer.host { border-color: rgba(231, 201, 138, .45); background: rgba(231, 201, 138, .08); }
.jam-card { display: grid; gap: 10px; padding: 12px; border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, transparent), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .1); }
.jam-np-empty { font-size: 13px; color: var(--muted); text-align: center; padding: 6px; }
.jam-np2 { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; }
.jam-np-art { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--c1), var(--c2)); font-size: 22px; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.jam-np-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jam-np-tx { display: grid; gap: 2px; min-width: 0; } .jam-np-tx .k { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 800; } .jam-np-tx b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .jam-np-tx small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jam-prog { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin-top: 6px; font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.jam-prog i { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; } .jam-prog u { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--c2)); transition: width .9s linear; }
.jam-ctl { display: flex; justify-content: center; align-items: center; gap: 10px; }
.jam-ctl button { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: var(--ink); background: rgba(255, 255, 255, .07); transition: background .2s, transform .2s; }
.jam-ctl button:hover { background: rgba(255, 255, 255, .13); } .jam-ctl button:active { transform: scale(.94); }
.jam-ctl button.big { width: 52px; height: 52px; border-radius: 17px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--c2)); box-shadow: 0 12px 26px color-mix(in srgb, var(--accent) 45%, transparent); }
.jam-deck { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; text-align: start; color: var(--ink); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); font: inherit; transition: border-color .2s, background .2s; }
.jam-deck.on { border-color: rgba(34, 197, 94, .45); background: rgba(34, 197, 94, .08); }
.jam-sw { flex: none; width: 42px; height: 24px; border-radius: 24px; background: rgba(255, 255, 255, .14); position: relative; transition: background .25s; }
.jam-sw i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s var(--spring); }
.jam-deck.on .jam-sw { background: #22c55e; } .jam-deck.on .jam-sw i { transform: translateX(18px); }
.jam-deck-tx { display: grid; gap: 1px; min-width: 0; } .jam-deck-tx b { font-size: 13px; } .jam-deck-tx small { font-size: 11.5px; color: var(--muted); }
.jam-deckinfo { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; font-size: 12.5px; color: #bbf7d0; background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .3); }
.jam-deckinfo i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px #22c55e; }
.jam-search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 13px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: var(--muted); }
.jam-search:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.jam-search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; color: var(--ink); font: inherit; font-size: 14px; outline: none; }
.jam-clear { width: 26px; height: 26px; border-radius: 50%; color: var(--muted); background: rgba(255, 255, 255, .08); font-size: 11px; } .jam-clear[hidden] { display: none; }
.jam-results { display: grid; gap: 6px; max-height: 280px; overflow: auto; }
.jam-results:empty { display: none; }
.jam-res { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.jam-res-art { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; } .jam-res-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jam-res-tx { display: grid; gap: 1px; min-width: 0; } .jam-res-tx b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .jam-res-tx small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jam-res-act { display: flex; gap: 5px; }
.jam-mini { height: 30px; padding: 0 10px; border-radius: 9px; font: inherit; font-size: 12px; font-weight: 800; color: var(--ink); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); white-space: nowrap; }
.jam-mini.primary { color: #fff; background: linear-gradient(135deg, var(--accent), var(--c2)); border: 0; }
.jam-qlist { display: grid; gap: 6px; margin-top: 8px; }
.jam-q { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.jam-q .n { font-size: 12px; color: var(--muted); font-weight: 800; text-align: center; }
.jam-q-tx { display: grid; min-width: 0; } .jam-q-tx b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .jam-q-tx small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jam-ev.q { display: grid; gap: 4px; padding: 8px 10px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px dashed color-mix(in srgb, var(--accent) 35%, transparent); }
.jam-ev.q b { font-size: 12px; } .jam-ev.q span { font-size: 13px; }
.jam-ev-act { display: flex; gap: 6px; margin-top: 2px; }
.jam-ev-av { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-inline-end: 6px; }
@media (max-width: 600px) { .jam-np2 { grid-template-columns: 54px minmax(0, 1fr); } .jam-np-art { width: 54px; height: 54px; } .jam-res-act .jam-mini { padding: 0 8px; } }
