.dynamic-container {
        max-width: 900px;
        margin: 0 auto;
        padding: 20px;
    }

    .dynamic-card {
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        border: 1px solid #eee;
        padding: 20px;
        margin-bottom: 30px;
    }


    .dynamic-detail-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
        margin-bottom: 15px;
    }

    .dynamic-detail-avatar-container {
        flex-shrink: 0;
    }

    .dynamic-detail-avatar {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
    }

    .dynamic-detail-userinfo {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        margin: 0 10px;
    }

    .dynamic-detail-username {
        font-weight: bold;
        color: #333;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dynamic-detail-meta {
        color: #999;
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dynamic-detail-follow {
        font-size: 0.85rem;
        padding: 0.25rem 0.75rem;
    }

    .dynamic-detail-text {
        color: #333;
        line-height: 1.8;
        margin-bottom: 15px;
    }

    .dynamic-detail-images {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-bottom: 15px;
    }

    .dynamic-detail-images img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 8px;
        transition: transform 0.3s;
    }

    .dynamic-detail-images img:hover {
        transform: scale(1.02);
    }

    .dynamic-footer {
        display: flex;
        justify-content: space-around;
        padding-top: 15px;
        border-top: 1px solid #eee;
    }

    .dynamic-action {
        color: #666;
        cursor: pointer;
        transition: color 0.3s;
    }

    .dynamic-action i {
        margin-right: 5px;
    }

    .dynamic-detail-comments {
        background-color: #fff;
        padding: 20px;
        border-radius: 8px;
        border: 1px solid #eee;
        margin-top: 20px;
    }

    .comment-form {
        position: fixed;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 860px;
        margin: 0 auto;
        bottom: 0;
        padding: 10px;
        background-color: #fff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
        z-index: 1000;
        border-radius: 15px 15px 0 0;
    }

    .comment-form.hidden {
        transform: translateY(100%);
    }

    .comment-form .form-control {
        border-radius: 15px;
        padding: 10px 15px;
        border: 1px solid #eee;
        outline: none;
        flex-grow: 1;
    }

    .comment-form .input-group {
        display: flex;
        gap: 5px;
    }

    .comment-form .btn-brown {
        background-color: #141414;
        color: #fff;
        border-radius: 15px;
        padding: 0 20px;
        border: none;
        cursor: pointer;
    }

    
    .comment-item {
        display: flex;
        gap: 12px;
        padding: 15px 0;
    }
    .reply-item {
        display: flex;
        gap: 12px;
        padding: 10px 0 10px 0;
    }
    .comment-item:last-child, .reply-item:last-child {
        border-bottom: none;
    }

    .comment-avatar-wrap {
        flex-shrink: 0;
    }
    .comment-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
    }

    .comment-content {
        flex-grow: 1;
    }
   
    .comment-user-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 6px;
    }
    .comment-username {
        font-weight: 600;
        color: #333;
        font-size: 1.1rem;
        margin-right: 8px;
        flex-shrink: 0; 
    }
    .comment-time {
        font-size: 0.9rem;
        color: #999;
        text-align: right;
        flex-shrink: 0; 
    }
    .comment-text {
        color: #333;
        line-height: 1.5;
        font-size: 1rem;
        margin: 0 0 8px 0;
        white-space: pre-wrap;
    }


    .expand-reply {
        color: #666;
        font-size: 13px;
        cursor: pointer;
        margin: 5px 0;
        display: inline-block;
        padding-left: 0;
    }
    .expand-reply:hover {
        color: #333;
    }
    .loading-reply {
        color: #666;
        font-size: 13px;
        margin: 5px 0;
        padding-left: 0;
    }
    .no-more-comments {
        color: #999;
        font-size: 13px;
        margin: 5px 0;
        padding-left: 0;
        cursor: default;
    }
    .reply-error {
        color: #ff4444;
        font-size: 13px;
        margin: 5px 0;
        padding-left: 0;
        cursor: pointer;
    }

    @media (max-width: 960px) {
        .dynamic-detail-images {
            grid-template-columns: repeat(2, 1fr);
        }
        .dynamic-detail-images img {
            height: 150px;
        }



    
    }

    .profile-btn {
        padding: 8px 20px;
        border-radius:15px;
        transition: all 0.3s ease;
        font-weight: 500;
        border: none;
        cursor: pointer;
    }

    .follow-btn {
        background-color: #141414;
        color: white;
    }

    .follow-btn.following {
        background-color: #999;
    }

    :root {
        --primary-color: #ffffff;
        --accent-color: #000000;
    }