/* =================================================
   Comment Form — unified dark/purple theme
   ================================================= */

/* ── Title ─────────────────────────────────────── */
.comment-reply-title {
    font-size: 20px;
    font-weight: 700;
    color: #e5e7eb;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-top: none !important;
    border-bottom: 2px solid rgba(139, 92, 246, 0.35);
    direction: rtl;
}
.comment-reply-title::before { display: none !important; }

#respond { border-top: none !important; padding-top: 0 !important; }
#respond::before { display: none !important; }

/* Vertical rhythm — use margin-top on children (more reliable than gap) */
p.comment-form-comment {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin: 0 0 12px !important;
}
p.form-submit { margin: 0 !important; }

.cf-textarea    { margin-top: 0 !important; }
.cf-grid        { margin-top: 12px !important; }
.cf-inline-row  { margin-top: 12px !important; }

/* ── Textarea ──────────────────────────────────── */
.cf-textarea {
    width: 100% !important;
    min-height: 110px !important;
    padding: 14px 16px !important;
    background: rgba(31, 41, 55, 0.5) !important;
    border: 1.5px solid rgba(139, 92, 246, 0.2) !important;
    border-radius: 10px !important;
    color: #e5e7eb !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    direction: rtl !important;
    resize: vertical !important;
    font-family: inherit !important;
    transition: border-color .2s, box-shadow .2s, background .2s !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}
.cf-textarea:focus {
    outline: none !important;
    border-color: #8B5CF6 !important;
    background: rgba(31, 41, 55, 0.7) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15) !important;
}
.cf-textarea::placeholder { color: rgba(156, 163, 175, 0.6) !important; }

/* ── Name / e-mail grid ────────────────────────── */
.cf-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    direction: rtl !important;
}
@media (max-width: 480px) { .cf-grid { grid-template-columns: 1fr !important; } }

.cf-input {
    width: 100% !important;
    padding: 11px 14px !important;
    background: rgba(31, 41, 55, 0.5) !important;
    border: 1.5px solid rgba(139, 92, 246, 0.2) !important;
    border-radius: 10px !important;
    color: #e5e7eb !important;
    font-size: 14px !important;
    direction: rtl !important;
    font-family: inherit !important;
    transition: border-color .2s, box-shadow .2s, background .2s !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}
.cf-input:focus {
    outline: none !important;
    border-color: #8B5CF6 !important;
    background: rgba(31, 41, 55, 0.7) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15) !important;
}
.cf-input:hover:not(:focus) { border-color: rgba(139, 92, 246, 0.35) !important; }
.cf-input::placeholder { color: rgba(156, 163, 175, 0.6) !important; }

/* ── Inline row: spoiler | save | captcha ─────── */
.cf-inline-row {
    display: flex !important;
    gap: 5px !important;
    direction: rtl !important;
    align-items: stretch !important;
}

.cf-inline-row > .cf-check {
    flex: 1 !important;
    min-width: 0 !important;
}

.cf-inline-row > .captcha-wrap {
    flex: 1.4 !important;
    min-width: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

@media (max-width: 560px) {
    .cf-inline-row {
        flex-direction: column !important;
    }
    .cf-inline-row > .cf-check,
    .cf-inline-row > .captcha-wrap {
        flex: none !important;
    }
}

/* ── Checkboxes (standalone, logged-in users) ─── */
.cf-checks {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.cf-check {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 11px 14px !important;
    background: rgba(31, 41, 55, 0.45) !important;
    border: 1.5px solid rgba(139, 92, 246, 0.2) !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    direction: rtl !important;
    transition: background .2s, border-color .2s !important;
    user-select: none !important;
    margin: 0 !important;
    box-shadow: none !important;
}
.cf-check:hover {
    background: rgba(31, 41, 55, 0.6) !important;
    border-color: rgba(139, 92, 246, 0.35) !important;
}
.cf-check input[type="checkbox"] {
    width: 17px !important;
    height: 17px !important;
    flex-shrink: 0 !important;
    accent-color: #8B5CF6 !important;
    margin: 0 !important;
    cursor: pointer !important;
    border-radius: 4px !important;
}
.cf-check span {
    font-size: 14px !important;
    color: #d1d5db !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

/* Spoiler variant */
.cf-check--spoiler { border-color: rgba(139, 92, 246, 0.3) !important; }
.cf-check--spoiler:hover {
    background: rgba(109, 40, 217, 0.12) !important;
    border-color: rgba(139, 92, 246, 0.5) !important;
}
.cf-check--spoiler span { color: #a78bfa !important; }

/* ── Submit ────────────────────────────────────── */
.cf-submit {
    width: 100% !important;
    padding: 11px 24px !important;
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    font-family: inherit !important;
    transition: background .2s, transform .15s, box-shadow .2s !important;
    box-shadow: 0 3px 10px rgba(139, 92, 246, 0.25) !important;
    margin-top: 0 !important;
}
.cf-submit:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 14px rgba(139, 92, 246, 0.35) !important;
}
.cf-submit:active { transform: translateY(0) !important; }
.cf-submit:disabled { opacity: 0.6 !important; cursor: not-allowed !important; transform: none !important; }

/* ============================================
   Comment Actions (Like & Reply) Mobile Fix
   ============================================ */

@media (max-width: 768px) {
    li.comment {
        position: relative !important;
        padding-bottom: 50px !important;
    }
    li.comment > div.flex.items-center.justify-between {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    li.comment > div.flex.items-center.justify-between > div.flex.flex-col {
        position: absolute !important;
        bottom: 10px !important;
        left: 10px !important;
        right: auto !important;
        top: auto !important;
        flex-direction: row !important;
        gap: 8px !important;
        align-items: center !important;
        justify-content: flex-start !important;
        background: rgba(0, 0, 0, 0.1) !important;
        padding: 6px 10px !important;
        border-radius: 8px !important;
        backdrop-filter: blur(4px) !important;
        z-index: 10 !important;
    }
    li.comment .wpulike {
        transform: scale(0.7) !important;
        transform-origin: left center !important;
    }
    li.comment .comment-reply-link {
        font-size: 11px !important;
        padding: 4px 8px !important;
        background: rgba(139, 92, 246, 0.8) !important;
        color: white !important;
        border-radius: 4px !important;
        text-decoration: none !important;
    }
    li.comment > div.flex.items-center.justify-between > div.flex.items-center {
        display: none !important;
    }
}

/* Spoiler button in comment form */
.spoiler-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 8px;
    margin-left: 8px;
}

.spoiler-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.spoiler-btn:active {
    transform: translateY(0);
}

/* Full spoiler button */
.full-spoiler-btn {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 8px;
    margin-left: 8px;
}

.full-spoiler-btn:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Spoiler help text styling */
.spoiler-help {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    padding: 8px;
    background: #f9f9f9;
    border-radius: 4px;
    direction: rtl;
    text-align: right;
    border-left: 3px solid #667eea;
}

.dark .spoiler-help {
    background: #374151;
    color: #d1d5db;
    border-left-color: #8b5cf6;
}

.spoiler-help code {
    background: #e5e7eb;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 11px;
    color: #374151;
}

.dark .spoiler-help code {
    background: #4b5563;
    color: #f3f4f6;
}

/* Spoiler toggle button - Clean bottom button */
.spoiler-toggle {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9) 0%, rgba(253, 95, 38, 0.9) 100%) !important;
    color: white !important;
    border: none !important;
    padding: 6px 14px !important;
    border-radius: 16px !important;
    cursor: pointer !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    display: inline-block !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
}

.spoiler-toggle:hover {
    background: linear-gradient(135deg, rgba(253, 95, 38, 0.9) 0%, rgba(252, 71, 9, 0.9) 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(139, 92, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    text-decoration: none !important;
    color: white !important;
}

.spoiler-toggle.spoiler-active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9) 0%, rgba(5, 150, 105, 0.9) 100%) !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.spoiler-toggle.spoiler-active:hover {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.9) 0%, rgba(4, 120, 87, 0.9) 100%) !important;
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* Spoiler content container - Minimal Glass Design */
.spoiler-container {
    margin: 8px 0 !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    direction: rtl !important;
    text-align: right !important;
    position: relative !important;
}

.spoiler-container p {
    margin: 0 !important;
    padding: 0 !important;
}

.dark .spoiler-container {
    background: transparent !important;
    border: none !important;
}

/* Spoiler Comment - Blur entire comment */
.spoiler-comment {
    position: relative !important;
}

/* Blur only the content inside spoiler-comment, not the button container */
.spoiler-comment:not(.spoiler-revealed) .spoiler-content {
    filter: blur(8px) !important;
    opacity: 0.6 !important;
    user-select: none !important;
    pointer-events: none !important;
}

.spoiler-comment .spoiler-reveal-btn-container {
    position: static !important;
    transform: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 60px !important;
    z-index: 10 !important;
    pointer-events: auto !important;
}

/* When revealed, remove blur from content */
.spoiler-comment.spoiler-revealed .spoiler-content {
    filter: blur(0px) !important;
    opacity: 1 !important;
    user-select: auto !important;
    pointer-events: auto !important;
}

.spoiler-comment.spoiler-revealed {
    filter: blur(0px) !important;
    opacity: 1 !important;
    user-select: auto !important;
    pointer-events: auto !important;
}

/* Spoiler Reveal Button Container */
.spoiler-reveal-btn-container {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10 !important;
    pointer-events: auto !important;
}

/* Glossy Reveal Button */
.spoiler-reveal-btn {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.95) 0%, 
        rgba(253, 95, 38, 0.95) 50%,
        rgba(252, 71, 9, 0.95) 100%) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50px !important;
    padding: 16px 32px !important;
    color: white !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    box-shadow: 
        0 8px 32px rgba(139, 92, 246, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    outline: none !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    position: relative !important;
    overflow: hidden !important;
}

.spoiler-reveal-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent) !important;
    transition: left 0.8s ease !important;
}

.spoiler-reveal-btn:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 
        0 12px 40px rgba(139, 92, 246, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.spoiler-reveal-btn:hover::before {
    left: 100% !important;
}

.spoiler-reveal-btn:active {
    transform: translateY(-1px) scale(1.02) !important;
    box-shadow: 
        0 6px 20px rgba(139, 92, 246, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.3) !important;
}

.btn-icon {
    font-size: 18px !important;
    animation: pulse 2s infinite !important;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.btn-text {
    direction: rtl !important;
}

/* Hide button when revealed */
.spoiler-comment.spoiler-revealed .spoiler-reveal-btn-container {
    display: none !important;
}

.spoiler-content.spoiler-visible::before {
    display: none !important;
}

/* Warning icon for spoilers - Minimal Glass Badge */
.spoiler-warning {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #8B5CF6 !important;
    font-size: 11px !important;
    margin: 0 8px 4px 0 !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(253, 95, 38, 0.15) 100%) !important;
    padding: 4px 10px !important;
    border-radius: 12px !important;
    direction: rtl !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.spoiler-warning::before {
    content: "⚠️" !important;
    font-size: 12px !important;
}

.dark .spoiler-warning {
    color: #fbbf24;
}

/* Smooth animation for spoiler reveal */
@keyframes spoilerReveal {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.spoiler-content.spoiler-visible {
    animation: spoilerReveal 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .spoiler-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .spoiler-toggle {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .spoiler-content {
        padding: 10px;
    }
    
    .spoiler-help {
        font-size: 11px;
        padding: 6px;
    }
}

/* Focus states for accessibility */
.spoiler-btn:focus,
.spoiler-toggle:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Tooltip styles */
.spoiler-btn[title] {
    position: relative;
}

.spoiler-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

.spoiler-btn[title]:hover::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0,0,0,0.8);
    z-index: 1000;
}

/* Comment form container improvements */
#commentform {
    position: relative;
}

/* Improved styling for Persian/Farsi content */
.spoiler-content p {
    line-height: 1.8;
    margin-bottom: 10px;
}

.spoiler-content p:last-child {
    margin-bottom: 0;
}
/* Mobile comment layout hard reset */
@media (max-width: 768px) {
    .comments-area {
        padding: 14px !important;
        overflow: hidden !important;
    }

    .comments-area .filmbaz-comment-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .comments-area .comment-list {
        gap: 14px !important;
    }

    .comments-area .comment-list li.comment {
        padding: 14px !important;
        padding-bottom: 14px !important;
        overflow: visible !important;
    }

    .comments-area .comment-list li.comment > .flex.items-center.justify-between {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .comments-area .comment-list li.comment > .flex.items-center.justify-between > div:first-child {
        width: 100% !important;
        min-width: 0 !important;
    }

    .comments-area .comment-list li.comment .spoiler-wrapper,
    .comments-area .comment-list li.comment .my-4,
    .comments-area .comment-list li.comment .comment-content,
    .comments-area .comment-list li.comment p {
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    .comments-area .comment-list li.comment > .flex.items-center.justify-between > .flex.flex-col {
        position: static !important;
        inset: auto !important;
        width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: row-reverse !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        margin-top: 4px !important;
        padding: 8px !important;
        background: rgba(15, 23, 42, 0.42) !important;
        border: 1px solid rgba(86, 70, 148, 0.38) !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        z-index: auto !important;
        transform: none !important;
    }

    .comments-area .comment-list li.comment .wpulike,
    .comments-area .comment-list li.comment .wp_ulike_general_class {
        margin: 0 !important;
        transform: none !important;
        transform-origin: center !important;
        flex: 0 0 auto !important;
    }

    .comments-area .comment-list li.comment .comment-reply-link {
        min-width: 112px !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        padding: 9px 14px !important;
        color: #ffffff !important;
        background: rgba(139, 92, 246, 0.76) !important;
        border-color: rgba(167, 139, 250, 0.72) !important;
        border-radius: 8px !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    .comments-area ol.children {
        margin: 12px 8px 0 0 !important;
        padding: 0 10px 0 0 !important;
    }

    .comment-list #respond.filmbaz-responding-inline {
        width: 100% !important;
        margin: 16px 0 0 !important;
        padding: 12px !important;
        overflow: visible !important;
    }

    .comment-list #respond.filmbaz-responding-inline #reply-title {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        font-size: 16px !important;
        line-height: 1.6 !important;
        min-height: 36px !important;
    }

    .comment-list #respond.filmbaz-responding-inline #reply-title small {
        display: inline-flex !important;
        margin: 0 !important;
    }

    .comment-list #respond.filmbaz-responding-inline #cancel-comment-reply-link {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
        min-height: 32px !important;
        padding: 6px 12px !important;
        white-space: nowrap !important;
    }
}
/* Mobile reply controls */
.cf-check {
    direction: ltr !important;
    justify-content: space-between !important;
}

.cf-check span {
    order: 2 !important;
    flex: 1 1 auto !important;
    direction: rtl !important;
    text-align: right !important;
}

.cf-check input[type="checkbox"] {
    order: 1 !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
}

@media (max-width: 768px) {
    #respond.filmbaz-responding-inline .filmbaz-cancel-mobile-row {
        display: flex !important;
        width: 100% !important;
        margin: 10px 0 0 !important;
    }

    #respond.filmbaz-responding-inline .filmbaz-cancel-mobile-row #cancel-comment-reply-link {
        width: 100% !important;
        min-height: 42px !important;
        color: #fecaca !important;
        background: rgba(127, 29, 29, 0.22) !important;
        border: 1px solid rgba(248, 113, 113, 0.46) !important;
        border-radius: 10px !important;
        font-size: 13px !important;
    }
}

/* Mobile cancel reply visibility */
@media (max-width: 768px) {
    #respond.filmbaz-responding-inline .filmbaz-cancel-mobile-row {
        display: flex !important;
        width: 100% !important;
        margin: 10px 0 0 !important;
        padding: 0 !important;
        clear: both !important;
        box-sizing: border-box !important;
    }

    #respond.filmbaz-responding-inline .filmbaz-cancel-mobile-row #cancel-comment-reply-link {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 42px !important;
        margin: 0 !important;
        color: #fee2e2 !important;
        background: rgba(153, 27, 27, 0.3) !important;
        border: 1px solid rgba(248, 113, 113, 0.55) !important;
        border-radius: 10px !important;
        font-size: 13px !important;
        font-weight: 900 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Dedicated mobile reply cancel button */
#filmbaz-mobile-cancel-reply,
.filmbaz-mobile-cancel-reply {
    display: none !important;
}

@media (max-width: 768px) {
    #respond.filmbaz-reply-active #reply-title small,
    #respond.filmbaz-responding-inline #reply-title small {
        display: none !important;
    }

    #respond.filmbaz-reply-active .filmbaz-mobile-cancel-reply,
    #respond.filmbaz-responding-inline .filmbaz-mobile-cancel-reply {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 44px !important;
        margin: 10px 0 0 !important;
        padding: 10px 14px !important;
        color: #fee2e2 !important;
        background: rgba(127, 29, 29, 0.34) !important;
        border: 1px solid rgba(248, 113, 113, 0.62) !important;
        border-radius: 10px !important;
        font: inherit !important;
        font-size: 13px !important;
        font-weight: 900 !important;
        line-height: 1.4 !important;
        text-align: center !important;
        box-shadow: 0 8px 18px rgba(127, 29, 29, 0.18) !important;
        cursor: pointer !important;
    }

    #respond.filmbaz-reply-active .filmbaz-mobile-cancel-reply:hover,
    #respond.filmbaz-responding-inline .filmbaz-mobile-cancel-reply:hover {
        background: rgba(153, 27, 27, 0.46) !important;
        border-color: rgba(252, 165, 165, 0.78) !important;
    }
}

/* Keep only the dedicated mobile cancel button */
@media (max-width: 768px) {
    #respond.filmbaz-reply-active #reply-title small,
    #respond.filmbaz-responding-inline #reply-title small,
    .comment-list #respond.filmbaz-reply-active #reply-title small,
    .comment-list #respond.filmbaz-responding-inline #reply-title small,
    #respond.filmbaz-reply-active #reply-title #cancel-comment-reply-link,
    #respond.filmbaz-responding-inline #reply-title #cancel-comment-reply-link,
    .comment-list #respond.filmbaz-reply-active #reply-title #cancel-comment-reply-link,
    .comment-list #respond.filmbaz-responding-inline #reply-title #cancel-comment-reply-link {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        min-width: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }
}
