/* Extracted from header.php on 2026-09-10 — byte-for-byte the CSS that used to be inlined into
 * every page of this site. /assets/** is served immutable for a year, so this is fetched once
 * per visitor; inline, it was re-sent with every page view because HTML is not cacheable.
 * Do not re-inline it. */
/* ═══════════════════════════════════════════════
   Public Header Styles - MIBL Cosmic UI
═══════════════════════════════════════════════ */
/* --page-w / --prose-w live in mibl_polish.css, not here — that file is the one thing both
   header.php pages AND standalone pages (terms.php, which skips header.php entirely) actually
   share. See the comment there for why. */
.pub-header-outer { max-width: var(--page-w, 1400px); width: calc(100% - 40px); margin: 0 auto 24px; padding: 0; box-sizing: border-box; position: sticky; top: 8px; z-index: 1000; }
.pub-header-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: rgba(5,5,18,0.92); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 10px 20px; box-shadow: 0 8px 36px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.05); position: relative; z-index: 1000; direction: ltr; transition: background-color 1.5s ease; }
/* Top shimmer line — mirrors the player bar aesthetic */
.pub-header-wrap::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(0,212,255,0.4), rgba(167,139,250,0.3), transparent); border-radius: 16px 16px 0 0; pointer-events: none; }

.pub-nav-brand { flex: 0 0 auto; font-size: 21px; font-weight: 900; font-family: 'Vazirmatn', sans-serif; letter-spacing: 2.5px; background: linear-gradient(90deg, #f9d423, #ff4e50); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-decoration: none; white-space: nowrap; line-height: 1; position: relative; z-index: 1; }

/* Single-line, never-wrap nav. Gaps shrink with the viewport (clamp); if items still don't fit
   they scroll horizontally (scrollbar hidden) instead of overlapping. `safe center` keeps it
   centered when it fits but falls back to start on overflow so nothing is ever clipped off-screen.
   A soft edge-fade hints that there's more to scroll — premium, slim, always one line. */
.pub-nav-bar { display: flex; flex-wrap: nowrap; gap: clamp(2px, 0.5vw, 8px); align-items: center; flex: 1 1 auto; min-width: 0; position: relative; z-index: 1;
    justify-content: flex-start; justify-content: safe center;
    overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%); }
.pub-nav-bar::-webkit-scrollbar { display: none; }
/* Desktop affordances for the hidden-scrollbar nav: grab-to-drag + wheel-to-scroll (JS below). */
.pub-nav-bar { -webkit-user-select: none; user-select: none; }
.pub-nav-bar.is-scrollable { cursor: grab; }
.pub-nav-bar.grabbing { cursor: grabbing; }
.pub-nav-bar.grabbing .pub-nav-btn { pointer-events: none; }

.pub-nav-btn { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 9px clamp(9px, 1.1vw, 16px); border-radius: 10px; font-size: 13px; font-weight: 600; font-family: 'Vazirmatn', sans-serif; color: #94a3b8; text-decoration: none; background: transparent; border: 1px solid transparent; transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.18s cubic-bezier(0.16,1,0.3,1), box-shadow 0.2s ease; white-space: nowrap; line-height: 1; min-height: 40px; position: relative; }
.pub-nav-btn .nav-icon { font-size: 15px; line-height: 1; flex-shrink: 0; }
/* Sliding underline — animates from center outward on hover */
.pub-nav-btn::after { content: ''; position: absolute; bottom: 5px; left: 50%; width: 0; height: 2px; background: linear-gradient(90deg, var(--cyan, #00d4ff), #a78bfa); border-radius: 2px; transition: width 0.25s ease, left 0.25s ease; }
.pub-nav-btn:hover { background: rgba(0,212,255,0.07); border-color: rgba(0,212,255,0.22); color: #e0f7ff; transform: translateY(-1px) scale(1.03); box-shadow: 0 4px 14px rgba(0,212,255,0.1); }
.pub-nav-btn:hover::after { width: calc(100% - 24px); left: 12px; }
/* Push-down click feedback */
.pub-nav-btn:active { transform: scale(0.95); transition: transform 0.1s ease; box-shadow: none; }
.pub-nav-btn.active { background: rgba(0,212,255,0.09); border-color: rgba(0,212,255,0.28); color: var(--cyan, #00d4ff); box-shadow: 0 0 14px rgba(0,212,255,0.12); }
.pub-nav-btn.active::after { width: calc(100% - 24px); left: 12px; }
/* Live Player special accent — always glows slightly */
.pub-nav-btn.live-link { color: var(--cyan, #00d4ff); border-color: rgba(0,212,255,0.2); background: rgba(0,212,255,0.06); }
.pub-nav-btn.live-link:hover { background: rgba(0,212,255,0.13); border-color: rgba(0,212,255,0.38); box-shadow: 0 4px 16px rgba(0,212,255,0.18); }
/* "Hot" nav CTA (new launch / promo) — a warm gradient border + a small NEW-style badge that
   survives icon-only mode on tiny screens (badge is absolutely positioned on the button itself). */
.pub-nav-btn--hot { color: #ffd9a8; border-color: rgba(251,146,60,0.35); background: rgba(251,146,60,0.08); }
.pub-nav-btn--hot:hover { background: rgba(251,146,60,0.16); border-color: rgba(251,146,60,0.5); box-shadow: 0 4px 16px rgba(251,146,60,0.22); color:#fff; }
.pub-nav-btn--hot::after { background: linear-gradient(90deg, #fb923c, #f43f5e); }
/* top:-6px used to poke above .pub-nav-bar's own box — that bar has overflow-y:hidden (needed for
   its horizontal drag-scroll), which sliced the badge's top clean off. Tucked in so it stays fully
   inside the bar's clipped bounds while still reading as a corner badge. */
.nav-badge { position: absolute; top: 1px; inset-inline-end: 1px; background: linear-gradient(135deg,#fb923c,#f43f5e); color: #1a0900;
  font-size: 8.5px; font-weight: 900; letter-spacing: .3px; line-height: 1; padding: 3px 5px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(244,63,94,.4); pointer-events: none; }

/* ── Grouped nav dropdowns (glass, hover on desktop / tap on touch). Panels are
   JS-moved to <body> so the header's backdrop-filter can't clip them — hence
   position:fixed, positioned under their trigger by JS. ── */
.pub-nav-group { position: relative; flex: 0 0 auto; display: inline-flex; }
.pub-nav-trigger { cursor: pointer; }
.pub-nav-trigger .nav-chev { margin-inline-start: 1px; opacity: .6; transition: transform .25s ease, opacity .2s ease; flex-shrink: 0; }
.pub-nav-group.open .pub-nav-trigger .nav-chev { transform: rotate(180deg); opacity: 1; }
.pub-nav-group.open .pub-nav-trigger { background: rgba(0,212,255,0.09); border-color: rgba(0,212,255,0.28); color: #e0f7ff; }
.pub-nav-drop { position: fixed; top: 0; left: 0; z-index: 1300; min-width: 262px; max-width: 92vw; padding: 8px;
    background: linear-gradient(165deg, rgba(20,22,42,0.90), rgba(11,12,26,0.86));
    border: 1px solid rgba(255,255,255,0.11); border-radius: 16px;
    -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
    box-shadow: 0 26px 64px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
    opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.97); transform-origin: top center;
    transition: opacity .2s ease, transform .24s cubic-bezier(.16,1,.3,1), visibility 0s linear .2s;
    direction: ltr; }
html[dir="rtl"] .pub-nav-drop { direction: rtl; }
.pub-nav-drop.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1);
    transition: opacity .2s ease, transform .24s cubic-bezier(.16,1,.3,1); }
.pub-nav-drop::before { content: ''; position: absolute; inset: -40% 45% auto -12%; height: 90px; pointer-events: none; filter: blur(26px); opacity: .5;
    background: radial-gradient(60% 100% at 30% 0, rgba(0,212,255,.5), transparent 70%); border-radius: 16px; }
.pub-nav-drop-item { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 11px;
    text-decoration: none; color: #cdd6ee; transition: background .16s ease, transform .16s cubic-bezier(.16,1,.3,1); }
.pub-nav-drop-item:hover { background: rgba(0,212,255,0.10); transform: translateX(3px); }
html[dir="rtl"] .pub-nav-drop-item:hover { transform: translateX(-3px); }
.pub-nav-drop-item.active { background: rgba(0,212,255,0.08); }
.pub-nav-drop-item .di { width: 36px; height: 36px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 18px; border-radius: 10px;
    background: linear-gradient(150deg, rgba(255,255,255,.10), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.08); }
.pub-nav-drop-item .dtext { display: flex; flex-direction: column; min-width: 0; }
.pub-nav-drop-item .dt { font-size: 13.5px; font-weight: 700; color: #eaf1ff; line-height: 1.25; }
.pub-nav-drop-item .dd { font-size: 11px; color: #8f9bc0; margin-top: 1px; white-space: nowrap; }
/* A badge already rode on top-level nav items and was silently dropped inside dropdowns, so an item
   that only exists in a dropdown had no way to be flagged as new. Inline with the title, never on its
   own line, so it cannot push the one-line description around. */
.pub-nav-drop-item .drop-badge { display: inline-block; margin-inline-start: 6px; padding: 1px 6px; border-radius: 999px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .4px; vertical-align: middle; white-space: nowrap;
  color: #05131f; background: linear-gradient(135deg, #00d4ff, #7c3aed); box-shadow: 0 0 10px rgba(0,212,255,.35); }
@media (prefers-reduced-motion: reduce) { .pub-nav-drop, .pub-nav-drop.open { transition: opacity .15s ease, visibility 0s; transform: none; } }

.pub-header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════
   Cosmic Music Notes Background Animation
   NOTE: overflow:hidden lives on .pub-header-notes
   (NEVER on .pub-header-wrap — would clip dropdown).
═══════════════════════════════════════════════ */
.pub-header-notes { position: absolute; inset: 0; overflow: hidden; border-radius: 16px; pointer-events: none; z-index: 0; }
.pub-header-note { position: absolute; font-family: 'Times New Roman', 'Vazirmatn', serif; line-height: 1; opacity: 0; white-space: nowrap; text-shadow: 0 0 6px currentColor; will-change: left, transform, opacity; }
.pub-header-note.dir-ltr { animation: noteFloatLTR linear infinite; }
.pub-header-note.dir-rtl { animation: noteFloatRTL linear infinite; }
@keyframes noteFloatLTR {
    0%   { left: -8%;  opacity: 0; transform: translateY(0)    rotate(-10deg); }
    12%  { opacity: var(--note-op, 0.2); }
    50%  { transform: translateY(-6px) rotate(6deg); }
    88%  { opacity: var(--note-op, 0.2); }
    100% { left: 108%; opacity: 0; transform: translateY(0)    rotate(10deg); }
}
@keyframes noteFloatRTL {
    0%   { left: 108%; opacity: 0; transform: translateY(0)    rotate(10deg); }
    12%  { opacity: var(--note-op, 0.2); }
    50%  { transform: translateY(6px)  rotate(-6deg); }
    88%  { opacity: var(--note-op, 0.2); }
    100% { left: -8%;  opacity: 0; transform: translateY(0)    rotate(-10deg); }
}
@media (prefers-reduced-motion: reduce) {
    .pub-header-note { animation: none !important; display: none; }
}

/* Authentication & Profile Buttons */
.pub-auth-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 10px; font-size: 13px; font-weight: 700; font-family: 'Vazirmatn', sans-serif; cursor: pointer; border: 1px solid transparent; transition: all 0.2s ease; white-space: nowrap; text-decoration: none; line-height: 1; background: none; }
.pub-auth-btn.login { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.35); color: #34d399; box-shadow: 0 2px 10px rgba(16,185,129,0.12); }
.pub-auth-btn.login:hover { background: rgba(16,185,129,0.25); border-color: rgba(16,185,129,0.7); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(16,185,129,0.25); }
.pub-auth-btn.admin-user { background: rgba(139,92,246,0.12); border-color: rgba(139,92,246,0.35); color: #c4b5fd; box-shadow: 0 2px 10px rgba(139,92,246,0.12); }
.pub-auth-btn.admin-user:hover { background: rgba(139,92,246,0.25); border-color: rgba(139,92,246,0.7); color: #fff; transform: translateY(-1px); }
.pub-auth-btn.member-user { background: rgba(56,189,248,0.12); border-color: rgba(56,189,248,0.35); color: #38bdf8; box-shadow: 0 2px 10px rgba(56,189,248,0.12); }
.pub-auth-btn.member-user:hover { background: rgba(56,189,248,0.25); border-color: rgba(56,189,248,0.7); color: #fff; transform: translateY(-1px); }
.pub-auth-btn .caret { font-size: 10px; opacity: 0.6; }

/* User Dropdown Menu */
.user-menu-wrap { position: relative; }
/* Nav VIP crown — pinned to the corner of the user button's icon, tilted to
   match the profile badge. pointer-events:none so it never eats the click that
   opens the dropdown. */
.nav-ava-wrap { position: relative; display: inline-flex; align-items: center; }
.nav-vip-crown {
    position: absolute; top: -9px; right: -11px;
    width: 18px; height: 18px; object-fit: contain;
    transform: rotate(-15deg);
    pointer-events: none;
}
/* The glow is per-METAL, not one gold glow for both — a silver crown under a gold halo reads as a
   gold crown that failed to load. .mibl-crown-silver (mibl_crown_css) carries the desaturation and
   its own cool shadow, so this rule only has to stay out of its way. */
.nav-vip-crown.mibl-crown-gold {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)) drop-shadow(0 0 5px rgba(255,215,0,.5));
}
/* ⚠️ Only the gold rule existed until 2026-08-24, so a BRONZE crown inherited the untouched gold
   halo while mibl_crown_css()'s own filter pulled the artwork towards copper — the two fought. */
.nav-vip-crown.mibl-crown-bronze {
    filter: saturate(.78) hue-rotate(-14deg) brightness(.80) contrast(1.06)
            drop-shadow(0 1px 2px rgba(0,0,0,.6)) drop-shadow(0 0 5px rgba(205,127,68,.5));
}
@media (max-width: 900px) { .nav-vip-crown { width: 15px; height: 15px; top: -8px; right: -9px; } }
.pub-user-dropdown { position: absolute; top: calc(100% + 12px); right: 0; min-width: 190px; background: rgba(10,17,32,0.98); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 6px; box-shadow: 0 20px 50px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.03); display: none; z-index: 9999; direction: ltr; animation: ddSlide 0.15s ease; }
.pub-user-dropdown.open { display: block; }
@keyframes ddSlide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.pub-user-dropdown a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; font-family: 'Vazirmatn', sans-serif; color: #94a3b8; text-decoration: none; transition: all 0.15s ease; }
.pub-user-dropdown a:hover { background: rgba(139,92,246,0.12); color: #c4b5fd; }
.pub-user-dropdown a.dd-logout:hover { background: rgba(239,68,68,0.1); color: #fca5a5; }
.pub-dd-sep { border: none; border-top: 1px solid rgba(255,255,255,0.07); margin: 5px 4px; }

/* ═══════════════════════════════════════════════
   Responsive Design
═══════════════════════════════════════════════ */
@media (max-width: 900px) {
    /* Stays a SINGLE line — brand · scrolling nav · actions — never wraps to a second row. */
    .pub-header-outer { width: calc(100% - 20px); padding: 0; }
    .pub-header-wrap { gap: 10px; padding: 10px 14px; border-radius: 14px; }
    .pub-nav-brand { font-size: 18px; }
    .pub-nav-btn { padding: 8px clamp(7px, 1vw, 12px); font-size: 12px; min-height: 38px; }
}

@media (max-width: 620px) {
    .pub-header-outer { top: 4px; margin-bottom: 14px; width: calc(100% - 16px); }
    .pub-header-wrap { padding: 8px 10px; border-radius: 12px; gap: 8px; }
    .pub-nav-brand { font-size: 16px; letter-spacing: 1.4px; }
    .pub-auth-btn { padding: 7px 12px; border-radius: 9px; }
    .pub-auth-btn .btn-txt { font-size: 11px; }
    .pub-nav-bar { gap: 6px; scroll-snap-type: x proximity; }
    .pub-nav-btn { font-size: 11px; scroll-snap-align: start; }
    .pub-nav-btn .nav-icon { font-size: 14px; }
}

@media (max-width: 480px) {
    /* Phones: hide brand, nav becomes a slim icon-only scroller — still one line with the actions. */
    .pub-nav-brand { display: none; }
    .pub-header-wrap { padding: 8px; gap: 8px; }
    .pub-nav-btn { min-width: 42px; justify-content: center; padding: 8px 9px; }
    .pub-nav-btn .nav-txt { display: none; }
    .pub-auth-btn .btn-txt { display: none; }
    .pub-auth-btn { min-width: 40px; justify-content: center; padding: 8px; }
    .pub-user-dropdown { min-width: 170px; }
}

/* ═══════════════════════════════════════════════
   MIBL CUSTOM AUDIO PLAYER (Cosmic UI Global)
═══════════════════════════════════════════════ */
audio.mibl-raw { display: none !important; }
.mibl-player { display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, rgba(0,0,0,0.55), rgba(7,7,20,0.75)); border: 1px solid rgba(0,212,255,0.18); border-radius: 12px; padding: 10px 14px; width: 100%; box-sizing: border-box; backdrop-filter: blur(12px); box-shadow: 0 4px 18px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.04); position: relative; overflow: hidden; }
.mibl-player::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(0,212,255,0.5), rgba(167,139,250,0.4), transparent); }

.mibl-play-btn { width: 36px; height: 36px; min-width: 36px; border-radius: 50%; background: linear-gradient(135deg, #00d4ff, #0284c7); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; transition: all 0.18s cubic-bezier(0.16,1,0.3,1); box-shadow: 0 2px 10px rgba(0,212,255,0.35); flex-shrink: 0; }
.mibl-play-btn:hover { transform: scale(1.08); box-shadow: 0 4px 18px rgba(0,212,255,0.55); }
.mibl-play-btn:active { transform: scale(0.94); }
.mibl-play-btn.playing { background: linear-gradient(135deg, #0ea5e9, #00d4ff); animation: playerPulse 1.8s ease-in-out infinite; box-shadow: 0 0 14px rgba(0,212,255,0.35); }
@keyframes playerPulse { 0%,100% { box-shadow: 0 0 14px rgba(0,212,255,0.35); } 50% { box-shadow: 0 0 26px rgba(0,212,255,0.7), 0 0 50px rgba(0,212,255,0.15); } }

.mibl-play-icon, .mibl-pause-icon { width: 14px; height: 14px; fill: currentColor; }
.mibl-play-icon { margin-left: 2px; }

.mibl-progress-wrap { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mibl-time-row { display: flex; justify-content: space-between; align-items: center; }
.mibl-time-cur { font-size: 11px; font-weight: 700; color: #00d4ff; font-family: monospace; }
.mibl-time-total { font-size: 11px; font-weight: 600; color: #4a5568; font-family: monospace; }

.mibl-track { width: 100%; height: 4px; background: rgba(255,255,255,0.08); border-radius: 4px; cursor: pointer; position: relative; overflow: hidden; }
.mibl-track-fill { height: 100%; background: linear-gradient(90deg, #00d4ff, #a78bfa); border-radius: 4px; width: 0%; transition: width 0.1s linear; position: relative; }
.mibl-track-fill::after { content: ""; position: absolute; right: -4px; top: -4px; width: 12px; height: 12px; background: #00d4ff; border-radius: 50%; box-shadow: 0 0 6px rgba(0,212,255,0.8); opacity: 0; transition: opacity 0.15s; }
.mibl-player:hover .mibl-track-fill::after { opacity: 1; }

.mibl-vol-wrap { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.mibl-vol-icon { color: #4a5568; width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
.mibl-vol-slider { -webkit-appearance: none; appearance: none; width: 56px; height: 3px; background: rgba(255,255,255,0.1); border-radius: 3px; outline: none; cursor: pointer; }
.mibl-vol-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #a78bfa; box-shadow: 0 0 5px rgba(167,139,250,0.5); cursor: pointer; }

.mibl-spinner { width: 14px; height: 14px; border: 2px solid rgba(0,212,255,0.2); border-top-color: #00d4ff; border-radius: 50%; animation: miblSpin 0.7s linear infinite; display: none; flex-shrink: 0; }
.mibl-player.loading .mibl-spinner { display: block; }
@keyframes miblSpin { to { transform: rotate(360deg); } }

.mibl-pod-fallback { background: linear-gradient(135deg, #070714, #0d0d20); border: 1px solid rgba(0,212,255,0.2); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; aspect-ratio: 1/1; position: relative; overflow: hidden; }
.mibl-pod-fallback::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(0,212,255,0.05), transparent); }
.mibl-pod-fallback-wave { display: flex; align-items: flex-end; gap: 3px; height: 30px; z-index: 1; }
.mibl-pod-fallback-wave span { display: block; width: 4px; border-radius: 3px; background: linear-gradient(to top, #00d4ff, #a78bfa); animation: fallbackWave 1.4s ease-in-out infinite; }
.mibl-pod-fallback-wave span:nth-child(1) { height: 40%; animation-delay: 0s; }
.mibl-pod-fallback-wave span:nth-child(2) { height: 70%; animation-delay: 0.15s; }
.mibl-pod-fallback-wave span:nth-child(3) { height: 100%; animation-delay: 0.3s; }
.mibl-pod-fallback-wave span:nth-child(4) { height: 70%; animation-delay: 0.45s; }
.mibl-pod-fallback-wave span:nth-child(5) { height: 40%; animation-delay: 0.6s; }
.mibl-pod-fallback-txt { font-size: 12px; font-weight: 900; letter-spacing: 2px; background: linear-gradient(90deg, #00d4ff, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; z-index: 1; text-transform: uppercase; font-family: 'Arial Black', sans-serif; }
.mibl-pod-fallback-sub { font-size: 9px; color: rgba(255,255,255,0.35); letter-spacing: 1px; text-transform: uppercase; z-index: 1; }
@keyframes fallbackWave { 0%, 100% { transform: scaleY(1); opacity: 0.7; } 50% { transform: scaleY(0.4); opacity: 0.3; } }

@media (max-width: 680px) {
    .mibl-player { padding: 8px 10px; gap: 8px; }
    .mibl-play-btn { width: 32px; height: 32px; min-width: 32px; font-size: 11px; }
    .mibl-vol-wrap { display: none; }
    .mibl-time-cur, .mibl-time-total { font-size: 10px; }
}

/* ═══════════════════════════════════════════════
   Gem icon — centralised renderer for 💰 token
   Source data anywhere on the site can contain the
   literal string 💰; the runtime walker in the
   script block below converts it to this element.
═══════════════════════════════════════════════ */
.gem-icon {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    background: url('data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fbbf24' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8'/><path d='M12 18V6'/></svg>') center/contain no-repeat;
    vertical-align: -0.15em;
    margin: 0 2px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   Live wallet chip — USD balance
   Always-visible, live-refreshed read-out of the
   member's two currencies. Transparency first:
   the member can see what they hold at a glance,
   from any page, and click through to the full
   wallet + transaction history.
═══════════════════════════════════════════════ */
.wallet-chips { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.wallet-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; font-family: 'Vazirmatn', sans-serif; font-weight: 800; font-size: 13px; line-height: 1; text-decoration: none; border: 1px solid transparent; transition: transform 0.18s cubic-bezier(0.16,1,0.3,1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; white-space: nowrap; direction: ltr; }
.wallet-chip .wc-ico { font-size: 14px; line-height: 1; flex-shrink: 0; display: inline-flex; align-items: center; }
.wallet-chip .wc-num { font-variant-numeric: tabular-nums; min-width: 1ch; }
.wallet-chip:hover { transform: translateY(-1px); }
.wallet-chip:active { transform: scale(0.96); }
/* Gem — amber/gold, matches the 💰 economy */
.wallet-chip.wc-gem { background: rgba(249,212,35,0.10); border-color: rgba(249,212,35,0.30); color: #fcd34d; box-shadow: 0 2px 10px rgba(249,212,35,0.08); }
.wallet-chip.wc-gem:hover { background: rgba(249,212,35,0.20); border-color: rgba(249,212,35,0.6); box-shadow: 0 4px 15px rgba(249,212,35,0.18); }
/* Credit — cyan, matches the 💰 AI-Pro economy */
.wallet-chip.wc-credit { background: rgba(0,212,255,0.10); border-color: rgba(0,212,255,0.30); color: #38bdf8; box-shadow: 0 2px 10px rgba(0,212,255,0.08); }
.wallet-chip.wc-credit:hover { background: rgba(0,212,255,0.2); border-color: rgba(0,212,255,0.6); box-shadow: 0 4px 15px rgba(0,212,255,0.18); }
/* Value-changed pulse — fires when a live refresh brings a new number */
.wallet-chip.wc-flash { animation: wcFlash 0.9s ease; }
@keyframes wcFlash { 0% { transform: scale(1); } 30% { transform: scale(1.16); filter: brightness(1.5); } 100% { transform: scale(1); } }
.wallet-chip.wc-stale { opacity: 0.5; }
/* God-mode badge — admins testing for free see why their spends don't bite */
.wallet-chip.wc-god { background: rgba(139,92,246,0.14); border-color: rgba(139,92,246,0.45); color: #c4b5fd; }

@media (max-width: 900px) {
    .wallet-chips { order: 2; }
}
@media (max-width: 620px) {
    .wallet-chip { padding: 6px 9px; font-size: 12px; }
}
@media (max-width: 480px) {
    /* Keep both chips — they are the whole point — but tighten them so the
       row still fits next to the avatar button on narrow phones. */
    .wallet-chips { gap: 5px; }
    .wallet-chip { padding: 6px 8px; font-size: 11.5px; gap: 4px; }
}
