/* =====================================================================
   صفحه تکی نوشته (ژورنال) — حالت «پادکست» و «بلاگ»
   فقط در is_singular('post') لود می‌شود. همه‌ی کلاس‌ها با پیشوند ma- هستند
   تا با استایل‌های قدیمی app.css تداخل نکنند.
   ===================================================================== */

.ma-single {
    --ma-wine: #260508;
    --ma-wine-2: #3a0c12;
    --ma-burg: #6d1420;
    --ma-burg-2: #8a1c2b;
    --ma-gold: #c69a46;
    --ma-gold-2: #e2c08d;
    --ma-gold-grad: linear-gradient(135deg, #f3d7a8 0%, #c69a46 55%, #b88e4c 100%);
    --ma-cream: #f6ecdc;
    --ma-paper: #fdf9f2;
    --ma-page: #f3eadb;
    --ma-ink: #2b1a16;
    --ma-text: #45332d;
    --ma-muted: #85736a;
    --ma-line: rgba(198, 154, 70, .30);
    --ma-ease: cubic-bezier(.16, 1, .3, 1);

    font-family: Vazirmatn, -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, sans-serif;
    direction: rtl;
    text-align: right;
    color: var(--ma-text);
    background: var(--ma-wine);
    overflow-x: clip;
    line-height: 1.8;
}

.ma-single *,
.ma-single *::before,
.ma-single *::after { box-sizing: border-box; }
.ma-single [hidden] { display: none !important; }
.ma-single a { text-decoration: none; color: inherit; }
.ma-single button { font-family: inherit; cursor: pointer; }
.ma-single .ma-i { width: 1.2em; height: 1.2em; flex: none; display: block; }

.ma-container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* ---------- نوار پیشرفت مطالعه ---------- */
.ma-progress {
    position: fixed; top: 0; right: 0; left: 0; height: 3px;
    z-index: 10001; pointer-events: none; background: transparent;
}
.ma-progress span {
    display: block; height: 100%;
    background: var(--ma-gold-grad);
    transform: scaleX(0); transform-origin: right center;
    box-shadow: 0 0 12px rgba(226, 192, 141, .7);
}

/* =====================================================================
   HERO
   ===================================================================== */
.ma-hero {
    position: relative;
    isolation: isolate;
    padding: 150px 0 120px;
    color: var(--ma-cream);
    background: var(--ma-wine);
    overflow: hidden;
}
.ma-hero__bg {
    position: absolute; inset: -60px; z-index: -3;
    background: var(--ma-cover) center / cover no-repeat;
    filter: blur(44px) saturate(1.25) brightness(.55);
    transform: scale(1.15);
    opacity: .6;
}
.ma-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -2;
    background:
        radial-gradient(60% 70% at 85% 30%, rgba(198, 154, 70, .18), transparent 70%),
        radial-gradient(70% 80% at 10% 100%, rgba(109, 20, 32, .55), transparent 70%),
        linear-gradient(180deg, rgba(38, 5, 8, .55) 0%, rgba(38, 5, 8, .88) 100%);
}
/* الگوی قوس‌های معماری */
.ma-hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .09; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23e2c08d' stroke-width='1'%3E%3Cpath d='M20 120V52a40 40 0 0 1 80 0v68'/%3E%3Cpath d='M36 120V56a24 24 0 0 1 48 0v64'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 120px 120px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
}

.ma-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.18fr);
    grid-template-areas: "cover card";
    gap: 56px;
    align-items: center;
}
.ma-hero__card { grid-area: card; }
.ma-cover { grid-area: cover; }

/* ---------- کارت شیشه‌ای ---------- */
.ma-hero__card {
    position: relative;
    padding: 34px 38px 36px;
    border-radius: 30px;
    background: linear-gradient(160deg, rgba(255, 244, 226, .11), rgba(255, 244, 226, .035));
    border: 1px solid rgba(226, 192, 141, .28);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 40px 90px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.ma-hero__card::before {
    content: ""; position: absolute; top: -1px; right: 36px; left: 36px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--ma-gold-2), transparent);
    opacity: .8;
}

.ma-back {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .82rem; color: rgba(246, 236, 220, .68);
    transition: color .3s, gap .3s;
}
.ma-back:hover { color: var(--ma-gold-2); gap: 12px; }
.ma-back .ma-i { width: 1.05em; height: 1.05em; }

.ma-eyebrow {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
    margin: 20px 0 12px;
    color: var(--ma-gold-2); font-size: .92rem; font-weight: 600; letter-spacing: .2px;
}
.ma-eyebrow b {
    font-weight: 700; font-size: .78rem;
    padding: 3px 12px; border-radius: 999px;
    color: var(--ma-wine); background: var(--ma-gold-grad);
}
.ma-eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.ma-eq i {
    width: 3px; height: 30%; border-radius: 2px; background: var(--ma-gold-2);
    transition: height .3s;
}
.ma-single.is-playing .ma-eq i { animation: maEq 1s ease-in-out infinite; }
.ma-eq i:nth-child(2) { animation-delay: -.25s !important; }
.ma-eq i:nth-child(3) { animation-delay: -.5s !important; }
.ma-eq i:nth-child(4) { animation-delay: -.75s !important; }
.ma-eq i:nth-child(1) { height: 55%; } .ma-eq i:nth-child(2) { height: 90%; }
.ma-eq i:nth-child(3) { height: 40%; } .ma-eq i:nth-child(4) { height: 70%; }
@keyframes maEq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

.ma-title {
    margin: 0 0 18px;
    font-size: clamp(1.9rem, 3.5vw, 3.05rem);
    font-weight: 800; line-height: 1.38; color: #fff;
    letter-spacing: -.3px;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.ma-meta {
    display: flex; flex-wrap: wrap; gap: 8px 22px;
    list-style: none; margin: 0 0 18px; padding: 0;
    font-size: .85rem; color: rgba(246, 236, 220, .72);
}
.ma-meta li { display: inline-flex; align-items: center; gap: 7px; }
.ma-meta .ma-i { color: var(--ma-gold-2); width: 1.15em; height: 1.15em; }

.ma-lead {
    margin: 0 0 26px;
    color: rgba(246, 236, 220, .86);
    font-size: 1rem; line-height: 2;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1rem * 2 * 3);
}
.ma-single--blog .ma-lead { margin-bottom: 4px; }

/* ---------- کاور قوسی ---------- */
.ma-cover { position: relative; margin: 0; }
.ma-cover img {
    display: block; width: 100%; height: auto;
    aspect-ratio: 1 / 1.08; object-fit: cover;
    border-radius: 50% 50% 30px 30px / 44% 44% 30px 30px;
    box-shadow: 0 50px 90px rgba(0, 0, 0, .5), 0 0 0 1px rgba(226, 192, 141, .35);
    background: var(--ma-wine-2);
}
.ma-cover__frame {
    position: absolute; inset: -16px; pointer-events: none;
    border-radius: 50% 50% 42px 42px / 44% 44% 42px 42px;
    border: 1px solid rgba(226, 192, 141, .45);
}
.ma-cover__frame::after {
    content: ""; position: absolute; inset: -12px;
    border-radius: inherit; border: 1px dashed rgba(226, 192, 141, .2);
}
.ma-cover__badge {
    position: absolute; bottom: 8%; right: -18px;
    width: 96px; height: 96px; border-radius: 50%;
    display: grid; place-content: center; text-align: center; line-height: 1.1;
    color: var(--ma-wine); background: var(--ma-gold-grad);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45), 0 0 0 6px rgba(38, 5, 8, .6);
}
.ma-cover__badge small { font-size: .68rem; font-weight: 700; letter-spacing: 2px; opacity: .8; }
.ma-cover__badge strong { font-size: 1.7rem; font-weight: 800; }

/* ---------- پلیر ---------- */
.ma-player {
    direction: ltr; text-align: left;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center; gap: 16px 18px;
    padding: 18px 20px 16px;
    border-radius: 24px;
    background: rgba(18, 3, 6, .58);
    border: 1px solid rgba(226, 192, 141, .24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.ma-play {
    position: relative;
    width: 68px; height: 68px; border-radius: 50%;
    border: 0; color: var(--ma-wine);
    background: var(--ma-gold-grad);
    display: grid; place-items: center;
    box-shadow: 0 10px 28px rgba(198, 154, 70, .38);
    transition: transform .3s var(--ma-ease), box-shadow .3s;
}
.ma-play:hover { transform: scale(1.06); box-shadow: 0 14px 36px rgba(198, 154, 70, .55); }
.ma-play:active { transform: scale(.96); }
.ma-play:focus-visible, .ma-player button:focus-visible, .ma-wave:focus-visible,
.ma-mini button:focus-visible { outline: 2px solid var(--ma-gold-2); outline-offset: 3px; }
.ma-play::after {
    content: ""; position: absolute; inset: -7px; border-radius: 50%;
    border: 1px solid rgba(226, 192, 141, .55); opacity: 0;
}
.ma-single.is-playing .ma-play::after { animation: maPulse 1.8s ease-out infinite; }
@keyframes maPulse { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }

.ma-play__ic { display: grid; place-items: center; }
.ma-play__ic .ma-i { width: 28px; height: 28px; }
.ma-play__ic--play .ma-i { margin-left: 3px; }
.ma-play__ic--pause { display: none; }
.ma-single.is-playing .ma-play__ic--play { display: none; }
.ma-single.is-playing .ma-play__ic--pause { display: grid; }

.ma-player__main { min-width: 0; }
.ma-wave {
    display: flex; align-items: center; gap: 2px;
    height: 54px; cursor: pointer; touch-action: none;
    border-radius: 8px; user-select: none; -webkit-user-select: none;
}
.ma-wave span {
    flex: 1 1 0; min-width: 0;
    height: calc(var(--h) * 100%); min-height: 5px;
    border-radius: 3px;
    background: rgba(246, 236, 220, .26);
    transition: background .25s, transform .25s;
}
.ma-wave span.is-on { background: var(--ma-gold-2); }
.ma-wave:hover span:not(.is-on) { background: rgba(246, 236, 220, .42); }
.ma-times {
    display: flex; justify-content: space-between;
    margin-top: 6px; font-size: .78rem; font-variant-numeric: tabular-nums;
    color: rgba(246, 236, 220, .7);
}

.ma-player__ctrls {
    grid-column: 1 / -1;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding-top: 14px; border-top: 1px solid rgba(226, 192, 141, .14);
}
.ma-player__ctrls button {
    height: 40px; min-width: 40px; padding: 0 9px;
    display: grid; place-items: center;
    border-radius: 50%; border: 1px solid rgba(226, 192, 141, .3);
    background: rgba(255, 244, 226, .05); color: var(--ma-cream);
    transition: background .25s, border-color .25s, color .25s;
}
.ma-player__ctrls button:hover { background: rgba(226, 192, 141, .16); border-color: var(--ma-gold-2); color: var(--ma-gold-2); }
.ma-player__ctrls .ma-i { width: 22px; height: 22px; }
.ma-player__ctrls .ma-speed { border-radius: 999px; font-size: .8rem; font-weight: 700; padding: 0 12px; min-width: 52px; }
.ma-player__err {
    grid-column: 1 / -1; margin: 0; direction: rtl; text-align: right;
    font-size: .82rem; color: #ffb4a8;
}

.ma-platforms {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-top: 20px; font-size: .82rem; color: rgba(246, 236, 220, .7);
}
.ma-platforms span { margin-inline-end: 4px; }
.ma-platforms a {
    width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid rgba(226, 192, 141, .3); color: var(--ma-gold-2);
    background: rgba(255, 244, 226, .05);
    transition: transform .3s var(--ma-ease), background .3s, color .3s;
}
.ma-platforms a:hover { transform: translateY(-3px); background: var(--ma-gold-2); color: var(--ma-wine); }
.ma-platforms .ma-i { width: 20px; height: 20px; }

/* =====================================================================
   BODY
   ===================================================================== */
.ma-page {
    position: relative; z-index: 3;
    margin-top: -56px;
    background: var(--ma-page);
    border-radius: 48px 48px 0 0;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M50 0 L100 50 L50 100 L0 50 Z' fill='none' stroke='%234a3319' stroke-width='.6' opacity='.06'/%3E%3Cpath d='M50 20 L80 50 L50 80 L20 50 Z' fill='none' stroke='%234a3319' stroke-width='.5' opacity='.05'/%3E%3C/svg%3E"),
        radial-gradient(90% 60% at 50% 0, #f9f2e6, var(--ma-page));
    box-shadow: 0 -30px 60px rgba(0, 0, 0, .25);
}
.ma-body { position: relative; padding: 64px 0 40px; }
.ma-body__grid {
    display: grid;
    grid-template-columns: 370px minmax(0, 1fr);
    grid-template-areas: "side main";
    gap: 32px; align-items: start;
}
.ma-body__grid--solo { grid-template-columns: minmax(0, 860px); grid-template-areas: "main"; justify-content: center; }
.ma-main { grid-area: main; min-width: 0; }
.ma-side { grid-area: side; min-width: 0; position: sticky; top: 104px; }

.ma-card--paper {
    background: var(--ma-paper);
    border: 1px solid var(--ma-line);
    border-radius: 28px;
    padding: 38px 40px;
    box-shadow: 0 24px 60px rgba(74, 40, 20, .08), inset 0 1px 0 #fff;
}

/* ---------- تب‌ها ---------- */
.ma-tabs { display: flex; gap: 8px; margin: 0 0 18px; padding: 6px; width: fit-content; max-width: 100%; overflow-x: auto;
    background: rgba(255, 255, 255, .55); border: 1px solid var(--ma-line); border-radius: 18px; scrollbar-width: none; }
.ma-tabs::-webkit-scrollbar { display: none; }
.ma-tabs button {
    border: 0; background: transparent; white-space: nowrap;
    padding: 10px 24px; border-radius: 13px;
    font-size: .95rem; font-weight: 600; color: var(--ma-muted);
    transition: color .3s, background .3s, box-shadow .3s;
}
.ma-tabs button:hover { color: var(--ma-burg); }
.ma-tabs button.is-active {
    color: var(--ma-gold-2);
    background: linear-gradient(135deg, var(--ma-burg), var(--ma-wine-2));
    box-shadow: 0 8px 20px rgba(109, 20, 32, .3);
}
.ma-tabs button:focus-visible { outline: 2px solid var(--ma-burg); outline-offset: 2px; }

.ma-panel { display: none; }
.ma-panel.is-active { display: block; animation: maPanel .5s var(--ma-ease); }
@keyframes maPanel { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- تیترها ---------- */
.ma-h2 {
    display: flex; align-items: center; gap: 16px;
    margin: 0 0 24px; font-size: 1.55rem; font-weight: 800; color: var(--ma-wine); line-height: 1.5;
}
.ma-h2::before {
    content: ""; width: 11px; height: 11px; flex: none; transform: rotate(45deg);
    background: var(--ma-gold-grad); box-shadow: 0 0 0 4px rgba(198, 154, 70, .18);
}
.ma-h2::after {
    content: ""; flex: 1; height: 1px; min-width: 24px;
    background: linear-gradient(to left, var(--ma-gold), transparent);
    opacity: .55;
}
.ma-h3 { margin: 0 0 14px; font-size: 1rem; font-weight: 700; color: var(--ma-burg); }

/* ---------- متن مقاله ---------- */
.ma-prose { font-size: 1.06rem; line-height: 2.1; color: var(--ma-text); overflow-wrap: break-word; }
.ma-prose > *:first-child { margin-top: 0; }
.ma-prose p { margin: 0 0 1.5em; }
.ma-prose h2, .ma-prose h3, .ma-prose h4 { color: var(--ma-wine); font-weight: 800; line-height: 1.6; margin: 1.9em 0 .7em; }
.ma-prose h2 { font-size: 1.5rem; padding-right: 18px; border-right: 4px solid var(--ma-gold); }
.ma-prose h3 { font-size: 1.25rem; }
.ma-prose a { color: var(--ma-burg); text-decoration: underline; text-decoration-color: rgba(198, 154, 70, .7); text-underline-offset: 5px; transition: color .25s; }
.ma-prose a:hover { color: var(--ma-gold); }
.ma-prose ul, .ma-prose ol { margin: 0 0 1.5em; padding-right: 1.4em; }
.ma-prose li { margin-bottom: .5em; }
.ma-prose li::marker { color: var(--ma-gold); }
.ma-prose img, .ma-prose video, .ma-prose iframe { max-width: 100%; height: auto; border-radius: 20px; }
.ma-prose figure { margin: 2em 0; }
.ma-prose figcaption { margin-top: 10px; font-size: .85rem; color: var(--ma-muted); text-align: center; }
.ma-prose blockquote {
    margin: 2em 0; padding: 22px 28px 22px 24px;
    border-right: 4px solid var(--ma-gold); border-radius: 18px 0 0 18px / 18px 0 0 18px;
    background: linear-gradient(270deg, rgba(198, 154, 70, .14), rgba(198, 154, 70, .03));
    color: var(--ma-wine); font-weight: 600; font-size: 1.12rem;
}
.ma-prose blockquote p:last-child { margin-bottom: 0; }
.ma-prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: .95rem; display: block; overflow-x: auto; }
.ma-prose th, .ma-prose td { padding: 10px 14px; border: 1px solid var(--ma-line); }
.ma-prose th { background: rgba(198, 154, 70, .12); }
.ma-prose hr { border: 0; height: 1px; margin: 2.4em 0; background: linear-gradient(90deg, transparent, var(--ma-gold), transparent); }
.ma-prose pre { direction: ltr; text-align: left; overflow-x: auto; padding: 18px 20px; border-radius: 16px; background: var(--ma-wine); color: var(--ma-cream); font-size: .9rem; }

/* ---------- مهمان ---------- */
.ma-guest {
    display: flex; gap: 24px; align-items: center;
    margin-top: 34px; padding: 22px;
    border-radius: 24px; border: 1px solid var(--ma-line);
    background: linear-gradient(135deg, #fbf2e3, #f6e9d3);
}
.ma-guest__photo { flex: none; width: 150px; }
.ma-guest__photo img {
    display: block; width: 100%; height: 178px; object-fit: cover;
    border-radius: 75px 75px 18px 18px;
    box-shadow: 0 14px 30px rgba(74, 40, 20, .22), 0 0 0 3px #fff, 0 0 0 4px var(--ma-line);
}
.ma-guest__info small { display: block; color: var(--ma-muted); font-size: .8rem; }
.ma-guest__info h3 { margin: 2px 0 8px; font-size: 1.35rem; font-weight: 800; color: var(--ma-wine); }
.ma-guest__info p { margin: 0 0 12px; font-size: .95rem; line-height: 1.95; color: var(--ma-text); }
.ma-guest__info a { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 700; color: var(--ma-burg); }
.ma-guest__info a .ma-i { width: 1em; height: 1em; transition: transform .3s; }
.ma-guest__info a:hover .ma-i { transform: translate(-3px, -3px); }

/* ---------- موضوعات و اشتراک ---------- */
.ma-topics, .ma-share { margin-top: 34px; }
.ma-topics {
    padding: 22px 24px; border-radius: 22px;
    background: linear-gradient(135deg, rgba(198, 154, 70, .1), rgba(198, 154, 70, .02));
    border: 1px solid var(--ma-line);
}
.ma-topics .ma-h3 { margin-bottom: 16px; }
.ma-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ma-chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 18px 8px 16px; border-radius: 999px; font-size: .86rem; font-weight: 600;
    background: #fff; border: 1px solid var(--ma-line); color: #5b4032;
    box-shadow: 0 4px 10px rgba(74, 40, 20, .05);
    transition: background .3s, color .3s, border-color .3s, transform .3s var(--ma-ease), box-shadow .3s;
}
.ma-chip .ma-i { width: 14px; height: 14px; color: var(--ma-gold); transition: color .3s; }
.ma-chip:hover { background: var(--ma-gold-grad); border-color: var(--ma-gold); color: var(--ma-wine); transform: translateY(-3px); box-shadow: 0 10px 22px rgba(198, 154, 70, .35); }
.ma-chip:hover .ma-i { color: var(--ma-wine); }

.ma-share {
    padding: 22px 24px; border-radius: 22px;
    background: rgba(198, 154, 70, .07); border: 1px dashed var(--ma-line);
}
.ma-share .ma-h3 { margin-bottom: 14px; }
.ma-share__row { display: flex; gap: 10px; flex-wrap: wrap; }
.ma-share__row a, .ma-share__row button {
    position: relative;
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid var(--ma-line); background: #fff; color: var(--ma-wine);
    transition: transform .3s var(--ma-ease), background .3s, color .3s, border-color .3s;
}
.ma-share__row a:hover, .ma-share__row button:hover { transform: translateY(-3px); background: var(--ma-burg); border-color: var(--ma-burg); color: var(--ma-gold-2); }
.ma-share__row .ma-i { width: 19px; height: 19px; }
.ma-share__row button.is-copied { background: var(--ma-gold); border-color: var(--ma-gold); color: var(--ma-wine); }
.ma-share__row button.is-copied::after {
    content: "کپی شد ✓"; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
    padding: 4px 12px; border-radius: 8px; white-space: nowrap; font-size: .75rem;
    background: var(--ma-wine); color: var(--ma-cream);
}

/* ---------- Transcript ---------- */
.ma-tr__head { display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.ma-tr__head .ma-h2 { margin: 0; flex: 1 1 280px; }
.ma-search {
    display: flex; align-items: center; gap: 10px; flex: 1 1 260px; max-width: 360px;
    padding: 0 16px; height: 46px; border-radius: 999px;
    background: #fff; border: 1px solid var(--ma-line); color: var(--ma-muted);
    transition: border-color .3s, box-shadow .3s;
}
.ma-search:focus-within { border-color: var(--ma-gold); box-shadow: 0 0 0 4px rgba(198, 154, 70, .18); }
.ma-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: .92rem; color: var(--ma-ink); }
.ma-search .ma-i { width: 19px; height: 19px; }

.ma-tr__list {
    position: relative; max-height: 560px; overflow-y: auto; padding-inline-end: 6px;
    scrollbar-width: thin; scrollbar-color: var(--ma-gold) transparent;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
    padding-block: 12px;
}
.ma-tr__list::-webkit-scrollbar { width: 6px; }
.ma-tr__list::-webkit-scrollbar-thumb { background: var(--ma-gold); border-radius: 6px; }
.ma-tr__line {
    display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
    width: 100%; padding: 12px 16px; margin: 0 0 4px;
    border: 0; border-right: 3px solid transparent; border-radius: 14px;
    background: transparent; text-align: right; color: var(--ma-text);
    font-size: 1rem; line-height: 1.9;
    transition: background .25s, border-color .25s, color .25s;
}
.ma-tr__line time {
    flex: none; font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums;
    padding: 2px 10px; border-radius: 999px; color: var(--ma-burg); background: rgba(109, 20, 32, .07);
    transition: background .25s, color .25s;
}
.ma-tr__line:hover { background: rgba(198, 154, 70, .12); }
.ma-tr__line:hover time { background: var(--ma-burg); color: var(--ma-cream); }
.ma-tr__line.is-active { background: linear-gradient(270deg, rgba(198, 154, 70, .24), rgba(198, 154, 70, .05)); border-right-color: var(--ma-burg); color: var(--ma-wine); font-weight: 600; }
.ma-tr__line.is-active time { background: var(--ma-burg); color: var(--ma-gold-2); }
.ma-tr__plain { margin: 0 0 4px; padding: 10px 19px; line-height: 2; }
.ma-tr__empty { margin: 18px 0 0; text-align: center; color: var(--ma-muted); }

/* ---------- سایدبار ---------- */
.ma-side__card { padding: 30px 26px 26px; }
.ma-side__card .ma-h2 { font-size: 1.3rem; margin-bottom: 8px; }
.ma-side__list { margin-bottom: 20px; }
.ma-ep {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 0; border-bottom: 1px solid var(--ma-line);
    transition: transform .35s var(--ma-ease);
}
.ma-ep:last-child { border-bottom: 0; }
.ma-ep:hover { transform: translateX(-5px); }
.ma-ep__thumb { flex: none; width: 76px; height: 76px; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 18px rgba(74, 40, 20, .18); }
.ma-ep__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ma-ease); }
.ma-ep:hover .ma-ep__thumb img { transform: scale(1.12); }
.ma-ep__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ma-ep__info small { font-size: .74rem; font-weight: 700; color: var(--ma-gold); }
.ma-ep__info strong {
    font-size: .95rem; font-weight: 700; line-height: 1.7; color: var(--ma-wine);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ma-ep__info em { display: flex; gap: 12px; font-style: normal; font-size: .76rem; color: var(--ma-muted); }
.ma-ep__go {
    flex: none; width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid var(--ma-line); color: var(--ma-burg); background: #fff;
    transition: background .3s, color .3s, border-color .3s;
}
.ma-ep__go .ma-i { width: 14px; height: 14px; }
.ma-ep:hover .ma-ep__go { background: var(--ma-burg); border-color: var(--ma-burg); color: var(--ma-gold-2); }

.ma-btn-outline {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    height: 52px; border-radius: 16px;
    border: 1px solid var(--ma-burg); color: var(--ma-burg);
    font-weight: 700; font-size: .95rem;
    transition: background .3s, color .3s, gap .3s;
}
.ma-btn-outline .ma-i { width: 1.1em; height: 1.1em; }
.ma-btn-outline:hover { background: var(--ma-burg); color: var(--ma-cream); gap: 14px; }

/* =====================================================================
   CTA
   ===================================================================== */
.ma-cta-wrap { padding: 20px 0 90px; position: relative; }
.ma-cta {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; align-items: center; justify-content: space-between; gap: 28px;
    padding: 52px 56px; border-radius: 32px; color: var(--ma-cream);
    background: linear-gradient(120deg, var(--ma-wine) 0%, #4a0e16 55%, var(--ma-burg) 100%);
    border: 1px solid rgba(226, 192, 141, .3);
    box-shadow: 0 30px 70px rgba(38, 5, 8, .35);
}
.ma-cta::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .12;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23e2c08d' stroke-width='1'%3E%3Cpath d='M20 120V52a40 40 0 0 1 80 0v68'/%3E%3Cpath d='M36 120V56a24 24 0 0 1 48 0v64'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 120px 120px;
}
.ma-cta::after {
    content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; left: -120px; top: -160px; border-radius: 50%;
    background: radial-gradient(circle, rgba(226, 192, 141, .28), transparent 70%);
}
.ma-cta__eyebrow { display: block; margin-bottom: 8px; font-size: .78rem; font-weight: 700; letter-spacing: 3px; color: var(--ma-gold-2); }
.ma-cta h2 { margin: 0 0 6px; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; color: #fff; }
.ma-cta p { margin: 0; color: rgba(246, 236, 220, .8); }
.ma-btn-gold {
    flex: none; display: inline-flex; align-items: center; gap: 12px;
    height: 56px; padding: 0 34px; border-radius: 999px;
    font-weight: 800; color: var(--ma-wine); background: var(--ma-gold-grad);
    box-shadow: 0 12px 30px rgba(198, 154, 70, .4);
    transition: transform .35s var(--ma-ease), box-shadow .35s, gap .3s;
}
.ma-btn-gold .ma-i { width: 1.15em; height: 1.15em; }
.ma-btn-gold:hover { transform: translateY(-3px); gap: 16px; box-shadow: 0 18px 40px rgba(198, 154, 70, .55); }

/* =====================================================================
   مینی‌پلیر شناور
   ===================================================================== */
.ma-mini {
    position: fixed; z-index: 9990; bottom: 18px; left: 50%;
    width: min(560px, calc(100% - 24px));
    display: flex; align-items: center; gap: 14px; direction: rtl;
    padding: 10px 12px 12px 16px; border-radius: 22px; overflow: hidden;
    color: var(--ma-cream);
    background: rgba(24, 4, 8, .88);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(226, 192, 141, .3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
    transform: translate(-50%, 140%); opacity: 0;
    transition: transform .55s var(--ma-ease), opacity .4s;
}
.ma-mini.is-shown { transform: translate(-50%, 0); opacity: 1; }
.ma-mini__play {
    flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0;
    display: grid; place-items: center; color: var(--ma-wine); background: var(--ma-gold-grad);
}
.ma-mini__play .ma-play__ic .ma-i { width: 20px; height: 20px; }
.ma-mini__info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.5; }
.ma-mini__info strong { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ma-mini__info span { font-size: .75rem; color: rgba(246, 236, 220, .65); text-align: right; font-variant-numeric: tabular-nums; }
.ma-mini__up {
    flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid rgba(226, 192, 141, .3); background: transparent; color: var(--ma-gold-2);
}
.ma-mini__up .ma-i { width: 18px; height: 18px; }
.ma-mini__bar { position: absolute; right: 0; left: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .1); }
.ma-mini__bar i { display: block; height: 100%; width: 100%; background: var(--ma-gold-grad); transform: scaleX(0); transform-origin: left center; }

/* =====================================================================
   ریسپانسیو
   ===================================================================== */
@media (max-width: 1100px) {
    .ma-hero__grid { gap: 36px; }
    .ma-hero__card { padding: 30px 28px; }
    .ma-body__grid { grid-template-columns: 320px minmax(0, 1fr); }
    .ma-card--paper { padding: 32px 30px; }
    .ma-player { gap: 14px; padding: 14px 16px; }
    .ma-play { width: 60px; height: 60px; }
}

@media (max-width: 900px) {
    .ma-hero { padding: 118px 0 100px; }
    .ma-hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "cover" "card"; gap: 34px; }
    .ma-cover { width: min(340px, 78%); margin: 0 auto; }
    .ma-cover__badge { right: -10px; width: 80px; height: 80px; }
    .ma-cover__badge strong { font-size: 1.45rem; }
    .ma-body__grid, .ma-body__grid--solo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "side"; }
    .ma-side { position: static; }
    .ma-cta { flex-direction: column; align-items: flex-start; padding: 40px 30px; }
}

@media (max-width: 640px) {
    .ma-container { padding: 0 16px; }
    .ma-hero__card { padding: 24px 20px 26px; border-radius: 24px; }
    .ma-hero__card::before { right: 20px; left: 20px; }
    .ma-title { font-size: 1.75rem; }
    .ma-eyebrow { font-size: .82rem; gap: 8px; }
    .ma-meta { gap: 6px 16px; }
    .ma-player { padding: 14px; gap: 14px; }
    .ma-play { width: 56px; height: 56px; }
    .ma-wave { height: 46px; gap: 2px; }
    .ma-wave span:nth-child(n+49) { display: none; } /* روی موبایل ۴۸ میله کافی است */
    .ma-platforms { gap: 8px; }
    .ma-cover { width: min(300px, 82%); }
    .ma-cover__badge { right: -6px; width: 76px; height: 76px; }
    .ma-page { border-radius: 32px 32px 0 0; margin-top: -40px; }
    .ma-body { padding-top: 44px; }
    .ma-card--paper { padding: 26px 20px; border-radius: 22px; }
    .ma-h2 { font-size: 1.3rem; }
    .ma-prose { font-size: 1rem; line-height: 2; }
    .ma-guest { flex-direction: column; text-align: center; }
    .ma-guest__photo { width: 150px; }
    .ma-tabs { gap: 4px; padding: 5px; }
    .ma-tabs button { padding: 9px 16px; font-size: .88rem; }
    .ma-topics, .ma-share { padding: 18px 16px; border-radius: 18px; }
    .ma-chip { padding: 7px 14px 7px 12px; font-size: .82rem; }
    .ma-tr__line { flex-direction: column-reverse; align-items: flex-end; gap: 6px; }
    .ma-tr__head .ma-search { max-width: none; }
    .ma-share__row button.is-copied::after { left: auto; right: 0; transform: none; }
    .ma-ep__thumb { width: 64px; height: 64px; border-radius: 13px; }
    .ma-cta { padding: 34px 22px; border-radius: 24px; }
    .ma-btn-gold { width: 100%; justify-content: center; }
}

@media (max-width: 400px) {
    .ma-hero { padding: 104px 0 88px; }
    .ma-back span { font-size: .78rem; }
    .ma-title { font-size: 1.5rem; }
    .ma-lead { font-size: .92rem; }
    .ma-player__ctrls { gap: 8px; }
    .ma-player__ctrls button { min-width: 36px; height: 36px; }
    .ma-mini { padding: 8px 10px 10px 12px; gap: 10px; }
    .ma-mini__info strong { font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
    .ma-single *, .ma-single *::before, .ma-single *::after { animation: none !important; transition: none !important; }
}

/* ---------- تنظیم اپتیکال آیکن‌های اشتراک‌گذاری (هم‌وزن‌سازی) ---------- */
.ma-share__row .ma-i--linkedin { width: 17px; height: 17px; }
.ma-share__row .ma-i--x { width: 17px; height: 17px; }
.ma-share__row .ma-i--whatsapp { width: 20px; height: 20px; }
.ma-share__row .ma-i--telegram { width: 22px; height: 22px; }

/* ---------- اشتراک‌گذاری در موبایل: همه‌ی دکمه‌ها در یک ردیف بمانند ---------- */
@media (max-width: 640px) {
    .ma-share__row { flex-wrap: nowrap; gap: 8px; }
    .ma-share__row a,
    .ma-share__row button { flex: 1 1 0; min-width: 0; max-width: 44px; width: auto; height: auto; padding: 0; aspect-ratio: 1 / 1; }
    .ma-share__row .ma-i { width: 17px; height: 17px; }
    .ma-share__row .ma-i--linkedin,
    .ma-share__row .ma-i--x { width: 15px; height: 15px; }
    .ma-share__row .ma-i--whatsapp { width: 18px; height: 18px; }
    .ma-share__row .ma-i--telegram { width: 19px; height: 19px; }
}
@media (max-width: 380px) {
    .ma-share__row { gap: 6px; }
    .ma-share__row .ma-i { width: 15px; height: 15px; }
    .ma-share__row .ma-i--linkedin,
    .ma-share__row .ma-i--x { width: 13px; height: 13px; }
    .ma-share__row .ma-i--whatsapp { width: 16px; height: 16px; }
    .ma-share__row .ma-i--telegram { width: 17px; height: 17px; }
}
