/**
 * Musicall – Artisan Design 2.0
 * بازآفرینی کامل هویت بصری با رویکرد هنری و مینیمال
 * پالت جدید: شرابی، طلایی گرم، خاکستری مرمری، کرم استخوانی
 * کلیهٔ کلاس‌های اصلی حفظ شده‌اند.
 */

/* ==================== فونت‌های لوکال ==================== */
@font-face {
    font-family: 'MorabbaVF';
    src: url('../fonts/MorabbaVF.woff2') format('woff2-variations'),
         url('../fonts/MorabbaVF.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: 'IRANSansXVF';
    src: url('../fonts/IRANSansXVF.woff2') format('woff2-variations'),
         url('../fonts/IRANSansXVF.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-display: swap;
}

/* ==================== متغیرهای هنری جدید ==================== */
:root {
    /* پالت اصلی */
    --mc-teal: #6B2640;        /* شرابی عمیق جایگزین فیروزه‌ای */
    --mc-gold: #C9A84C;        /* طلایی گرم مات */
    --mc-silver: #D9D2C9;      /* کرم‌نخودی روشن برای حاشیه‌ها */
    --mc-dark: #1E1A17;        /* قهوه‌ای سوخته برای متن‌های اصلی */
    --mc-bg: #F9F7F2;          /* پس‌زمینه کرم استخوانی */
    --mc-card: #FFFFFF;        /* سفید برای کارت‌ها */
    --mc-text: #2C2824;        /* متن تیره گرم */
    --mc-text-secondary: #7A7268; /* متن دوم با تُن گرم */
    --mc-border: rgba(107, 38, 64, 0.1);  /* حاشیه شرابی بسیار کم‌رنگ */
    --mc-shadow: 0 8px 32px rgba(0,0,0,0.04); /* سایه نرم و مدرن */
    --mc-radius: 20px;
    --font-heading: 'MorabbaVF', serif;
    --font-body: 'IRANSansXVF', sans-serif;

    /* نگهداشتن نام‌های قدیمی برای سازگاری */
    --musicall-primary: #6B2640;
    --musicall-primary-hover: #521F33;
    --musicall-danger: #C64A4A;
    --musicall-success: #4A8C6F;
    --musicall-bg: #F9F7F2;
    --musicall-card-bg: #FFFFFF;
    --musicall-border: rgba(107, 38, 64, 0.1);
    --musicall-text: #2C2824;
    --musicall-text-secondary: #7A7268;
    --musicall-verified: #C9A84C;
    --musicall-shadow: 0 8px 32px rgba(0,0,0,0.04);
    --musicall-radius: 20px;
}

/* ==================== ریست و پایه ==================== */
body {
    background-color: var(--mc-bg);
    margin: 0;
    line-height: 1.6;
}

.musicall-container,
.musicall-feed-container,
.musicall-directory-container,
.musicall-profile-container,
.musicall-group-container,
.musicall-contests-page {
    font-family: var(--font-body);
    max-width: 680px;
    margin: 0 auto;
    padding: 24px 16px 90px;
    min-height: 100vh;
    color: var(--mc-text);
    background-color: transparent;
}

.musicall-explore-container {
    font-family: var(--font-body);
    max-width: 100%;
    margin: 0;
    padding: 0 8px 90px;
    min-height: 100vh;
    color: var(--mc-text);
    background-color: transparent;
}

h1, h2, h3, h4, h5, h6,
.section-title,
.musicall-profile-name h2,
.musicall-project-title h3,
.contest-card h3,
.leaderboard-title,
.musicall-voting-header,
.modal-content h3 {
    font-family: var(--font-heading);
    color: var(--mc-dark);
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

/* ==================== دکمه‌های مدرن و هنری ==================== */
.musicall-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 40px;
    background: var(--mc-card);
    border: 1.5px solid var(--mc-border);
    color: var(--mc-dark);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1);
    font-family: var(--font-body);
    cursor: pointer;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.7);
}

.musicall-btn-primary {
    background: var(--mc-teal);
    border-color: var(--mc-teal);
    color: #fff;
    box-shadow: 0 4px 16px rgba(107, 38, 64, 0.3);
}

.musicall-btn-primary:hover {
    background: #521F33;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(107, 38, 64, 0.4);
}

.musicall-btn-danger {
    background: #C64A4A;
    border-color: #C64A4A;
    color: #fff;
    box-shadow: 0 4px 16px rgba(198, 74, 74, 0.25);
}

/* ================================================================ */
/*                        فید (گالری آثار)                          */
/* ================================================================ */
.musicall-post-card {
    background: var(--mc-card);
    border: 1px solid var(--mc-border);
    border-radius: var(--mc-radius);
    margin-bottom: 32px;
    box-shadow: var(--mc-shadow);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #FFFFFF;
    /* حاشیه تزئینی طلایی در پایین کارت */
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(to right, var(--mc-gold), transparent) 1;
}

.musicall-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.07);
    border-bottom-color: var(--mc-gold);
}

/* نوار طلایی کنار کارت - ظریف‌تر و همیشگی‌تر */
.musicall-post-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: var(--mc-gold);
    opacity: 0.15;
    transition: opacity 0.3s;
}
.musicall-post-card:hover::before {
    opacity: 0.6;
}

.musicall-post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--mc-border);
}

.musicall-post-author {
    display: flex;
    align-items: center;
}

.musicall-author-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    margin-right: 14px;
    object-fit: cover;
    border: 2px solid var(--mc-gold);
    padding: 2px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.musicall-author-info {
    display: flex;
    flex-direction: column;
}

.musicall-author-name {
    font-weight: 700;
    color: var(--mc-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 15px;
}

.musicall-verified-badge {
    color: var(--mc-gold);
    font-size: 18px;
    display: inline-flex;
    align-items: center;
}

.musicall-verified-badge i {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.musicall-post-date {
    font-size: 12px;
    color: var(--mc-text-secondary);
    margin-top: 4px;
    font-weight: 400;
}

.musicall-post-actions button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--mc-text-secondary);
    font-size: 22px;
    padding: 6px;
    transition: color 0.2s;
}

.musicall-post-actions button:hover {
    color: var(--mc-teal);
}

.musicall-post-image {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--mc-border);
}

.musicall-post-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 520px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.musicall-post-card:hover .musicall-post-image img {
    transform: scale(1.02);
}

.musicall-post-footer {
    padding: 16px 20px;
}

.musicall-post-buttons {
    display: flex;
    gap: 22px;
    margin-bottom: 14px;
}

.musicall-like-button,
.musicall-comment-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--mc-dark);
    transition: transform 0.2s, color 0.2s;
}

.musicall-like-button.liked {
    color: var(--mc-danger);
    transform: scale(1.15);
}

.musicall-like-button i,
.musicall-comment-button i {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.musicall-likes-count,
.musicall-comments-count {
    font-size: 14px;
    font-weight: 700;
}

.musicall-post-caption {
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.9;
    color: var(--mc-text);
}

.musicall-caption-author {
    font-weight: 800;
    color: var(--mc-teal);
    margin-right: 6px;
    font-family: var(--font-heading);
}

/* کامنت‌ها - بخش گفت و گوی هنری */
.musicall-post-comments-preview {
    margin-bottom: 14px;
    max-height: 220px;
    overflow-y: auto;
    background: rgba(107, 38, 64, 0.02);
    border-radius: 16px;
    padding: 12px;
}

.musicall-comment {
    display: flex;
    margin-bottom: 10px;
    font-size: 14px;
}

.musicall-comment-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
    border: 1px solid var(--mc-silver);
    background: #fff;
}

.musicall-comment-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.musicall-comment-content {
    flex: 1;
}

.musicall-comment-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
}

.musicall-comment-author {
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--mc-teal);
}

.musicall-comment-date {
    font-size: 11px;
    color: var(--mc-text-secondary);
}

.musicall-comment-text {
    word-break: break-word;
    margin: 4px 0;
    line-height: 1.5;
}

.musicall-comment-actions {
    display: flex;
    gap: 10px;
}

.musicall-comment-actions button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--mc-text-secondary);
    font-size: 14px;
    padding: 0;
    transition: color 0.2s;
}

.musicall-comment-actions button:hover {
    color: var(--mc-teal);
}

.musicall-add-comment {
    display: flex;
    border-top: 1px solid var(--mc-border);
    padding-top: 14px;
    margin-top: 4px;
}

.musicall-comment-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 10px 0;
    background: transparent;
    color: var(--mc-text);
    font-family: var(--font-body);
}

.musicall-submit-comment {
    background: none;
    border: none;
    color: var(--mc-teal);
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.2s;
}

.musicall-submit-comment:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ================================================================ */
/*                    اکسپلور (موزاییک هنری)                       */
/* ================================================================ */
/* ================================================================ */
/*                    اکسپلور (موزاییک هنری متحرک)                 */
/* ================================================================ */
.musicall-explore-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 8px;
    overflow: hidden; /* جلوگیری از اسکرول */
}

.musicall-explore-item {
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 18px;
    position: relative;
    animation: exploreFloat 6s ease-in-out infinite alternate;
    border: 1px solid var(--mc-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

/* ستون اول حرکت به پایین، ستون دوم حرکت به بالا */
.musicall-explore-item:nth-child(odd) {
    animation-name: exploreFloatDown;
}

.musicall-explore-item:nth-child(even) {
    animation-name: exploreFloatUp;
}

@keyframes exploreFloatDown {
    0%   { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

@keyframes exploreFloatUp {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

/* روی هاور انیمیشن متوقف شود */
.musicall-explore-item:hover {
    animation-play-state: paused;
}

/* بقیه استایل‌ها مثل overlay و img بدون تغییر */
.musicall-explore-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.musicall-explore-item:hover img {
    transform: scale(1.08);
}

.musicall-explore-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(30,26,23,0.7) 0%, rgba(30,26,23,0.3) 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
    padding-bottom: 16px;
    font-weight: 600;
}

.musicall-explore-item:hover .musicall-explore-overlay {
    opacity: 1;
}

/* ================================================================ */
/*                  پروفایل (بیوگرافی هنرمند)                       */
/* ================================================================ */
.musicall-profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 24px 28px;
    background: linear-gradient(135deg, #ffffff 0%, #F6F2EB 100%);
    border-radius: 0 0 32px 32px;
    margin-bottom: 24px;
    border: 1px solid var(--mc-border);
    box-shadow: var(--mc-shadow);
    position: relative;
}

.musicall-profile-header::before {
    content: '';
    position: absolute;
    top: 0; left: 20px; right: 20px;
    height: 3px;
    background: linear-gradient(to right, var(--mc-gold), transparent);
    border-radius: 4px;
}

.musicall-profile-avatar {
    width: 110px;
    height: 110px;
    margin: 0 0 18px 0;
    position: relative;
}

.musicall-profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--mc-gold);
    padding: 4px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.musicall-profile-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.musicall-profile-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.musicall-profile-name h2 {
    font-size: 26px;
    margin: 0;
    color: var(--mc-dark);
    font-weight: 800;
}

.musicall-profile-skills {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.musicall-profile-skill,
.musicall-profile-level {
    background: rgba(107, 38, 64, 0.08);
    padding: 6px 14px;
    border-radius: 22px;
    font-size: 13px;
    font-weight: 700;
    color: var(--mc-teal);
    backdrop-filter: blur(6px);
}

.musicall-profile-badges {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.musicall-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: 20px;
    color: #1E1A17;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    background: var(--mc-gold);
    box-shadow: 0 2px 8px rgba(201,168,76,0.3);
}

.musicall-badge img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-right: 5px;
    object-fit: cover;
}

.badge-name {
    line-height: 1;
}

.musicall-profile-bio {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--mc-text);
    max-width: 400px;
    text-align: center;
}

.musicall-profile-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 20px;
}

.musicall-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.musicall-stat-value {
    font-weight: 800;
    font-size: 20px;
    color: var(--mc-teal);
}

.musicall-stat-label {
    font-size: 12px;
    color: var(--mc-text-secondary);
    font-weight: 500;
}

.musicall-profile-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* تب‌های پروفایل (شیشه‌ای و مینیمال) */
.musicall-profile-tabs {
    display: flex;
    gap: 8px;
    background: transparent;
    margin-bottom: 12px;
    padding: 0 16px;
}

.musicall-tab {
    flex: 1;
    padding: 12px 14px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(14px);
    border: 1px solid var(--mc-border);
    border-radius: 30px;
    font-weight: 700;
    color: var(--mc-text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-body);
    text-align: center;
    font-size: 13px;
}

.musicall-tab.active {
    background: var(--mc-teal);
    color: #fff;
    border-color: var(--mc-teal);
    box-shadow: 0 4px 14px rgba(107, 38, 64, 0.3);
}

.musicall-tab-pane {
    display: none;
    padding: 16px;
    background: transparent;
}

.musicall-tab-pane.active {
    display: block;
}

.musicall-profile-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.musicall-profile-post-thumb {
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 16px;
    position: relative;
    border: 1px solid var(--mc-border);
    transition: box-shadow 0.2s;
}

.musicall-profile-post-thumb:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.musicall-profile-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.musicall-profile-post-thumb:hover img {
    transform: scale(1.04);
}

.musicall-thumb-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(30,26,23,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
}

.musicall-profile-post-thumb:hover .musicall-thumb-overlay {
    opacity: 1;
}

/* ================================================================ */
/*                       سایر بخش‌ها (هماهنگ‌سازی کامل)             */
/* ================================================================ */

/* ---- دایرکتوری پروژه (کادر بندی تمیز و حرفه‌ای) ---- */
.musicall-directory-container {
    padding: 20px 16px 90px;
    max-width: 900px;
    margin: 0 auto;
}

.musicall-directory-header {
    background: #ffffff;
    border: 1px solid var(--mc-border);
    border-radius: 28px;
    padding: 28px 24px;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.musicall-directory-header h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    color: var(--mc-dark);
}

.musicall-project-filters {
    background: #ffffff;
    border: 1px solid var(--mc-border);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.03);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.musicall-project-card {
    background: #ffffff;
    border: 1px solid var(--mc-border);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.musicall-project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.06);
    border-color: var(--mc-gold);
}

.musicall-project-card .project-thumb {
    width: 100%;
    height: 160px;
    border-radius: 18px;
    overflow: hidden;
}

.musicall-project-card .project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.musicall-project-card .project-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.musicall-project-title h3 {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    margin: 0;
    color: var(--mc-dark);
}

.musicall-project-card .project-meta {
    font-size: 13px;
    color: var(--mc-text-secondary);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.musicall-project-card .project-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.musicall-select {
    width: auto;
    min-width: 180px;
    padding: 10px 16px;
    border: 1px solid var(--mc-border);
    border-radius: 14px;
    font-size: 14px;
    background: #fff;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s;
}

.musicall-select:focus {
    border-color: var(--mc-teal);
}

.musicall-form {
    max-width: 480px;
    margin: 24px auto;
    padding: 32px;
    background: #fff;
    border-radius: 28px;
    border: 1px solid var(--mc-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}


/* ================================================================ */
/*                  برگه تک پروژه (جزئیات پروژه)                    */
/* ================================================================ */
/* ================ صفحه تک پروژه – استایل نهایی ================ */
.musicall-single-project-container {
    max-width: 680px;
    margin: 24px auto;
    padding: 20px 16px 90px;
    font-family: var(--font-body);
    color: var(--mc-text);
}

/* عنوان پروژه وسط‌چین با خط طلایی زیر آن */
.musicall-project-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    color: var(--mc-dark);
    margin: 0 0 24px;
    padding-bottom: 16px;
    position: relative;
}
.musicall-project-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--mc-gold);
    border-radius: 4px;
}

/* متاهای پروژه: فقط مبلغ و ددلاین بماند (نویسنده مخفی شود) */
.musicall-project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 22px;
}
.musicall-project-meta span:first-child {
    display: none; /* مخفی کردن نام نویسنده */
}
.musicall-project-meta span {
    background: rgba(107,38,64,0.06);
    border: 1px solid var(--mc-border);
    border-radius: 24px;
    padding: 8px 22px;
    font-weight: 600;
    font-size: 14px;
    color: var(--mc-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(4px);
}

/* تگ‌های تخصص */
.musicall-project-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
}
.musicall-skill-tag {
    background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(201,168,76,0.04));
    border: 1.5px solid var(--mc-gold);
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    color: #8A6D2B;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 10px rgba(201,168,76,0.12);
}

/* محتوای پروژه (توضیحات) */
.musicall-project-content {
    background: #fff;
    border: 1px solid var(--mc-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.03);
    font-size: 15px;
    line-height: 1.9;
    color: var(--mc-text);
    margin-top: 8px;
}
/* ---- گروه‌ها ---- */
.musicall-group-container {
    background: var(--mc-card);
    border-radius: var(--mc-radius);
    border: 1px solid var(--mc-border);
}

.musicall-group-header {
    position: relative;
}

.musicall-group-cover img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--mc-radius) var(--mc-radius) 0 0;
}

.musicall-group-info {
    padding: 20px;
}

.musicall-group-title {
    margin: 0 0 10px;
    color: var(--mc-dark);
    font-size: 24px;
}

.musicall-group-meta {
    margin-bottom: 14px;
    color: var(--mc-text-secondary);
}

.musicall-group-description {
    margin-bottom: 18px;
    color: var(--mc-text);
}

.musicall-group-actions {
    margin-bottom: 22px;
}

.musicall-group-content {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.musicall-group-feed {
    flex: 2;
    min-width: 280px;
}

.musicall-group-sidebar {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    background: rgba(107, 38, 64, 0.02);
    border-radius: var(--mc-radius);
    border: 1px solid var(--mc-border);
}

.musicall-group-members-list {
    margin-top: 18px;
}

.musicall-member-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.musicall-member-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--mc-gold);
}

/* ---- فرم‌ها ---- */
.musicall-form {
    max-width: 420px;
    margin: 24px auto;
    padding: 28px;
}

.musicall-form-group {
    margin-bottom: 18px;
}

.musicall-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--mc-dark);
}

.musicall-input,
.musicall-textarea,
.musicall-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--mc-border);
    border-radius: 12px;
    font-size: 14px;
    background: #fff;
    font-family: var(--font-body);
    transition: border-color 0.2s;
}

.musicall-input:focus,
.musicall-textarea:focus,
.musicall-select:focus {
    border-color: var(--mc-teal);
    outline: none;
    box-shadow: 0 0 0 3px rgba(107,38,64,0.1);
}

.musicall-textarea {
    resize: vertical;
    min-height: 100px;
}

.required {
    color: #C64A4A;
}

.musicall-form-footer {
    margin-top: 24px;
    text-align: center;
}

/* ---- وضعیت بارگذاری ---- */
.musicall-loading {
    text-align: center;
    padding: 36px;
    color: var(--mc-text-secondary);
    font-style: italic;
}

.musicall-load-more-container {
    text-align: center;
    padding: 24px;
}

.musicall-no-results,
.musicall-no-posts,
.musicall-no-comments {
    text-align: center;
    padding: 48px;
    color: var(--mc-text-secondary);
    font-size: 15px;
    border: 2px dashed var(--mc-border);
    border-radius: 24px;
    background: rgba(255,255,255,0.4);
}

/* ---- واکنش‌گرایی ---- */
@media (min-width: 768px) {
    .musicall-container,
    .musicall-feed-container,
    .musicall-directory-container,
    .musicall-profile-container,
    .musicall-group-container {
        padding: 36px 0 90px;
    }

    .musicall-form {
        margin: 48px auto;
    }
}

/* ---- نمونه‌کارها ---- */
.musicall-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    padding: 24px 0;
}
.musicall-portfolio-item {
    background: #fff;
    border: 1px solid var(--mc-border);
    border-radius: 20px;
    padding: 18px;
    box-shadow: var(--mc-shadow);
    transition: transform 0.2s;
}
.musicall-portfolio-item:hover {
    transform: translateY(-4px);
}
.portfolio-thumb img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    transition: transform 0.3s;
}
.portfolio-techs {
    margin: 12px 0;
}
.tech-tag {
    display: inline-block;
    background: rgba(107, 38, 64, 0.08);
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 6px;
    color: var(--mc-teal);
    font-weight: 600;
}
.portfolio-actions {
    margin-top: 14px;
}

/* ---- رأی‌دهی (ستاره‌های طلایی) ---- */
.musicall-post-card { position: relative; }

.musicall-voting-badge {
    position: absolute;
    top: 60px;
    left: 16px;
    background: var(--mc-gold);
    color: #1E1A17;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-family: var(--font-body);
}

.musicall-explore-item { position: relative; }

.musicall-explore-voting-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: var(--mc-gold);
    color: #1E1A17;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    font-size: 14px;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.musicall-profile-post-thumb { position: relative; }

.musicall-profile-voting-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: var(--mc-gold);
    color: #1E1A17;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    font-size: 12px;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.musicall-voting-badge {
    position: absolute;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    white-space: nowrap;
}
.musicall-voting-badge.top-left { top: 60px; left: 16px; }
.musicall-voting-badge.top-right { top: 60px; right: 16px; }

.musicall-explore-voting-badge {
    position: absolute;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.musicall-explore-voting-badge.top-left { top: 5px; left: 5px; }
.musicall-explore-voting-badge.top-right { top: 5px; right: 5px; }

.musicall-profile-voting-badge {
    position: absolute;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.musicall-profile-voting-badge.top-left { top: 3px; left: 3px; }
.musicall-profile-voting-badge.top-right { top: 3px; right: 3px; }

/* ---- بخش رأی‌گیری در کارت پست (حریر شرابی) ---- */
.musicall-voting-section {
    margin: 14px 18px 10px;
    padding: 14px;
    background: rgba(107, 38, 64, 0.04);
    border: 1px solid var(--mc-teal);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

.musicall-voting-header {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--mc-dark);
    font-family: var(--font-heading);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.musicall-voting-header::before {
    content: "⭐";
    font-size: 20px;
}

.musicall-voting-stars {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.voting-star {
    font-size: 30px;
    color: #D9D2C9;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    user-select: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.voting-star.selected,
.voting-star:hover {
    color: var(--mc-gold) !important;
    transform: scale(1.2);
}

.musicall-voting-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    background: rgba(255,255,255,0.6);
    padding: 8px 14px;
    border-radius: 12px;
}

.voting-average {
    font-weight: 700;
    color: var(--mc-dark);
}

.voting-your-rating {
    color: var(--mc-text-secondary);
}

.musicall-submit-vote {
    background: var(--mc-teal);
    border: none;
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.3px;
}

.musicall-submit-vote:hover {
    background: #521F33;
}

.musicall-voting-message {
    margin-top: 10px;
    font-size: 12px;
    color: var(--mc-dark);
}

/* ---- مسابقات (کارت‌های شیک) ---- */
/* ---- مسابقات (کارت‌های شیک و پرانرژی) ---- */
.musicall-contests-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 20px;
    background: transparent;
}

.musicall-contests-page .section-title,
.musicall-contests-page h2 {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 36px;
    color: var(--mc-dark);
    text-align: center;
    position: relative;
    letter-spacing: -0.5px;
}

.musicall-contests-page .section-title::after,
.musicall-contests-page h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--mc-gold);
    margin: 14px auto 0;
    border-radius: 4px;
}

.contests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 28px;
}

.contest-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1);
    border: 1px solid var(--mc-border);
    position: relative;
    box-shadow: 0 6px 22px rgba(107, 38, 64, 0.05);
    background: radial-gradient(circle at 20% 20%, rgba(107,38,64,0.03), transparent 70%);
    animation: contestShadowPulse 4s ease-in-out infinite;
}

@keyframes contestShadowPulse {
    0%   { box-shadow: 0 6px 22px rgba(107, 38, 64, 0.05), 0 0 0 0 rgba(201,168,76,0.1); }
    50%  { box-shadow: 0 8px 28px rgba(107, 38, 64, 0.12), 0 0 18px 4px rgba(201,168,76,0.2); }
    100% { box-shadow: 0 6px 22px rgba(107, 38, 64, 0.05), 0 0 0 0 rgba(201,168,76,0.1); }
}

.contest-card:hover {
    transform: translateY(-8px);
    animation: none; /* روی هاور انیمیشن قطع نشه ولی سایه‌ی قوی‌تر بده */
    box-shadow: 0 24px 48px rgba(107, 38, 64, 0.15), 0 0 30px rgba(201,168,76,0.25);
    border-color: var(--mc-gold);
}

.contest-card:hover::before {
    opacity: 1;
}

.contest-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    border-bottom: 4px solid var(--mc-gold);
    transition: filter 0.3s;
    position: relative;
    z-index: 2;
}

.contest-card:hover img {
    filter: brightness(1.03) saturate(1.1);
}

.contest-card-body {
    padding: 22px;
    position: relative;
    z-index: 2;
}

.contest-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--mc-dark);
    line-height: 1.3;
    font-family: var(--font-heading);
}

.contest-dates {
    font-size: 13px;
    color: var(--mc-text-secondary);
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.contest-status {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.2px;
}

.status-active {
    background: rgba(74, 140, 111, 0.12);
    color: #2d704c;
    border: 1px solid rgba(74,140,111,0.3);
    animation: pulse 2s infinite;
}

.status-upcoming {
    background: rgba(201, 168, 76, 0.12);
    color: #8a712b;
    border: 1px solid rgba(201,168,76,0.3);
}

.status-past {
    background: rgba(198, 74, 74, 0.1);
    color: #9e3a3a;
    border: 1px solid rgba(198,74,74,0.2);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(74,140,111,0.3); }
    70% { box-shadow: 0 0 0 8px rgba(74,140,111,0); }
    100% { box-shadow: 0 0 0 0 rgba(74,140,111,0); }
}

.contest-actions {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.contest-actions .musicall-btn {
    font-size: 13px;
    padding: 8px 20px;
}

.contest-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* جداکننده تزئینی */
/* ================= صفحه تک مسابقه ================= */
.musicall-single-contest-container {
    max-width: 800px;
    margin: 24px auto;
    padding: 20px 18px 90px;
    font-family: var(--font-body);
    color: var(--mc-text);
}

/* تصویر بالای مسابقه */
.musicall-contest-thumbnail {
    margin-bottom: 24px;
}
.musicall-contest-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    display: block;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* عنوان وسط‌چین با خط طلایی */
.musicall-single-contest-container h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    color: var(--mc-dark);
    margin: 0 0 28px;
    padding-bottom: 16px;
    position: relative;
}
.musicall-single-contest-container h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: var(--mc-gold);
    border-radius: 4px;
}

/* هر بخش: تاریخ، جایزه، توضیحات، قوانین، اقدام */
.musicall-contest-dates,
.musicall-contest-prize,
.musicall-contest-description,
.musicall-contest-rules,
.musicall-contest-action {
    background: #ffffff;
    border: 1px solid var(--mc-border);
    border-radius: 20px;
    padding: 22px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    transition: box-shadow 0.3s;
}
.musicall-contest-dates:hover,
.musicall-contest-prize:hover,
.musicall-contest-description:hover,
.musicall-contest-rules:hover,
.musicall-contest-action:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* تاریخ‌ها: نمایش در یک ردیف وسط */
.musicall-contest-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--mc-dark);
}
.musicall-contest-dates span {
    background: rgba(107,38,64,0.05);
    padding: 6px 18px;
    border-radius: 30px;
}

/* جوایز و قوانین: عنوان کوچک */
.musicall-contest-prize h3,
.musicall-contest-rules h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--mc-teal);
    display: flex;
    align-items: center;
    gap: 8px;
}
.musicall-contest-prize h3::before {
    content: "🏆";
    font-size: 20px;
}
.musicall-contest-rules h3::before {
    content: "📜";
    font-size: 20px;
}

.musicall-contest-description {
    font-size: 15px;
    line-height: 1.9;
    color: var(--mc-text);
    background: #F9F7F2;
    border-color: var(--mc-border);
}

/* پیام وضعیت (مهلت ثبت‌نام پایان یافته) */
.musicall-contest-action > p:first-child {
    display: inline-block;
    background: #C64A4A;
    color: #fff;
    padding: 12px 32px;
    border-radius: 32px;
    font-weight: 800;
    font-size: 16px;
    margin: 0 0 20px;
    box-shadow: 0 6px 16px rgba(198,74,74,0.35);
    text-align: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    display: table; /* وسط‌چین */
}

/* جداکننده داخل بخش اقدام */
.musicall-contest-action hr {
    border: none;
    height: 1px;
    background: var(--mc-border);
    margin: 24px 0;
}

/* آمار (پست‌ها، کل آرا، رأی‌دهندگان) */
#works-stats {
    background: #fff;
    border-radius: 18px;
    padding: 18px 24px;
    margin: 20px 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    border: 1px solid var(--mc-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
#works-stats .stat-item {
    font-size: 14px;
    font-weight: 600;
    color: var(--mc-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}
#works-stats .stat-item strong {
    color: var(--mc-teal);
    font-weight: 800;
}

/* آثار شرکت‌کننده (همان grid و کارت‌های قبلی) */
.contest-works-section .section-title {
    text-align: center;
    margin: 16px 0 14px;
    font-size: 24px;
}
.works-controls {
    justify-content: center;
    margin-bottom: 20px;
}

/* --- آمار رأی‌گیری داخل بخش آثار (کادر زیبا) --- */
.contest-voting-stats,
.works-voting-overview {
    background: #fff;
    border: 1px solid var(--mc-border);
    border-radius: 20px;
    padding: 20px 24px;
    margin: 20px 0 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

.contest-voting-stats .stat-item,
.works-voting-overview .stat-item {
    text-align: center;
}

.contest-voting-stats .stat-value,
.works-voting-overview .stat-value {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--mc-teal);
}

.contest-voting-stats .stat-label,
.works-voting-overview .stat-label {
    font-size: 12px;
    color: var(--mc-text-secondary);
    font-weight: 600;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
}

.work-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
    position: relative;
    border: 1px solid var(--mc-border);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.08);
}

.work-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #f8f8f8;
    border-bottom: 3px solid var(--mc-teal);
    display: block;
}

.work-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.work-card .work-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--mc-text);
    text-decoration: none;
    display: block;
    font-family: var(--font-heading);
    line-height: 1.4;
}

.work-card .work-author {
    font-size: 13px;
    color: var(--mc-text-secondary);
    margin-bottom: 12px;
}

.work-card .work-votes {
    font-size: 13px;
    color: var(--mc-teal);
    font-weight: 700;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* رأی‌گیری درون کارت: پدینگ مناسب */
.work-card .musicall-voting-info,
.work-card .voting-average,
.work-card .musicall-voting-stars {
    padding: 6px 0;
}

.vote-detail-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(30,26,23,0.65);
    backdrop-filter: blur(4px);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.vote-detail-btn:hover {
    background: var(--mc-teal);
}

.sort-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sort-btn {
    background: #F2EEE9;
    border: none;
    padding: 8px 18px;
    border-radius: 24px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--mc-text-secondary);
    transition: all 0.2s;
}

.sort-btn.active {
    background: var(--mc-gold);
    color: #1E1A17;
    box-shadow: 0 4px 12px rgba(201,168,76,0.4);
}

.sort-btn:hover {
    background: var(--mc-teal);
    color: #fff;
}

.work-card-image-link { display: block; overflow: hidden; }
.work-title-link { text-decoration: none; color: inherit; display: block; }
.work-title-link:hover .work-title { color: var(--mc-teal); }
/* مودال‌ها */
.musicall-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(30,26,23,0.65);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 28px;
    padding: 28px;
    max-width: 520px;
    width: 90%;
    max-height: 82vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    border: 1px solid var(--mc-gold);
}

.close-modal {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 30px;
    cursor: pointer;
    color: var(--mc-text-secondary);
    transition: color 0.2s;
}
.close-modal:hover {
    color: var(--mc-teal);
}

/* لینک‌های کارت */
.work-card-image-link { display: block; overflow: hidden; }
.work-title-link { text-decoration: none; color: inherit; display: block; }
.work-title-link:hover .work-title { color: var(--mc-teal); }
.contest-card-link { text-decoration: none; color: inherit; display: block; }

/* ---- نشان‌های کاربر (آیکون‌های طلایی) ---- */
.musicall-profile-badges {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    vertical-align: middle;
}

.musicall-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: 20px;
    color: #1E1A17;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    background: var(--mc-gold);
    box-shadow: 0 2px 8px rgba(201,168,76,0.3);
}

.musicall-badge img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-right: 5px;
    object-fit: cover;
}

.badge-name {
    line-height: 1;
}

/* ---- نشان‌های پست (درخشان) ---- */
.musicall-post-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    display: flex;
    gap: 8px;
    pointer-events: none;
}

.musicall-post-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    color: #1E1A17;
    font-size: 12px;
    font-weight: 700;
    background: var(--mc-gold);
    box-shadow: 0 0 18px rgba(201,168,76,0.7);
    animation: badgeGlow 3s ease-in-out infinite;
}

.musicall-post-badge img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 6px;
    object-fit: cover;
}

@keyframes badgeGlow {
    0%   { box-shadow: 0 0 8px rgba(201,168,76,0.5); }
    50%  { box-shadow: 0 0 24px rgba(201,168,76,1); }
    100% { box-shadow: 0 0 8px rgba(201,168,76,0.5); }
}

/* ---- اعلان‌ها (هماهنگ با پالت جدید) ---- */
.notification-bell .dashicons {
    color: var(--mc-dark);
}

.notification-dropdown {
    background: #fff;
    border: 1px solid var(--mc-border);
    border-radius: 18px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.notif-item {
    color: var(--mc-text);
    padding: 12px 16px;
    border-bottom: 1px solid var(--mc-border);
}

.notif-item.unread {
    background: rgba(107, 38, 64, 0.05);
    border-right: 3px solid var(--mc-teal);
}
/* ==================== دیوار مهمان (Guest Wall) ==================== */
.musicall-profile-guest-wall {
    position: relative;
    min-height: 100vh;
    background: #f0f0f0; /* fallback */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.guest-wall-background {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../img/default-post.png') center/cover no-repeat; /* یک تصویر پس‌زمینه */
}

.guest-blur-cover {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    backdrop-filter: blur(15px) brightness(0.6);
    background: rgba(255,255,255,0.2);
}

.guest-wall-message {
    position: relative;
    z-index: 2;
    text-align: center;
    background: rgba(255,255,255,0.9);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 90%;
}

.guest-wall-message img.guest-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid var(--mc-gold);
    opacity: 0.8;
}

.guest-wall-message h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
    font-family: var(--font-heading);
}

.guest-wall-message p {
    color: #666;
    margin-bottom: 20px;
    font-family: var(--font-body);
}
/* ==================== پروژه‌های من (لیست) ==================== */
.musicall-projects-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.musicall-project-item {
    display: flex;
    align-items: center;
    justify-content: space-between;   /* لینک راست، دکمه چپ */
    padding: 14px 16px;
    border-bottom: 1px solid var(--mc-border);
    background: var(--mc-card);
    transition: background 0.2s;
}

.musicall-project-item:last-child {
    border-bottom: none;
    border-radius: 0 0 var(--mc-radius) var(--mc-radius);
}

.musicall-project-item:first-child {
    border-radius: var(--mc-radius) var(--mc-radius) 0 0;
}

.musicall-project-item:hover {
    background: rgba(8, 102, 104, 0.03);
}

.musicall-project-item a {
    font-size: 16px;
    font-weight: 600;
    color: var(--mc-dark);
    text-decoration: none;
}

.musicall-project-item .musicall-btn {
    flex-shrink: 0;
    margin-right: 12px;   /* فاصله از لینک */
    white-space: nowrap;
}
.proposals-table {
    width: 100%;
    table-layout: fixed;
}
.chat-message {
    margin-bottom: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}
.chat-message strong {
    color: var(--mc-teal);
}
.chat-message small {
    color: var(--mc-text-secondary);
    font-size: 11px;
    float: left;
}
/* ==================== استایل دکمه‌های زیرتب پروژه‌های من ==================== */
.musicall-sub-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
}

.musicall-sub-tab {
    background: transparent;
    border: 2px solid #6B2640;
    padding: 8px 28px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    font-family: 'IRANSansXVF', 'IRANSans', sans-serif;
    color: #6B2640;
    border-radius: 40px;
    transition: all 0.3s ease;
}

.musicall-sub-tab.active {
    background: #6B2640;
    color: #fff;
    border: 2px solid #6B2640;
    box-shadow: 0 4px 12px rgba(107, 38, 64, 0.3);
}

.musicall-sub-tab:hover:not(.active) {
    background: rgba(107, 38, 64, 0.08);
    transform: translateY(-2px);
}

.chord-inline-wrapper {
    line-height: 2.8;
    font-size: 16px;
    font-family: 'IRANSansXVF', sans-serif;
}

.chord-word {
    position: relative;
    display: inline-block;
    white-space: normal;
    margin: 0 2px;
}

.chord-above-inline {
    position: absolute;
    top: -22px;
    right: 0;
    font-size: 12px;
    font-weight: bold;
    color: #C9A84C;
    background: transparent;
    white-space: nowrap;
    font-family: monospace;
    z-index: 2;
}

.chord-lyric-inline {
    font-size: 16px;
    line-height: 1.5;
    color: #2C2824;
    display: inline-block;
}

.chord-line-group {
    margin-bottom: 20px;
    line-height: 2.2;
    direction: rtl;
    text-align: right;
}

@media (max-width: 768px) {
    .chord-line-group {
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 20px;
        padding-bottom: 8px;
    }
    .chord-word {
        position: relative !important;
        display: inline-block !important;
        margin: 0 2px;
        padding-top: 22px !important; /* فضای خالی برای آکورد */
        vertical-align: top;
    }
    .chord-above-inline {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        font-size: 11px;
        font-weight: bold;
        color: #C9A84C;
        background: transparent;
        white-space: nowrap;
        line-height: 1.2;
    }
    .chord-lyric-inline {
        font-size: 14px;
        line-height: 1.4;
        display: inline-block;
    }
	/* استایل بخش header آکورد */
.chord-header {
    font-family: var(--font-heading, 'MorabbaVF', serif);
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0 10px;
    border-bottom: 2px solid rgba(201, 168, 76, 0.3);
}

.chord-title {
    font-size: 28px;
    font-weight: 800;
    color: #6B2640;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.chord-artist {
    font-size: 18px;
    color: #7A7268;
    margin-bottom: 12px;
}

.chord-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 15px 0;
}

.info-item {
    background: #f5f2ed;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: #6B2640;
    font-family: var(--font-body, 'IRANSansXVF', sans-serif);
}

.chord-credits {
    background: #f9f7f2;
    border-radius: 16px;
    padding: 12px 20px;
    font-size: 13px;
    text-align: center;
    color: #5a4a3a;
    margin-top: 10px;
}

/* استایل بخش کنترل‌ها (تغییر گام، کاپو، اسکرول و دانلود) */
.chord-controls {
    background: #ffffff;
    border: 1px solid #eae4dc;
    border-radius: 20px;
    padding: 20px;
    margin: 25px 0;
    box-shadow: 0 6px 14px rgba(0,0,0,0.03);
    font-family: var(--font-body, 'IRANSansXVF', sans-serif);
}

.control-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.control-group label {
    font-weight: 700;
    min-width: 100px;
    color: #3e2a24;
    font-size: 14px;
}

#chord-transpose-select,
#chord-capo-select {
    padding: 8px 12px;
    border-radius: 40px;
    border: 1px solid #ddd;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

#scroll-speed {
    width: 180px;
    accent-color: #C9A84C;
}

#scroll-speed-value {
    background: #f0ebe4;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
}

.musicall-btn {
    padding: 8px 18px;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.musicall-btn-primary {
    background: #6B2640;
    color: white;
}
.musicall-btn-primary:hover {
    background: #521F33;
    transform: translateY(-2px);
}

.premium-message {
    text-align: center;
    padding: 20px;
    background: #f9f1e6;
    border-radius: 20px;
}
}
}
/* دکمه شناور - همیشه بالای همه چیز و چسبیده به پایین */
.musicall-fab-container {
    position: fixed !important;
    bottom: 90px !important;
    left: 20px !important;
    z-index: 999999 !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
}

.musicall-fab {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    background: #6B2640 !important;
    border: none !important;
    color: white !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
}

.musicall-fab i {
    font-size: 28px !important;
    width: 28px !important;
    height: 28px !important;
    color: white !important;
}

.musicall-fab:hover {
    background: #521F33 !important;
    transform: scale(1.1) !important;
}

/* برای موبایل */
@media (max-width: 768px) {
    .musicall-fab-container {
        bottom: 80px !important;
        left: 15px !important;
    }
}