/* ===========================================================
   gd-frontend-style.css - نسخه نهایی
   =========================================================== */

/* ============================================
   باکس بالا - دسکتاپ
   ============================================ */

#gcd-top-box-container {
    float: left;
    margin: 0 20px 6px 0;
    max-width: 220px;
    width: 100%;
}

.gcd-top-desktop {
    display: block;
}
.gcd-top-mobile {
    display: none;
}

.gcd-top-box-inner {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-size: 13px;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.gcd-top-box-only-bookmark {
    max-width: 60px;
}
.gcd-top-box-only-bookmark .gcd-bookmark-wrap {
    margin: 0;
}

/* ★★★ بوک مارک ★★★ */
.gcd-bookmark-wrap {
    text-align: center;
    margin-bottom: 1px;
}
.gcd-bookmark-wrap .simplefavorite-button {
    font-size: 22px !important;
    padding: 0 4px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* مخفی کردن متن "نشان شده" */
.gcd-bookmark-wrap .simplefavorite-button .sf-favorited-text,
.gcd-bookmark-wrap .simplefavorite-button .sf-favorite-text,
.gcd-mobile-col-bookmark .simplefavorite-button .sf-favorited-text,
.gcd-mobile-col-bookmark .simplefavorite-button .sf-favorite-text {
    display: none !important;
}

/* آیکون بوک مارک - حالت غیرفعال (توخالی) */
.gcd-bookmark-wrap .simplefavorite-button .sf-icon-bookmark,
.gcd-mobile-col-bookmark .simplefavorite-button .sf-icon-bookmark {
    color: #000000 !important;
    opacity: 1 !important;
    -webkit-text-stroke: 1.5px #000000 !important;
    -webkit-text-fill-color: transparent !important;
}

/* آیکون بوک مارک - حالت فعال (توپر) */
.gcd-bookmark-wrap .simplefavorite-button.is-favorited .sf-icon-bookmark,
.gcd-bookmark-wrap .simplefavorite-button.active .sf-icon-bookmark,
.gcd-mobile-col-bookmark .simplefavorite-button.is-favorited .sf-icon-bookmark,
.gcd-mobile-col-bookmark .simplefavorite-button.active .sf-icon-bookmark {
    color: #000000 !important;
    opacity: 1 !important;
    -webkit-text-stroke: 0px !important;
    -webkit-text-fill-color: #000000 !important;
}

/* Fallback برای تشخیص فعال بودن از طریق data-favorited */
.gcd-bookmark-wrap .simplefavorite-button[data-favorited="1"] .sf-icon-bookmark,
.gcd-mobile-col-bookmark .simplefavorite-button[data-favorited="1"] .sf-icon-bookmark {
    color: #000000 !important;
    -webkit-text-stroke: 0px !important;
    -webkit-text-fill-color: #000000 !important;
}

.gcd-rhythm-section {
    text-align: center;
    padding: 1px 0;
}
.gcd-rhythm-label {
    display: block;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0px;
}
.gcd-rhythm-links {
    display: block;
    font-size: 13px;
    font-weight: 600;
}
.gcd-rhythm-link {
    color: #2563eb;
    text-decoration: none;
}
.gcd-rhythm-link:hover {
    text-decoration: underline;
}

.gcd-scale-section {
    text-align: center;
    padding: 1px 8px;
    background: #f1f5f9;
    border-radius: 6px;
}
.gcd-scale-label {
    font-size: 10px;
    color: #475569;
    line-height: 1.2;
}
.gcd-scale-value {
    font-weight: 700;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.2;
}

/* ============================================
   باکس بالا - موبایل
   ============================================ */

.gcd-top-mobile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 4px 3px;
    margin: 2px 0 3px 0;
    width: 100%;
    box-sizing: border-box;
}

.gcd-mobile-col {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0px 2px;
    position: relative;
}

.gcd-mobile-col:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 20%;
    height: 60%;
    width: 1px;
    background: #e2e8f0;
}

.gcd-mobile-col-bookmark .simplefavorite-button {
    font-size: 20px !important;
    padding: 0 2px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    line-height: 1 !important;
}

.gcd-mobile-col-bookmark .simplefavorite-button .sf-icon-bookmark {
    color: #000000 !important;
    opacity: 1 !important;
    -webkit-text-stroke: 1.5px #000000 !important;
    -webkit-text-fill-color: transparent !important;
}

.gcd-mobile-col-bookmark .simplefavorite-button.is-favorited .sf-icon-bookmark,
.gcd-mobile-col-bookmark .simplefavorite-button.active .sf-icon-bookmark,
.gcd-mobile-col-bookmark .simplefavorite-button[data-favorited="1"] .sf-icon-bookmark {
    -webkit-text-stroke: 0px !important;
    -webkit-text-fill-color: #000000 !important;
}

.gcd-mobile-label {
    font-size: 9px;
    color: #94a3b8;
    font-weight: 500;
    display: block;
    line-height: 1;
    margin-bottom: 0px;
}

.gcd-mobile-value {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    gap: 2px;
    flex-wrap: wrap;
}

.gcd-mobile-col-rhythm .gcd-rhythm-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.1;
    display: inline-flex;
    align-items: center;
}

.gcd-mobile-col-scale .gcd-mobile-value {
    color: #0f172a;
}

/* ============================================
   باکس پایین
   ============================================ */

.gcd-bottom-wrapper {
    margin-top: 30px;
    padding: 16px 0;
    border-top: 2px solid #eef2f6;
    clear: both;
    width: 100%;
}

.gcd-bottom-row {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    width: 100%;
}

.gcd-bottom-row-first .gcd-box {
    flex: 1;
    min-width: 180px;
}

.gcd-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
}

.gcd-box-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gcd-box-rating .gcd-box-label {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}
.gcd-box-rating .kk-star-ratings {
    margin: 0 !important;
}

.gcd-author-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
}

.gcd-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #e2e8f0;
}
.gcd-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gcd-author-info {
    display: flex;
    flex-direction: column;
}
.gcd-author-label {
    font-size: 12px;
    color: #94a3b8;
}
.gcd-author-name {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

/* ============================================
   ★★★ دکمه‌های پایین - دسکتاپ ★★★
   ============================================ */

.gcd-desktop-only {
    display: flex !important;
}

.gcd-bottom-row-second {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    align-items: stretch;
}

.gcd-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    flex: 1 1 auto;
    min-width: 90px;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    box-sizing: border-box;
    line-height: 1.2;
    vertical-align: middle;
    position: relative;
    overflow: hidden;
}

.gcd-action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.gcd-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}

.gcd-action-btn:hover::before {
    opacity: 1;
}

.gcd-action-btn:active {
    transform: translateY(0px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.gcd-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.gcd-btn-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    display: block;
    transition: transform 0.2s ease;
}

.gcd-action-btn:hover .gcd-btn-icon svg {
    transform: scale(1.1);
}

.gcd-btn-text {
    font-size: 13px;
    white-space: nowrap;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

/* ★★★ همه دکمه‌ها ارتفاع یکسان ★★★ */
.gcd-btn-sheet,
.gcd-btn-download,
.gcd-btn-playlist,
.gcd-btn-feedback,
.gcd-btn-extra,
.gcd-btn-extra2 {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
}

/* ★★★ دکمه نت و تبلچر ★★★ */
.gcd-btn-sheet {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: #86efac;
    color: #166534;
}
.gcd-btn-sheet::before {
    background: linear-gradient(135deg, #bbf7d0, #86efac);
}
.gcd-btn-sheet:hover {
    border-color: #4ade80;
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.25);
}

/* ★★★ دکمه دانلود PDF ★★★ */
.gcd-btn-download {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #93c5fd;
    color: #1e40af;
}
.gcd-btn-download::before {
    background: linear-gradient(135deg, #bfdbfe, #60a5fa);
}
.gcd-btn-download:hover {
    border-color: #3b82f6;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
}
.gcd-btn-download.gcd-locked {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #fca5a5;
    color: #991b1b;
}
.gcd-btn-download.gcd-locked::before {
    background: linear-gradient(135deg, #fecaca, #f87171);
}
.gcd-btn-download.gcd-locked:hover {
    border-color: #ef4444;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.20);
}

/* ★★★ دکمه افزودن به پلی‌لیست ★★★ */
.gcd-btn-playlist {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: #fcd34d;
    color: #92400e;
}
.gcd-btn-playlist::before {
    background: linear-gradient(135deg, #fde68a, #fbbf24);
}
.gcd-btn-playlist:hover {
    border-color: #f59e0b;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25);
}

/* ★★★ دکمه گزارش اشتباه ★★★ */
.gcd-btn-feedback {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #fca5a5;
    color: #991b1b;
}
.gcd-btn-feedback::before {
    background: linear-gradient(135deg, #fecaca, #f87171);
}
.gcd-btn-feedback:hover {
    border-color: #ef4444;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.20);
}

/* ★★★ دکمه اضافی اول ★★★ */
.gcd-btn-extra {
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
    border-color: #d8b4fe;
    color: #6b21a8;
}
.gcd-btn-extra::before {
    background: linear-gradient(135deg, #c4b5fd, #a78bfa);
}
.gcd-btn-extra:hover {
    border-color: #8b5cf6;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.20);
}

/* ★★★ دکمه اضافی دوم ★★★ */
.gcd-btn-extra2 {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-color: #6ee7b7;
    color: #065f46;
}
.gcd-btn-extra2::before {
    background: linear-gradient(135deg, #a7f3d0, #34d399);
}
.gcd-btn-extra2:hover {
    border-color: #10b981;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.20);
}

/* ★★★ دکمه بازگشت به گام اصلی آهنگ ★★★ */
.gcd-btn-reset {
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
    border-color: #f9a8d4;
    color: #9d174d;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
}
.gcd-btn-reset::before {
    background: linear-gradient(135deg, #fbcfe8, #f472b6);
}
.gcd-btn-reset:hover {
    border-color: #ec4899;
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.25);
}

/* ============================================
   ★★★ آیکون موبایل ★★★
   ============================================ */

.gcd-mobile-gear {
    position: fixed;
    bottom: 80px;
    left: 16px;
    z-index: 99999;
    display: none;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 992px) {
    .gcd-mobile-gear {
        display: flex !important;
    }
}

.gcd-gear-toggle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #1e293b;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    position: relative;
    flex-direction: column;
}

.gcd-gear-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}

.gcd-gear-toggle svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
    fill: none;
    transition: transform 0.4s ease;
}

.gcd-gear-toggle.active svg {
    transform: rotate(60deg);
}

.gcd-gear-label {
    font-size: 9px;
    color: #1e293b;
    margin-top: 4px;
    font-weight: 500;
    text-align: center;
    background: rgba(255,255,255,0.9);
    padding: 1px 8px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    white-space: nowrap;
    display: block;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .gcd-mobile-gear {
        bottom: 70px;
        left: 12px;
    }
    
    .gcd-gear-toggle {
        width: 46px;
        height: 46px;
    }
    
    .gcd-gear-toggle svg {
        width: 20px;
        height: 20px;
    }
    
    .gcd-gear-label {
        font-size: 8px;
        padding: 1px 6px;
        margin-top: 3px;
    }
}

@media (max-width: 480px) {
    .gcd-mobile-gear {
        bottom: 60px;
        left: 10px;
    }
    
    .gcd-gear-toggle {
        width: 42px;
        height: 42px;
    }
    
    .gcd-gear-toggle svg {
        width: 18px;
        height: 18px;
    }
    
    .gcd-gear-label {
        font-size: 7px;
        padding: 1px 5px;
        margin-top: 2px;
    }
}

/* ============================================
   ★★★ پاپ‌آپ موبایل - تمام عرض ★★★
   ============================================ */

.gcd-mobile-popup {
    position: fixed;
    bottom: 140px;
    left: 0;
    z-index: 999999;
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.gcd-mobile-popup-inner {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.25);
    position: relative;
    animation: gcdPopupIn 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

@keyframes gcdPopupIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.gcd-mobile-popup-close {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #475569;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.gcd-mobile-popup-close:hover {
    background: #e2e8f0;
}

.gcd-mobile-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.gcd-mobile-buttons .gcd-action-btn {
    width: 100%;
    min-width: 0;
    padding: 10px 14px;
    font-size: 14px;
    justify-content: flex-start;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    white-space: normal;
    word-break: break-word;
    text-align: right;
}

.gcd-mobile-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: -1;
}

/* ============================================
   کادر پیام (Toast)
   ============================================ */

#gcd-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999999;
    max-width: 360px;
    width: 100%;
}

.gcd-toast {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    border-right: 4px solid #2563eb;
    margin-bottom: 10px;
    animation: gcdToastIn 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

@keyframes gcdToastIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.gcd-toast-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 4px;
    flex-shrink: 0;
    line-height: 1;
}
.gcd-toast-close:hover {
    color: #1e293b;
}

.gcd-toast-text {
    font-size: 14px;
    color: #1e293b;
    line-height: 1.5;
    flex: 1;
}

.gcd-toast-text a {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 600;
}
.gcd-toast-text a:hover {
    color: #1d4ed8;
}

.gcd-toast-success {
    border-right-color: #22c55e;
}
.gcd-toast-success .gcd-toast-text {
    color: #166534;
}

.gcd-toast-warning {
    border-right-color: #f59e0b;
}
.gcd-toast-warning .gcd-toast-text {
    color: #92400e;
}

.gcd-toast-info {
    border-right-color: #3b82f6;
}
.gcd-toast-info .gcd-toast-text {
    color: #1e40af;
}

/* ============================================
   عکس در موبایل
   ============================================ */

@media (max-width: 768px) {
    .gcd-author-avatar {
        width: 56px;
        height: 56px;
    }
    .gcd-author-avatar img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .gcd-author-avatar {
        width: 48px;
        height: 48px;
    }
}

/* ============================================
   واکنش‌گرا
   ============================================ */

@media (min-width: 993px) {
    .gcd-mobile-gear {
        display: none !important;
    }
    .gcd-top-mobile {
        display: none !important;
    }
    .gcd-top-desktop {
        display: block !important;
    }
    .gcd-desktop-only {
        display: flex !important;
    }
}

@media (max-width: 992px) {
    .gcd-mobile-gear {
        display: flex !important;
    }
    
    .gcd-top-desktop {
        display: none !important;
    }
    .gcd-top-mobile {
        display: block !important;
    }
    
    .gcd-desktop-only {
        display: none !important;
    }
    
    #gcd-top-box-container {
        float: none;
        margin: 0;
        max-width: 100%;
        width: 100%;
        padding: 0 8px;
        box-sizing: border-box;
    }
    
    .gcd-top-mobile-row {
        padding: 3px 2px;
        margin: 1px 0 2px 0;
        gap: 1px;
        border-radius: 6px;
    }
    
    .gcd-mobile-col {
        padding: 0px 1px;
    }
    
    .gcd-mobile-label {
        font-size: 8px;
        line-height: 1;
    }
    
    .gcd-mobile-value {
        font-size: 12px;
        line-height: 1;
    }
    
    .gcd-mobile-col-rhythm .gcd-rhythm-link {
        font-size: 12px;
        line-height: 1;
    }
    
    .gcd-mobile-col-bookmark .simplefavorite-button {
        font-size: 18px !important;
    }
    
    .gcd-bottom-wrapper {
        margin-top: 16px;
        padding: 8px 0;
    }
    
    .gcd-bottom-row-first {
        flex-direction: column;
    }
    
    .gcd-bottom-row-first .gcd-box {
        min-width: 0;
        width: 100%;
    }
    
    /* ★★★ پاپ‌آپ موبایل - تمام عرض ★★★ */
    .gcd-mobile-popup {
        left: 0;
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .gcd-mobile-popup-inner {
        width: 100%;
        box-sizing: border-box;
        border-radius: 14px;
        padding: 16px;
    }
    
    .gcd-mobile-buttons .gcd-action-btn {
        padding: 10px 14px;
        font-size: 14px;
        white-space: normal;
        word-break: break-word;
        text-align: right;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    #gcd-top-box-container {
        padding: 0 4px;
    }
    
    .gcd-top-mobile-row {
        padding: 2px 1px;
        margin: 1px 0 2px 0;
        gap: 0px;
        border-radius: 4px;
    }
    
    .gcd-mobile-label {
        font-size: 7px;
        line-height: 1;
    }
    
    .gcd-mobile-value {
        font-size: 11px;
        line-height: 1;
    }
    
    .gcd-mobile-col-rhythm .gcd-rhythm-link {
        font-size: 11px;
        line-height: 1;
    }
    
    .gcd-mobile-col-bookmark .simplefavorite-button {
        font-size: 16px !important;
    }
    
    .gcd-box {
        padding: 8px 10px;
    }
    
    .gcd-author-name {
        font-size: 13px;
    }
    
    /* ★★★ پاپ‌آپ موبایل کوچک - تمام عرض ★★★ */
    .gcd-mobile-popup {
        padding: 0 6px;
        bottom: 130px;
    }
    
    .gcd-mobile-popup-inner {
        padding: 14px;
        border-radius: 12px;
    }
    
    .gcd-mobile-buttons .gcd-action-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    #gcd-toast-container {
        bottom: 10px;
        right: 10px;
        max-width: 260px;
    }
    
    .gcd-toast {
        padding: 10px 12px;
        font-size: 12px;
        border-radius: 8px;
    }
}

/* ============================================
   دارک مود
   ============================================ */

@media (prefers-color-scheme: dark) {
    .gcd-top-box-inner {
        background: #1e293b;
        border-color: #334155;
    }
    
    .gcd-top-box-inner .gcd-scale-label,
    .gcd-top-box-inner .gcd-rhythm-label {
        color: #94a3b8;
    }
    
    .gcd-top-box-inner .gcd-scale-value,
    .gcd-top-box-inner .gcd-rhythm-links {
        color: #e2e8f0;
    }
    
    .gcd-top-box-inner .gcd-rhythm-link {
        color: #60a5fa;
    }
    
    .gcd-top-mobile-row {
        background: rgba(30, 41, 59, 0.92);
        border-color: #334155;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    
    .gcd-mobile-value {
        color: #e2e8f0 !important;
    }
    
    .gcd-mobile-label {
        color: #94a3b8 !important;
    }
    
    .gcd-mobile-col:not(:last-child)::after {
        background: #334155;
    }
    
    .gcd-mobile-col-rhythm .gcd-rhythm-link {
        color: #60a5fa !important;
    }
    
    .gcd-scale-section {
        background: #0f172a;
    }
    .gcd-scale-value {
        color: #e2e8f0;
    }
    
    /* بوک مارک در دارک مود */
    .gcd-bookmark-wrap .simplefavorite-button .sf-icon-bookmark,
    .gcd-mobile-col-bookmark .simplefavorite-button .sf-icon-bookmark {
        -webkit-text-stroke: 1.5px #ffffff !important;
        -webkit-text-fill-color: transparent !important;
    }
    
    .gcd-bookmark-wrap .simplefavorite-button.is-favorited .sf-icon-bookmark,
    .gcd-bookmark-wrap .simplefavorite-button.active .sf-icon-bookmark,
    .gcd-mobile-col-bookmark .simplefavorite-button.is-favorited .sf-icon-bookmark,
    .gcd-mobile-col-bookmark .simplefavorite-button.active .sf-icon-bookmark {
        -webkit-text-fill-color: #ffffff !important;
        -webkit-text-stroke: 0px !important;
    }
    
    .gcd-bookmark-wrap .simplefavorite-button[data-favorited="1"] .sf-icon-bookmark,
    .gcd-mobile-col-bookmark .simplefavorite-button[data-favorited="1"] .sf-icon-bookmark {
        -webkit-text-fill-color: #ffffff !important;
        -webkit-text-stroke: 0px !important;
    }
    
    /* کادرها در دارک مود */
    .gcd-box {
        background: #1e293b !important;
        border-color: #334155 !important;
    }
    
    .gcd-box .gcd-box-label {
        color: #94a3b8 !important;
    }
    
    .gcd-author-label {
        color: #94a3b8 !important;
    }
    
    .gcd-author-name {
        color: #e2e8f0 !important;
    }
    
    /* دکمه‌ها در دارک مود */
    .gcd-action-btn {
        background: #1e293b;
        border-color: #334155;
        color: #e2e8f0;
    }
    
    .gcd-action-btn:hover {
        background: #2d3a4f;
    }
    
    .gcd-btn-sheet {
        border-color: #2d4a2d;
        background: #1a2e1a;
    }
    .gcd-btn-sheet:hover {
        background: #1f3a1f;
    }
    
    .gcd-btn-download {
        border-color: #2a3a5a;
        background: #1a263a;
    }
    .gcd-btn-download:hover {
        background: #1f2f4a;
    }
    
    .gcd-btn-playlist {
        border-color: #4a3a2a;
        background: #2a261a;
    }
    .gcd-btn-playlist:hover {
        background: #3a2f1f;
    }
    
    .gcd-btn-feedback {
        border-color: #4a2a2a;
        background: #2a1a1a;
    }
    .gcd-btn-feedback:hover {
        background: #3a1f1f;
    }
    
    .gcd-btn-extra {
        border-color: #3a2a5a;
        background: #2a1a3a;
    }
    .gcd-btn-extra:hover {
        background: #3a1f4a;
    }
    
    .gcd-btn-extra2 {
        border-color: #2a4a3a;
        background: #1a2a2a;
    }
    .gcd-btn-extra2:hover {
        background: #1f3a2f;
    }
    
    .gcd-mobile-popup-inner {
        background: #1e293b;
    }
    
    .gcd-mobile-popup-close {
        background: #334155;
        color: #94a3b8;
    }
    
    .gcd-mobile-popup-close:hover {
        background: #475569;
    }
    
    .gcd-gear-toggle {
        background: #0f172a;
    }
    
    .gcd-gear-label {
        background: rgba(15, 23, 42, 0.85);
        color: #e2e8f0;
    }
    
    .gcd-toast {
        background: #1e293b;
        border-right-color: #3b82f6;
    }
    
    .gcd-toast-text {
        color: #e2e8f0;
    }
    
    .gcd-toast-text a {
        color: #60a5fa;
    }
    
    .gcd-toast-close {
        color: #64748b;
    }
    .gcd-toast-close:hover {
        color: #e2e8f0;
    }
    
    .gcd-toast-success {
        border-right-color: #22c55e;
    }
    .gcd-toast-success .gcd-toast-text {
        color: #86efac;
    }
    
    .gcd-toast-warning {
        border-right-color: #f59e0b;
    }
    .gcd-toast-warning .gcd-toast-text {
        color: #fcd34d;
    }
    
    .gcd-toast-info {
        border-right-color: #3b82f6;
    }
    .gcd-toast-info .gcd-toast-text {
        color: #93c5fd;
    }
}