/* The chat's music tab: the original's icon sub-tabs, girvoo.com's song rows and favourite categories. */
.chat-body > .chat-music { position: relative; padding: 0; gap: 0; overflow: hidden; background: #fff; }
.chat-body > .chat-music[hidden] { display: none; }
.chat-body:has(> .chat-music:not([hidden])) > .side-btns { display: none; }
.mu-tabs { flex: 0 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; padding: 8px 6px 6px; border-bottom: 1px solid #efe7fb; background: #fff; }
.mu-tab { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 2px; border-radius: 10px; background: none; color: #7957b2; font-size: 11px; font-weight: 500; }
.mu-tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 14px; }
.mu-tab:hover { background: #f6f1fd; }
.mu-tab i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.mu-tab i svg { width: 20px; height: 20px; }
.mu-tab.on i { background: #7957b2; color: #fff; }
.mu-tab.on span { font-weight: 700; }
.mu-body { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; padding: 8px 10px 12px; gap: 6px; color: #2b2340; }
.mu-body > * { flex-shrink: 0; }

/* rows */
.mu-list { display: flex; flex-direction: column; gap: 6px; }
.mu-row { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px; border-radius: 10px; background: #fff; border: 1px solid #efe7fb; box-shadow: 0 1px 3px rgba(121, 87, 178, .06); }
.mu-row:hover { border-color: #d9c8f5; }
.mu-row.dragging { opacity: .45; }
.mu-row.drop { box-shadow: 0 -3px 0 #7957b2 inset; }
.mu-handle { flex: 0 0 auto; color: #c3b4de; font-size: 12px; letter-spacing: -2px; cursor: grab; user-select: none; }
.mu-thumb { position: relative; flex: 0 0 64px; height: 40px; border-radius: 6px; background: #e9e1f6 center / cover no-repeat; }
.mu-thumb small { position: absolute; right: 2px; bottom: 2px; padding: 0 3px; border-radius: 3px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 9px; font-weight: 700; line-height: 13px; }
.mu-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mu-text b { font-size: 12px; font-weight: 600; line-height: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.mu-text small { font-size: 10px; color: #8b84a3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-long { font-style: normal; color: #e8590c; }
.mu-heart, .mu-more { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: none; color: #7957b2; font-size: 18px; line-height: 1; }
.mu-heart:hover, .mu-more:hover { background: #f4effb; }
.mu-play { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(#9b6ee0, #7957b2); box-shadow: 0 2px 6px rgba(121, 87, 178, .35); }
.mu-play:hover { filter: brightness(1.1); }
.mu-row.q { min-height: 44px; }
.mu-n { flex: 0 0 16px; text-align: center; color: #8e7fa5; font-size: 12px; font-weight: 700; }
.mu-ava { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

/* now playing */
.mu-now { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: linear-gradient(135deg, #f3ecff, #fde9f4); }
.mu-now-thumb { flex: 0 0 88px; height: 54px; border-radius: 8px; background: #ddd center / cover no-repeat; display: grid; place-items: center; }
.mu-now-thumb i { width: 24px; height: 24px; border-radius: 50%; background: rgba(121, 87, 178, .85); color: #fff; font-style: normal; font-size: 13px; display: grid; place-items: center; animation: muPulse 1.4s ease-in-out infinite; }
@keyframes muPulse { 50% { transform: scale(1.15); } }
.mu-now-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mu-now-text small { font-size: 10px; color: #7957b2; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.mu-now-text b { font-size: 13px; line-height: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mu-by { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #5d5470; }
.mu-by img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.mu-cap { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; font-weight: 700; color: #382a63; }
.mu-cap em { font-style: normal; padding: 0 6px; border-radius: 8px; background: #efe9fb; color: #7957b2; font-size: 11px; }
.mu-note { padding: 14px 6px; border: 1.5px dashed #e3d8f5; border-radius: 12px; text-align: center; color: #8b84a3; font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.mu-rules { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.mu-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mu-fact { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 4px; border-radius: 10px; background: #f7f2fe; text-align: center; }
.mu-fact i { font-style: normal; font-size: 15px; line-height: 1; }
.mu-fact b { font-size: 13px; color: #4b3585; }
.mu-fact small { max-width: 100%; font-size: 10px; line-height: 12px; color: #8b84a3; }
.mu-seen { text-align: center; font-size: 10px; color: #a097b5; }
.mu-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px; text-align: center; color: #8b84a3; }
.mu-empty > span { font-size: 34px; color: #c9b8ea; line-height: 1; }
.mu-empty p { margin: 0; font-size: 12px; line-height: 16px; }
.mu-cta { margin-top: 4px; height: 30px; padding: 0 16px; border-radius: 20px; background: #7957b2; color: #fff; font-size: 12px; font-weight: 700; }

/* search */
.mu-search { position: relative; display: flex; align-items: center; height: 38px; border-radius: 20px; border: 1.5px solid #7957b2; background: #fff; padding: 0 4px 0 14px; }
.mu-input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 500 13px Montserrat, Cairo, sans-serif; color: #2b2340; }
.mu-input::-webkit-search-cancel-button { display: none; }
.mu-clear { width: 24px; height: 24px; background: none; color: #a097b5; font-size: 20px; line-height: 1; }
.mu-go { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: none; color: #7957b2; }
.mu-go svg { width: 20px; height: 20px; }
.mu-prio { display: flex; align-items: center; gap: 2px; font-size: 11px; color: #5d5470; padding: 0 4px; }
.mu-prio b { color: #7957b2; margin-inline-start: 2px; }
.mu-results { display: flex; flex-direction: column; }
.mu-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #d9c8f5; border-top-color: #7957b2; animation: muSpin .8s linear infinite; }
@keyframes muSpin { to { transform: rotate(360deg); } }

/* favourites: categories */
.mu-favhint { margin: 0; font-size: 11px; color: #8b84a3; line-height: 15px; }
.mu-favhint b { color: #7957b2; }
.mu-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mu-chip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 12px; border-radius: 20px; background: #f1eaff; color: #7957b2; font-size: 12px; font-weight: 700; border: 1.5px solid transparent; }
.mu-chip small { font-size: 10px; opacity: .7; }
.mu-chip.on { background: #7957b2; color: #fff; }
.mu-chip.drop { border-color: #e64980; background: #fde9f4; color: #c2255c; }
.mu-chip.add { width: 28px; padding: 0; justify-content: center; background: #fff; border: 1.5px dashed #b8a3e3; font-size: 16px; }
.mu-catbar { display: flex; align-items: center; gap: 10px; padding: 2px 2px; font-size: 12px; }
.mu-catbar b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #382a63; }
.mu-catbar button { background: none; color: #7957b2; font-size: 11px; font-weight: 700; }
.mu-catbar button.danger { color: #e03131; }
.mu-menu { position: absolute; z-index: 5; inset-inline-end: 12px; min-width: 170px; max-height: 60%; overflow-y: auto; padding: 6px; border-radius: 10px; background: #fff; border: 2px solid #7957b2; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); display: flex; flex-direction: column; }
.mu-menu-cap { padding: 4px 8px; font-size: 11px; font-weight: 700; color: #8b84a3; }
.mu-menu button { height: 30px; padding: 0 8px; border-radius: 6px; background: none; color: #2b2340; font-size: 13px; text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-menu button:hover { background: #f4effb; }
.mu-menu button.danger { color: #e03131; }
.mu-ask { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: rgba(43, 35, 64, .35); }
.mu-ask-box { width: min(280px, 90%); padding: 16px; border-radius: 14px; background: #fff; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.mu-ask-box b { color: #382a63; font-size: 14px; }
.mu-ask-box .mu-input { height: 38px; padding: 0 12px; border-radius: 10px; border: 1.5px solid #d9c8f5; }
.mu-ask-btns { display: flex; justify-content: flex-end; gap: 8px; }
.mu-ask-btns button { height: 32px; padding: 0 16px; border-radius: 20px; background: #7957b2; color: #fff; font-weight: 700; font-size: 12px; }
.mu-ask-btns button.ghost { background: #f1eaff; color: #7957b2; }

/* sources: YouTube | VK Video (like girvoo.com) */
.mu-src { display: flex; gap: 6px; padding: 2px; border-radius: 20px; background: #f4effb; }
.mu-src button { flex: 1; height: 28px; border-radius: 20px; background: none; color: #7957b2; font-size: 12px; font-weight: 700; }
.mu-src button.on { background: #e03131; color: #fff; box-shadow: 0 2px 6px rgba(224, 49, 49, .3); }
.mu-src button.on:last-child { background: #0077ff; box-shadow: 0 2px 6px rgba(0, 119, 255, .3); }
.mu-vk { width: 54px; height: 54px; border-radius: 14px; background: #0077ff; color: #fff !important; font: 800 20px/54px Montserrat, sans-serif !important; }
.mu-thumb.vk:not([style*="background-image"])::after { content: 'VK'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 800 14px Montserrat, sans-serif; border-radius: 6px; background: #0077ff; }
.mu-srcbadge { margin-inline-start: 4px; padding: 0 4px; border-radius: 4px; background: #0077ff; color: #fff; font-style: normal; font-size: 9px; font-weight: 800; }
.mu-note.err { color: #e03131; }
/* a VK video plays in its own player over the YouTube one */
.vp-stage.vk #vpFrame { visibility: hidden; }
.vp-stage iframe.vp-vk { z-index: 1; }
.vp-stage .vp-info { z-index: 2; }

/* ── private messages (measured from the original's list: 48px photos, 15px names, a purple unread badge) ── */
.mtab .dot:not(:empty) { width: auto; min-width: 16px; height: 16px; top: 1px; right: 6px; padding: 0 4px; border-radius: 8px; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.chat-body > .dm-list { padding: 0; gap: 0; background: #fff; }
.chat-body:has(> .dm-list:not([hidden])) > .side-btns { display: none; }
.dm-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 8px 12px; background: #fff; text-align: start; border-bottom: 1px solid #f3eefa; }
.dm-row:hover { background: #faf7ff; }
.dm-photo { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #ece8f3; }
.dm-photo.s { flex-basis: 32px; width: 32px; height: 32px; }
.dm-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dm-name { font-size: 15px; font-weight: 600; color: #2a2438; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-last { font-size: 14px; font-weight: 400; color: #6f6880; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-row.unread .dm-last { font-weight: 600; color: #2a2438; }
.dm-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.dm-time { font-size: 12px; font-weight: 600; color: #7957b2; }
.dm-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #7957b2; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.dm-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #8b84a3; }
.dm-empty span { font-size: 40px; color: #c9b8ea; }
.dm-empty p { margin: 0; font-size: 13px; }
.dm-bar { flex: 0 0 48px; display: flex; align-items: center; gap: 8px; padding: 0 8px; border-bottom: 1px solid #efe7fb; background: #fff; }
.dm-back { width: 32px; height: 32px; border-radius: 50%; background: none; color: #7957b2; font-size: 30px; line-height: 28px; }
[dir="rtl"] .dm-back { transform: scaleX(-1); }
.dm-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: none; color: #2a2438; text-align: start; }
.dm-who b { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-del { width: 32px; height: 32px; border-radius: 50%; background: none; font-size: 16px; }
.dm-del:hover { background: #fff0f0; }
/* the conversation's ⋯ (delete, block, ask for a subscription …): on a phone, in place of the separate buttons */
.dm-dots { display: none; min-width: 44px; height: 40px; padding: 0 6px; border-radius: 12px; background: none; color: #6b4fa0; font-size: 18px; font-weight: 800; letter-spacing: -1px; line-height: 1; place-items: center; }
.dm-dots:hover, .dm-dots:active { background: #f3eefb; }
.dm-pop-quota { padding: 6px 10px 2px; border-top: 1px solid #efe7fb; margin-top: 4px; }
.dm-pop-quota .dm-quota { margin: 0; padding: 0; border: 0; background: none; }
.dm-list > .dm-msgs { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: #f5efff; }
/* the other player's messages on the side the text starts from (right in Arabic, left in English), mine opposite */
.dm-msg { position: relative; align-self: flex-start; max-width: 80%; padding: 6px 10px 4px; border-radius: 14px 14px 14px 4px; background: #fff; color: #2a2438; box-shadow: 0 1px 2px rgba(57, 45, 96, .08); display: flex; flex-direction: column; }
.dm-msg.mine { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: #7957b2; color: #fff; }
[dir="rtl"] .dm-msg { border-radius: 14px 14px 4px 14px; }
[dir="rtl"] .dm-msg.mine { border-radius: 14px 14px 14px 4px; }
/* each message on the side of its own language: Arabic on the right, English on the left (mine stand out by colour) */
.dm-msgs > .dm-msg[dir="rtl"] { margin-left: auto; margin-right: 0; border-radius: 14px 14px 4px 14px; }
.dm-msgs > .dm-msg[dir="ltr"] { margin-right: auto; margin-left: 0; border-radius: 14px 14px 14px 4px; }
.dm-body { font-size: 14px; line-height: 18px; white-space: pre-wrap; word-break: break-word; }
.dm-at { align-self: flex-end; font-size: 10px; opacity: .65; display: flex; gap: 3px; }
.dm-tick { font-style: normal; letter-spacing: -2px; }
/* private messages: while it goes, did not go, taken back, edited */
.dm-msg { cursor: pointer; }
.dm-msg.pending { opacity: .72; }
.dm-msg.failed { box-shadow: 0 0 0 1.5px #e5484d; }
.dm-retry { margin-top: 2px; font-size: 10px; font-weight: 700; color: #e5484d; }
.dm-msg.mine .dm-retry { color: #ffd2d4; }
.dm-msg.deleted { background: transparent; box-shadow: inset 0 0 0 1px #d9cdee; color: #8b84a3; cursor: default; }
.dm-msg.mine.deleted { background: transparent; color: #8b84a3; }
.dm-body.gone { font-size: 13px; font-style: italic; }
.dm-edited { font-style: italic; }
.dm-tick.wait, .dm-tick.fail { letter-spacing: 0; font-size: 10px; }
/* attachments: a picture (opens full size), a video that plays here, a file to download */
.dm-msg.has-att { padding: 4px; gap: 4px; }
.dm-msg.has-att > .dm-body, .dm-msg.has-att > .dm-at, .dm-msg.has-att > .dm-fwd { padding-inline: 6px; }
.dm-att.img { display: block; width: 220px; max-width: 100%; max-height: 280px; border-radius: 10px; overflow: hidden; background: #e9e1f6; padding: 0; }
.dm-att.img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dm-att.vid { display: block; width: 240px; max-width: 100%; max-height: 300px; border-radius: 10px; background: #000; }
.dm-att.file { display: flex; align-items: center; gap: 8px; min-width: 200px; max-width: 260px; padding: 8px 10px; border-radius: 10px; background: rgba(121, 87, 178, .08); color: inherit; text-decoration: none; }
.dm-msg.mine .dm-att.file { background: rgba(255, 255, 255, .16); }
.dm-file-ico { font-size: 26px; line-height: 1; }
.dm-file-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dm-file-txt b { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-file-txt small { font-size: 10px; opacity: .75; }
.dm-file-dl { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(121, 87, 178, .18); font-size: 13px; }
.dm-att.gone { font-size: 12px; font-style: italic; opacity: .8; padding: 4px 6px; }
.dm-up { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 8px; min-width: 200px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .16); }
.dm-up-ico { font-size: 22px; grid-row: span 2; }
.dm-up-txt { min-width: 0; display: flex; flex-direction: column; }
.dm-up-txt b { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-up-txt small { font-size: 10px; opacity: .8; }
.dm-up-bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.dm-up-bar > i { display: block; height: 100%; background: #fff; transition: width .2s; }
/* the day's allowance under the conversation */
.dm-quota { flex: none; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 4px 10px; border-top: 1px solid #ece4f8; background: #fff; font-size: 11px; color: #6b5d8a; }
.dm-quota small { font-weight: 700; color: #8b84a3; }
.dm-q { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; }
.dm-q i { font-style: normal; }
.dm-q.out { color: #e5484d; }
/* a picture opened full size */
.dm-view-screen { background: rgba(10, 6, 20, .92); }
.dm-view { flex: 1; display: grid; place-items: center; padding: 12px; cursor: zoom-out; }
.dm-view-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.dm-day { align-self: center; margin: 6px 0; padding: 2px 10px; border-radius: 10px; background: rgba(121, 87, 178, .12); color: #7957b2; font-size: 11px; font-weight: 600; }
.dm-more { align-self: center; height: 26px; padding: 0 12px; border-radius: 14px; background: #fff; color: #7957b2; font-size: 11px; font-weight: 700; border: 1px solid #d9c8f5; }
.dm-start { align-self: center; margin-top: 30%; color: #8b84a3; font-size: 12px; text-align: center; }
.chat-body > .dm-list:has(> .dm-msgs) { overflow: hidden; }

/* store: membership levels (VIP 1–10, SVIP 1–3) */
.st-levels { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.st-level { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: #fff; border: 2px solid color-mix(in srgb, var(--lc) 35%, #fff); box-shadow: 0 2px 8px rgba(57, 45, 96, .08); }
.st-level.mine { border-color: var(--lc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lc) 25%, transparent); }
.st-level.svip { background: linear-gradient(135deg, #fff8e6, #fff); }
.st-lv-badge { flex: 0 0 58px; height: 58px; border-radius: 14px; background: linear-gradient(145deg, color-mix(in srgb, var(--lc) 70%, #fff), var(--lc)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); }
.st-lv-badge i { font-style: normal; font-size: 20px; line-height: 1; }
.st-lv-badge b { font-size: 11px; font-weight: 800; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); white-space: nowrap; }
.st-lv-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.st-lv-mid > b { font-size: 14px; color: #2b2340; }
.st-lv-perks { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 11px; color: #5d5470; }
.st-lv-perks span { white-space: nowrap; }
.st-lv-svip { font-size: 10px; font-weight: 700; color: #d9480f; }
.st-lv-now { position: absolute; top: -8px; inset-inline-end: 10px; padding: 1px 8px; border-radius: 8px; background: var(--lc); color: #fff; font-size: 10px; font-weight: 700; }
.mu-hidden { align-self: stretch; padding: 8px 10px; border-radius: 10px; background: #fff4e6; color: #d9480f; font-size: 11px; font-weight: 700; text-align: start; border: 1px dashed #ffa94d; }

/* the ☰ button: how many notices are new */
.rail-btn { position: relative; }
.rail-btn .dot.count { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #f13232; color: #fff; font-size: 10px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #4f369c; }
.rail-btn .dot.count[hidden] { display: none; }
