
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    background-color: #f5f5f5;
    padding-bottom: 80px;
}

/* Header */
.header {
    background: white;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
}

.back-button:active {
    background: #e5e7eb;
}

.header-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    flex: 1;
}

.breadcrumb {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Main Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 150px 10px 10px 10px !important;
}

/* Thread Card */
.thread-card {
    background: white;
    border-radius: 12px;
    padding: 20px 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border:none;
    margin-bottom: 16px;
}

.thread-header {
    display: flex;
    align-items: start;
    gap: 12px;
    margin-bottom: 16px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.thread-info {
    flex: 1;
}

.author-name {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.thread-meta {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    padding: 0 10px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    height:18px;
    line-height:18px;
}

.badge.verified {
    background: #d1fae5;
    color: #065f46;
}

.thread-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.thread-content {
    font-size: 15px;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 16px;
}
.thread-content._detailcnt{
    display: inline-block;
    -webkit-line-clamp: none;
    -webkit-box-orient: unset;
    overflow: visible;
}
.thread-content p {
    margin-bottom: 12px;
}

.thread-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.tag {
    padding: 6px 12px;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

.thread-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}
._thactn-dtlw{justify-content:space-between;}
._thactn{align-items:center;justify-content:flex-start;gap:5px;}
@media (min-width:1025px){
    ._thactn{gap:10px;}
}

.action-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.action-button:hover{color: #ef4444;}
.action-button:active {
    background: #f3f4f6;
    transform: scale(0.98);
}

.action-button.liked {
    color: #ef4444;
    border-color: #ef4444;
    background: #fef2f2;
}

.action-button svg {
    width: 18px;
    height: 18px;
}

/* Reply Section */
.reply-section {
    margin-top: 24px;
}

.reply-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 4px;
}

.reply-count {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.sort-dropdown {
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    color: #6b7280;
    background: white;
}

/* Reply Card */
.reply-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.reply-header-content {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.reply-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
}

.reply-avatar-1 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.reply-avatar-2 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.reply-avatar-3 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.reply-avatar-4 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.reply-avatar-5 {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.reply-info {
    flex: 1;
}

.reply-author {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.reply-time {
    font-size: 12px;
    color: #9ca3af;
}

.reply-content {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 12px;
    word-break: break-all;
}
.reply-section .reply-content{padding-left:0;}

.reply-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reply-action {
    display: flex;
    align-items: center;
    gap: 4px;
    /* padding: 4px 8px; */
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
}
._rplysbtng{align-items:center;gap:10px;}
._lkunlk ._rcl:hover .reply-action,
.reply-action:hover {color:#ef4444;}
.reply-action:active {
    background: #f3f4f6;
}

.reply-action.active {
    color: #2563eb;
}

.reply-action svg {
    width: 16px;
    height: 16px;
}

/* Nested Reply */
.nested-reply {
    margin-left: 52px;
    margin-top: 12px;
    padding-left: 16px;
    border-left: 2px solid #e5e7eb;
}

.nested-reply .reply-card {
    background: #f9fafb;
}

/* Reply Input */
.reply-input-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 16px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 50;
}

.reply-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.reply-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    font-size: 14px;
    background: #f9fafb;
}

.reply-input:focus {
    outline: none;
    border-color: #2563eb;
    background: white;
}

._rvhp .reply-action{justify-content:center;padding:3px 3px 3px 6px;gap:2px;}
._rvhp .reply-action._like svg{fill:#0ad32a;}
._rvhp .reply-action._dslike svg{fill:#fa7373;}
._rvhp .reply-action.likeunlike{background:rgba(243,244,246,0.85);}
._rvhp .reply-action ._rcl span{font-size:13px;color:#000;font-weight:bold;margin-right:6px;opacity:0.65;}
._rvhp .reply-action.likeunlike svg{width:20px;height:20px;}

.send-button {
    width: 40px;
    height: 40px;
    border: none;
    background: #2563eb;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.send-button:active {
    background: #1d4ed8;
    transform: scale(0.95);
}

/* Load More */
.load-more {
    text-align: center;
    padding: 16px;
}

.load-more-button {
    padding: 10px 24px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #2563eb;
    cursor: pointer;
}

.load-more-button:active {
    background: #f3f4f6;
}

/* Verified Badge */
.verified-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    background: #10b981;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
}

/* Responsive */
@media (max-width: 480px) {
    .thread-title {
        font-size: 20px;
    }

    .thread-content {
        font-size: 14px;
    }

    .nested-reply {
        margin-left: 32px;
        padding-left: 12px;
    }
}

/* Dark Mode */
/* @media (prefers-color-scheme: dark) {
    body {
        background-color: #0f0f10;
    }

    .header,
    .thread-card,
    .reply-card,
    .reply-input-container {
        background: #1a1a1b;
    }

    .header-title,
    .thread-title,
    .author-name,
    .reply-count,
    .reply-author {
        color: #ffffff;
    }

    .thread-content,
    .reply-content {
        color: #d1d5db;
    }

    .thread-meta,
    .reply-time,
    .action-button,
    .reply-action {
        color: #9ca3af;
    }

    .back-button,
    .tag {
        background: #2a2a2b;
        color: #d1d5db;
    }

    .reply-input {
        background: #2a2a2b;
        border-color: #3a3a3b;
        color: #ffffff;
    }

    .nested-reply .reply-card {
        background: #242425;
    }

    .action-button,
    .load-more-button {
        border-color: #3a3a3b;
    }
} */

@media (min-width:1025px){
    .thread-card{padding:30px;}
    .container{padding:86px 16px 16px 16px !important;}
}