.rtm-fdetail { background:#f0f2f8; min-height:80vh; padding:24px 0 60px; }
.rtm-fdetail__body { display:grid; grid-template-columns:1fr 280px; gap:20px; }
.rtm-fdetail__card { background:#fff; border-radius:14px; border:1px solid #e5e7eb; overflow:hidden; }
.rtm-fdetail__head { padding:20px 24px; border-bottom:1px solid #f3f4f6; }
.rtm-fdetail__cat { display:inline-flex; align-items:center; gap:5px; padding:3px 10px; border-radius:6px; font-size:12px; font-weight:700; margin-bottom:10px; }
.rtm-fdetail__title { font-size:22px; font-weight:800; color:#161616; margin:0 0 12px; line-height:1.35; }
.rtm-fdetail__meta { display:flex; align-items:center; gap:14px; font-size:13px; color:#9ca3af; flex-wrap:wrap; }
.rtm-fdetail__content { padding:24px; font-size:15px; color:#374151; line-height:1.85; }
.rtm-fdetail__content p { margin:0 0 14px; }
.rtm-fdetail__images { display:flex; gap:8px; flex-wrap:wrap; padding:0 24px 20px; }
.rtm-fdetail__images img { height:120px; border-radius:8px; object-fit:cover; cursor:pointer; }
.rtm-fdetail__tags { padding:0 24px 16px; display:flex; gap:6px; flex-wrap:wrap; }
.rtm-fdetail__tag { background:#f3f4f6; color:#6b7280; padding:3px 10px; border-radius:6px; font-size:12px; }
.rtm-fdetail__actions { padding:14px 24px; border-top:1px solid #f3f4f6; display:flex; align-items:center; gap:12px; }
.rtm-fdetail__like { display:flex; align-items:center; gap:6px; background:#f3f4f6; border:none; padding:8px 16px; border-radius:8px; font-size:14px; font-weight:600; cursor:pointer; transition:.15s; }
.rtm-fdetail__like:hover { background:#fee2e2; color:#dc2626; }
.rtm-fdetail__like.is-liked { background:#fee2e2; color:#dc2626; }
.rtm-fdetail__replies { margin-top:16px; background:#fff; border-radius:14px; border:1px solid #e5e7eb; }
.rtm-fdetail__replies-head { padding:16px 20px; font-size:15px; font-weight:700; color:#374151; border-bottom:1px solid #f3f4f6; }
.rtm-fdetail__reply { padding:16px 20px; border-bottom:1px solid #f9fafb; display:flex; gap:12px; }
.rtm-fdetail__reply:last-child { border-bottom:none; }
.rtm-fdetail__reply-avatar { width:36px; height:36px; border-radius:50%; background:linear-gradient(135deg,#84cc16,#22c55e); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; flex-shrink:0; }
.rtm-fdetail__reply-body { flex:1; }
.rtm-fdetail__reply-author { font-size:13px; font-weight:700; color:#374151; margin-bottom:4px; }
.rtm-fdetail__reply-content { font-size:14px; color:#4b5563; line-height:1.65; }
.rtm-fdetail__reply-meta { display:flex; align-items:center; gap:10px; font-size:12px; color:#9ca3af; margin-top:6px; }
.rtm-fdetail__reply-like { background:none; border:none; cursor:pointer; font-size:12px; color:#9ca3af; display:flex; align-items:center; gap:4px; }
.rtm-fdetail__reply-like.is-liked { color:#dc2626; }
.rtm-fdetail__form { padding:20px; border-top:2px solid #f3f4f6; }
.rtm-fdetail__form h3 { font-size:15px; font-weight:700; margin:0 0 14px; }
.rtm-fdetail__form input, .rtm-fdetail__form textarea { width:100%; border:1px solid #e5e7eb; border-radius:8px; padding:10px 14px; font-size:14px; color:#374151; outline:none; font-family:inherit; box-sizing:border-box; }
.rtm-fdetail__form input:focus, .rtm-fdetail__form textarea:focus { border-color:#5f84ff; }
.rtm-fdetail__form textarea { resize:vertical; min-height:100px; }
.rtm-fdetail__form-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:10px; }
.rtm-fdetail__submit { background:#5f84ff; color:#fff; border:none; padding:10px 24px; border-radius:8px; font-size:14px; font-weight:700; cursor:pointer; width:100%; margin-top:8px; }
.rtm-fdetail__submit:hover { background:#4a6fe0; }
.rtm-fdetail__widget { background:#fff; border-radius:12px; padding:16px 18px; margin-bottom:14px; border:1px solid #e5e7eb; }
.rtm-fdetail__widget-title { font-size:13px; font-weight:700; color:#374151; margin:0 0 12px; }
.rtm-fdetail__cat-link { display:flex; align-items:center; gap:8px; padding:7px 0; text-decoration:none; color:#374151; font-size:13px; border-bottom:1px solid #f9fafb; }
.rtm-fdetail__cat-link:last-child { border-bottom:none; }
.rtm-fdetail__cat-link:hover { color:#5f84ff; }
@media(max-width:768px){.rtm-fdetail__body{grid-template-columns:1fr}}

/* Related posts */
.rtm-frelated { background:#f0f2f8; padding:0 0 48px; }
.rtm-frelated__wrap { max-width:100%; }
.rtm-frelated__head {
    display:flex; align-items:center; gap:10px;
    font-size:18px; font-weight:800; color:#161616;
    margin-bottom:18px; padding-top:8px;
}
.rtm-frelated__icon { font-size:20px; }
.rtm-frelated__grid {
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:14px;
}
.rtm-frelated__card {
    background:#fff; border-radius:12px; padding:16px 18px;
    border:1px solid #e5e7eb; text-decoration:none;
    display:flex; flex-direction:column; gap:8px;
    transition:.15s;
}
.rtm-frelated__card:hover {
    border-color:#5f84ff44;
    box-shadow:0 4px 16px rgba(95,132,255,.12);
    transform:translateY(-2px);
}
.rtm-frelated__card-cat {
    display:inline-flex; align-items:center; gap:4px;
    padding:2px 8px; border-radius:6px;
    font-size:11px; font-weight:700;
    width:fit-content;
}
.rtm-frelated__card-title {
    font-size:14px; font-weight:700; color:#161616;
    line-height:1.45;
    display:-webkit-box; -webkit-line-clamp:2;
    -webkit-box-orient:vertical; overflow:hidden;
}
.rtm-frelated__card-excerpt {
    font-size:13px; color:#6b7280; line-height:1.6;
    display:-webkit-box; -webkit-line-clamp:2;
    -webkit-box-orient:vertical; overflow:hidden;
    flex:1;
}
.rtm-frelated__card-meta {
    display:flex; align-items:center; gap:10px;
    font-size:11px; color:#9ca3af; margin-top:4px;
}
@media(max-width:900px){.rtm-frelated__grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:540px){.rtm-frelated__grid{grid-template-columns:1fr}}
