/* 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; }
