/* ATLAS BEATS v17 — onboarding tour (#obRoot), taste picker and the "For your taste" home shelf (#tasteHome). Scoped by id. */
#obRoot { position: fixed; inset: 0; z-index: 100000; pointer-events: none; font-family: inherit; }
#obRoot[hidden] { display: none; }
#obRoot .ob-dim { position: absolute; inset: 0; background: rgba(4, 3, 10, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: auto; animation: obFade .35s ease; }
#obRoot .ob-dim[hidden] { display: none; }
#obRoot .ob-spot { position: fixed; z-index: 1; box-shadow: 0 0 0 200vmax rgba(4, 3, 10, .74), 0 0 0 2px rgba(167, 139, 250, .9), 0 0 32px 6px rgba(124, 58, 237, .55); border-radius: 14px; pointer-events: auto; transition: left .35s cubic-bezier(.2, .8, .2, 1), top .35s cubic-bezier(.2, .8, .2, 1), width .35s cubic-bezier(.2, .8, .2, 1), height .35s cubic-bezier(.2, .8, .2, 1); }
#obRoot .ob-spot[hidden] { display: none; }
#obRoot .ob-spot::after { content: ''; position: absolute; inset: -8px; border-radius: inherit; border: 2px solid rgba(167, 139, 250, .5); animation: obPulse 1.8s ease-out infinite; pointer-events: none; }
@keyframes obPulse { 0% { transform: scale(.96); opacity: .9; } 100% { transform: scale(1.12); opacity: 0; } }
@keyframes obFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes obIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
#obRoot .ob-card { position: fixed; z-index: 2; pointer-events: auto; width: min(380px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; padding: 16px 18px 16px; border-radius: 18px; color: #fff; background: linear-gradient(180deg, rgba(30, 24, 52, .98), rgba(14, 12, 24, .98)); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(124, 58, 237, .25), 0 10px 40px -10px rgba(124, 58, 237, .45); animation: obIn .35s cubic-bezier(.2, .8, .2, 1); scrollbar-width: thin; }
#obRoot .ob-card::before { content: ''; position: absolute; width: 20px; height: 20px; background: inherit; border-inline-start: 1px solid rgba(255, 255, 255, .12); border-top: 1px solid rgba(255, 255, 255, .12); transform: rotate(45deg); left: var(--ax, 40px); display: none; }
#obRoot .ob-card.arrow-t::before { display: block; top: -11px; }
#obRoot .ob-card.arrow-b::before { display: block; bottom: -11px; transform: rotate(225deg); }
#obRoot .ob-card.modal { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 24px)); padding: 26px 28px 24px; animation: obModal .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes obModal { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%); } }
#obRoot .ob-card.taste { width: min(760px, calc(100vw - 24px)); }
#obRoot h2 { margin: 0 0 6px; font-size: 24px; font-weight: 900; letter-spacing: -.3px; }
#obRoot h3 { margin: 4px 0 6px; font-size: 17px; font-weight: 800; }
#obRoot h4 { margin: 14px 0 8px; font-size: 11.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #b3b3b3; display: flex; align-items: center; justify-content: space-between; }
html[lang="fa"] #obRoot h4, html[lang="ar"] #obRoot h4 { letter-spacing: 0; font-size: 12.5px; }
#obRoot p { margin: 0; font-size: 14px; line-height: 1.7; color: #d4d2e0; }
#obRoot .ob-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
#obRoot .ob-num { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: #c4b5fd; text-transform: uppercase; }
#obRoot .ob-x { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: #ddd; display: grid; place-items: center; cursor: pointer; }
#obRoot .ob-x:hover { background: rgba(255, 255, 255, .16); }
#obRoot .i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
#obRoot .ob-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
#obRoot .ob-hero img { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 10px 30px rgba(124, 58, 237, .5); animation: obFloat 4s ease-in-out infinite; }
#obRoot .ob-hero.small img { width: 52px; height: 52px; }
@keyframes obFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
#obRoot .ob-wm { font: 900 22px/1 'Inter', system-ui, sans-serif; letter-spacing: 3px; direction: ltr; }
#obRoot .ob-wm i { font-style: normal; background: linear-gradient(90deg, #a78bfa, #60a5fa); -webkit-background-clip: text; background-clip: text; color: transparent; }
#obRoot .ob-feats { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
#obRoot .ob-feats li { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.6; color: #e5e3f0; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); }
#obRoot .ob-feats .i { width: 18px; height: 18px; color: #a78bfa; margin-top: 3px; }
#obRoot .ob-actions { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
#obRoot .ob-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font: 800 13.5px/1 inherit; font-family: inherit; color: #fff; cursor: pointer; transition: transform .2s, filter .2s, background .2s; }
#obRoot .ob-btn.primary { background: linear-gradient(135deg, #7c3aed, #3b82f6); box-shadow: 0 12px 30px -10px rgba(124, 58, 237, .9); }
#obRoot .ob-btn.primary:hover { transform: translateY(-1px); filter: brightness(1.1); }
#obRoot .ob-btn.ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #ddd; }
#obRoot .ob-btn.ghost:hover { background: rgba(255, 255, 255, .12); }
#obRoot .ob-btn[disabled] { opacity: .4; pointer-events: none; }
html[dir="rtl"] #obRoot .ob-btn[data-ob-act="next"] .i, html[dir="rtl"] #obRoot .ob-btn[data-ob-act="start"] .i { transform: scaleX(-1); }
#obRoot .ob-dots { display: flex; gap: 5px; margin-top: 12px; }
#obRoot .ob-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
#obRoot .ob-dots i.past { background: rgba(167, 139, 250, .6); }
#obRoot .ob-dots i.on { width: 18px; border-radius: 4px; background: linear-gradient(90deg, #a78bfa, #60a5fa); }
/* taste picker */
#obRoot .ob-genres { display: flex; flex-wrap: wrap; gap: 8px; }
#obRoot .ob-g { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: #e8e6f5; font: 700 13px/1 inherit; font-family: inherit; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
#obRoot .ob-g .e { font-size: 15px; }
#obRoot .ob-g .i { display: none; width: 14px; height: 14px; }
#obRoot .ob-g:hover { background: rgba(255, 255, 255, .1); }
#obRoot .ob-g.on { background: linear-gradient(135deg, rgba(124, 58, 237, .95), rgba(59, 130, 246, .95)); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -8px rgba(124, 58, 237, .9); }
#obRoot .ob-g.on .i { display: block; }
#obRoot .ob-more { border: 0; background: rgba(255, 255, 255, .08); color: #ddd; font: 700 11px/1 inherit; font-family: inherit; padding: 5px 10px; border-radius: 999px; cursor: pointer; text-transform: none; letter-spacing: 0; }
#obRoot .ob-artists { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px 6px; max-height: 232px; overflow: auto; padding: 4px 2px; scrollbar-width: thin; }
#obRoot .ob-ar { display: grid; justify-items: center; gap: 6px; border: 0; background: none; color: #ddd; cursor: pointer; font-family: inherit; padding: 4px 2px; border-radius: 12px; min-width: 0; }
#obRoot .ob-ar:hover { background: rgba(255, 255, 255, .05); }
#obRoot .ob-av { position: relative; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #2a1d5e, #0f1a3a); box-shadow: 0 8px 20px rgba(0, 0, 0, .45), 0 0 0 2px transparent; transition: box-shadow .2s, transform .2s; display: grid; place-items: center; }
#obRoot .ob-av img { width: 100%; height: 100%; object-fit: cover; }
#obRoot .ob-av i { font-style: normal; font-weight: 900; font-size: 22px; color: #c4b5fd; }
#obRoot .ob-av .i { position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; color: #fff; opacity: 0; transition: opacity .2s; }
#obRoot .ob-ar.on .ob-av { box-shadow: 0 8px 20px rgba(0, 0, 0, .45), 0 0 0 3px #a78bfa; transform: scale(1.04); }
#obRoot .ob-ar.on .ob-av::after { content: ''; position: absolute; inset: 0; background: rgba(124, 58, 237, .55); }
#obRoot .ob-ar.on .ob-av .i { opacity: 1; z-index: 1; }
#obRoot .ob-ar b { font-size: 11.5px; font-weight: 700; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#obRoot .ob-err { margin-top: 10px; font-size: 12.5px; color: #fca5a5; font-weight: 700; }
#obRoot .ob-err[hidden] { display: none; }
#obRoot .ob-empty { color: #777; font-size: 12px; padding: 10px; }
body.ob-open { overflow: hidden; }
@media (max-width: 767px) {
  #obRoot .ob-card { padding: 14px 14px 14px; border-radius: 16px; }
  #obRoot .ob-card.modal { width: calc(100vw - 20px); padding: 20px 18px 18px; max-height: calc(100dvh - 20px); }
  #obRoot h2 { font-size: 21px; }
  #obRoot .ob-artists { grid-template-columns: repeat(4, 1fr); max-height: 200px; }
  #obRoot .ob-av { width: 56px; height: 56px; }
  #obRoot .ob-g { height: 34px; font-size: 12.5px; }
  #obRoot .ob-btn { height: 40px; padding: 0 16px; font-size: 13px; }
  #obRoot .ob-feats li { font-size: 12.5px; padding: 8px 10px; }
}

/* ===== taste shelf on the home page ===== */
#tasteHome { position: relative; margin: 6px 0 18px; padding: 16px 18px 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(124, 58, 237, .16), rgba(59, 130, 246, .08) 60%, rgba(255, 255, 255, .03)); border: 1px solid rgba(167, 139, 250, .22); isolation: isolate; overflow: hidden; }
#tasteHome::before { content: ''; position: absolute; inset: auto -10% -60% auto; width: 50%; height: 140%; background: radial-gradient(closest-side, rgba(124, 58, 237, .25), transparent); z-index: -1; pointer-events: none; }
#tasteHome .ts-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#tasteHome h2 { margin: 0; font-size: 20px; font-weight: 900; display: flex; align-items: center; gap: 8px; letter-spacing: -.2px; }
#tasteHome h2 .i { width: 20px; height: 20px; color: #c4b5fd; }
#tasteHome .ts-head p { margin: 3px 0 0; font-size: 12.5px; color: #b3b3b3; }
#tasteHome .ts-tools { display: flex; gap: 8px; flex-wrap: wrap; }
#tasteHome .ts-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid transparent; font: 800 12.5px/1 inherit; font-family: inherit; color: #fff; background: linear-gradient(135deg, #7c3aed, #3b82f6); cursor: pointer; box-shadow: 0 8px 20px -10px rgba(124, 58, 237, .9); transition: transform .2s, filter .2s; }
#tasteHome .ts-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
#tasteHome .ts-btn.ghost { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
#tasteHome .ts-btn .i { width: 14px; height: 14px; }
#tasteHome .ts-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
#tasteHome .ts-chip { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); color: #ece8ff; }
#tasteHome .ts-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 12px 2px 4px; scroll-snap-type: x proximity; }
#tasteHome .ts-row::-webkit-scrollbar { display: none; }
#tasteHome .ts-ar, #tasteHome .ts-pl { flex: none; scroll-snap-align: start; display: grid; justify-items: center; gap: 7px; border: 0; background: none; color: #eee; cursor: pointer; font-family: inherit; padding: 6px; border-radius: 14px; transition: background .2s; min-width: 0; }
#tasteHome .ts-ar:hover, #tasteHome .ts-pl:hover { background: rgba(255, 255, 255, .06); }
#tasteHome .ts-av { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #2a1d5e, #0f1a3a); box-shadow: 0 10px 24px rgba(0, 0, 0, .5), 0 0 0 2px rgba(167, 139, 250, .35); display: grid; place-items: center; transition: transform .3s, box-shadow .3s; }
#tasteHome .ts-ar:hover .ts-av { transform: scale(1.04); box-shadow: 0 14px 30px rgba(0, 0, 0, .55), 0 0 0 3px #a78bfa; }
#tasteHome .ts-av img { width: 100%; height: 100%; object-fit: cover; }
#tasteHome .ts-av i { font-style: normal; font-weight: 900; font-size: 26px; color: #c4b5fd; }
#tasteHome .ts-ar b { font-size: 12.5px; font-weight: 700; max-width: 96px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tasteHome .ts-pl { width: 128px; justify-items: start; }
#tasteHome .ts-cv { position: relative; width: 116px; height: 116px; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, var(--s1, #7c3aed), var(--s2, #3b82f6)); box-shadow: 0 12px 26px -8px color-mix(in srgb, var(--s1, #7c3aed) 80%, transparent), 0 8px 20px rgba(0, 0, 0, .45); }
#tasteHome .ts-cv img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
#tasteHome .ts-pl:hover .ts-cv img { transform: scale(1.05); }
#tasteHome .ts-play { position: absolute; inset-inline-end: 8px; bottom: 8px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #7c3aed, #3b82f6); color: #fff; box-shadow: 0 8px 18px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
#tasteHome .ts-play .i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
#tasteHome .ts-pl:hover .ts-play { opacity: 1; transform: none; }
#tasteHome .ts-pl b { font-size: 13px; font-weight: 800; max-width: 116px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tasteHome .i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* rows / cards outside the chosen styles are hidden until "show everything" */
#plGrid .pl-row.ts-hide, #plGrid .pl-card.ts-hide { display: none !important; }
body.sp-searching #tasteHome, body.detail-open #tasteHome, body.page-open #tasteHome, body.radio-site #tasteHome { display: none; }
@media (max-width: 767px) {
  #tasteHome { margin: 4px 0 14px; padding: 14px 12px 10px; border-radius: 14px; }
  #tasteHome h2 { font-size: 17px; }
  #tasteHome .ts-av { width: 68px; height: 68px; }
  #tasteHome .ts-ar b { max-width: 78px; font-size: 11.5px; }
  #tasteHome .ts-pl { width: 112px; }
  #tasteHome .ts-cv { width: 100px; height: 100px; }
  #tasteHome .ts-pl b { max-width: 100px; font-size: 12.5px; }
  #tasteHome .ts-play { opacity: 1; transform: none; width: 32px; height: 32px; }
  #tasteHome .ts-btn { height: 32px; font-size: 12px; padding: 0 11px; }
}
